Updated text parsing and commands

This commit is contained in:
kansaigaijin
2025-07-13 20:49:41 +12:00
parent 54db0c8e6f
commit 56fba22217
2 changed files with 3 additions and 4 deletions

View File

@@ -406,9 +406,8 @@ def parse(input_text):
command = "take"
object1 = " ".join(words[2:])
return command, object1
elif words[0] == "look" and words[1] == "around" and len(words) > 2:
command = "look"
object1 = " ".join(words[2:])
elif words[0] == "look" and words[1] == "around" and len(words) == 2:
command = "look_around"
return command, object1
# Single-word commands