Originally posted by Drachasor
So, you are saying that if the AI knows all the units in a city, then it will not be able to do a simple calculation to find out the sufficient force to achieve an 80% chance of victory (or higher)? That's is what is ridiculous. There mathematics involved are straightforward, and if you somehow think computers can't handle that, then you're just plain wrong.
For instance if 2 of Unit B is sufficent to defeat a fortified unit A in a city 80% of the time, and there are 4 unit A's in that city, then 8 unit Bs will be sufficient to defeat the force in that city 80% of the time (we'll assume the combat is one round, but multiple rounds only change the potential force involved--which can also easily be calculated if the AI assumes the opponent will switch everything to the defense of that city, that is the AI plays it safe).
Are you somehow telling me the computer can't do the combat calculations a few million times in a few seconds? Because you are quite wrong if you think that. I may not be an expert at programming, but I know my bit.
As I said, the switching of production in the AI cities would be a bit tricky (to balance), but it naturally isn't impossible to get a so-so to decent implementation. Heck, even keep the current one, but have it take into account numbers before it attacks. How the heck can you think the AI can't figure out its chances?
-Drachasor
Bookmarks