Beispiel #1
0
        public void ReturnAwinnerOrDrawGame(string currentBoard, char letter, bool expectedResult)
        {
            var game         = new EndGame();
            var actualResult = game.HasWinner(currentBoard, letter);

            Assert.AreEqual(actualResult, expectedResult);
        }
Beispiel #2
0
        public static bool CheckIfGameEnded()
        {
            var checkEndOfGame = new EndGame();

            if (CurrentBoard.Contains('.'))
            {
                return(checkEndOfGame.HasWinner(CurrentBoard, Letter));
            }
            return(true);
        }