示例#1
0
        static Gameboard Setup(ref Gameboard board, ref Player player1, ref Player player2)
        {
            Console.WriteLine("Welcome to Tic Tac Toe!" + "\n");

            if (player1.score == 0 && player2.score == 0)
            {
                Thread.Sleep(1000);
                Gameboard.PrintHelpKey();
            }

            else
            {
                PrintScoreboard(player1, player2);
                board.WipeBoard();
            }

            player1.UpdatePlayerVictoryStatus(false);
            player2.UpdatePlayerVictoryStatus(false);

            AssignPlayerTypes(ref player1, ref player2);
            AssignPlayerSymbolsAndTurn(ref player1, ref player2);

            return(board);
        }