Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();

            this.Game = new GoGame();
            this.gamePanel = this.mainSplitContainer.Panel1;
        }
Beispiel #2
0
        // Resets Form's part of the game
        public void NewGame()
        {
            this.gamePanel.Invalidate();

            //clear object to be painted
            this.stonesForPainting.Clear();

            this.Game = new GoGame();

            //TODO: remove Hoshi
            //TODO: add Hoshi

            //repaint
            mainSplitContainer_Panel1_Paint(this, null);
        }
Beispiel #3
0
 public GameLogic(GoGame game)
 {
     Reset(game);
 }
Beispiel #4
0
 public void Reset(GoGame game)
 {
     Game = game;
     IsWhiteMove = (game.Handicap > 0);
 }