Skip to content

Commit c1f97fc

Browse files
committed
Don't send eliminated bots to get_moves function
1 parent 49c1298 commit c1f97fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

worker/engine.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def run_game(game, botcmds, options):
151151
bot_moves = [[] for b in bots]
152152
error_lines = [[] for b in bots]
153153
statuses = [None for b in bots]
154-
bot_list = list(enumerate(bots))
154+
bot_list = [(b, bot) for b, bot in enumerate(bots)
155+
if game.is_alive(b)]
155156
random.shuffle(bot_list)
156157
for group_num in range(0, len(bot_list), simul_num):
157158
pnums, pbots = zip(*bot_list[group_num:group_num + simul_num])

0 commit comments

Comments
 (0)