Add the ability to output AI commands to commands.txt
|Reported by:||Itms||Owned by:||Sandarac|
|Priority:||Nice to Have||Milestone:||Work In Progress|
Description (last modified by )
Currently the commands.txt don't include AI commands, as those should be deterministic. It would also be wrong to replay a file with commands for AI players, as they would interfere.
However, it would be nice to have a way to output these commands, for instance with a command-line option, in order to:
- see what the AI did by reading the file
- be able to modify things for testing and bug-hunting
- test serialization in games with AIs, just by disabling AIs and replaying their commands (this will be invalid when the AI supports serialization tests)
If such a system is implemented, it would be necessary to test that a commands file with AIs doesn't contain commands for AI players.