I need help with programming an AI for a strategy game I'm making. Not a perfect AI, but at least a CPU that can analyze situations and adapt. The game revolves around the creation of military units to conquer the CPU. If any of you guys know how to do this, please help me.
Offline
We/you need to have a much more concrete understanding of the game before you can begin to make AI for it. Real-time strategy in Scratch is severely limited (due to speed mostly, but also script complexity) and truly adaptable AI is pretty much impossible no matter what programming language you use.
Offline
I suggest you use a bottom up appproach to creating an AI.
Imagine a simple arena that is a tight hallway (so tight you can only move forward and backward) , and there are two *hostile* robots facing each other. The simplest you can do is to let it shoot on sight.
Then imagine a more complex arena, where there are two degrees of freedom, moving left,right, up and down. You could program it to move randomly, and then shoot on sight.
For economy that depends on what kind it is.
Offline
Well my game is based off real time war strategy games. I need my AI to react to the player's actions. For instance: the player attacks a CPU controlled territory. The AI reacts by either fortifying its defenses, or initiating a counter attack.
Offline