Ratstail91/Text-Based-Adventure — pull request #2 by cjbrowne (2012-11-09 00:49:21+00:00)
Title: Command table for help text and listing available games for the user.

I added a command table for the help text and a list of available games just before the "Enter game name:" prompt appears.

The command table can later be extended so we can make use of it in the parse(input) function, I think/hope, but for now it's just used to generate help text.

The list of available games is generated by reading the "Game" directory and I changed a few bits of that file around to achieve that without making a second reference to the "Game" directory so you might find it a bit confusing to begin with (sorry about that). I implemented it using the windows command "dir" but I've only tested it on Linux (which provides 'dir' as an alias, so it's still relatively cross-platform) so you might want to double-check that it works on Windows before you accept the pull.

I'm gonna call it a night now. I'll probably do some more hacking on it tomorrow. Goodnight!