remove redundant prints

This commit is contained in:
Maximilian Keßler 2024-10-09 17:50:52 +02:00
parent 2eeeade1e5
commit 28aee4cd3d

View file

@ -182,14 +182,12 @@ def solve_unknown_seeds(variant_id, variant_name: Optional[str] = None):
)
res = database.cur.fetchall()
data = []
print("processing decks... ", end='')
for (seed, num_players, suits, ranks) in res:
assert len(suits) == len(ranks)
deck = []
for (suit, rank) in zip(suits, ranks):
deck.append(hanabi.hanab_game.DeckCard(suit, rank))
data.append((seed, num_players, deck))
print("done.")
with concurrent.futures.ProcessPoolExecutor(max_workers=MAX_PROCESSES) as executor:
fs = [executor.submit(solve_seed, d[0], d[1], d[2], variant_name) for d in data]