Beispiel #1
0
        private bool IsGameOver()
        {
            bool isGameOver = true;

            if (!board.IsEmptyMovesLeft())
            {
                Console.WriteLine("Friendship win!");
                return(isGameOver);
            }
            if (board.IsWinSequencesMatch())
            {
                Console.Clear();
                board.ShowBoard();
                Console.WriteLine(_currentCommand.Name + " win");
                return(isGameOver);
            }
            isGameOver = false;

            return(isGameOver);
        }