|
@@ -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;
|