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'