This commit is contained in:
Nick Walton
2019-09-26 13:36:07 -06:00
parent 9cf9b464c5
commit 51b9d3bb79
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ def play_unconstrained():
while(action == ""):
action = input("> ")
action = " You " + action + "."
action = "You " + action + "."
action = first_to_second_person(action)
result = story_manager.act(action)
console_print("\n\n" + action + result)
+1 -1
View File
@@ -92,7 +92,7 @@ def mapping_variation_pairs(mapping):
# Change you it's before a punctuation
if mapping[0] is "you":
mapping = ("you", "me")
mapping_list.append((" " + mapping[0]+"\,", " " + mapping[1]+"\,"))
mapping_list.append((" " + mapping[0]+"\,", " " + mapping[1]+","))
mapping_list.append((" " + mapping[0]+"\?", " " + mapping[1]+"\?"))
mapping_list.append((" " + mapping[0]+"\!", " " + mapping[1]+"\!"))
mapping_list.append((" " + mapping[0] + "\.", " " + mapping[1] + "."))