Et pourquoi ne pas faire ce test à l'intérieur de ChessBoard ?



bool ChessBoard::validMove(int x, int y, int newx, int newy) const {
}