1. David Jones
  2. planetwars_test_tools

Commits

David Jones  committed 0ed751b

updates

  • Participants
  • Parent commits 2a985b3
  • Branches default

Comments (0)

Files changed (2)

File playtourney.py

View file
  • Ignore whitespace
 
             result = "NO RESULT"
             print "map is", map_file
-            # sys.stdout.flush()
+            sys.stdout.flush()
             map_data = open(map_file).readlines()
             pw = PlanetWars.PlanetWars(map_data)
 

File tcp.py

View file
  • Ignore whitespace
                 game_state.append(line)
                 if line.startswith("go"):
                     turn += 1
-                    timeoutms = 2000
+                    timeoutms = 5000
                     pw = PlanetWars(game_state)
                     if of:
                         of.write(pw.dump_state(turn==1))