Expand description
Holds Position struct, the most important data structure for the engine. Position represents a chess position. Positions and moves are assumed to be strictly legal, and have undefined behavior for illegal activity.
Structsยง
- Cache
- During position.do_move, there are a number of variables that are updated in one direction, which are restored from backups in MoveInfo during position.undo_move. Instead of each MoveInfo keeping its own repetitive copy of this undone info, they should be saved separately.
- Game
- Game contains information for an in progress game: The base position the game started from, the sequence of moves that were played, and the current position.
- Position
- struct Position A complete data set that can represent any chess position.