public FourInARowForm(FourInARowGame game) { InitializeComponent(); this.game = game; this.playAgainstComputerCheckbox.Checked = this.game.vsComputer; this.renderGame(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var game = new FourInARowGame(true); var form = new FourInARowForm(game); Application.Run(form); }
static void Main(string[] args) { FourInARowGame game = new FourInARowGame(); game.playGame(); }
private void newGameButton_Click(object sender, EventArgs e) { this.game = new FourInARowGame(this.playAgainstComputerCheckbox.Checked); this.renderGame(); }