Browse Source

monkeypatching

masterX244 11 months ago
parent
commit
2c99cf1e4b
1 changed files with 18 additions and 5 deletions
  1. 18 5
      QuickStuff/src/main/java/GPN/BotGame.java

+ 18 - 5
QuickStuff/src/main/java/GPN/BotGame.java

@@ -38,11 +38,17 @@ public class BotGame {
     public static void main(String[] args) {
         setupLogging(true,2);
         l.info("shizzlemork");
+        int attempt=0;
         while(true)
         {
             l.info("LOOP");
             if(respawn)
             {
+		if(attempt>0)
+		{
+			System.exit(1);
+		}
+                attempt++;
                 l.info("Respawning");
                 respawn=false;
                 try {
@@ -196,6 +202,10 @@ public class BotGame {
                             }
                             if(ln.contains("lose"))
                             {
+				if(boards==null)
+				{
+					respawn=true;
+				}
                                 String boardview = "\nDumping Core....\nDone:\n";
                                 for(int i=0;i<ch;i++)
                                 {
@@ -302,6 +312,7 @@ public class BotGame {
 
                             }
                             if(ln.contains("tick")&&gaming) {
+				returnMsgs.clear();
                                 heads_touched=0;
                                 String boardview = "";
                                 for(int i=0;i<ch;i++)
@@ -620,11 +631,13 @@ public class BotGame {
                                 {
                                     if(submöse2==4)
                                     {
-                                        l.trace("Hodentasche");
-                                        kill=true;
-                                        respawn=true;
-                                        sck.close();
-                                        return;
+                                        l.trace(" Hodentasche");
+                                        returnMsgs.clear();
+                                        submöse2=0;
+					//kill=true;
+                                        //respawn=true;
+                                        //sck.close();
+                                        //return;
                                     }
                                 }
                                 continue;