latitudegames / AIDungeon

Infinite adventures await!
http://www.aidungeon.io/
MIT License
3.19k stars 554 forks source link

Convert actions to lower #134

Closed spenserblack closed 4 years ago

spenserblack commented 4 years ago

Fixes #132

It might be better to just use action = input("> ").lower(), as this would require less conversions, but I didn't want to make a change that might affect non-command inputs. If it is better for all inputs to be a certain case, I can make that change :smiley:

Also, it might be a good idea to have an escape key for actions that aren't part of the story. Example: #load to load a story. That way there won't be any confusion if someone wants to do something like load a carriage with supplies.

ben-bay commented 4 years ago

Good idea. Before merge can you target this to develop? While you're at it, I also like the idea of using # to distinguish commands from story.

dyc3 commented 4 years ago

I think we should use / to denote commands from story. Users will be more familiar that because other projects do something similar (eg minecraft)

I'll whip up a pull request