Added sample agent + log file writing/parsing
authorSam Moore <[email protected]>
Tue, 29 Jan 2013 16:47:24 +0000 (00:47 +0800)
committerSam Moore <[email protected]>
Tue, 29 Jan 2013 16:47:24 +0000 (00:47 +0800)
commita35e4dc5f4fb6325785b6f8b123266976107b748
treecbfe2082abbf3c063103ff47d3be1c5dba759e10
parent877034f05346e24fdf822f6e6149ad50d891f030
Added sample agent + log file writing/parsing

I figured no one wants to sift through the qchess internal agent stuff,
So I wrote a python external agent agents/sample.py

I ended up implementing the cool idea about log files.
You can replay a log file up to an arbitrary point, and then continue play.

I also fixed a bug with external agents calling run_agent.
Removed the reading of the colour line from there, since the external agent should do it.
Added reading of the colour line to the ExternalWrapper class, to avoid breaking that.

Added --reveal so that all states can be seen in the GUI (but they are not communicated to Agents).

Added handling of SIGINT to main.py

Probably did something else I forgot.

qchess will probably be ready soon (famous last words), I should start on a scoring/entry system...
And a webpage.
agents/sample.py [new file with mode: 0755]
qchess/Makefile
qchess/build/exe.linux-x86_64-2.7.zip
qchess/build/exe.win32-2.7.zip
qchess/data/help.txt
qchess/qchess.py
qchess/src/board.py
qchess/src/game.py
qchess/src/main.py
qchess/src/piece.py
qchess/src/player.py

UCC git Repository :: git.ucc.asn.au