From cbface83ee95cdb2cadb4b28577620fae52f5a5e Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Fri, 18 Apr 2025 21:40:41 +0200 Subject: [PATCH] fix: python error --- blind_chess.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blind_chess.py b/blind_chess.py index fc04ac2..b86dd2c 100755 --- a/blind_chess.py +++ b/blind_chess.py @@ -66,8 +66,9 @@ def notes(): yield square_color(sq_name) yield knight_moves(sq_name) -# randomize the order of the notes -for note in random.shuffle(list(notes())) +notes = list(notes()) +random.shuffle(notes) +for note in notes: deck.add_note(note) out = 'blind_chess.apkg'