Share your repls and programming experiences

← Back to all posts
Roman Slave Escape Game
MaheshM (1)

print("welcome to the outlaw story line game!")

print("7:00 am, Pompeii, Roman empire, Jan/19/23 A.D: you are a slave of a noble and you've escaped the noble's house at night. The noble sends authorities to hunt you down and arrest you. The rest of the story is up to you. WARNING: THIS IS A MATH GAME SO YOU ARE ALLOWED TO USE A CALCULATOR. IF YOU ENTER THE WRONG ANSWER, THEN YOU MIGHT HAVE TO START ALL OVER AGAIN.")

desicion1 = float(input("you are going to disguise yourself as a Roman. You need money for a robe. give the square root of 9 to run to the bank."))

if desicion1 == 3:
print("you ran to the bank")

if desicion1 != 3:
print("try again.")
desicion1 = float(input("you are going to disguise yourself as a Roman. You need money for a robe. give the square root of 9 to run to the bank."))

desicion2 = float(input("Answer (1*6)+3 to open the bank vault."))

if desicion2 == 9:
print("you opened the vault and stole money.")

if desicion2 != 9:
print("try again")
desicion2 = float(input("Answer (1*6)+3 to open the bank vault."))

desicion3 = float(input("now you just run to a store to buy a robe. multiply 3 by 11 to buy it or by 22 to steal it."))

if desicion3 == 1 or 2:
print("now you need a house.")

if desicion3 != 1 or 2:
print("try again")
desicion3 = float(input("now you just run to a store to buy a robe. multiply 3 by 11 to buy it or by 22 to steal it."))

desicion4 = float(input("multiply 66 by 1 to buy a house or by 2 to steal a house"))

if desicion4 == 66 or 132:
print("now you are a fake roman noble. You're doing great.")

if desicion4 != 66 or 132:
print("try again")
desicion4 = float(input("multiply 66 by 1 to buy a house or by 2 to steal a house"))

desicion5 = float(input("The authorities are knocking on your door! Type 1 to tell them you're a roman or 2 to fight them"))

if desicion5 == 1 or 2:
print("you handled them better than I thought.")

if desicion5 != 1 or 2:
print("try again")
desicion5 = float(input("The authorities are knocking on your door! Type 1 to tell them you're a roman or 2 to fight them"))

desicion6 = float(input("Type 1 to go to sleep or 2 make some new friends."))

if desicion6 == 1:
print("You fell asleep in your bed. The next day you made some new friends")

if desicion6 == 2:
print("You made two new friends by hosting a random party The next day.")

if desicion != 1 or 2:
print("try again")
desicion6 = float(input("Type 1 to go to sleep or 2 make some new friends."))

desicion7 = float(input("now type 1 to go to sleep"))

if desicion7 == 1:
print("you fell asleep")

if desicion7 != 1:
print("try again")
desicion7 = float(input("now type 1 to go to sleep"))

print("Jan/21/23 A.D, now you need a permanent source of money.")

desicion8 = float(input("Answer 60-(2+[{3+2}*5]) to open a business"))

if desicion8 == 33:
print("now you have a business!")

if desicion8 != 33:
print("try again")
desicion8 = float(input("Answer 60-(2+[{3+2}*5]) to open a business"))

print("now you need some customers!")

desicion9 = float(input("Name the square root of 25 to advertise your business"))

if desicion9 == 5:
print("In no time your business will have lot's of customers!")

if desicion9 != 5:
print("try again")
desicion9 = float(input("Name the square root of 25 to advertise your business"))

desicion9 = float(input("Name the square root of 25 to advertise your business"))

if desicion10 == 314:
print("You fell asleep.")

if desicion10 != 314:
print("try again")
desicion9 = float(input("Name the square root of 25 to advertise your business"))

print("Jan/22/23 A.D: You wake up in the roman emperor Tiberius's court. You have been caught! Your friends are one of the authorities that were looking for you! Press enter to continue.")

print("You are now in jail. But then you see your friends bailing you out. They feel guilty for hunting their own friend(you) and they wanted to make it up to you by escaping with you. Press enter to accept and continue.")

