RCRPG/Python: Difference between revisions

Content added Content deleted
No edit summary
(→‎Code: fix bug)
Line 179: Line 179:


world = World()
world = World()
print("Welcome to the dungeon!\nGrab the sledge and make your way to room 1,1,5 for a non-existant prize!")
print("Welcome to the dungeon!\nGrab the sledge and make your way to room 1,1,5 for a non-existent prize!")
while True:
while True:
print('\n'+world.look())
print('\n'+world.look())
Line 187: Line 187:
while tokens:
while tokens:
if tokens[0] in aliases and tokens[0] != aliases[tokens[0]][0]:
if tokens[0] in aliases and tokens[0] != aliases[tokens[0]][0]:
tokens[0] = aliases[tokens[0]]
tokens = aliases[tokens[0]] + tokens[1:]
continue
continue