Messing with log files
- Fixed storing of whether pieces were revealed or not in log files - Just prepend '?' to the hidden types, removed the Piece.types_revealed list - Implemented Agent resetting of board state from strings - ReplayPlayer will call the Agent.reset_board() function - run_agent() looks for lines between "BOARD" and "END BOARD" - This API will not be compulsory for entered agents - All games will start with the initial board state, it is not required - Fixed other stuff with log files - Needed to work out whose turn it is when the game continues from a log - HttpLog -> ShortLog (since it just writes to a file) - To get a log from http, use --file=http://address - This works for either ShortLog or LogFile written logs - But if the game hasn't ended there is a bug with the LogFile logs - Can now have multiple logs at the same time - Hopefully nothing is borked
Showing
- qchess/qchess.py 183 additions, 91 deletionsqchess/qchess.py
- qchess/src/agent_bishop.py 3 additions, 2 deletionsqchess/src/agent_bishop.py
- qchess/src/board.py 54 additions, 7 deletionsqchess/src/board.py
- qchess/src/game.py 62 additions, 50 deletionsqchess/src/game.py
- qchess/src/log.py 21 additions, 11 deletionsqchess/src/log.py
- qchess/src/main.py 14 additions, 12 deletionsqchess/src/main.py
- qchess/src/piece.py 8 additions, 8 deletionsqchess/src/piece.py
- qchess/src/player.py 20 additions, 0 deletionsqchess/src/player.py
Please register or sign in to comment