Commit Graph

  • 4e29aa35e5 Python 2 support seems to work fine python2 Kenneth Reitz 2011-03-13 19:12:13 -04:00
  • 8f6fe7c3db no encoding in opens Kenneth Reitz 2011-03-13 17:24:00 -04:00
  • 5c43419efb Bugfix: the game is also finished if "is_done" is true. master Brandon Craig Rhodes 2011-03-12 17:02:10 -05:00
  • 32ecc776d0 Added tag 1.1 for changeset 3aa4ba805e55 Brandon Craig Rhodes 2011-03-12 15:26:08 -05:00
  • ca099de8a9 Updated version number and released. 1.1 Brandon Craig Rhodes 2011-03-12 15:26:03 -05:00
  • 868f37e50c Added tag 1.1 for changeset be26fdf30b49 Brandon Craig Rhodes 2011-03-12 15:25:16 -05:00
  • 9a29202db0 When Michael Foord playtested, I realized that noun.verb() should be possible! Brandon Craig Rhodes 2011-03-12 12:23:56 -05:00
  • 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. Brandon Craig Rhodes 2011-03-12 11:06:13 -05:00
  • 8f8b72de30 Added an authentic traditional Adventure game prompt that runs at 1200 baud. Brandon Craig Rhodes 2011-03-12 10:00:51 -05:00
  • 020157002f Moved __init__.py imports into functions to reduce side effects of import. Brandon Craig Rhodes 2011-03-12 08:52:41 -05:00
  • 4a7d668b1c Bugfix: "build" command is really "building"; "stair" should be "staircase". Brandon Craig Rhodes 2011-02-16 00:30:49 -05:00
  • dc3abb516d Added tag 1.0 for changeset 0b0a193c5124 Brandon Craig Rhodes 2011-02-15 23:38:31 -05:00
  • cb3974428e Upgraded version to 1.0, made some final README tweaks, and uploaded. 1.0 Brandon Craig Rhodes 2011-02-15 23:38:26 -05:00
  • 0674b9c595 Through final tests of the repository, reached 100% test coverage. Brandon Craig Rhodes 2011-02-15 23:30:35 -05:00
  • 4651a42afa Started testing endgame; fixed logic involving plant2; made vignettes briefer. Brandon Craig Rhodes 2011-02-15 23:06:29 -05:00
  • 3473d57e8e Tested everything that was left except special cases related to the endgame. Brandon Craig Rhodes 2011-02-15 22:03:11 -05:00
  • 3d2d2ef7b3 Tested and debugged several more verbs: "pour" through "read". Brandon Craig Rhodes 2011-02-15 20:46:30 -05:00
  • 493a3ea11c Debugged attacking, both intransitive and transitive. Brandon Craig Rhodes 2011-02-15 19:30:56 -05:00
  • f317ca787f Thoroughly tested and debugged locking/unlocking, lighting, and extinguishing. Brandon Craig Rhodes 2011-02-15 19:14:54 -05:00
  • 1022a4693f Finished the edge cases for dropping and intransitive unlocking. Brandon Craig Rhodes 2011-02-15 18:31:42 -05:00
  • 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! Brandon Craig Rhodes 2011-02-15 18:19:31 -05:00
  • d6944521ab Tested the special-case messages for when various motions are impossible. Brandon Craig Rhodes 2011-02-15 12:24:10 -05:00
  • 18d822fa67 Tested killing the bear; reworked and simplified repr() class, test helpers. Brandon Craig Rhodes 2011-02-15 09:23:12 -05:00
  • 659fc9ca36 Cleaned up and tested how a few special words and verbal errors are handled. Brandon Craig Rhodes 2011-02-14 16:18:04 -05:00
  • 4c2bc915d7 Successfully tested the logic surrounding the lamp and its batteries. Brandon Craig Rhodes 2011-02-14 00:46:37 -05:00
  • a99f6b8810 Got hints debugged and working. Brandon Craig Rhodes 2011-02-14 00:17:32 -05:00
  • 2f8e13b761 Tested edge cases surrounding dwarves and the pirate. Brandon Craig Rhodes 2011-02-13 22:32:52 -05:00
  • be40dc19be Added compression to save files, and added save-resume to README.txt. Brandon Craig Rhodes 2011-02-13 19:39:36 -05:00
  • 3d265a041c Added the option of calling intransitive verbs like a function: look(), etc. Brandon Craig Rhodes 2011-02-13 00:46:15 -05:00
  • cda965aae6 Made it possible to save and restore the game by saving it to a file. Brandon Craig Rhodes 2011-02-13 00:43:05 -05:00
  • 66259bd542 Removed several unused routines from the game models. Brandon Craig Rhodes 2011-02-11 19:45:12 -05:00
  • ad29896359 Added .hgignore file to hide Python build process, and fixed import in tests. Brandon Craig Rhodes 2011-02-11 00:01:01 -05:00
  • bef316f6d1 One or two last README.txt tweaks, and released as version 0.3. Brandon Craig Rhodes 2011-01-31 08:53:56 -05:00
  • 0b9bb60ab7 Added tag 0.3 for changeset 6e615045b29b Brandon Craig Rhodes 2011-01-31 08:53:35 -05:00
  • c26eae1bc9 Made a few last tweaks to README.txt, and removed obsolete "interpret.py". 0.3 Brandon Craig Rhodes 2011-01-31 08:48:28 -05:00
  • 841c55e0f3 Filled in walkthrough2.txt with the actual result of each command. Brandon Craig Rhodes 2011-01-31 08:36:58 -05:00
  • 1a3d5dfca8 Wrote README.txt and setup.py files. Brandon Craig Rhodes 2011-01-31 08:32:02 -05:00
  • 1cf28d9f6c Simplification: have the game accumulate a string response instead of write(). Brandon Craig Rhodes 2011-01-31 07:26:40 -05:00
  • 736d64a22f Triumph: several bugs fixed to create a walkthrough that earns a full 350 pts. Brandon Craig Rhodes 2011-01-31 00:45:45 -05:00
  • e6febd187f Finished implementing all basic commands. Walkthrough #1 is now complete. Brandon Craig Rhodes 2011-01-30 00:26:52 -05:00
  • e3999e1ac7 Rewrote the basic command interpretation to more closely match the FORTRAN. Brandon Craig Rhodes 2011-01-30 00:00:43 -05:00
  • dec99771b1 Added support for words that only exist to elicit messages. Brandon Craig Rhodes 2011-01-29 21:32:12 -05:00
  • 12eab74332 Continued working on closing time, then discovered I cannot pick up rod #2. Brandon Craig Rhodes 2011-01-29 10:32:59 -05:00
  • 296319cffd Improved some function names, and the cave can now close. Brandon Craig Rhodes 2011-01-29 09:59:01 -05:00
  • b42ceea7a3 Rewrote the walkthrough so the cave closes at its end rather than middle. Brandon Craig Rhodes 2011-01-29 01:30:59 -05:00
  • 47b914cf02 Added cave-closing timeouts. Now it closes partway through our walkthrough! Brandon Craig Rhodes 2011-01-29 01:08:36 -05:00
  • b584f22781 Implemented feeding, and got all treasures but the spices back to the house. Brandon Craig Rhodes 2011-01-29 00:50:56 -05:00
  • 50bdf25097 In the walkthrough, made it to the troll a third time. Brandon Craig Rhodes 2011-01-29 00:09:04 -05:00
  • f013cb4976 Added special motion across the troll bridge. Brandon Craig Rhodes 2011-01-28 23:54:39 -05:00
  • 4b7e0e678b Added drinking, filling, and fee-fie-foe-foo. Brandon Craig Rhodes 2011-01-28 23:01:03 -05:00
  • f3b232df40 Started working toward better support for collecting liquids with the bottle. Brandon Craig Rhodes 2011-01-28 01:07:54 -05:00
  • e84295ae7b Wrote routines for eating and rubbing. Brandon Craig Rhodes 2011-01-28 00:33:33 -05:00
  • 62d0158688 Implemented pouring. Brandon Craig Rhodes 2011-01-28 00:10:47 -05:00
  • 4c4dc8617a Wrote full lock and unlock routines. Brandon Craig Rhodes 2011-01-27 23:40:48 -05:00
  • f9b055019d Added "NotImplemented" stubs for all remaining verbs, to see how many are left. Brandon Craig Rhodes 2011-01-27 01:58:37 -05:00
  • 3fbfd2ae4e Implemented intransitive unlock and attack. Brandon Craig Rhodes 2011-01-27 01:45:02 -05:00
  • a6fb1580b3 Now each word is a separate object that knows its synonyms; and did "say". Brandon Craig Rhodes 2011-01-27 00:59:18 -05:00
  • 179ea6dc02 The bottle now starts with water; and, we reach the plant in the twopit room. Brandon Craig Rhodes 2011-01-11 10:50:24 -07:00
  • 4562623b41 Added some code to handle carrying when a filled bottle is involved. Brandon Craig Rhodes 2011-01-11 10:33:56 -07:00
  • 655d703e4f The player can now reach the dark room successfully. Brandon Craig Rhodes 2011-01-01 23:58:53 -07:00
  • 954d29eb23 Bugfix: dropping the vase did not actually place it in the current room. Brandon Craig Rhodes 2011-01-01 23:52:39 -07:00
  • 90d09496eb Brought the chest back to the building; noticed the vase is not working right. Brandon Craig Rhodes 2011-01-01 22:00:56 -07:00
  • d24aa9ebfc Implemented two special actions associated with the Plover room. Brandon Craig Rhodes 2011-01-01 18:19:53 -07:00
  • 8d3f085e83 In the walkthrough, made it into and (finally) out of Witt's End. Brandon Craig Rhodes 2010-12-31 14:57:08 -07:00
  • 5d1358d438 Reached the clam and tried (unsuccessfully) to open it. Brandon Craig Rhodes 2010-12-31 14:47:26 -07:00
  • 457cc966fd Bugfix: killing the dragon was not moving the player to the replacement room. Brandon Craig Rhodes 2010-12-31 14:05:03 -07:00
  • 44805d1c98 Wrote logic for hints (but have not tested it yet). Brandon Craig Rhodes 2010-12-31 13:06:00 -07:00
  • b57ab1c3ae You can now kill the dragon with your bare hands. Brandon Craig Rhodes 2010-12-31 11:37:27 -07:00
  • 6764dfae5f The bird in the walkthrough now gets burnt to a cinder. Brandon Craig Rhodes 2010-12-31 09:42:21 -07:00
  • 68e6130f42 The pirate can now successfully pounce out of the shadows. Brandon Craig Rhodes 2010-12-31 09:05:24 -07:00
  • 6be71c13f8 Bugfix: the data input routine failed to read the movement table correctly; also, the big walkthrough now works completely again! Brandon Craig Rhodes 2010-12-31 08:36:22 -07:00
  • 199340b351 Back on track. Fixed that objects fell in the wrong place when knife gets you. Brandon Craig Rhodes 2010-12-30 14:43:41 -05:00
  • f344dbb5d8 False alarm! A misplaced argument was what ruined the random number generator seed. Went ahead and wrote the end-of-game message. Brandon Craig Rhodes 2010-12-30 14:16:02 -05:00
  • 88d42215e0 Kept writing walkthrough; added score-and-exit code; and reached another problem with nondeterminism in the random number generator. Brandon Craig Rhodes 2010-12-30 13:59:28 -05:00
  • 0e2ec51941 Audited and groomed dwarf code, because I was suspicious to encounter two at once; but having traced dwarf movement, am satisfied that they are really moving independently. Brandon Craig Rhodes 2010-12-30 13:23:42 -05:00
  • 076e718129 Whoops; let dwarves move in the cave, not aboveground! And kept working on walkthrough1, which needs rewriting because dwarves are in different places. Brandon Craig Rhodes 2010-12-30 00:23:29 -05:00
  • b197d39a20 Fixed the non-determinism by stablizing the order of a list used with random.choice() so that it does not depend on object addresses; and started rewriting the walkthrough1 to follow the new, stable storyline. Brandon Craig Rhodes 2010-12-29 23:52:34 -05:00
  • 7a90e6c5b7 Switched to using per-game random number generator for thread safety etc; but tests are still broken because they are non-deterministic. Brandon Craig Rhodes 2010-12-29 23:18:07 -05:00
  • d39fa59efc Made it possible to kill dwarves; now hung up on random() nondeterminism in the face of whether game.py has just been modified. (Maybe the random number generator gets exercised in the process of building the .pyc file?) Brandon Craig Rhodes 2010-12-29 21:13:46 -05:00
  • 6e1a859634 First attempt at implementing dwarves at pirate; ruined tests, of course. Brandon Craig Rhodes 2010-12-29 20:28:50 -05:00
  • a142a0421e A dwarf now walks around the corner, throws his axe, curses, and runs away. Brandon Craig Rhodes 2010-12-29 17:29:23 -05:00
  • a019936b3c Added intransitive handling for one verb, and uppercased all output. Brandon Craig Rhodes 2010-12-29 17:01:54 -05:00
  • ec6a604268 Dwarf activation is nearly ready, and a hollow voice now says "PLUGH". Brandon Craig Rhodes 2010-12-29 15:20:09 -05:00
  • b4dc666c3a Taught the game when to activate (but not yet how to move) the dwarves. Brandon Craig Rhodes 2010-12-29 14:27:29 -05:00
  • eaae23794c Implemented the "back" command. Brandon Craig Rhodes 2010-12-29 13:28:00 -05:00
  • 96dcad84ab Fixed warning about not-closed file on Python exit. Brandon Craig Rhodes 2010-12-29 11:53:36 -05:00
  • 6d9611e8f4 Converted project to Python 3, since this is a good chance to get practice. Brandon Craig Rhodes 2010-12-29 11:51:20 -05:00
  • 227fe3df1b Scoring now works, and your score increases when you find a treasure. Brandon Craig Rhodes 2010-12-29 11:28:21 -05:00
  • fdfca29e53 The bird can now drive the snake away. Brandon Craig Rhodes 2010-12-29 00:55:53 -05:00
  • f1399d4ae0 Implemented the "attack" verb. Brandon Craig Rhodes 2010-12-29 00:40:04 -05:00
  • 2357982d53 Switched to using full (lower-case!) words for object literals in the code. Brandon Craig Rhodes 2010-12-28 23:44:54 -05:00
  • 67ce0ac86e Wrote (but have not yet tested) the logic dealing with the lamp going out. Brandon Craig Rhodes 2010-12-28 23:17:15 -05:00
  • dedb615b51 You now need to be carrying the cage to pick up the bird. Brandon Craig Rhodes 2010-12-28 21:51:51 -05:00
  • 42eeccbbbe Added attributes for all game objects; the bird fears the rod; and more "drop". Brandon Craig Rhodes 2010-12-28 20:54:31 -05:00
  • cdf60b7760 The lamp can now be turned on, which means you do not fall into a pit. Brandon Craig Rhodes 2010-12-28 14:50:25 -05:00
  • 259f6a2cd9 Moved the verb-code down below motion-code, where it belongs; and started working on reincarnation. Brandon Craig Rhodes 2010-12-28 14:07:09 -05:00
  • dfe5a043c4 Started implementing real commands. The grate can now be opened. Brandon Craig Rhodes 2010-12-28 13:34:00 -05:00
  • 365cbf67ee Made it possible to pick up the keys. Brandon Craig Rhodes 2010-12-28 02:43:58 -05:00
  • 5368d1f487 Got "forced" locations working, that immediately move you somewhere else. Brandon Craig Rhodes 2010-12-28 02:04:33 -05:00
  • af77603ba5 The game no longer allows motion through the locked grate (breaking tests). Brandon Craig Rhodes 2010-12-28 01:18:48 -05:00