summaryrefslogtreecommitdiffstats
path: root/games
Commit message (Collapse)AuthorAgeFilesLines
* Add a couple of nice quotes from Edward Everett Haledougb2012-07-291-0/+9
|
* Partial revert of previous commit as some of the changes were noteadler2012-05-101-4/+5
| | | | | | | | | newbie-friendly. Requested by: jhb, gcooper Approved by: cperciva (implicit) MFC after: 3 days X-MFC-With: r235209
* Add a few new tips and update some old ones to more modern commandseadler2012-05-091-17/+12
| | | | MFC after: 1 week
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-1/+1
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* o Preserve argv[0] to use it later in usage().maxim2012-01-281-2/+3
| | | | | | PR: bin/164570 Submitted by: Klaus Aehlig MFC after: 1 week
* Reencode morse.c to UTF-8. This does not make it Unicode aware.uqs2012-01-151-85/+90
| | | | | | No changes in resulting object file. Moved user-visible symbols into comment table, so you can see all chars, not just the ones matching your (fallback) locale.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-3/+3
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* 1. Correct capitalization of the nobility particle fordougb2011-12-281-9/+9
| | | | | | | | | | | Francois de La Rochefoucauld introduced in r228909 [1],[2] 2. Change c-cedilla introduced in the same commit to ASCII c since non-UTF-8 terminals will choke on the non-ASCII text. [2],[3] Pointed out by: bf [1] Reviewed by: French-speakers on #bsdcode [2] Requested by: uqs [3]
* Prefer ASCII apostrophes over Unicode ones like the rest of the file.uqs2011-12-281-1/+1
|
* 1. Remove a bunch of duplicates. Usually this means removing them fromdougb2011-12-273-683/+39
| | | | | | | | | | | | | fortunes, but occasionally remove them from the other 2 files when they are not offensive, or not murphy'ish enough. Where the version in fortunes had better attribution and/or formatting, copy it over. 2. Fix a few typos 3. Use the full name of François De La Rochefoucauld, fix one of his quotes, and remove the duplicate of it.
* In games/factor/factor.c, fix a warning about a format string not beingdim2011-12-161-1/+1
| | | | | | a literal. MFC after: 1 week
* Add static keywords to variables and functions where possible in games/.ed2011-11-057-153/+151
| | | | | This allows us to detect unused functions and variables and allows the compiler to do a better job at optimisation.
* Fix the text and attribution of the poem "Youth" by Samuel Ullman.dougb2011-10-291-19/+31
| | | | | | | | Our copy was a bastardization of the "older" (probably original?) and shorter version of the poem; and the "newer" version that is better known, and arguably more popular. Standardize on the latter. Cf. http://www.bartleby.com/73/2099.html
* Minor typo, fix 2 attributionsdougb2011-06-091-3/+5
|
* Convert a file to UTF-8. This only changes a character in theuqs2011-05-141-1/+1
| | | | copyright section and will not require UTF-8 for fortune(6).
* fortune(6): fix typos and misspellings.uqs2011-05-149-67/+11
| | | | | | | While here, drop words in the spelling files that are no longer used anywhere. Speling errors found via: codespell from Lucas De Marchi
* morse(6): fix typos and space-before-tabsuqs2011-05-141-20/+20
|
* Improve the distributeworld target in Makefile.inc1 and update the releasenwhitehorn2011-03-021-0/+1
| | | | | | | | | | infrastructure to use it. make distributeworld can now be used without preparing its environment first and installs games into its distribution using the regular make distribute logic instead of post-processing with a script. Also add two new targets, packageworld and packagekernel, that tar up the results of distributeworld and distributekernel (also new), respectively.
* Move potentially offensive fortune to fortunes-o.brucec2011-02-132-4/+4
| | | | | PR: bin/137702 MFC after: 3 days
* factor(6): Check return values of BN_* functions.uqs2010-12-201-4/+8
| | | | Coverity Prevent: CID 4862, 8771, 8772, 8773
* Drop advertising clause in manpages. It was done a long time agouqs2010-12-068-41/+9
| | | | | | for the source code. Discussed with: core
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-2/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Add advice to new fathers from Thomas Ptacek.cperciva2010-09-291-0/+6
| | | | | | Suggested by: wilko Approved by: Thomas Ptacek Security: New parents often feel very insecure.
* fix the move so that it matches what the rest of the internetjmg2010-09-031-1/+1
| | | | | | says about this game... This move also makes more sense... MFC after: 1 week
* "whereis netscape" gives empty output for quite a long time already.fjoe2010-08-091-1/+1
| | | | Suggest to use "whereis firefox" instead.
* grdc(6): de-obfuscate the timekeeping of now/delayuqs2010-08-031-6/+8
| | | | | | | | | - 'now' only contains current time readings - delay is only used as parameter to nanosleep - prev_sec contains the time_t of the previous loop iteration Submitted by: bde MFC after: 2 weeks
* grdc(6): Partial backout of r210755uqs2010-08-031-18/+24
| | | | | | | | | | | | | | | | | The previous revision was flawed in numerous ways: - the if condition would depend on garbage stack values - grdc(6) would loop n times, not n seconds. This only makes a difference if it takes more than 1 second to recalculate/redraw the display. - style(9) violations The following change adds argument checking and tracks the elapsed time between loops explicitly and will exit after roughly n seconds. While here sort headers and remove bogus #ifndef Submitted by: bde MFC after: 2 weeks
* grdc(6): fix timekeeping for user-supplied value nuqs2010-08-021-18/+15
| | | | | | | | | - Keep timespec 'now' and 'delay' separate to avoid confusion - Increase user-supplied n to run _at least_ n seconds, not max n PR: bin/149130 (based on) Submitted by: Andy Farkas MFC after: 2 weeks
* Fix indention of attribution line for some recent additions.uqs2010-07-301-3/+3
| | | | MFC after: 3 days
* Fix typo in pom(6) manpageuqs2010-07-301-1/+1
| | | | | | PR: docs/148825 Submitted by: Anatoly Borodin MFC after: 1 week
* Correct a Cecil Beaton quotedougb2010-07-251-1/+1
| | | | | PR: docs/148916 Submitted by: Rob Farmer <rfarmer@predatorlabs.net>
* Add -p option to have pom(6) print just the percentage, without extra text.emaste2010-07-152-4/+17
| | | | | | PR: bin/51070 Submitted by: Matt Koivisto mkoivisto sandvine com MFC after: 1 week
* Taken from actual police videos ...dougb2010-06-261-0/+33
|
* random(6): avoid dead assignmentsuqs2010-06-142-2/+2
| | | | Found by: clang static analyzer
* mdoc cleanupuqs2010-06-021-0/+1
| | | | | | | Garbage collect unused sections, macros and arguments. Fix prologue and remove empty lines. Found by: mdocml
* Sync fortunes with other *BSDsuqs2010-03-317-1342/+1311
| | | | | | | | | | | | | | | | | | | | | | | - Spelling errors - Typographical fixes - Consistent attributions - Use Jr. more consistently - Capitalization of dictionary-like entries - Sorting using tools/do_sort - Remove duplicate fortunes - Style according to the Notes file - Reflect correct default fortune name in Notes - Remove some no longer needed spelling hints - Drop latin1 characters (sorry Mårten) This is a partial sync against the DragonflyBSD sources, where a lot of fixes from Free, Net and OpenBSD were merged previously. Only about 50% of the changes originate from there, the rest was done by dougb and yours truly. Partial review by: wilko (earlier version), ed (dito) In collaboration with: dougb Approved by: ed (co-mentor)
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+0
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* s/all ready/already/wilko2010-02-261-1/+1
| | | | Submitted by: ru@, gj@
* On the (non)sense of legal disclaimers in emails.wilko2010-02-251-0/+16
|
* Prefer exit(0) from main over return(0).uqs2010-02-211-1/+1
| | | | | | | | Although not explicitly mentioned in style(9), it allows for easier grepping of exit points. This reverts part of r203926. Requested by: des Approved by: philip (mentor)
* Remove the third clause for the Berkeley parts of games, per theimp2010-02-1511-55/+11
| | | | letter in /COPYRIGHT.
* fortune(6) switch to 3-clause BSDL; style(9)uqs2010-02-157-267/+244
| | | | | | | This reduces the diff to other *BSD and makes it possible to actually see the code differences. Approved by: ed (Co-mentor)
* games: make WARNS=6 the default, remove overridesuqs2010-02-1511-14/+1
| | | | | | This also bumps factor, fortune, primes, and random to WARNS=6. Approved by: ed (Co-mentor)
* fortune(6) make WARNS=6 cleanuqs2010-02-151-106/+71
| | | | | | Fixes taken mostly from DragonflyBSD. Approved by: ed (Co-mentor)
* morse(6) make WARNS=6 cleanuqs2010-02-151-2/+2
| | | | Approved by: ed (Co-mentor)
* grdc(6) make WARNS=6 clean and bump accordinglyuqs2010-02-152-18/+16
| | | | Approved by: ed (Co-mentor)
* Improve time precision for grdc(6):delphij2010-02-101-2/+15
| | | | | | | | | | | | | | | | | | | Traditionally, grdc would obtain time through time(3) which in turn gets only the second part of clock (CLOCK_SECOND), and sleep for 1 second after each screen refresh. This approach would have two problems. First, we are not guaranteed to be waken up at the beginning of a whole second, which will typically exhibit as a "lag" on second number. Second, because we sleep for whole second, and the refresh process would take some time, the error would accumulate from time to time, making the lag variable. Make grdc(6) to use time(3) to get time only at the beginning, and sample time in CLOCK_REALTIME_FAST granularity after refreshing, and use the nanosecond part to caculate how much time we want to sleep. PR: bin/120813 MFC after: 1 month
* Add the definition of Mistakeholdergnn2010-02-091-0/+6
|
* Always compile in the speaker code. There's little savings byimp2010-02-042-4/+3
| | | | | omitting it, and other platforms may implement /dev/speaker in the future.
* Our standard "xterm" termcap entry supports colour, so this tip is redundant.gavin2010-01-111-12/+0
| | | | | | | | As it happens, "xterm-color" has just been an alias for "xterm" since src/share/termcap/termcap.src 1.131 in September 2002. PR: docs/132959 Approved by: ed (mentor)
OpenPOWER on IntegriCloud