Esempio n. 1
0
        public void RenderPlaceBoat()
        {
            Player player       = gameController.GetCurrentPlayer();
            string playerString = player.GetName() + " it's time to pick your ship's location! \nUse w to go up, \ns to go down, \na to go left, \nd to go right, \nand r to rotate your ship 90 degrees. \nPress e when you have made your decision!\n\n";

            RenderCurrentBoats(player, playerString, "");
            while (true)
            {
                string move = Console.ReadLine();
                RenderCurrentBoats(player, playerString, move);
                if (move == "e")
                {
                    break;
                }
            }
            gameController.SetPlayerBoatLocation(player.GetBoatLocation());
        }