From 463886551b45040b05c2c84f38710eb28dcdb013 Mon Sep 17 00:00:00 2001 From: Steinadler Date: Fri, 15 Jan 2021 15:59:54 +0100 Subject: [PATCH] fixed bug in clean_input.py so that now a card selection has to be 2 chars long --- clean_input.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clean_input.py b/clean_input.py index 1e196c7..179a0e6 100644 --- a/clean_input.py +++ b/clean_input.py @@ -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]: