open-adventure.git
7 years agoFirst stage cleanup of YAML dungeon generator. Less hard-coded stuff.
Aaron Traas [Sat, 15 Jul 2017 17:10:39 +0000 (13:10 -0400)]
First stage cleanup of YAML dungeon generator. Less hard-coded stuff.

Next stage will be rewrite so report object contains all of the keys
and coverage values, so we're not scribbling over DB all the time, and
we don't have to walk over things multiple times, and can keep HTML
generation in one place

7 years agoImprove symbol coverage.
Eric S. Raymond [Sat, 15 Jul 2017 17:00:48 +0000 (13:00 -0400)]
Improve symbol coverage.

7 years agoDocumentation polishing.
Eric S. Raymond [Sat, 15 Jul 2017 09:05:59 +0000 (05:05 -0400)]
Documentation polishing.

7 years agoYAML coverage - last object message 244/head
Aaron Traas [Fri, 14 Jul 2017 17:06:44 +0000 (13:06 -0400)]
YAML coverage - last object message

7 years agoCode cleanup.
Eric S. Raymond [Fri, 14 Jul 2017 17:10:13 +0000 (13:10 -0400)]
Code cleanup.

7 years agoFix off-by-two bug.
Eric S. Raymond [Fri, 14 Jul 2017 16:39:06 +0000 (12:39 -0400)]
Fix off-by-two bug.

7 years agoYAML coverage - object messages 100% covered
Aaron Traas [Fri, 14 Jul 2017 15:39:54 +0000 (11:39 -0400)]
YAML coverage - object messages 100% covered

7 years agoReplace some more wd? with id?. 245/head
Jason S. Ninneman [Wed, 12 Jul 2017 21:32:46 +0000 (14:32 -0700)]
Replace some more wd? with id?.

7 years agoReplace some uses of wd[12] with id[12].
Jason S. Ninneman [Wed, 12 Jul 2017 20:54:14 +0000 (13:54 -0700)]
Replace some uses of wd[12] with id[12].

7 years agoDragon attack code no longer edits the command struct.
Jason S. Ninneman [Wed, 12 Jul 2017 20:49:28 +0000 (13:49 -0700)]
Dragon attack code no longer edits the command struct.

This also fixes a minor bug where refusing to attack the dragon
costs the player two turns instead of one.

7 years agoHandle word type and raw strings.
Jason S. Ninneman [Wed, 12 Jul 2017 19:10:00 +0000 (12:10 -0700)]
Handle word type and raw strings.

7 years agoUse vocab IDs along side packed words.
Jason S. Ninneman [Wed, 12 Jul 2017 18:17:12 +0000 (11:17 -0700)]
Use vocab IDs along side packed words.

7 years agoMore coverage improvements.
Eric S. Raymond [Fri, 14 Jul 2017 16:00:29 +0000 (12:00 -0400)]
More coverage improvements.

7 years agoPartially address GitLab issue #27: arbitrary_messages unreachable
Eric S. Raymond [Fri, 14 Jul 2017 15:33:22 +0000 (11:33 -0400)]
Partially address GitLab issue #27: arbitrary_messages unreachable

7 years agoRefactored discard to concentrate bird-related things in one place 243/head
NHOrus [Fri, 14 Jul 2017 13:34:54 +0000 (16:34 +0300)]
Refactored discard to concentrate bird-related things in one place

7 years agoRefactored carry for clarity
NHOrus [Fri, 14 Jul 2017 13:02:52 +0000 (16:02 +0300)]
Refactored carry for clarity

7 years agoDo not base endgame bonus on arbitrary messages
NHOrus [Fri, 14 Jul 2017 12:40:59 +0000 (15:40 +0300)]
Do not base endgame bonus on arbitrary messages
This may break save files, but doesn't, due to padding

7 years agoYAML coverage - commented out unused arbitrary messages 242/head
Aaron Traas [Fri, 14 Jul 2017 03:20:27 +0000 (23:20 -0400)]
YAML coverage - commented out unused arbitrary messages

7 years agoYAML coverage - all the listen messages
Aaron Traas [Fri, 14 Jul 2017 03:16:24 +0000 (23:16 -0400)]
YAML coverage - all the listen messages

