September 2018
Intermediate to advanced
328 pages
9h 10m
English
The final section of code contains functions to get the row and column of the piece:
int Piece::getColumn() const { return column_;}int Piece::getRow() const { return row_;}
These functions simply return the value of the private column_ or row_ variable. Now that you have a better understanding of the Piece class, let's move on to the Board.
Read now
Unlock full access