Skip to content

Commit

Permalink
bugfix load savegame board size
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxluigi committed Jan 4, 2017
1 parent b3faf33 commit dc676af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/htw_berlin/HoboOthello/Core/Main.java
Expand Up @@ -11,8 +11,6 @@ public class Main {
public static void main(String[] args) {
int boardDefaultSize = 8; // 8 for default board size

Gameview gameview = new Gameview(boardDefaultSize);

Savegames savegames = new Savegames();
Game game = savegames.load();

Expand All @@ -21,9 +19,11 @@ public static void main(String[] args) {
game.newGame(boardDefaultSize, new Player(Color.BLACK), new Player(Color.WHITE));
}

Gameview gameview = new Gameview(game.getBoardSize());

GameController gameController = new GameController(gameview, game);

gameview.setVisible(true);

}
}

0 comments on commit dc676af

Please sign in to comment.