samirsen / chex

nearest-neighbor search for chess game states
MIT License
3 stars 0 forks source link

board representation should include which player's turn it is #2

Open nellore opened 7 years ago

nellore commented 7 years ago

Another consideration: a board does not in general determine which player's turn it is, right? And a board B where it's black's turn is strategically inequivalent to B where it's white's turn, so we should include which player's turn it is in the board's representation (perhaps as an extra component).

Incidentally, we are currently using the "bitboard" representation from https://en.wikipedia.org/wiki/Board_representation_(chess).

nellore commented 7 years ago

Same probably goes for castling availability and en passant. Maybe halfmove clock and fullmove number from the FEN can be ignored though -- maybe all from this comment can be ignored for now, but whose turn it is seems important.