summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2000-11-10seperate -> separate, okay aaron@Niels Provos
2000-09-26Improve handling of multiple commands on one line. Tidy fight parser.Paul Janzen
Handle "all" in one place (almost). Add AUXVERB category and OBJ_PERSON/ OBJ_NONOBJ flags. Most was discussed with jsm@netbsd.org, and some is from him.
2000-09-26No shell escapePaul Janzen
2000-09-24hyphenatePaul Janzen
2000-09-24numerous changes from jsm@netbsd.org:Paul Janzen
static where appropriate, add a few comments, format a bit better, and deal with WEIGHT/CUMBER being zero (and not less).
2000-09-23drop adjectives in parse(), since they're never used.Paul Janzen
tidy a little. fix love() a bit. From conversations with jsm@netbsd.org: Add objflags[] to deal with plurals and a/an usage. Commas don't mean AND if followed by a verb. Check for object presence before trying to lift or eat it.
2000-09-23die() if stdin disappears, rather than just exiting; jsm@netbsd.org.Paul Janzen
dump the end of the buffer if an input line was too long.
2000-09-23off by one; jsm@netbsd.orgPaul Janzen
2000-09-21formatting; from NetBSDPaul Janzen
2000-09-21Fix -W warnings and add room number comments; jsm@netbsd.orgPaul Janzen
2000-09-17Fewer segfaults ("take all and all", "wear wear"), better parsingPaul Janzen
(e.g. disambiguation of "drop body"). Also, use "a" or "an" correctly, don't overflow the words array, and don't kick items you're wearing.
2000-09-08bools should only be TRUE or FALSE. Negative numbers are right out.Paul Janzen
2000-08-20correct Bloom County quotePaul Janzen
2000-08-05Remove a little redundant and slightly wrong codePaul Janzen
2000-08-05typo; cheddar@yakko.cs.wmich.eduTheo de Raadt
2000-08-02$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zeroTodd C. Miller
2000-07-24Rename move() to moveplayer() to avoid clashing with curses;Paul Janzen
from mycroft@netbsd.org
2000-07-24printf() and %s pedantry, from itojun channelling kris@freebsdPaul Janzen
2000-07-23Handle EOF on stdin.Paul Janzen
2000-07-23curses.c is all ifdef'ed out, so there's no reason to compile it.Paul Janzen
2000-07-23oopsPaul Janzen
2000-07-23Die more cleanly if stdin can't be read from.Paul Janzen
2000-07-23Code cleanups (some from NetBSD), typo fix.Paul Janzen
Don't barf if stdin hits EOF. Install cfscores in /var/games if one isn't already there.
2000-07-23Avoid calling functions that can call the exit-on-error handler from thePaul Janzen
handler; use STD*_FILENO rather than 0-2.
2000-07-05nanosleep() no longer returns earlyPaul Janzen
2000-07-03Remove duplicate and correct original: Anton Berezin <tobez@tobez.org>Paul Janzen
and Martin J. Laubach <mjl@netbsd.org>
2000-07-03A little more select() reinitialization.Paul Janzen
2000-07-03Finding bugs in battlestar is like shooting fish in a barrel.Paul Janzen
Don't overflow beenthere[]. Add "verbose" option. Fix spelling (including embedded hyphens in descriptions) and grammar. "Kill" will now use the laser if you have no cutting implements. Formatting. You can do more things to the bathing goddess. A little less guess-the-word. Occasionally better error messages, particularly with "all" when nothing applies. "kick door" no longer segfaults. Nor does "kill door". More bugs remain...
2000-06-30re-initialize timeout before each invocation of select()Paul Janzen
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
2000-06-29Prune some obsolete defines, in particular VT100. Eventually curses willPaul Janzen
replace termios. Use system-defined limits for path lengths and usernames. Use strlcpy() for convenience and to avoid a possible buffer overflow or two. Various small tweaks.
2000-06-29use SEEK_SET; improve an error message.Paul Janzen
2000-06-29use errx(), tabify, and add -o option for original, old dodecahedron play.Paul Janzen
(Last feature requested vehemently by Darren Leigh.)
2000-04-25Missing MLINKSMarc Espie
2000-04-21documentation: refer to terminfo, not termcap, where appropriate.Paul Janzen
2000-04-11tidying, accuracy, and duplicate removalPaul Janzen
2000-04-11the the; some occurrences found by soren@NetBSD.orgPaul Janzen
2000-04-08Handle EOF more cleanlyPaul Janzen
2000-04-08Fix the card shuffle/draw algorithm. Patch only slightlyPaul Janzen
modified from that given by John Darrow in NetBSD PR 9651.
2000-04-07Missed a couple corrections from NetBSD last timePaul Janzen
2000-04-07Remove unused ifdef missed previouslyPaul Janzen
2000-04-07Typos and punctuation; most from FreeBSD, one from NetBSD, and a couplePaul Janzen
bonus ones discovered while editing the file.
2000-04-07Alternate (valid) element names from Dan KoranyiPaul Janzen
2000-04-07typoPaul Janzen
2000-04-07Fix operator precedence errors: NetBSD PR 9698.Paul Janzen
2000-02-10stdcDavid Leonard
2000-01-25support arrow keys (cgd@netbsd.org); use select() rather than alarm() forPaul Janzen
timing
2000-01-25use only non-deprecated curses (i.e., no termcap) and tidy a little; mostlyPaul Janzen
from jsm@netbsd.org
2000-01-24parse command line more carefully; watch out for nanosleep() ending aPaul Janzen
little too early; and do some general tidying
2000-01-21Hide cursor if possiblePaul Janzen