History log of /openbsd/games/wump/wump.c (Results 1 – 25 of 34)
Revision Date Author Comments
# 6106ce73 20-Dec-2018 schwarze <schwarze@openbsd.org>

Move a badly positioned parenthesis that caused nonsensical movement
properties for the Wumpus. The bug has been present since 4.3BSD-Reno
and was introduced by Keith Bostic on February 14, 1990 whe

Move a badly positioned parenthesis that caused nonsensical movement
properties for the Wumpus. The bug has been present since 4.3BSD-Reno
and was introduced by Keith Bostic on February 14, 1990 when committing
the major rewrite from Dave Taylor.

Patch (accompanied by a detailed functional and historical analysis)
from David Fifield <david at bamsoftware dot com> on bugs@.

With all the bats in these caves, how could a bug possibly survive
for twenty-eight years?

show more ...


# 6fa5e1da 07-Mar-2016 mestre <mestre@openbsd.org>

- General changes:
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)

- Specific changes:
- atc(6): this used -? an

- General changes:
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)

- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)

OK tb@ after his suggestions

show more ...


# 7e027cb7 10-Jan-2016 mestre <mestre@openbsd.org>

As per style(9), remove remaining lint-style comments from games/

OK tb@


# 17641e31 07-Jan-2016 tb <tb@openbsd.org>

Some basic code maintenance in games/

- in main() replace exit with return
- drop some /* NOTREACHED */ lint comments along the way.
- make more use of standard CFLAGS, esp. -Wimplicit-function-decl

Some basic code maintenance in games/

- in main() replace exit with return
- drop some /* NOTREACHED */ lint comments along the way.
- make more use of standard CFLAGS, esp. -Wimplicit-function-declaration
- add and sort some headers when needed
- add straightforward pledges to some programs used at compile time

discussed with and ok mestre@

show more ...


# 2010f3c8 04-Jan-2016 mestre <mestre@openbsd.org>

More cleanup and sorting on header section

OK tb@ and he also pointed out that for consistency with rest of the tree we
should include termios.h instead of sys/ttydefaults.h, where applicable


# 9ea8ec70 03-Jan-2016 mestre <mestre@openbsd.org>

About 13 years ago when the idiom srandom(time()), and sometimes
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h>
lived up until this day so remove it.

Additionally, earl

About 13 years ago when the idiom srandom(time()), and sometimes
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h>
lived up until this day so remove it.

Additionally, earlier than that, 18 years ago, random(6) was one of the first
consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but
these days we pull it from stdlib.h, which is already done, so while here
remove dev/rndvar.h also.

"seems comprehensive to me" deraadt@ and OK tb@

show more ...


# f0628b46 25-Dec-2015 mestre <mestre@openbsd.org>

Declare usage() functions as __dead void, if they don't return, on games section.

Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used

Declare usage() functions as __dead void, if they don't return, on games section.

Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore.

OK tb@

show more ...


# 56e43436 30-Nov-2015 tb <tb@openbsd.org>

last but not least: add pledge for wump(6)

one more of those games which fork a pager with instructions, so first
pledge "stdio rpath proc exec", then drop to pledge "stdio" afterwards.


# 66e49541 29-Aug-2013 naddy <naddy@openbsd.org>

replace srandomdev()+random() with the arc4random*() family
tweaks and ok millert@, ok deraadt@


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# 778b87ea 02-Apr-2007 jmc <jmc@openbsd.org>

provide some missing arguments and tidy up usage(); from Igor Sobrado


# ff8320a7 10-Jul-2004 deraadt <deraadt@openbsd.org>

more ansi; khalek@linuxgamers.net


# 7a09557b 03-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 7a333710 11-Mar-2003 david <david@openbsd.org>

double words and spelling fixes
ok pjanzen@


# ffe3e522 06-Dec-2002 millert <millert@openbsd.org>

Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed.
pjanzen@ OK


# 25154944 30-Jul-2002 pjanzen <pjanzen@openbsd.org>

ansi wump, plus a more accurate comment


# ef2c807a 31-May-2002 pjanzen <pjanzen@openbsd.org>

No dm -> no need to revoke setegid.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# c96f6a27 09-Jul-2001 deraadt <deraadt@openbsd.org>

correct type on last arg to execl(); nordin@cse.ogi.edu


# 41102c1d 02-May-2001 pjanzen <pjanzen@openbsd.org>

Ensure caves are connected; afghan@afghanhound.org.uk


# 077eda3b 29-Jun-2000 pjanzen <pjanzen@openbsd.org>

use errx(), tabify, and add -o option for original, old dodecahedron play.
(Last feature requested vehemently by Darren Leigh.)


# 12afdeb8 11-Apr-2000 pjanzen <pjanzen@openbsd.org>

the the; some occurrences found by soren@NetBSD.org


# 7faebae9 25-Sep-1999 pjanzen <pjanzen@openbsd.org>

Tidying and minor changes from or based on jsm28@cam.ac.uk's work for the
Linux bsd-games package and NetBSD. Mainly using 'const'.


# 01a83688 17-Aug-1999 millert <millert@openbsd.org>

More <sys/file.h> vs. <fcntl.h> and open() flags fixes.


# d049854f 31-Jul-1999 pjanzen <pjanzen@openbsd.org>

fix a -Wcast-qual warning: jsm28@cam.ac.uk


12