14 {5, 4, 3, 2, 1, 2, 3, 4, 5},
15 {0, 0, 0, 0, 0, 0, 0, 0, 0},
16 {0, 6, 0, 0, 0, 0, 0, 6, 0},
17 {7, 0, 7, 0, 7, 0, 7, 0, 7},
18 {0, 0, 0, 0, 0, 0, 0, 0, 0},
19 {0, 0, 0, 0, 0, 0, 0, 0, 0},
20 {-7, 0, -7, 0, -7, 0, -7, 0, -7},
21 {0, -6, 0, 0, 0, 0, 0, -6, 0},
22 {0, 0, 0, 0, 0, 0, 0, 0, 0},
23 {-5, -4, -3, -2, -1, -2, -3, -4, -5},
Constants, typedefs, and simple structs used by gameboard::GameBoard.
Tracking piece positions and determining legal moves.
const BoardMapInt_t kStandardInitialBoard
Starting board represented as 2-D array of integers.
array< array< int, kNumFiles >, kNumRanks > BoardMapInt_t
2-D array of integers; can be converted to gameboard::BoardMap_t using gameboard::int_board_to_game_p...
const int kRepeatPeriodsToCheck[3]
Max allowed repetitions of prohibited move sequence lengths.
const int kMaxMovesWithoutCapture
const int kRepeatPeriodsMaxAllowed
Repeated move sequence lengths forbidden under move repetition rules.
Definition of gameboard::PieceMoves and related constants.
Defiition of miscellaneous free functions (and implementation of those that are templates).