|
Chess
|
Finds possible moves given a Piece. More...

Functions | |
| void | test_pawn (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_white_pawn (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_black_pawn (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_rook (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_bishop (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_knight (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_queen (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
| void | test_king (const Piece &piece, std::vector< int > &possible_moves, const Chessboard &chessboard) |
Finds possible moves given a Piece.
The Piece class is used to store data like the pos and type of each piece. It is also used to find the possible moves for a piece. Each piece has a different function for this, and the pointers to these functions are stored in a vector to allow for constant time lookup.
1.8.13