7 years agoYAML coverage - cleanup and comments
Aaron Traas [Thu, 13 Jul 2017 22:24:20 +0000 (18:24 -0400)]
YAML coverage - cleanup and comments

7 years agoYAML coverage - locations 100% covered
Aaron Traas [Thu, 13 Jul 2017 21:42:10 +0000 (17:42 -0400)]
YAML coverage - locations 100% covered

7 years agoYAML coverage - more locations and message
Aaron Traas [Thu, 13 Jul 2017 21:30:08 +0000 (17:30 -0400)]
YAML coverage - more locations and message

- LOC_DEADCRAWL
- CROSS_BRIDGE
- LOC_BOULDERS2.short
- LOC_WINDOW1

7 years agoYAML coverage - hints 100% covered
Aaron Traas [Thu, 13 Jul 2017 20:05:15 +0000 (16:05 -0400)]
YAML coverage - hints 100% covered

7 years agoYAML coverage parser bug fixed -- handling `\n` and `\t` correctly
Aaron Traas [Thu, 13 Jul 2017 19:56:37 +0000 (15:56 -0400)]
YAML coverage parser bug fixed -- handling `\n` and `\t` correctly

7 years agoYAML coverage parser fixed to equate "NO_MESSAGE" with None
Aaron Traas [Thu, 13 Jul 2017 19:10:26 +0000 (15:10 -0400)]
YAML coverage parser fixed to equate "NO_MESSAGE" with None

7 years agoadventure.yaml - coverage of all scoring class thresholds
Aaron Traas [Thu, 13 Jul 2017 19:04:49 +0000 (15:04 -0400)]
adventure.yaml - coverage of all scoring class thresholds

7 years agoPrompt and taunt you after 3rd and final death
Aaron Traas [Thu, 13 Jul 2017 18:44:55 +0000 (14:44 -0400)]
Prompt and taunt you after 3rd and final death

Fixed a bug where you'd not be asked about whether to be resurrected a
final time. Now you are.

7 years agoNo spk remains in the code base
NHOrus [Thu, 13 Jul 2017 17:44:18 +0000 (20:44 +0300)]
No spk remains in the code base

7 years agoTest that troll really retuns after we take eggs
NHOrus [Thu, 13 Jul 2017 17:25:57 +0000 (20:25 +0300)]
Test that troll really retuns after we take eggs

7 years agoRemoved unused code, reindented
NHOrus [Thu, 13 Jul 2017 17:20:11 +0000 (20:20 +0300)]
Removed unused code, reindented

7 years agoExpand scope of coverage_dungeon.py - actions and obituaries
Aaron Traas [Thu, 13 Jul 2017 16:24:52 +0000 (12:24 -0400)]
Expand scope of coverage_dungeon.py - actions and obituaries

7 years agoExpand scope of coverage_dungeon.py - specials
Aaron Traas [Thu, 13 Jul 2017 15:50:51 +0000 (11:50 -0400)]
Expand scope of coverage_dungeon.py - specials

7 years agoExpand scope of coverage_dungeon.py
Aaron Traas [Wed, 12 Jul 2017 21:52:56 +0000 (17:52 -0400)]
Expand scope of coverage_dungeon.py

hints, classes and turn thrusholds are now supported

7 years agoCosmetic text fix.
Eric S. Raymond [Wed, 12 Jul 2017 17:48:55 +0000 (13:48 -0400)]
Cosmetic text fix.

7 years agoExpress word type with an enum instead of magic numbers. 238/head
Jason S. Ninneman [Wed, 12 Jul 2017 00:44:06 +0000 (17:44 -0700)]
Express word type with an enum instead of magic numbers.

* Make a cleaner function for getting vocab metadata.
* Get rid of magic numbers.
* Purge get_vocab_id().
* Abolish the *_WORD() macros.
* Add FIXME comment on some ugliness.

7 years agoForcing floating point division for % coverage, so we don't show 0% 237/head
Aaron Traas [Wed, 12 Jul 2017 12:56:50 +0000 (08:56 -0400)]
Forcing floating point division for % coverage, so we don't show 0%

7 years agoRemove obsolete comment.
Eric S. Raymond [Wed, 12 Jul 2017 09:24:12 +0000 (05:24 -0400)]
Remove obsolete comment.

