From 6948c41407bdf703150c646378544e6daab8ccf8 Mon Sep 17 00:00:00 2001 From: Megamichi Date: Thu, 1 Feb 2024 19:13:12 +0100 Subject: [PATCH] init --- problem_solfing.py | 20 ++++++++++++++++++++ problem_solfing_oneline.py | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 problem_solfing.py create mode 100644 problem_solfing_oneline.py diff --git a/problem_solfing.py b/problem_solfing.py new file mode 100644 index 0000000..e901e31 --- /dev/null +++ b/problem_solfing.py @@ -0,0 +1,20 @@ +#!/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"]} +state = 1 +while 1: + if state == 0: + print("NO PROBLEM!!") + exit() + active_data = states[state] + antwort = input(f"{active_data[0]} :") + if antwort == "yes": + state = active_data[1] + print(active_data[3]) + else: + state = active_data[2] + print(active_data[4]) \ No newline at end of file diff --git a/problem_solfing_oneline.py b/problem_solfing_oneline.py new file mode 100644 index 0000000..0c428c4 --- /dev/null +++ b/problem_solfing_oneline.py @@ -0,0 +1,4 @@ +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"]};state = 1 +while 1: + if state == 0 :print("NO PROBLEM!!");exit() + active_data = states[state];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