AI spectate or watch replays?
Posted: 17 Jan 2016, 14:01
Is there any way to have an AI spectate games? Either spectating running games or, preferably, watching a replay?
Basically, what I want is to "watch" games in a way that allows code that can extract and dump to files what's going on in the game. Ex:
- Minute 1: Player A 50m, 800e, 8.8m income, 55e income, Comm at (x;y), AK at (x;y); AK at (x;y), etc; Player B ...
- Minute 2: ...
The intent of that is to collect data on which I can then apply learning algorithms, similar to Fil's overall concept in his thread:
viewtopic.php?f=15&t=34042
Except he's (I assume) relying on logging data of what's happening in the games his AI is playing.
I'd prefer to aim at realistic human-like behaviour as far as possible - so preferably watching humans play instead of watching AIs. Also, machine learning needs a lot of data examples to learn from so, ideally, I'd like to be able to watch the plentiful replays of BA.
Basically, what I want is to "watch" games in a way that allows code that can extract and dump to files what's going on in the game. Ex:
- Minute 1: Player A 50m, 800e, 8.8m income, 55e income, Comm at (x;y), AK at (x;y); AK at (x;y), etc; Player B ...
- Minute 2: ...
The intent of that is to collect data on which I can then apply learning algorithms, similar to Fil's overall concept in his thread:
viewtopic.php?f=15&t=34042
Except he's (I assume) relying on logging data of what's happening in the games his AI is playing.
I'd prefer to aim at realistic human-like behaviour as far as possible - so preferably watching humans play instead of watching AIs. Also, machine learning needs a lot of data examples to learn from so, ideally, I'd like to be able to watch the plentiful replays of BA.