117 Commits

Author SHA1 Message Date
Kenneth Reitz 4e29aa35e5 Python 2 support seems to work fine 2011-03-13 19:12:13 -04:00
Kenneth Reitz 8f6fe7c3db no encoding in opens 2011-03-13 17:24:00 -04:00
Brandon Craig Rhodes 5c43419efb Bugfix: the game is also finished if "is_done" is true. 2011-03-12 17:02:10 -05:00
Brandon Craig Rhodes ca099de8a9 Updated version number and released. 2011-03-12 15:26:03 -05:00
Brandon Craig Rhodes 9a29202db0 When Michael Foord playtested, I realized that noun.verb() should be possible! 2011-03-12 12:23:56 -05:00
Brandon Craig Rhodes ffa84dd603 Instead of play() installing symbols into the "builtins" module but
having to skip one or two important functions, Adventure commands now
get installed into the caller's global namespace, leaving "builtins"
intact and unchanged with open() and exit() still available.
2011-03-12 11:06:13 -05:00
Brandon Craig Rhodes 8f8b72de30 Added an authentic traditional Adventure game prompt that runs at 1200 baud. 2011-03-12 10:00:51 -05:00
Brandon Craig Rhodes 020157002f Moved __init__.py imports into functions to reduce side effects of import. 2011-03-12 08:52:41 -05:00
Brandon Craig Rhodes 4a7d668b1c Bugfix: "build" command is really "building"; "stair" should be "staircase". 2011-02-16 00:30:49 -05:00
Brandon Craig Rhodes cb3974428e Upgraded version to 1.0, made some final README tweaks, and uploaded. 2011-02-15 23:38:26 -05:00
Brandon Craig Rhodes 0674b9c595 Through final tests of the repository, reached 100% test coverage. 2011-02-15 23:30:35 -05:00
Brandon Craig Rhodes 4651a42afa Started testing endgame; fixed logic involving plant2; made vignettes briefer. 2011-02-15 23:06:29 -05:00
Brandon Craig Rhodes 3473d57e8e Tested everything that was left except special cases related to the endgame. 2011-02-15 22:03:11 -05:00
Brandon Craig Rhodes 3d2d2ef7b3 Tested and debugged several more verbs: "pour" through "read". 2011-02-15 20:46:30 -05:00
Brandon Craig Rhodes 493a3ea11c Debugged attacking, both intransitive and transitive. 2011-02-15 19:30:56 -05:00
Brandon Craig Rhodes f317ca787f Thoroughly tested and debugged locking/unlocking, lighting, and extinguishing. 2011-02-15 19:14:54 -05:00
Brandon Craig Rhodes 1022a4693f Finished the edge cases for dropping and intransitive unlocking. 2011-02-15 18:31:42 -05:00
Brandon Craig Rhodes c69ae859cb Debugged the last carry() edge cases, and fixed a big data problem: only
the first of a list of verb synonyms was getting its default_message set!
2011-02-15 18:19:31 -05:00
Brandon Craig Rhodes d6944521ab Tested the special-case messages for when various motions are impossible. 2011-02-15 12:24:10 -05:00
Brandon Craig Rhodes 18d822fa67 Tested killing the bear; reworked and simplified repr() class, test helpers. 2011-02-15 09:23:12 -05:00
Brandon Craig Rhodes 659fc9ca36 Cleaned up and tested how a few special words and verbal errors are handled. 2011-02-14 16:18:04 -05:00
Brandon Craig Rhodes 4c2bc915d7 Successfully tested the logic surrounding the lamp and its batteries. 2011-02-14 00:46:37 -05:00
Brandon Craig Rhodes a99f6b8810 Got hints debugged and working. 2011-02-14 00:17:32 -05:00
Brandon Craig Rhodes 2f8e13b761 Tested edge cases surrounding dwarves and the pirate. 2011-02-13 22:32:52 -05:00
Brandon Craig Rhodes be40dc19be Added compression to save files, and added save-resume to README.txt. 2011-02-13 19:39:36 -05:00
Brandon Craig Rhodes 3d265a041c Added the option of calling intransitive verbs like a function: look(), etc. 2011-02-13 00:46:15 -05:00
Brandon Craig Rhodes cda965aae6 Made it possible to save and restore the game by saving it to a file. 2011-02-13 00:43:05 -05:00
Brandon Craig Rhodes 66259bd542 Removed several unused routines from the game models. 2011-02-11 19:45:12 -05:00
Brandon Craig Rhodes ad29896359 Added .hgignore file to hide Python build process, and fixed import in tests. 2011-02-11 00:01:01 -05:00
Brandon Craig Rhodes bef316f6d1 One or two last README.txt tweaks, and released as version 0.3. 2011-01-31 08:53:56 -05:00
Brandon Craig Rhodes c26eae1bc9 Made a few last tweaks to README.txt, and removed obsolete "interpret.py". 2011-01-31 08:48:28 -05:00
Brandon Craig Rhodes 841c55e0f3 Filled in walkthrough2.txt with the actual result of each command. 2011-01-31 08:36:58 -05:00
Brandon Craig Rhodes 1a3d5dfca8 Wrote README.txt and setup.py files. 2011-01-31 08:32:02 -05:00
Brandon Craig Rhodes 1cf28d9f6c Simplification: have the game accumulate a string response instead of write(). 2011-01-31 07:26:40 -05:00
Brandon Craig Rhodes 736d64a22f Triumph: several bugs fixed to create a walkthrough that earns a full 350 pts. 2011-01-31 00:45:45 -05:00
Brandon Craig Rhodes e6febd187f Finished implementing all basic commands. Walkthrough #1 is now complete. 2011-01-30 00:26:52 -05:00
Brandon Craig Rhodes e3999e1ac7 Rewrote the basic command interpretation to more closely match the FORTRAN. 2011-01-30 00:00:43 -05:00
Brandon Craig Rhodes dec99771b1 Added support for words that only exist to elicit messages. 2011-01-29 21:32:12 -05:00
Brandon Craig Rhodes 12eab74332 Continued working on closing time, then discovered I cannot pick up rod #2. 2011-01-29 10:32:59 -05:00
Brandon Craig Rhodes 296319cffd Improved some function names, and the cave can now close. 2011-01-29 09:59:01 -05:00
Brandon Craig Rhodes b42ceea7a3 Rewrote the walkthrough so the cave closes at its end rather than middle. 2011-01-29 01:30:59 -05:00
Brandon Craig Rhodes 47b914cf02 Added cave-closing timeouts. Now it closes partway through our walkthrough! 2011-01-29 01:08:36 -05:00
Brandon Craig Rhodes b584f22781 Implemented feeding, and got all treasures but the spices back to the house. 2011-01-29 00:50:56 -05:00
Brandon Craig Rhodes 50bdf25097 In the walkthrough, made it to the troll a third time. 2011-01-29 00:09:04 -05:00
Brandon Craig Rhodes f013cb4976 Added special motion across the troll bridge. 2011-01-28 23:54:39 -05:00
Brandon Craig Rhodes 4b7e0e678b Added drinking, filling, and fee-fie-foe-foo. 2011-01-28 23:01:03 -05:00
Brandon Craig Rhodes f3b232df40 Started working toward better support for collecting liquids with the bottle. 2011-01-28 01:07:54 -05:00
Brandon Craig Rhodes e84295ae7b Wrote routines for eating and rubbing. 2011-01-28 00:33:33 -05:00
Brandon Craig Rhodes 62d0158688 Implemented pouring. 2011-01-28 00:10:47 -05:00
Brandon Craig Rhodes 4c4dc8617a Wrote full lock and unlock routines. 2011-01-27 23:40:48 -05:00