From d583b7cf55356339f2ae33fcf7d29e808ec2bdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 14 Jan 2024 20:24:29 +0200 Subject: [PATCH] Work around .keys() not producing an acceptable sequence for random.sample() anymore --- gameloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index 6855e28..94eb475 100644 --- a/gameloop.py +++ b/gameloop.py @@ -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])))