RTanque
RTanque copied to clipboard
Recording game play?
Haven't had a chance to look at the documentation, but how hard would it be to record a game? I imagine it would be a matter of storing the initial positions, the current random seed, and the series of Commands issued, then just animating that.
Recording a game would consist of something like you've described. Animating that recording would be more complicated and I'm not sure how it could be done.
If you record the tick count along with each command issued, then you can build a data-driven bot which simply replays the commands on the matching tick. Spawn the data-driven bots at the initial positions, hook up their command sources, and start the "match".
See: #9