summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2014-11-24Adjust ordering; from pjanzenTheo de Raadt
2014-11-24Add two new IUPAC elements, and adjust the atomic weights of some.Theo de Raadt
from pjanzen
2014-11-22Update to gravely outdated places to visit, from Jack SzmidtTheo de Raadt
2014-11-20minor tweaks and add HISTORY; ok jmc@Ingo Schwarze
2014-11-19We don't need no stinkin' non-new-curses code. Also eliminates aKenneth R Westerback
double #include. ok deraadt@ tedu@
2014-11-19Bugfix: run for the specified number of seconds as described in the manual,Ingo Schwarze
not for a fixed number of iterations. This makes a difference on terminals not fast enough to update every second, in particular in -s mode. Inspired by FreeBSD, but implemented differently with less bugs. Patch from pjanzen@, slightly tweaked by me.
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-11-18sigwinch support for resizing. from pjanzenTed Unangst
2014-11-18Center the clock. Based on an idea and an original diff from tedu@,Ingo Schwarze
arithmetics and validity constraints fixed by me. OK pjanzen@ tedu@
2014-11-18HISTORY and AUTHORS; ok pjanzen@ mickey@Ingo Schwarze
2014-11-17Multiple improvements from pjanzen@:Ingo Schwarze
* properly delay scrolling with nanosleep(2), relevant on fast terminals * change timing to end scrolling on the second instead of starting it * error out if the terminal is too small instead of garbling the output * use strtonum(3) rather than strtol(3) and terminate error message with \n
2014-11-16Remove a bogotified commentPhilip Guenther
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2014-11-15Reduce instances of `` '' in manuals.Anthony J. Bentley
troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
2014-11-07Split bcd(6), morse(6), and ppt(6) into three separate manualsIngo Schwarze
since most of the text is different. Improve the SYNOPSIS according to suggestions by jmc@, tweaked by me. Delete a few redundant words, applying a patch from jmc@. Intentionally not doing any other text changes in this commit; for further tweaking in the tree. jmc@, tedu@, and millert@ agree with the general direction, and deraadt@ suspects we are "all grey beard fanatics" (in all caps).
2014-11-06fixup argv handling after getopt conversion. oops.Ted Unangst
2014-11-06-l option to create "modern" 80 column cardsTed Unangst
2014-11-06basic decode functionalityTed Unangst
2014-11-05don't deref timeout if null. from theo buehler.Ted Unangst
2014-11-04make the long line code work with argv tooTed Unangst
2014-11-04fix another signed char bug. while here, toupper() is now safe to callTed Unangst
on any char value.
2014-11-04allow printing longer lines than fit on a card by spilling onto more cards.Ted Unangst
don't negatively index into the table for signed chars. ok pjanzen
2014-11-03use knuth shuffle for better distribution of permutationsTed Unangst
2014-11-03select() to poll() conversionsTheo de Raadt
ok tedu (... other games maintainer absent)
2014-11-03the man page says it is impossible to cheat, but since the shuffle isTed Unangst
lopsided, a sharp counter can detect uneven permutations. fix this by using knuth shuffle. ok mlarkin pjanzen
2014-10-26Add a format specifier for the printf.Brad Smith
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-11Userland reallocarray() audit.Doug Hogan
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-09-28I was mistaken: Nothing's wrong with contractions, they're just a normalIngo Schwarze
feature of the English language, so revert that part of the previous. Requested by jmc@.
2014-09-26Add missing .An macros (found with mandoc -Tlint) andIngo Schwarze
resolve contractions (found with textproc/igor(1)). Work done by Kaspars at Bankovskis dot net during the EuroBSDCon 2014 documentation tutorial. Very minor addition of a few more missing .An macros by myself.
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-16replace beforeinstall target with LINKS; rot13 becomes a hardlink toOkan Demirmen
caesar instead of a symlink. agreed by deraadt, sobrado, guenther
2014-07-13calling this "encryption" makes me cringe. "slightly obfuscated" is better.Ted Unangst
2014-07-13if not seeded explicitly, use arc4random instead. ok deraadtTed Unangst
2014-07-13long live BSD, SYSV is dead!Ted Unangst
2014-07-12mlarkin found disabled code to print a battleship. improve it and enable.Ted Unangst
ok mlarkin
2014-07-12Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42Theo de Raadt
code that catches lots of signals, and then re-enters curses... before exiting.
2014-07-03Mark functions calling exit(3) as __dead.Ingo Schwarze
Issue reported by David Crosby <dave at dafyddcrosby dot com> on tech@. ok miod@
2014-07-01Fix typo in Hoare quotePhilip Guenther
2014-05-25use calloc. from Benjamin BaierTed Unangst
2014-05-09Various cleanup in incard():Ingo Schwarze
* get_line() always returns the same non-NULL pointer, so testing the return value is useless. * Garbage collect the unused variable *line. * Check for end-of-buffer before parsing the next word instead of after it. * Skip strlen() when the length has been measured three lines before anyway. * Do not initialize local variables over and over again. feedback and ok pjanzen@
2014-05-09Fix a mini-bug reported by pjanzen@:Ingo Schwarze
When entering card names, you can use multiple words (like KING OF SPADES). If you entered more than one consecutive blank character between words, the function incard() took that as end-of-string and ignored the rest. Fix this by dropping duplicate blanks up front, in get_line(). Patch simplified by me, ok pjanzen@. While here, use beep(3) in an adjacent line instead of manually fiddling with control characters, suggested by pjanzen@.
2014-05-09pjanzen pointed out that case is irrelevant, so document it; while here,Jason McIntyre
zap an old workaround needed to insert a space - it's now useless (was actually generating a second space); original diff from pjanzen
2014-05-09KNF: unify style and reduce indentation in get_line(), no binary changeIngo Schwarze
ok cmp(1)
2014-05-09After entering an invalid three-letter card name, one letter card namesIngo Schwarze
stopped working because the third letter remained in the buffer, incard() skipped the NUL and used the old garbage. Fix this bug reported by pjanzen@, but in a simpler way than he suggested, by just clearing any trailing garbage from the buffer. ok pjanzen@
2014-05-09Various cleanup:Ingo Schwarze
1. Style: Don't use variables as format strings. NetBSD rev. 1.26 (May 23, 2011) joerg@NetBSD via maintainer pjanzen@. 2. Style: Avoid needless pointer arithmetics. NetBSD rev. 1.27 (Oct 13, 2012) dholland@NetBSD via pjanzen@, who also applied some KNF to the indentation while here. 3. End curses before printing fatal error messages; from pjanzen@.
2014-05-08Do not read from index -1 of an array.Ingo Schwarze
NetBSD rev. 1.16 (Oct 13, 2012) by dholland@NetBSD via maintainer pjanzen@.
2014-04-25This manual was lacking it's most important section, HISTORY.Ingo Schwarze
While here, add .An (author name) macros.