Example #1
0
 public FourInARowForm(FourInARowGame game)
 {
     InitializeComponent();
     this.game = game;
     this.playAgainstComputerCheckbox.Checked = this.game.vsComputer;
     this.renderGame();
 }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var game = new FourInARowGame(true);
            var form = new FourInARowForm(game);

            Application.Run(form);
        }
Example #3
0
        static void Main(string[] args)
        {
            FourInARowGame game = new FourInARowGame();

            game.playGame();
        }
Example #4
0
 private void newGameButton_Click(object sender, EventArgs e)
 {
     this.game = new FourInARowGame(this.playAgainstComputerCheckbox.Checked);
     this.renderGame();
 }