39 std::vector<coordinates>
get_legals()
override;
a class representing coordinates
bool is_possible_attack(coordinates dest) override
verify if the dest position is a valid attack move. The pawn need a special overrided function.
pawn(bool _white, coordinates _coord)
void needed_space(coordinates dest, std::vector< coordinates > *to_calculate) override
calculate a list of empty space coordinates needed for the move to be legal, assuming the move is pos...
void canonical_print_piece() override
print the piece to the standard output in canonical form
std::vector< coordinates > possible_legals
void print_piece() override
print the piece to the standard output
void move(coordinates dest, bool debug_info) override
called to move the pawn
std::vector< coordinates > get_legals() override
retrieve the piece's legal moves
a generic piece class. white is a boolean indicating the piece's color. legals is a vector indicating...
std::vector< coordinates > legals