aboutsummaryrefslogtreecommitdiff
path: root/games
Commit message (Collapse)AuthorAgeFilesLines
* Minor typo, fix 2 attributionsDoug Barton2011-06-091-3/+5
| | | | Notes: svn path=/head/; revision=222890
* Convert a file to UTF-8. This only changes a character in theUlrich Spörlein2011-05-141-1/+1
| | | | | | | copyright section and will not require UTF-8 for fortune(6). Notes: svn path=/head/; revision=221909
* fortune(6): fix typos and misspellings.Ulrich Spörlein2011-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 Notes: svn path=/head/; revision=221908
* morse(6): fix typos and space-before-tabsUlrich Spörlein2011-05-141-20/+20
| | | | Notes: svn path=/head/; revision=221907
* Improve the distributeworld target in Makefile.inc1 and update the releaseNathan Whitehorn2011-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. Notes: svn path=/head/; revision=219177
* Move potentially offensive fortune to fortunes-o.Rebecca Cran2011-02-132-4/+4
| | | | | | | | PR: bin/137702 MFC after: 3 days Notes: svn path=/head/; revision=218650
* factor(6): Check return values of BN_* functions.Ulrich Spörlein2010-12-201-4/+8
| | | | | | | Coverity Prevent: CID 4862, 8771, 8772, 8773 Notes: svn path=/head/; revision=216598
* Drop advertising clause in manpages. It was done a long time agoUlrich Spörlein2010-12-068-41/+9
| | | | | | | | | for the source code. Discussed with: core Notes: svn path=/head/; revision=216239
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-2/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* Add advice to new fathers from Thomas Ptacek.Colin Percival2010-09-291-0/+6
| | | | | | | | | Suggested by: wilko Approved by: Thomas Ptacek Security: New parents often feel very insecure. Notes: svn path=/head/; revision=213287
* fix the move so that it matches what the rest of the internetJohn-Mark Gurney2010-09-031-1/+1
| | | | | | | | | says about this game... This move also makes more sense... MFC after: 1 week Notes: svn path=/head/; revision=212168
* "whereis netscape" gives empty output for quite a long time already.Max Khon2010-08-091-1/+1
| | | | | | | Suggest to use "whereis firefox" instead. Notes: svn path=/head/; revision=211094
* grdc(6): de-obfuscate the timekeeping of now/delayUlrich Spörlein2010-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 Notes: svn path=/head/; revision=210827
* grdc(6): Partial backout of r210755Ulrich Spörlein2010-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 Notes: svn path=/head/; revision=210809
* grdc(6): fix timekeeping for user-supplied value nUlrich Spörlein2010-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 Notes: svn path=/head/; revision=210755
* Fix indention of attribution line for some recent additions.Ulrich Spörlein2010-07-301-3/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=210662
* Fix typo in pom(6) manpageUlrich Spörlein2010-07-301-1/+1
| | | | | | | | | PR: docs/148825 Submitted by: Anatoly Borodin MFC after: 1 week Notes: svn path=/head/; revision=210637
* Correct a Cecil Beaton quoteDoug Barton2010-07-251-1/+1
| | | | | | | | PR: docs/148916 Submitted by: Rob Farmer <rfarmer@predatorlabs.net> Notes: svn path=/head/; revision=210484
* Add -p option to have pom(6) print just the percentage, without extra text.Ed Maste2010-07-152-4/+17
| | | | | | | | | PR: bin/51070 Submitted by: Matt Koivisto mkoivisto sandvine com MFC after: 1 week Notes: svn path=/head/; revision=210089
* Taken from actual police videos ...Doug Barton2010-06-261-0/+33
| | | | Notes: svn path=/head/; revision=209531
* random(6): avoid dead assignmentsUlrich Spörlein2010-06-142-2/+2
| | | | | | | Found by: clang static analyzer Notes: svn path=/head/; revision=209157
* mdoc cleanupUlrich Spörlein2010-06-021-0/+1
| | | | | | | | | | Garbage collect unused sections, macros and arguments. Fix prologue and remove empty lines. Found by: mdocml Notes: svn path=/head/; revision=208732
* Sync fortunes with other *BSDsUlrich Spörlein2010-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) Notes: svn path=/head/; revision=205995
* Fix several typos in macros or macro misusage.Ulrich Spörlein2010-03-121-1/+0
| | | | | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor) Notes: svn path=/head/; revision=205076
* s/all ready/already/Wilko Bulte2010-02-261-1/+1
| | | | | | | Submitted by: ru@, gj@ Notes: svn path=/head/; revision=204360
* On the (non)sense of legal disclaimers in emails.Wilko Bulte2010-02-251-0/+16
| | | | Notes: svn path=/head/; revision=204314
* Prefer exit(0) from main over return(0).Ulrich Spörlein2010-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) Notes: svn path=/head/; revision=204178
* Remove the third clause for the Berkeley parts of games, per theWarner Losh2010-02-1511-55/+11
| | | | | | | letter in /COPYRIGHT. Notes: svn path=/head/; revision=203932
* fortune(6) switch to 3-clause BSDL; style(9)Ulrich Spörlein2010-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) Notes: svn path=/head/; revision=203926
* games: make WARNS=6 the default, remove overridesUlrich Spörlein2010-02-1511-14/+1
| | | | | | | | | This also bumps factor, fortune, primes, and random to WARNS=6. Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203923
* fortune(6) make WARNS=6 cleanUlrich Spörlein2010-02-151-106/+71
| | | | | | | | | Fixes taken mostly from DragonflyBSD. Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203922
* morse(6) make WARNS=6 cleanUlrich Spörlein2010-02-151-2/+2
| | | | | | | Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203921
* grdc(6) make WARNS=6 clean and bump accordinglyUlrich Spörlein2010-02-152-18/+16
| | | | | | | Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203920
* Improve time precision for grdc(6):Xin LI2010-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 Notes: svn path=/head/; revision=203760
* Add the definition of MistakeholderGeorge V. Neville-Neil2010-02-091-0/+6
| | | | Notes: svn path=/head/; revision=203703
* Always compile in the speaker code. There's little savings byWarner Losh2010-02-042-4/+3
| | | | | | | | omitting it, and other platforms may implement /dev/speaker in the future. Notes: svn path=/head/; revision=203479
* Our standard "xterm" termcap entry supports colour, so this tip is redundant.Gavin Atkinson2010-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) Notes: svn path=/head/; revision=202115
* For the now-infamous Rumsfeld quote:Doug Barton2010-01-071-3/+3
| | | | | | | | | | | | Change "there're" to "there are" which is consistent with the vast majority of on line references. Remove a spurious trailing " Update the citation text with a suggestion from des. Notes: svn path=/head/; revision=201764
* Fix build: getopt() returns int so use an integer to get the value.Xin LI2010-01-061-2/+2
| | | | Notes: svn path=/head/; revision=201627
* - Move potentially offensive quotes I committed recently to fortunes-o.Stanislav Sedov2010-01-052-14/+15
| | | | | | | | | | - Reference date. - Be more clear on context. Suggested by: dougb Notes: svn path=/head/; revision=201626
* Be able to specify a certain date and/or time for which to calculateEdwin Groothuis2010-01-052-15/+90
| | | | | | | | the phase of the moon. While not worlds best improvements, it will help calendar(1) later on. Notes: svn path=/head/; revision=201613
* Remove more duplicatesDoug Barton2010-01-051-219/+14
| | | | | | | Minor reformatting on a few Notes: svn path=/head/; revision=201601
* - Add two particulary interesting quotes from the past decade.Stanislav Sedov2010-01-041-0/+14
| | | | Notes: svn path=/head/; revision=201477
* Use ANSI C function declarations.Ed Schouten2009-12-291-11/+5
| | | | Notes: svn path=/head/; revision=201176
* Use ANSI C function declarations.Ed Schouten2009-12-292-17/+20
| | | | Notes: svn path=/head/; revision=201175
* Fix a performance bug in factor(6).Tony Finch2009-11-261-21/+27
| | | | | | | | | | | | | | | | | | | Check if large factor is prime before applying Pollard's algorithm; fixes "factor 2147483647111311". Increase base if p-1 algorithm reaches 1; fixes "factor 99999999999991". Testcases from David A Bagley <bagleyd@tux.org>. Fixes from Joseph Myers <jsm@NetBSD.org>. Problem rediscovered by an attempt to factor my phone number. A few other incidental fixes: correct a couple of factually incorrect comments; use ident string macros; move from 4-clause to 3-clause BSD licence (University of California copyright). Obtained from: NetBSD Notes: svn path=/head/; revision=199815
* Properly sort a math fortune after the changes in r193486Doug Barton2009-11-071-26/+26
| | | | | | | Properly sort fortunes added in r174879 and r174959 Notes: svn path=/head/; revision=199025
* Move Warner's very funny comparison of VCS to anal sex into fortunes-oDoug Barton2009-11-072-6/+6
| | | | Notes: svn path=/head/; revision=199023
* Remove the svn:executable property from this fileDoug Barton2009-11-071-0/+0
| | | | Notes: svn path=/head/; revision=199021
* Fix not only the grammar, but also the formatting that makes the gagDoug Barton2009-11-041-1/+2
| | | | Notes: svn path=/head/; revision=198921