From 2b7341ed52087453dcb065aa5ba69bfbec5918c8 Mon Sep 17 00:00:00 2001 From: Megamichi Date: Fri, 2 Feb 2024 07:05:46 +0100 Subject: [PATCH] List statt arrax --- problem_solfing.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/problem_solfing.py b/problem_solfing.py index e901e31..332641c 100644 --- a/problem_solfing.py +++ b/problem_solfing.py @@ -1,16 +1,16 @@ #!/usr/bin/python3 -states = {1:["DOES IT WORK?",0,2,"DON\' MESS WITH IT",""], - 2:["DID YOU MESS WITH IT?",3,6,"IDIOT",""], - 3:["DOES ANYONE ELSE KNOW?",5,4,"YOU STUPID FOOL",""], - 4:["CAN YOU HIDE IT",0,5,"","YOU STUPID FOOL"], - 5:["CAN YOU BLAME ANYONE ELSE?",0,5,"","YOU STUPID FOOL"], - 6:["WILL THEY BELIEVE YOU?",0,5,"DUMP IT SMARTLY","YOU STUPID FOOL"]} +states = [["DOES IT WORK?",0,2,"DON\' MESS WITH IT",""], + ["DID YOU MESS WITH IT?",3,6,"IDIOT",""], + ["DOES ANYONE ELSE KNOW?",5,4,"YOU STUPID FOOL",""], + ["CAN YOU HIDE IT",0,5,"","YOU STUPID FOOL"], + ["CAN YOU BLAME ANYONE ELSE?",0,5,"","YOU STUPID FOOL"], + ["WILL THEY BELIEVE YOU?",0,5,"DUMP IT SMARTLY","YOU STUPID FOOL"]] state = 1 while 1: if state == 0: print("NO PROBLEM!!") exit() - active_data = states[state] + active_data = states[state+1] antwort = input(f"{active_data[0]} :") if antwort == "yes": state = active_data[1]