Opened 9 years ago

Last modified 20 months ago

#3392 new defect

Add the ability to output AI commands to commands.txt — at Initial Version

Reported by: Itms Owned by:
Priority: Nice to Have Milestone: Work In Progress
Component: Core engine Keywords: patch
Cc: Patch:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.