summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Julian Cowley [Mon, 7 Mar 2022 18:48:15 +0000 (08:48 -1000)]
Print type of hazards in same order every time
It is important to print the hazards in the same order every time
whenever you are adjacent to them, such as the order they appear in
the loc variable (the Wumpus, pits, bats).
Currently, the hazards are printed in the order the rooms appear in
the cave list. As an example, say you are in room 1 and there are
super bats in room 2, a pit in room 5, and the Wumpus in room 8.
The hazards are shown like this:
BATS NEARBY!
I FEEL A DRAFT
I SMELL A WUMPUS!
This is problematic since someone might notice the order corresponds
to cave list and therefore figure out which type of hazard is in
each room. Instead, the order based on the loc variable is:
I SMELL A WUMPUS!
I FEEL A DRAFT
BATS NEARBY!
This gives no clues as to which room has what.
Julian Cowley [Mon, 7 Mar 2022 10:40:52 +0000 (00:40 -1000)]
Add debugging of arrow paths
Add debugging statements that print out the location of the arrow and
the rooms it is supposed to move to. The statements use conditional
compiling using the DEBUG macro.
Julian Cowley [Mon, 7 Mar 2022 09:58:09 +0000 (23:58 -1000)]
Return if the arrow hit something after moving randomly
If the arrow hit something (you or the Wumpus) after it flew around
randomly because there was no tunnel, return from shoot(). This allows
the game to finish correctly.
Julian Cowley [Mon, 7 Mar 2022 09:41:17 +0000 (23:41 -1000)]
Continue with next room if the path for the arrow is found
If the room specified by the user for the path of the arrow is one
of the three connecting rooms, the path for the arrow is found.
Continue with the next room in the path and do not consider it not
able to go that way (no tunnel).
Without this, the arrow flies around randomly because it drops through
to the portion of the code that deals with the path not being found
(no tunnel).
Eric S. Raymond [Tue, 26 Mar 2019 02:36:16 +0000 (22:36 -0400)]
Version bump for 1.7 release.
Eric S. Raymond [Mon, 25 Mar 2019 22:48:58 +0000 (18:48 -0400)]
Change license from 3-clause BSD to 2-clause BSD and add SPDX tags.
Eric S. Raymond [Mon, 25 Mar 2019 22:38:34 +0000 (18:38 -0400)]
Ask desktop files to repo.
Eric S. Raymond [Mon, 25 Mar 2019 22:35:20 +0000 (18:35 -0400)]
NEWS update.
Eric S. Raymond [Mon, 25 Mar 2019 22:29:05 +0000 (22:29 +0000)]
Merge branch 'master' into 'master'
fix: superhack input path reading
See merge request esr/wumpus!1
Frank Uhlig [Mon, 25 Mar 2019 20:54:49 +0000 (20:54 +0000)]
fix: superhack input path reading
Eric S. Raymond [Sun, 19 Jul 2015 14:37:43 +0000 (10:37 -0400)]
More warning suppression.
Eric S. Raymond [Sun, 19 Jul 2015 14:24:17 +0000 (10:24 -0400)]
Rehome to GitLab.
nemysis [Sun, 19 Jul 2015 14:14:13 +0000 (10:14 -0400)]
Code cleanup patches.
Eric S. Raymond [Sun, 19 Jul 2015 14:06:40 +0000 (10:06 -0400)]
Repair the installation.
Eric S. Raymond [Sun, 14 Jun 2015 20:31:23 +0000 (16:31 -0400)]
Add a historical note about the logo.
Eric S. Raymond [Sun, 14 Jun 2015 20:25:35 +0000 (16:25 -0400)]
Added the Wumpus logo, from the TI-99/4A game.
Alex Dunn [Mon, 6 Apr 2015 19:01:07 +0000 (15:01 -0400)]
Second band of previously mangled patch...
...it's now complete.
Alex Dunn [Mon, 6 Apr 2015 14:56:42 +0000 (10:56 -0400)]
Make it easier to change where wumpus is installed.
Eric S. Raymond [Sat, 4 Apr 2015 10:45:19 +0000 (06:45 -0400)]
Fill in missing description.
Eric S. Raymond [Sat, 4 Apr 2015 10:39:53 +0000 (06:39 -0400)]
Version bump for 1.6 release.
Eric S. Raymond [Sat, 4 Apr 2015 10:37:14 +0000 (06:37 -0400)]
Fix bug spotted by cppcheck.
Eric S. Raymond [Sat, 4 Apr 2015 10:29:01 +0000 (06:29 -0400)]
Remove specfile, change to modern packaging.
Eric S. Raymond [Sat, 4 Apr 2015 10:28:18 +0000 (06:28 -0400)]
Change to modern NEWS format.
Eric S. Raymond [Thu, 5 Jun 2014 18:38:51 +0000 (14:38 -0400)]
Template a web page.
Eric S. Raymond [Thu, 5 Jun 2014 18:36:13 +0000 (14:36 -0400)]
Version bump for release.
Eric S. Raymond [Thu, 5 Jun 2014 18:33:41 +0000 (14:33 -0400)]
freshmeat -> freecode name change.
Eric S. Raymond [Thu, 5 Jun 2014 18:31:29 +0000 (14:31 -0400)]
Added code auditing with cppcheck.
Eric S. Raymond [Thu, 5 Jun 2014 18:29:03 +0000 (14:29 -0400)]
News update.
Eric S. Raymond [Thu, 5 Jun 2014 18:26:10 +0000 (14:26 -0400)]
Removing obsolete comment.
Eric S. Raymond [Thu, 5 Jun 2014 18:21:31 +0000 (14:21 -0400)]
Finalize build for 1.0 version of shipper.
Eric S. Raymond [Mon, 3 Dec 2012 18:05:36 +0000 (13:05 -0500)]
Typo fix.
Eric S. Raymond [Thu, 10 Mar 2011 04:48:00 +0000 (23:48 -0500)]
Fixed a minor bug (matching starlet locations).
Eric S. Raymond [Mon, 29 Nov 2010 02:52:42 +0000 (21:52 -0500)]
Be explicit about shipping to freshmeat.
Eric S. Raymond [Thu, 21 Oct 2010 08:59:36 +0000 (04:59 -0400)]
Prepare for shipping.
Eric S. Raymond [Thu, 21 Oct 2010 08:55:33 +0000 (04:55 -0400)]
History update, version bump and new license.
Eric S. Raymond [Wed, 13 Oct 2010 00:48:15 +0000 (20:48 -0400)]
Add a header that's modern C.
Eric S. Raymond [Wed, 13 Oct 2010 00:43:54 +0000 (20:43 -0400)]
Lift repository from RCS to git.
Also, delete some obsolete shipper machinery.
Sean Reifschneider [Mon, 29 Dec 2003 11:18:46 +0000 (11:18 +0000)]
Improved RPM packaging.
Eric S. Raymond [Sun, 28 Dec 2003 21:02:01 +0000 (21:02 +0000)]
Initial revision
Eric S. Raymond [Sun, 28 Dec 2003 16:39:55 +0000 (16:39 +0000)]
It was 1974, not 1972.
Eric S. Raymond [Wed, 9 Oct 1996 06:43:03 +0000 (06:43 +0000)]
Modified LSM.
Eric S. Raymond [Fri, 17 May 1996 17:30:35 +0000 (17:30 +0000)]
Slipstream in Larry Schwimmer's input fix.
Eric S. Raymond [Fri, 17 May 1996 17:21:57 +0000 (17:21 +0000)]
Initial revision
Eric S. Raymond [Mon, 8 May 1995 01:38:05 +0000 (01:38 +0000)]
Corrected my home page location.
Eric S. Raymond [Mon, 8 May 1995 01:26:43 +0000 (01:26 +0000)]
Correct the FTP archive reference.
Eric S. Raymond [Mon, 8 May 1995 01:23:57 +0000 (01:23 +0000)]
Initial revision
Eric S. Raymond [Mon, 21 Nov 1994 21:36:27 +0000 (21:36 +0000)]
Added WWW home page.
Eric S. Raymond [Mon, 21 Nov 1994 21:36:05 +0000 (21:36 +0000)]
Initial revision
Eric S. Raymond [Sun, 7 Nov 1993 19:19:27 +0000 (19:19 +0000)]
Fix two minor bugs.
Eric S. Raymond [Fri, 10 Jul 1992 18:21:35 +0000 (18:21 +0000)]
Changed my name.
eric [Thu, 9 Jul 1992 17:37:58 +0000 (17:37 +0000)]
Initial revision