Work around .keys() not producing an acceptable sequence for random.sample() anymore

This commit is contained in:
Juhani Krekelä 2024-01-14 20:24:29 +02:00
parent 7403e4f1af
commit d583b7cf55
1 changed files with 1 additions and 1 deletions

View File

@ -1143,7 +1143,7 @@ def game(send, notice, voice, devoice, get_event):
send('Everyone has chosen. %s, now\'s your time to choose.' % czar.nick)
# Display the cards
choosers = random.sample(card_choices.keys(), k = len(card_choices))
choosers = random.sample(list(card_choices.keys()), k = len(card_choices))
for index, player_bot in enumerate(choosers):
send('%i: %s' % (index, combine_cards(round_call_card, card_choices[player_bot])))