コード例 #1
0
        public Move GetNextPlayerMove(IPlayer player)
        {
            ConsoleFeatures.ClearRow(ConsoleConstants.ConsoleRowForMessageOutput);
            Console.SetCursorPosition(Console.WindowWidth / 2 - 12, ConsoleConstants.ConsoleRowForMessageOutput);
            Console.BackgroundColor = ConsoleColor.Black;
            Console.Write($"{player.Name} IS NEXT :");
            var positionInputFromUserAsString = Console.ReadLine().Trim().ToLower();

            return(ConsoleFeatures.CreateMoveFromCommand(positionInputFromUserAsString));
        }