summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2015-09-27Delete pointless NOSTRICT commentsPhilip Guenther
2015-09-27Make prompt() properly printf-like, eliminating empty dummy argsPhilip Guenther
2015-09-27Annotate funcs with __attribute__((printf(...))) and clean up the fallout:Philip Guenther
* lots of foo(str) --> foo("%s", str) transformations * one totally insane foo(fmt, ap) --> vfoo(fmt, ap) conversion: how did this ever work? * prefer const char[] over char* for static format strings, as it lets gcc check the format and eliminates an unnecessary pointer ok beck@
2015-09-27Delete obsolete lint commentsPhilip Guenther
ok beck@
2015-09-27Make -Wformat=2 happier with a few foo(str) -> foo("%s", str) fixesPhilip Guenther
ok beck@
2015-09-25Fix -D in the synopsis line:Ingo Schwarze
* Whitespace is allowed between -D and the variable name. * Each -D option only takes one single assignment. * Drop excessive .Sm macro.
2015-09-25use | rather than / for alternatives and some macro fixesIngo Schwarze
2015-09-16big blocks need braces for supportTed Unangst
2015-09-12use .Cm rather than .Ar for fixed string argumentsIngo Schwarze
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-09-07cosmetic fixesTed Unangst
2015-08-26remove #ifdef OK_TO_WRITE_DISK which isn't used by default.Sebastien Marie
and few disambiguisations suggested by cc(1) - parentheses around && within || - explicit braces to avoid ambiguous 'else' ok doug@
2015-08-26Replace clock_gettime UPTIME with MONOTONIC to improve worm portability.Rafael Zalamena
ok deraadt@, guenther@.
2015-08-26Improve robots(6) by using timespec*() functions, replacing gettimeofday()Rafael Zalamena
with clock_gettime(MONOTONIC) to avoid clock changes and replacing poll() with ppoll() to deal better with timespec. ok guenther@.
2015-08-24Fix cheating bug by using unused time variables and replace poll() withRafael Zalamena
ppoll() to better use the timespec struct. ok deraadt@.
2015-08-22remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok ↵Theo de Raadt
millert krw
2015-08-21KNFTheo de Raadt
2015-07-27use file system path (.Pa) semantic markup macros where appropriate.Igor Sobrado
2015-07-20Sometimes, the computer's move was printed, but the computer's men didn'tIngo Schwarze
actually move. This happened when "swap" was called earlier, and then later in the final call to makmove(), swapping back would have been required, but was erroneously denied. Patch sent in pjanzen@. It looks like the bug was already present in the original version in 4.1a BSD in 1982.
2015-07-16flower & bird adjustments for Nunavut, from pjanzenTheo de Raadt
2015-06-26/home/otto/okOtto Moerbeek
2015-05-20Fix sign compare bug introduced when rnum() was redefined to useTodd C. Miller
arc4random_uniform(). From pjanzen@, OK deraadt@
2015-04-04from snj, netbsd -r1.56: "properly pluralize"Jason McIntyre
2015-03-25Fix double word in quote from Ken Olsen.Jeremie Courreges-Anglas
"There is no reason for any individual to have a computer in their home."
2015-03-17Eliminate use of TM_YEAR_BASE. OK guenther@ deraadt@ miod@Todd C. Miller
2015-03-15tzfile.h is an internal header that should never have been installed.Todd C. Miller
What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
2015-03-13remove the first comma from constructs like ", and," and ", or,": you can useJason McIntyre
"and" and "or" to join sentence clauses, and you can use commas, but both hinders reading;
2015-03-12Delete cribbage logging. Was never enabled and no point in enabling it.Anthony J. Bentley
ok tedu@
2015-03-09make the worm grow faster on larger terminals. this is more fun thanTed Unangst
starting with an enormous pile of worm at the start.
2015-02-18improve ship placement interface. per the instructions, 2468 should work,Ted Unangst
but the first loop didn't allow them. also allow arrow keys to work, since they work in other modes.
2015-02-18no reason for magic numbers to be octal. just drop the leading 0.Ted Unangst
still equally magic.
2015-02-18don't cast function arguments; use reallocarray in one placeTed Unangst
2015-02-18convert calloc/realloc pairs to reallocarrayTed Unangst
2015-02-18Don't abuse Aq for arguments, and use a prettier escape for dashes.Anthony J. Bentley
ok schwarze@
2015-02-17Mark up email addresses semantically with Mt.Anthony J. Bentley
ok schwarze@
2015-02-10the stem of the b was not descending all the way to the baseline.Ted Unangst
now `/usr/games/banner libressl` is extra purty. i should credit miod for reminding me of this program's existence by requesting that i not paste its output into chat.
2015-02-07allow ctrl-d to quit after a game as wellTed Unangst
2015-02-07use unsigned char type to avoid many castsTed Unangst
2015-02-07by popular request, stop giving away numeric letters. no more will theTed Unangst
appearance of 509 in a symbol name tell you what letter to guess first.
2015-02-07unsigned char for ctype functionsTed Unangst
2015-02-07Ignore ELF symbols containing dots or dollar signs. Suggested by millert@Miod Vallat
2015-02-07clear to end of line when printing error messages so that previousTed Unangst
messages don't remain and pollute the line
2015-02-07By popular demand, allow any ELF file to be passed to -d as a word list, inMiod Vallat
which case its symbols will be used. Which means that `hangman -k' is equivalent to `hangman -d /bsd' now. ok beck@ tedu@
2015-02-06Fix small typo found when testing tedu@'s fortune -o -m change.Kent R. Spillner
ok jmc@
2015-02-06unsigned char is the correct type for ctype functionsTed Unangst
2015-02-06no space after #Ted Unangst
2015-02-06remove TRUE/FALSE in favor of the true boolean values 1/0Ted Unangst
2015-02-06Debug, whatever it's worth, is clearly not a booleanTed Unangst
2015-02-06cleanup a few bitsTed Unangst
2015-02-06remove no regex ifdef. everybody loves regex.Ted Unangst