|
@@ -188,12 +188,6 @@ void Game::selectStoneToTake() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void Game::move(int fromX, int fromY, int toX, int toY) {
|
|
|
- addLocation(fromX, fromY);
|
|
|
- fields[fromX][fromY] = EMPTY;
|
|
|
- fields[toX][toY] = WHITE;
|
|
|
-}
|
|
|
-
|
|
|
bool Game::isInRange(int x, int y) const {
|
|
|
return x >= 0 && x <= 8 && y >= 0 && y <= 4;
|
|
|
}
|