List statt arrax

This commit is contained in:
Michael S. 2024-02-02 07:05:46 +01:00
parent 6948c41407
commit 2b7341ed52

View file

@ -1,16 +1,16 @@
#!/usr/bin/python3 #!/usr/bin/python3
states = {1:["DOES IT WORK?",0,2,"DON\' MESS WITH IT",""], states = [["DOES IT WORK?",0,2,"DON\' MESS WITH IT",""],
2:["DID YOU MESS WITH IT?",3,6,"IDIOT",""], ["DID YOU MESS WITH IT?",3,6,"IDIOT",""],
3:["DOES ANYONE ELSE KNOW?",5,4,"YOU STUPID FOOL",""], ["DOES ANYONE ELSE KNOW?",5,4,"YOU STUPID FOOL",""],
4:["CAN YOU HIDE IT",0,5,"","YOU STUPID FOOL"], ["CAN YOU HIDE IT",0,5,"","YOU STUPID FOOL"],
5:["CAN YOU BLAME ANYONE ELSE?",0,5,"","YOU STUPID FOOL"], ["CAN YOU BLAME ANYONE ELSE?",0,5,"","YOU STUPID FOOL"],
6:["WILL THEY BELIEVE YOU?",0,5,"DUMP IT SMARTLY","YOU STUPID FOOL"]} ["WILL THEY BELIEVE YOU?",0,5,"DUMP IT SMARTLY","YOU STUPID FOOL"]]
state = 1 state = 1
while 1: while 1:
if state == 0: if state == 0:
print("NO PROBLEM!!") print("NO PROBLEM!!")
exit() exit()
active_data = states[state] active_data = states[state+1]
antwort = input(f"{active_data[0]} :") antwort = input(f"{active_data[0]} :")
if antwort == "yes": if antwort == "yes":
state = active_data[1] state = active_data[1]