Beispiel #1
0
        public void LoadGame()
        {
            _gameBoard.Clear();
            _gameBoard.LoadFreeCoordinatesSeed();
            _gameTagDistributor.PlaceGameTags();

            AddKeyGamePairToDic();
        }
        public void Clear_WhenInvoked_ClearsBoard()
        {
            systemUnderTest.PlaceMarker(new Move(Player.X, 1, 1));
            systemUnderTest.Clear();

            Assert.That(systemUnderTest.Board.GetLength(0), Is.EqualTo(3));
            Assert.That(systemUnderTest.Board.GetLength(1), Is.EqualTo(3));

            foreach (GameBoardMark boardMark in systemUnderTest.Board)
            {
                Assert.That(boardMark, Is.EqualTo(GameBoardMark.Empty));
            }
        }
Beispiel #3
0
        public void NewGame()
        {
            gameBoard.Clear();

            GameState = GameState.NewGameXMove;
        }