Skip to content

Commit 8062ddb

Browse files
author
gsp
committed
change loop game
1 parent 8de8111 commit 8062ddb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

days/13-15-text-games/rock_scissors_paper/rps-game.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def get_player_choice():
3838
elif choice_dict.get(choice.lower()):
3939
return choice_dict.get(choice.lower())
4040

41+
elif choice == '':
42+
continue
43+
4144
else:
4245
print(f'Wrong entry, please select [R], [P], [S] for playing or [A] to abort and exit: ')
4346

0 commit comments

Comments
 (0)