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

            Application.Run(form);
        }
예제 #3
0
파일: Program.cs 프로젝트: guyKN/FourInARow
        static void Main(string[] args)
        {
            FourInARowGame game = new FourInARowGame();

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