Browse Source

more clean up

Kajetan Johannes Hammerle 3 years ago
parent
commit
1363988566
2 changed files with 0 additions and 7 deletions
  1. 0 6
      source/Game.cpp
  2. 0 1
      source/Game.h

+ 0 - 6
source/Game.cpp

@@ -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;
 }

+ 0 - 1
source/Game.h

@@ -24,7 +24,6 @@ private:
     void selectLocationToMove();
     void selectStoneToTake();
 
-    void move(int fromX, int fromY, int toX, int toY);
     bool isInRange(int x, int y) const;
     void print(String& s) const;
     void printLine(String& s, int index) const;