I am currently making a MUD, or a SUD as we can call it (Singleplayer) The only way to navigate through the game is to type commands.
def level_01_room_01():
choice = raw_input('>: ')
if choice == 'north':
level_01_room_02()
In this case, if the user enters North, with a capital N, the code will not perceive this command. It will be a big mess if I actually have to enter:
def level_01_room_01():
choice = raw_input('>: ')
if choice == 'North':
level_01_room_02()
if choice == 'north':
level_01_room_02()
if choice == 'NORTH':
level_01_room_02()
Etc.
Is there any way I can fix this, so that the player can type the word exactly as he or she wants to?