diff options
| author | Jan T <keppinakki@gmail.com> | 2015-07-28 15:19:52 +0300 |
|---|---|---|
| committer | Jan T <keppinakki@gmail.com> | 2015-07-28 15:19:52 +0300 |
| commit | 912f8334ba33b59acdfcc1a35f306ca14387611d (patch) | |
| tree | 0f2887444db9ecf4734532adf71d6e619501f0cb /weatbag/words.py | |
| parent | eb87e467ed733236e8a171d090a036d8148e0ef5 (diff) | |
Added help command. Replaced hard-coded 'quit' command with a words.py
entry. Cleaned up code to pass flake8 style check.
Diffstat (limited to 'weatbag/words.py')
| -rw-r--r-- | weatbag/words.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/weatbag/words.py b/weatbag/words.py index 05661aa..3d5cff6 100644 --- a/weatbag/words.py +++ b/weatbag/words.py @@ -7,7 +7,7 @@ e.g. This will recognise take, pick, get or collect:: #... """ # Verbs -move = {'move','walk','go'} +move = {'move', 'walk', 'go'} give = {'give', 'feed', 'present'} use = {'eat', 'use', 'wear'} fight = {'fight', 'kill', 'hit', 'attack'} @@ -22,8 +22,13 @@ talk = {'talk', 'speak', 'converse'} inventory = {'inventory', 'possessions', 'belongings', 'bag'} surroundings = {'surroundings', 'around', 'scenery'} +# Prepositions prepositions = {'up', 'down', 'on', 'under', 'in', 'at', 'to', 'with', 'and'} -# yes/no -yes = {'yes','y','yup','ye'} -no = {'no','n','nope'} +# Yes/No +yes = {'yes', 'y', 'yup', 'ye'} +no = {'no', 'n', 'nope'} + +# Control +instructions = {'instructions', 'help', '?', 'tutorial'} +exit = {'exit', 'quit'} |
