Piezas.cpp
/**
 * Constructor sets an empty board (default 3 rows, 4 columns) and
 * specifies it is X's turn first
**/
Constructor sets an empty board (default 3 rows, 4 columns) and
specifies it is X's turn first
Constructor sets an empty board ( default 3 rows 4 columns ) and specifies it is X ' s turn first
Piezas::Piezas()
{
    board.resize(BOARD_ROWS);
    for (int row = 0; row < BOARD_ROWS; ++row) {
        board[row].resize(BOARD_COLS);
    }
    for (int row = 0; row < BOARD_ROWS; ++row) {
        for (int col = 0; col < BOARD_COLS; ++col) {
            board[row][col] = Blank;
        }
    }
    turn = X;
}
Piezas :: Piezas ( ) { board . resize ( BOARD_ROWS ) ; for ( int row = 0 ; row < BOARD_ROWS ; ++ row ) { board [ row ] . resize ( BOARD_COLS ) ; } for ( int row = 0 ; row < BOARD_ROWS ; ++ row ) { for ( int col = 0 ; col < BOARD_COLS ; ++ col ) { board [ row ] [ col ] = Blank ; } } turn = X ; }
Constructor sets an empty board (default 3 rows, 4 columns) and
 specifies it is X's turn first
Constructor sets an empty board ( default 3 rows 4 columns ) and specifies it is X ' s turn first
// set default 3 rows, 4 columns // set an empty board // specify it is X's turn first