121 Commits

Author SHA1 Message Date
Brandon Craig Rhodes fba67a5671 The game now complains if you move in an impossible direction. 2010-12-28 00:43:32 -05:00
Brandon Craig Rhodes 041631a9a6 The objects at each location are now printed. 2010-12-27 22:50:18 -05:00
Brandon Craig Rhodes 589d879c3b The game now understands that rooms can be dark, and you can fall into a pit. 2010-12-27 22:12:59 -05:00
Brandon Craig Rhodes 9aa682fa5f Got basic movement commands working. 2010-12-27 08:32:13 -05:00
Brandon Craig Rhodes 8365af32a4 Hooked up the first real command: "cave", which just prints a message. 2010-12-26 23:21:25 -05:00
Brandon Craig Rhodes add999cfe6 Print the location on game startup; and move to using <BLANKLINE> in doctests. 2010-12-26 22:12:35 -05:00
Brandon Craig Rhodes 9227abbfe1 Made Game inherit from Data to avoid saying game.data over and over again. 2010-12-26 13:52:59 -05:00
Brandon Craig Rhodes 6393582969 The game now asks if you want instructions, and then prints them out or not. 2010-12-26 13:45:14 -05:00
Brandon Craig Rhodes 9415e901ca Switched to consistent Unicode strings; and Message can now unicode() itself. 2010-12-26 12:34:35 -05:00
Brandon Craig Rhodes 0203fbef67 Created a Game object that knows the game state, and a walkthrough doctest. 2010-12-26 12:21:06 -05:00
Brandon Craig Rhodes c1b7475e0e Stopped using global variables to keep up with current items during import. 2010-12-26 00:53:42 -05:00
Brandon Craig Rhodes 64a92e474a Realized that object descriptions might also contain tabs. 2010-12-26 00:49:19 -05:00
Brandon Craig Rhodes b1bf4c5882 Changed the parser to take an open file, and started tests of the data import. 2010-12-26 00:41:31 -05:00
Brandon Craig Rhodes 4f666ab998 Wrote a simple interpreter that supports movement around the cave. 2010-11-25 22:37:39 -05:00
Brandon Craig Rhodes 7fffc865c0 Added default locations of objects, and default messages of verbs. 2010-11-25 21:32:12 -05:00
Brandon Craig Rhodes 34403439bf Switched to a system of conditions that can be introspected, for debugging. 2010-11-25 21:13:50 -05:00
Brandon Craig Rhodes 6978b90f6e Started designing import of verbs; taught Moves to display their target
action; and made Messages actual objects rather than just strings.
2010-11-25 20:48:04 -05:00
Brandon Craig Rhodes fb8e0fc349 Imported the travel table, using lambda functions built on-the-fly. 2010-11-25 19:17:44 -05:00
Brandon Craig Rhodes f5f3fab669 Turned the score messages into an array. 2010-11-25 10:35:23 -05:00
Brandon Craig Rhodes fed1734992 Pivoted toward an object-oriented representation of the cave. 2010-11-25 10:29:52 -05:00
Brandon Craig Rhodes d452bd02e6 Wrote a routine that can read all message texts from the advent.dat file. 2010-11-25 09:26:24 -05:00