16 if(diff_x != 0 && diff_y != 0){
18 for(
int i = 1; i < abs(diff_x); i++){
29 to_calculate->push_back(
coordinates(coord_x,coord_y));
63 std::cout <<
"\u2655";
65 std::cout <<
"\u265B";
a class representing coordinates
int get_x()
a function to get the x-axis attribute
int get_y()
a function to get the y-axis attribute
void canonical_print_piece() override
print the piece to the standard output in canonical form
void print_piece() override
print the piece to the standard output
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...