static void Main(string[] args) { string[] inputs; inputs = Console.ReadLine().Split(' '); int TX = int.Parse(inputs[0]); int TY = int.Parse(inputs[1]); Game game = new Game(40, 18); game.SetThor(TX, TY); // game loop while (true) { game.InitTurn(); inputs = Console.ReadLine().Split(' '); int H = int.Parse(inputs[0]); // the remaining number of hammer strikes. int N = int.Parse(inputs[1]); // the number of giants which are still present on the map. game.StrikesLeft = H; for (int i = 0; i < N; i++) { inputs = Console.ReadLine().Split(' '); int X = int.Parse(inputs[0]); int Y = int.Parse(inputs[1]); game.SetGiant(X, Y); } // Write an action using Console.WriteLine() // To debug: Console.Error.WriteLine("Debug messages..."); Console.WriteLine(game.ChooseMove()); // The movement or action to be carried out: WAIT STRIKE N NE E SE S SW W or N } }