Beispiel #1
0
 public List<Command> getCommand(Snapshot snapshot)
 {
     return new List<Command>();
 }
Beispiel #2
0
 public static string fromElementsToString(Snapshot snapshot)
 {
     return "S";
 }
Beispiel #3
0
 private static void Run()
 {
     int currentIteration = 1;
     List<Command> nextAction = new List<Command>(0);
     System.Console.WriteLine("");
     System.Console.WriteLine("Starting to run simulation");
     while (currentIteration <= MaxIterations && !Client.Stop)
     {
         System.Console.Write("Turn: " + currentIteration);
         Snapshot gameStatus = new Snapshot(ServerConnection.Recieve());
         nextAction = logicComponent.getCommand(gameStatus);
         SendCommand(nextAction);
         currentIteration++;
     }
     System.Console.WriteLine("End of game");
 }