Exemple #1
0
        public Game(Player playerOne, Player playerTwo)
        {
            gamePlayers = new Player[2];
            gamePlayers[0] = playerOne;
            gamePlayers[1] = playerTwo;

            scoreBoard = new Board();

            gameScores = new Scores(0, 0);
        }
        public MainWindow()
        {
            InitializeComponent();
            playerOne = new Player("Jack");
            playerTwo = new Player("Mark");
            playerComputer = new computerPlayer();

            newGame = new Game(playerOne, playerTwo);

            button_click2palyer = false;
            button_click1palyer = false;

            _1playerGrid.IsEnabled = false;
            _2playerGrid.IsEnabled = false;
        }