7 years agoRemove obsolete caveat.
Eric S. Raymond [Wed, 12 Jul 2017 09:11:03 +0000 (05:11 -0400)]
Remove obsolete caveat.

7 years agoIn TODO, note some possible tests.
Eric S. Raymond [Wed, 12 Jul 2017 08:42:24 +0000 (04:42 -0400)]
In TODO, note some possible tests.

7 years agoPrevent game from uttering solecisms about the "floor" when outside.
Eric S. Raymond [Wed, 12 Jul 2017 04:19:16 +0000 (00:19 -0400)]
Prevent game from uttering solecisms about the "floor" when outside.

7 years agoPython-agnosticize coverage_dungeon.py. 236/head
Jason S. Ninneman [Tue, 11 Jul 2017 23:07:09 +0000 (16:07 -0700)]
Python-agnosticize coverage_dungeon.py.

7 years agoInstall Python 2 pip in Alpine.
Jason S. Ninneman [Tue, 11 Jul 2017 23:01:02 +0000 (16:01 -0700)]
Install Python 2 pip in Alpine.

7 years agoUse Python 2 in Alpine Linux, because that's default.
Jason S. Ninneman [Tue, 11 Jul 2017 22:57:50 +0000 (15:57 -0700)]
Use Python 2 in Alpine Linux, because that's default.

7 years agoMake the build Python-2/3 agnostic.
Jason S. Ninneman [Tue, 11 Jul 2017 22:54:16 +0000 (15:54 -0700)]
Make the build Python-2/3 agnostic.

7 years agoReplace tests on packed words with tests on strings.
Jason S. Ninneman [Tue, 11 Jul 2017 15:52:50 +0000 (08:52 -0700)]
Replace tests on packed words with tests on strings.

7 years agoRecord a fix.
Eric S. Raymond [Tue, 11 Jul 2017 23:13:24 +0000 (19:13 -0400)]
Record a fix.

7 years agoDemonstrate that we don't have the vase bug.
Eric S. Raymond [Tue, 11 Jul 2017 23:06:10 +0000 (19:06 -0400)]
Demonstrate that we don't have the vase bug.

7 years agoLOC_* coverage - at 98.4% 235/head
Aaron Traas [Tue, 11 Jul 2017 21:35:23 +0000 (17:35 -0400)]
LOC_* coverage - at 98.4%

7 years agoMinor bug fix in an error notification.
Eric S. Raymond [Tue, 11 Jul 2017 21:05:55 +0000 (17:05 -0400)]
Minor bug fix in an error notification.

7 years agoAddress Issue #13: The "eat" command exhibits strange behavior
Eric S. Raymond [Tue, 11 Jul 2017 20:16:38 +0000 (16:16 -0400)]
Address Issue #13: The "eat" command exhibits strange behavior

7 years agoActual 1.2 release. 1.2
Eric S. Raymond [Tue, 11 Jul 2017 15:59:53 +0000 (11:59 -0400)]
Actual 1.2 release.

7 years agoMinor coverage inclusion.
Eric S. Raymond [Tue, 11 Jul 2017 15:57:46 +0000 (11:57 -0400)]
Minor coverage inclusion.

7 years agoDocumentation polishing.
Eric S. Raymond [Tue, 11 Jul 2017 10:00:21 +0000 (06:00 -0400)]
Documentation polishing.

7 years agoMore comment polishing.
Eric S. Raymond [Tue, 11 Jul 2017 08:42:36 +0000 (04:42 -0400)]
More comment polishing.

7 years agoComment polishing.
Eric S. Raymond [Tue, 11 Jul 2017 08:35:00 +0000 (04:35 -0400)]
Comment polishing.

7 years agoComment polishing.
Eric S. Raymond [Tue, 11 Jul 2017 08:15:57 +0000 (04:15 -0400)]
Comment polishing.

7 years agoComment polishing.
Eric S. Raymond [Tue, 11 Jul 2017 07:43:37 +0000 (03:43 -0400)]
Comment polishing.

7 years agoReindent.
Eric S. Raymond [Tue, 11 Jul 2017 07:26:00 +0000 (03:26 -0400)]
Reindent.

