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

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

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