Skip to content

Commit

Permalink
Fixed some caption issues with actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LaTueur committed Dec 18, 2019
1 parent 7c907a1 commit 6e83f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions play.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ def play_aidungeon_2():

else:
action = action.strip()
action = action[0].lower() + action[1:]
action = action[0].upper() + action[1:]

if "You" not in action[:6] and "I" not in action[:6]:
action = "You " + action
if "You" not in action[:6] and "you" not in action[:6] and "I" not in action[:6]:
action = "You " + action[0].lower() + action[1:]

if action[-1] not in [".", "?", "!"]:
action = action + "."
Expand Down

0 comments on commit 6e83f0f

Please sign in to comment.