fixed bug in clean_input.py so that now a card selection has to be 2 chars long
This commit is contained in:
parent
6efc45ec2e
commit
463886551b
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue