Beispiel #1
0
        public void ReturnADrawGame(List <List <Symbol> > currentBoard)
        {
            Symbol     playerSymbol = Symbol.Cross;
            GameStatus game         = new GameStatus(currentBoard, playerSymbol);
            var        actualResult = game.IsADrawGame();

            Assert.IsTrue(actualResult);
        }
Beispiel #2
0
 private void DisplayGameResult()
 {
     if (!GameStatus.HasWinner())
     {
         if (GameStatus.IsADrawGame())
         {
             Console.WriteLine("It's a draw game.");
         }
     }
     else
     {
         Console.WriteLine("Move accepted, well done you've won the game!");
     }
     Console.WriteLine(Board.DisplayCurrentBoard());
     Console.ReadLine();
     Environment.Exit(0);
 }