A simple test to prove the existence of the 'Do Something' routine.
Just to prove the existence of the 'do something' sub-routine here is a very simple test.
Step 1. A level playing field leaving the AI to decide.
By Didz at 1969-12-31
Two identical units of spearmen face each other over a totally level peice of ground. The AI commanding the Scots has been told it is on the defensive and so the 'do something' routine has not overridden the AI to force it to attack. Consequently the AI does nothing as it cannot calculate any solution.
I left these units staring at each other for 15 minutes before taking this picture nothing moved.
Step 2: A level playing field but letting the 'Do Something' routine override the AI.
By Didz at 1969-12-31
A second battle with exactly the same set-up, except that this time the AI has been told that it is the Attacker. Therefore, when the battle engine detects that the AI is unable to calculate a solution the 'Do Something' routine kicks in to override the AI and force it to attack. The affect was instantaneous with the Scots advancing as soon as the battle started.
Step 3: Proving that the AI does exist.
By Didz at 1969-12-31
Finally, just to prove that the AI does exist and will calculate a solution if it has the potential to do so. The third test puts the AI back on the defensive but this time gives it more troops and thus a numerical advantage. As you can see in this final test despite being on the defensive as in Step 1 the AI has calculated the odds realised it has an advantage and has ordered an attack.
Conclusion
As predicted, if the AI is presented with a totally balanced scenario and left to its own devices it will do nothing. However, if the 'Do Something' routine is told it is the attacker, it will override the AI and force the AI to attack even though it still has no advantage. Finally, if given an advantage the AI will move to expliot that advantage even though it is contrary to its mission.
Bookmarks