7 years agoLCOV exclusuon correction - addresses issue #25.
Eric S. Raymond [Tue, 11 Jul 2017 03:04:22 +0000 (23:04 -0400)]
LCOV exclusuon correction - addresses issue #25.

7 years agoCleanups and clarifications in do_command() 233/head
Aaron Traas [Mon, 10 Jul 2017 21:43:59 +0000 (17:43 -0400)]
Cleanups and clarifications in do_command()

7 years agoEliminated another label
Aaron Traas [Mon, 10 Jul 2017 21:35:24 +0000 (17:35 -0400)]
Eliminated another label

7 years agoEliminated a label
Aaron Traas [Mon, 10 Jul 2017 21:23:20 +0000 (17:23 -0400)]
Eliminated a label

7 years ago\10Cleaned up do_command() a little
Aaron Traas [Mon, 10 Jul 2017 21:18:58 +0000 (17:18 -0400)]
\10Cleaned up do_command() a little

7 years agoIsolate command input processing, got rid of label "Laction"
Aaron Traas [Mon, 10 Jul 2017 20:30:51 +0000 (16:30 -0400)]
Isolate command input processing, got rid of label "Laction"

7 years agorefactored fallback_handler() to use command_t, isolating from side effects
Aaron Traas [Mon, 10 Jul 2017 20:09:18 +0000 (16:09 -0400)]
refactored fallback_handler() to use command_t, isolating from side effects

7 years agoTest message corrected
Aaron Traas [Mon, 10 Jul 2017 20:04:28 +0000 (16:04 -0400)]
Test message corrected

7 years agoRevert "Remove 'version' test. Framework plays badly with variable output."
Aaron Traas [Mon, 10 Jul 2017 18:54:19 +0000 (14:54 -0400)]
Revert "Remove 'version' test.  Framework plays badly with variable output."

This reverts commit 13f73040816da2e0eee9c607531f9eb99ef9c0c8.

7 years agoTweak a coverage exclusion.
Eric S. Raymond [Mon, 10 Jul 2017 18:52:18 +0000 (14:52 -0400)]
Tweak a coverage exclusion.

7 years agoCoverage - bird attack snake in endgame 232/head
Aaron Traas [Mon, 10 Jul 2017 16:47:33 +0000 (12:47 -0400)]
Coverage - bird attack snake in endgame

7 years agoBear can't dies where it can be chained.
Eric S. Raymond [Mon, 10 Jul 2017 16:49:45 +0000 (12:49 -0400)]
Bear can't dies where it can be chained.

7 years agoRemove 'version' test. Framework plays badly with variable output.
Eric S. Raymond [Mon, 10 Jul 2017 16:18:35 +0000 (12:18 -0400)]
Remove 'version' test.  Framework plays badly with variable output.

We'll have to come up with generic solution to this.

7 years agoVersion bump in tests 231/head
NHOrus [Mon, 10 Jul 2017 12:11:19 +0000 (15:11 +0300)]
Version bump in tests

7 years agoFail getting some more hints by disqualifying conditions
NHOrus [Mon, 10 Jul 2017 11:41:01 +0000 (14:41 +0300)]
Fail getting some more hints by disqualifying conditions

7 years agoTwo different failures to get hint for ogre
NHOrus [Mon, 10 Jul 2017 11:16:39 +0000 (14:16 +0300)]
Two different failures to get hint for ogre

7 years agoFail to feed the snake, find the pirate before he pounces
NHOrus [Mon, 10 Jul 2017 11:07:35 +0000 (14:07 +0300)]
Fail to feed the snake, find the pirate before he pounces

7 years agoReady to release 1.2.
Eric S. Raymond [Mon, 10 Jul 2017 11:46:26 +0000 (07:46 -0400)]
Ready to release 1.2.

7 years agoAdd historical details.
Eric S. Raymond [Sun, 9 Jul 2017 20:48:29 +0000 (16:48 -0400)]
Add historical details.

7 years agoCoverage: LOC_DIFFERENT* and fail to feed bear 230/head
Aaron Traas [Sun, 9 Jul 2017 19:32:14 +0000 (15:32 -0400)]
Coverage: LOC_DIFFERENT* and fail to feed bear

