Hobby project, trying to create a simple RTS game with somewhat challenging AI using Pure Java.
Some features about the AI:
- AI does not cheat, its vision are limited by fog of war, and it doesn't have any advantage in resource gathering.
- AI will send scout unit to find player's bases and player's army composition, it will use this info to adjust its own army composition, and make decoisions on when and where to attack.
- AI will expand to a different mining base when current mine is running low.
- During Battle, AI will pick off weakened player units first.
- During travelling AI units will wait for each other to avoid being scattered all over the map.
- AI will retreat when it lost a significant number of units.
- Send units to partol the outer parameter of the base, so AI can deal with player's sneak attack eariler.
- When ecnounter a concentrated player static defences, use long range units to deal with the static defence while keep other units in safe distance.
Feel free to grab anything you want here, including the source code and image files!
Demo avaliable on youtube: https://www.youtube.com/watch?v=hE69S2aLrjk&t=201s
Some screenshots:



