Skip to content

Commit

Permalink
Merge pull request #1 from colebrooke/master
Browse files Browse the repository at this point in the history
abbreviations
  • Loading branch information
colebrooke101 authored Dec 10, 2017
2 parents 8aa4ef2 + 060949b commit 135318e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adventure.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def look ():
elif (userinput == "se") or (userinput == "south east"): direction = "se"; move ( direction, userid )

# Inventory
elif (userinput == "i") or (userinput == "inventory"): inventory ()
elif (userinput == "i") or (userinput =="inv") or (userinput == "inventory"): inventory ()

# Take / Pick up
elif re.match ( r'^take', userinput ) or \
Expand All @@ -721,7 +721,7 @@ def look ():
elif re.match ( r'^examine', userinput ) or re.match ( r'^look at', userinput ): examine ()

# Look
elif (userinput == "look"): look ()
elif (userinput == "look") or (userinput == "l"): look ()

# Where am I
elif (userinput == "where am i"): where_am_i (userid)
Expand Down

0 comments on commit 135318e

Please sign in to comment.