|
Chess
|
Class structure for the pieces that fill a game state's board. More...
#include <piece.h>
Public Member Functions | |
| Piece (int pos, Type type, bool team_white) | |
| Piece (const Piece &other) | |
| Piece & | operator= (const Piece &other) |
| Piece (Piece &&other) noexcept | |
| Piece & | operator= (Piece &&other) noexcept |
| std::vector< int > | get_possible_moves (const Chessboard &chessboard) |
| Returns possible moves for one piece. | |
| bool | is_opposing_team (std::optional< Piece > other) const |
Public Attributes | |
| int | pos |
| Type | type |
| bool | team_white |
Class structure for the pieces that fill a game state's board.
1.8.13