fixed bug in clean_input.py so that now a card selection has to be 2 chars long

This commit is contained in:
Steinadler 2021-01-15 15:59:54 +01:00
parent 6efc45ec2e
commit 463886551b
1 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,9 @@ def io_card_selection(message: str):
if user_input == "":
print("Eingabe nicht gültig, bitte wiederhole deine Eingabe.")
elif len(user_input) > 2:
print("Eingabe nicht gültig, bitte wiederhole deine Eingabe.")
elif user_input[0] in "0123" and user_input[1] in "abcdefgh":
for c in card_stack:
if c["number"] == user_input[0] and c["letter"] == user_input[1]: