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

}

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) {
        int boardDefaultSize = 8; // 8 for default board size

        Gameview gameview = new Gameview(boardDefaultSize);

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

        if (game == null) {
            game = new Game();
            game.newGame(boardDefaultSize, new Player(Color.BLACK), new Player(Color.WHITE));
        }


        GameController gameController = new GameController(gameview, game);

        gameview.setVisible(true);
    }
}

add load savegame again