Commits

Cory Li  committed f94b27e

Added in a delay hopefully to catch the exception

  • Participants
  • Parent commits b241050

Comments (0)

Files changed (1)

File AI/src/main.py

                 bot.clickButton('reset')
         else:
             resetDelay = 0
-            bot.swapTile(move)
+            try:
+                bot.swapTile(move)
+            except:
+                sleep(2)
+                continue
 
         #Building Code
         i = buildNumber%len(bo)
 
 
         #Delay
-        sleep(0.1)
+        try:
+            sleep(0.1)
+        except:
+            sleep(1)