Skip to content

Chess board representation

HeavyPanda edited this page May 11, 2016 · 15 revisions

Requirements

In order to implement a chess game it is important to decide in what structure the board should be saved. This structure needs to address some requirements

  • the state need to save all information to reconstruct the current state of the game
  • it should be easy to determine if an move is invalid e.g. move outside of the board
  • moving figures based on their move pattern should be easy to do
  • the board should be saved memory efficient

0x88 board presentation

The 0x88 board representation is described in : http://web.archive.org/web/20070909095550/http://www.seanet.com/~brucemo/topics/0x88.htm