public MainForm() { InitializeComponent(); this.Game = new GoGame(); this.gamePanel = this.mainSplitContainer.Panel1; }
// 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); }
public GameLogic(GoGame game) { Reset(game); }
public void Reset(GoGame game) { Game = game; IsWhiteMove = (game.Handicap > 0); }