| 90 | |
| 91 | === Batch simulating games === |
| 92 | The behavior of the AI can be tested by running multiple games consecutively, |
| 93 | for example by analyzing the summary screen data at the end of the game from the replay menu. |
| 94 | |
| 95 | As described in source:/ps/trunk/binaries/system/readme.txt, a new match can be started directly by passing the mapname and player assignments as command line arguments. |
| 96 | |
| 97 | Add an `API3.exit()` statement to an arbitrary place of the AI code or |
| 98 | an `Engine.ExitProgram()` statement to the GUI code (for example if all players have been defeated or won in `messages.js`). |
| 99 | |
| 100 | Using a unix shell or windows batch script allows to repeatedly start matches after the previous pyrogenesis instance exited. |