Esempio n. 1
0
        private static void ParseSnakesFromInput()
        {
            int numberOfSnakes = int.Parse(Console.ReadLine());

            for (int i = 0; i < numberOfSnakes; i++)
            {
                var snakeHeadAndTailPositionAsString      = Console.ReadLine();
                var snakeHeadAndTailPositionAsStringArray = snakeHeadAndTailPositionAsString.Split(' ');
                Snakes.PopulateSnakesHeadAndTailPositions(int.Parse(snakeHeadAndTailPositionAsStringArray[0]), int.Parse(snakeHeadAndTailPositionAsStringArray[1]));
            }
        }