diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cb17472 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/home/wassname/.pyenv/versions/jup3.7.3/bin/python" +} \ No newline at end of file diff --git a/play.py b/play.py index ac3c05f..3ea8f6c 100644 --- a/play.py +++ b/play.py @@ -229,6 +229,8 @@ def play(): action = "" result = story_manager.act(action) colPrint(result, colors["ai-text"]) + elif action in [str(i) for i in range(len(suggested_actions))]: + action = suggested_actions[int(action)] elif action[0] == '"': action = "You say " + action