Editing Recursion
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 47: | Line 47: | ||
print("You are in a dark room.") | print("You are in a dark room.") | ||
print("Pick a door: fuzzy or metal") | print("Pick a door: fuzzy or metal") | ||
choice = get_choice({fuzzy=1, metal=2}) | choice = get_choice({fuzzy=1,metal=2}) | ||
if choice == 1 then return fuzzy_room() | if choice == 1 then return fuzzy_room() | ||
elseif choice == 2 then return metal_room() | elseif choice == 2 then return metal_room() | ||
Line 55: | Line 55: | ||
print("This room feels pretty fuzzy...") | print("This room feels pretty fuzzy...") | ||
print("Pick a door: dark, metal") | print("Pick a door: dark, metal") | ||
choice = get_choice({dark=1, metal=2}) | choice = get_choice({dark=1,metal=2}) | ||
if choice == 1 then return dark_room() | if choice == 1 then return dark_room() | ||
elseif choice == 2 then return metal_room() | elseif choice == 2 then return metal_room() |