From 1b7277bf179ba40a18196e80c63e1ffe28a2f0b5 Mon Sep 17 00:00:00 2001 From: megamichi Date: Fri, 2 Feb 2024 09:49:15 +0100 Subject: [PATCH] + mit - vertauscht --- problem_solfing.py | 2 +- problem_solfing_oneline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/problem_solfing.py b/problem_solfing.py index 332641c..e78e0b5 100644 --- a/problem_solfing.py +++ b/problem_solfing.py @@ -10,7 +10,7 @@ while 1: if state == 0: print("NO PROBLEM!!") exit() - active_data = states[state+1] + active_data = states[state-1] antwort = input(f"{active_data[0]} :") if antwort == "yes": state = active_data[1] diff --git a/problem_solfing_oneline.py b/problem_solfing_oneline.py index 90777b8..2aa5c0a 100644 --- a/problem_solfing_oneline.py +++ b/problem_solfing_oneline.py @@ -1,4 +1,4 @@ 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+1];antwort = input(f"{active_data[0]} :");print(active_data[3]) if antwort == "yes" else print(active_data[4]);state = active_data[1] if antwort == "yes" else active_data[2] \ No newline at end of file + active_data = states[state-1];antwort = input(f"{active_data[0]} :");print(active_data[3]) if antwort == "yes" else print(active_data[4]);state = active_data[1] if antwort == "yes" else active_data[2] \ No newline at end of file