private static void Main(string[] args) { int[] thorPosition = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); int[] inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); var thor = new Thor(thorPosition[0], thorPosition[1], inputs[0]); var map = new Map(); do { int numberOfGiants = inputs[1]; map.RefreshMap(numberOfGiants); thor.TakeAction(map); inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); } while (true); }