Project 2 Text Based Adventure Game

EMBED

Wed Feb 22 2023 03:06:57 GMT+0000 (Coordinated Universal Time)

Saved by @GenineP #python


for a in range(1,len(confusedroom),1): if confusedroom[a] == "ball" or confusedroom[a] == "saw": itemsinroom = True confusedroom.remove(confusedroom[a]) print("saw or ball in room") elif confusedroom[a] == "saw" or confusedroom[a] == "soap": itemsinroom = True if not "soap" in inventory and not "shank" in inventory: confusedroom.remove("soap") confusedroom.remove("shank") print("soap and shank in room") print(len(confusedroom)) elif not "soap" in inventory: confusedroom.remove("soap") print("soap in room") elif not "shank" in inventory: confusedroom.remove("shank") print("shank in room") elif confusedroom[a] == "guard" or confusedroom[a] == "dog" or confusedroom[a] == "breakable bar": confusedroom.remove(confusedroom[a]) monstersinroom = True

https://replit.com/@Aragon2023/Project-2Text-Adventure-Game-Genine-GraceGra