package de.htw_berlin.HoboOthello.Core;

import de.htw_berlin.HoboOthello.Controller.GameController;
import de.htw_berlin.HoboOthello.GUI.Gameview;

/**
 * Created by Steffen Exler on 16.11.16.
 */
public class Main {

    public static void main(String[] args) {
        //TODO MAGIC NUMBER DELETION
        Gameview gameview = new Gameview(8);

        Game game = new Game();

        game.newGame(8, new Player(Color.BLACK), new Player(Color.WHITE));

        GameController gameController = new GameController(gameview, game);

        gameview.setVisible(true);
    }

}

@@ -269,95 +269,249 @@
     
-//TODO MAGIC NUMBER DELETION%0A        Gameview gameview = new Gameview(8);%0A%0A        Game
+int boardDefaultSize = 8; // 8 for default board size%0A%0A        Gameview gameview = new Gameview(boardDefaultSize);%0A%0A        Savegames savegames = new Savegames();%0A        Game game = savegames.load();%0A%0A        if (game == null) %7B%0A           
  gam
@@ -526,25 +526,27 @@
 Game();%0A
-%0A
+   
         
 game.new
@@ -533,24 +533,25 @@
 %0A           
+ 
 game.newGame
@@ -551,17 +551,32 @@
 newGame(
-8
+boardDefaultSize
 , new Pl
@@ -620,16 +620,27 @@
 HITE));%0A
+        %7D%0A%0A
 %0A       
@@ -750,11 +750,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

add load savegame again