Work around .keys() not producing an acceptable sequence for random.sample() anymore
This commit is contained in:
parent
7403e4f1af
commit
d583b7cf55
|
@ -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])))
|
||||
|
||||
|
|
Loading…
Reference in New Issue