Пример #1
0
 private void reset()
 {
     human        = new Player();
     computer     = new Player();
     playerGrid   = new PlayerGrid(PlayerGrid);
     computerGrid = new ComputerGrid(CompGrid);
     playerGrid.InitializeGrid();
     computerGrid.InitializeGrid();
 }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            //Make game objects
            human        = new Player();
            computer     = new Player();
            playerGrid   = new PlayerGrid(PlayerGrid);
            computerGrid = new ComputerGrid(CompGrid);

            //Initialize game elements
            playerGrid.InitializeGrid();
            computerGrid.InitializeGrid();
        }