7 years agoSort coverage report to make more readable
Aaron Traas [Sun, 9 Jul 2017 19:31:11 +0000 (15:31 -0400)]
Sort coverage report to make more readable

7 years agoClean up test titles.
Eric S. Raymond [Sun, 9 Jul 2017 18:58:44 +0000 (14:58 -0400)]
Clean up test titles.

7 years agoTest for failure to deal with ogre by attacking him 229/head
NHOrus [Sun, 9 Jul 2017 17:39:14 +0000 (20:39 +0300)]
Test for failure to deal with ogre by attacking him

7 years agoTest for selecting different plants
NHOrus [Sun, 9 Jul 2017 17:36:41 +0000 (20:36 +0300)]
Test for selecting different plants

7 years agoTests for failing with the golden eggs
NHOrus [Sun, 9 Jul 2017 17:35:24 +0000 (20:35 +0300)]
Tests for failing with the golden eggs

7 years agoLast unfired test - for getting the jade (better start over!)
NHOrus [Sun, 9 Jul 2017 17:28:15 +0000 (20:28 +0300)]
Last unfired test - for getting the jade (better start over!)

7 years agoSome fuzzing-generated tests, with possible coverage redundancies
NHOrus [Sun, 9 Jul 2017 17:21:59 +0000 (20:21 +0300)]
Some fuzzing-generated tests, with possible coverage redundancies

7 years agoTwo more lines of coverage; more cleanup for macros
NHOrus [Sun, 9 Jul 2017 17:03:30 +0000 (20:03 +0300)]
Two more lines of coverage; more cleanup for macros

7 years agoDocumentation improvement.
Eric S. Raymond [Sun, 9 Jul 2017 11:39:48 +0000 (07:39 -0400)]
Documentation improvement.

7 years agoDocumentation polishing.
Eric S. Raymond [Sun, 9 Jul 2017 11:03:26 +0000 (07:03 -0400)]
Documentation polishing.

7 years agoMade YAML coverage test work with variable messages (%s, %d, etc.) 228/head
Aaron Traas [Sat, 8 Jul 2017 23:37:51 +0000 (19:37 -0400)]
Made YAML coverage test work with variable messages (%s, %d, etc.)

7 years agoBound the sizes of strcpy.
NHOrus [Sat, 8 Jul 2017 19:06:23 +0000 (22:06 +0300)]
Bound the sizes of strcpy.

7 years ago№ and minor syntax correction 226/head
NHOrus [Sat, 8 Jul 2017 18:00:26 +0000 (21:00 +0300)]
№ and minor syntax correction

7 years agoFix dead bear tests
NHOrus [Sat, 8 Jul 2017 17:02:30 +0000 (20:02 +0300)]
Fix dead bear tests

7 years agoMinor deduplication
NHOrus [Sat, 8 Jul 2017 14:44:02 +0000 (17:44 +0300)]
Minor deduplication

7 years agoRestructure quips for invalid movements.
NHOrus [Sat, 8 Jul 2017 14:40:57 +0000 (17:40 +0300)]
Restructure quips for invalid movements.

7 years agoRestructure lightcheck
NHOrus [Sat, 8 Jul 2017 14:40:35 +0000 (17:40 +0300)]
Restructure lightcheck

7 years agoSet game.newloc when reincarnated. Fixes a bug.
Eric S. Raymond [Sat, 8 Jul 2017 15:34:09 +0000 (11:34 -0400)]
Set game.newloc when reincarnated. Fixes a bug.

7 years agoAdd a code audit production using cppcheck.
Eric S. Raymond [Sat, 8 Jul 2017 13:51:10 +0000 (09:51 -0400)]
Add a code audit production using cppcheck.

7 years agoExpand test coverage, partly fixing Gitlab issue #23.
Eric S. Raymond [Sat, 8 Jul 2017 12:59:28 +0000 (08:59 -0400)]
Expand test coverage, partly fixing Gitlab issue #23.

7 years agoComment polishing.
Eric S. Raymond [Sat, 8 Jul 2017 12:35:44 +0000 (08:35 -0400)]
Comment polishing.

7 years agoDocumentation polishing.
Eric S. Raymond [Sat, 8 Jul 2017 05:09:41 +0000 (01:09 -0400)]
Documentation polishing.