Skip to content

Commit

Permalink
clarify example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyrkul committed Apr 14, 2024
1 parent 6b26421 commit 35deb6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ if __name__ == "__main__":
if not line:
break
action = Actions.match(line) # The renum class acts like a Pattern...
if action is None:
print("Unknown action: %s" % line)
elif action is Actions.GO:
if action is Actions.GO:
print("You went %s" % action.group("direction")) # and each entry acts like a Match
elif action is Actions.EXAMINE:
print("You take a closer look at %s. Looks grungy." % action.group("item"))
elif action is Actions.OPEN:
print("You tried to open the %s, but it was locked." % action.group("object"))
else:
print("Unknown action: %s" % line)
```

Troubleshooting a misbehaving renum:
Expand Down

0 comments on commit 35deb6f

Please sign in to comment.