desicion11 = float(input("Jan/23/23 A.D, 12:00: You and your friends see two roman guards. Answer 6 divided by 10 to silently escape them or 12 divided by 10 to fight them"))

if desicion11 == 0.6:
print("you and your friends silently went past them and stole some weapons")

if desicion11 == 1.2:
print("you and your fought them well and took their weapons.")

if desicion11 != 0.6 or 1.2:
print("try again")
desicion11 = float(input("Jan/23/23 A.D, 12:00: You and your friends see two roman guards. Answer 6 divided by 10 to silently escape them or 12 divided by 10 to fight them"))

print("Jan/23/23 A.D, 1:00 A.M: The guards tell emperor Tiberius that a slave and two guards are escaping! Now you and your friends have been saving roman slaves for a whole month. Press enter to continue.")

print("This is not the ending yet! You're only halfway there! Press enter to continue.")

print("Feb/23/23 A.D, 6:00 A.M, You have a horde of roman slaves! your trustworthy friend you saved is your co-leader of the horde. your other two roman friends are .")

desicion12 = float(input(" You are about 60 miles away from Pompeii, Rome. You and other slaves are still being hunted. Answer 1+1+7 to make a campsite over here and then move or 2+2+7 to move now."))

if desicion12 == 9:
print("you will make a camp and then move.")

if desicion12 == 11:
print("you will move.")

if desicion12 != 9 or 11:
print("try again")
desicion12 = float(input(" You are about 60 miles away from Pompeii, Rome. You and other slaves are still being hunted. Answer 1+1+7 to make a campsite over here and then move or 2+2+7 to move now."))

print("Feb/26/23 A.D: you are 10 more miles away from Pompeii. Definitely safe enough for your people. In the faint line of the horizon is Pompeii.")

desicion13 = float(input(" You want to create weapons for your horde but you don't have enough money. Solve the equation 6*(8+[12-{3+6}]) to go out to trade with a foreign land"))

if desicion13 == 66:
print("you are going to trade weapons with foreign land.")

if desicion13 != 66:
print("try again")
desicion13 = float(input(" You want to create weapons for your horde but you don't have enough money. Solve the equation 6*(8+[12-{3+6}]) to go out to trade with a foreign land"))

print("June/14/24 A.D: It has been over a year and you, your trustworthy co-leader and your 2 roman friends sending letters to the clan signaling that they are fine, you are in Ancient Egypt. use your money to buy some tools and weapons by choosing the right answer: Servius Felix is a warrior/king")

desicion14 = float(input(" Use your money to buy some tools and weapons by choosing the right answer: Servius Felix is a warrior/king"))

if desicion14 == warrior:
print("Servius Felix is a warrior")

if desicion14 != warrior:
print("try again")
desicion14 = float(input(" Use your money to buy some tools and weapons by choosing the right answer: Servius Felix is a warrior/king"))

print("March/9/25 A.D: you are back with the clan and you have weapons for everyone but you. Press enter to continue.")

print("A man says he can give you the blessed sword - a sword so powerful that it can defeat any army in the world. Press enter to continue.")

desicion15 = float(input("He asks you to solve a math problem to buy the sword. Solve 10+(3*{8+[9-0]})"))

if desicion15 == 61:
print("you now have enough money to buy the blessed sword")

if desicion15 != 61:
print("try again")
desicion15 = float(input("He asks you to solve a math problem to buy the sword. Solve 10+(3*{8+[9-0]})"))

print("Jan/26/26 A.D: You and your clan are going to war. You can see your horde fighting roman soldiers. But you find yourself in front of your previous owner who tracked you down. He has a sword not as powerful as the blessed sword.")

desicion16 = float(input("give the square root of 6.25 to slay him."))

if desicion16 == 2.5:
print("You slayed him! You are free!")
print("The end")

if desicion16 != 2.5:
print("try again")
desicion16 = float(input("give the square root of 6.25 to slay him."))

Comments
hotnewtop
timmy_i_chen (1180)

You should probably put this in a python repl ;)

katyadee (1288)

@timmy_i_chen Coming here to second Tim!

themaka (188)

Hi,
Why was this posted twice under two different usernames?

15aaronm (3)

the code will not work

27whuang (2)

@15aaronm you have to indent the things inside the conditonal statements and loops