Commit Graph

1974 Commits

Author SHA1 Message Date
dholland cde3d9a6b5 tetris(6) is not limited to CRT displays. noted by tnn 2016-03-12 03:14:59 +00:00
dholland d548b4af6b snake(6) supports LCD displays too. (noted by tnn) 2016-03-12 03:13:52 +00:00
nat ff18370b0b Center game board on screen. OK from christos@. 2016-03-03 21:38:55 +00:00
christos 099f03595b PR/50411: Rin Okuyama: fix two bugs:
- clear blocks in the 0 row, otherwise the pile up forever.
- black (white) blocks are not shown as "next shape":
2015-11-06 19:53:37 +00:00
dholland d1bc0cfc4f remove cpp abuse 2015-08-17 17:17:01 +00:00
wiz 66d1cd0cb5 Use An in AUTHORS section. 2015-07-26 22:22:24 +00:00
pgoyette f54820aed9 Sync descriptive text with actual game definition. 2015-07-23 01:19:20 +00:00
nat 305919e320 Fixes color scheme white on black and black on white.
This commit was approved by christos@
2015-07-07 22:53:25 +00:00
dholland 8d2578da11 add one 2015-06-27 08:07:46 +00:00
dholland 5dcb186afb Move game logic out of the file with the curses code. 2015-06-25 05:33:02 +00:00
dholland 01dcf47e23 Abolish the foul practice of including every header in existence via a
single central "include.h". Use only headers that are actually needed.
2015-06-19 06:02:31 +00:00
dholland cd1ecdeaa3 add -b to usage, from leot 2015-06-13 04:53:13 +00:00
dholland bf0b86145a Fix the list of keys across the bottom so it fits on an 80-column screen
again. Fixes PR 49937.

HI MRG
2015-06-13 04:15:51 +00:00
christos 6a960c88c2 PR/49850: Nikolai Lifanov: Document acronyms-o 2015-04-22 15:04:57 +00:00
wiz f290bb1c88 Fix typo, remove trailing space. 2015-04-22 14:00:46 +00:00
christos ad5d6863f7 obey $ACRONYMDB like before 2015-04-21 23:56:30 +00:00
christos 96276379e9 Add -o flag. 2015-04-21 22:49:46 +00:00
snj 23af7a0ab0 properly pluralize. 2015-04-03 07:28:41 +00:00
dholland 231a9fdc87 Avoid runon sentences. 2015-03-25 16:23:02 +00:00
wiz 076a2da7d8 Use Pp (mdoc) instead of sp (roff).
Use An in AUTHORS section.
2015-02-19 08:51:14 +00:00
mrg 2343aabb74 add a 'down' key to tetris, defaulting to 'n'. it move the block down
a line, if it fits.  like most other tetris games have.

minor clean up of magic number usage while here.
2015-02-19 02:27:30 +00:00
dholland 8e005c7126 typo 2015-02-12 06:24:21 +00:00
wiz 56d805f1de Fix typo. From kspillner@OpenBSD, forwarded by jmc@OpenBSD. 2015-02-07 09:59:47 +00:00
dholland e7288b6692 add something 2015-01-06 22:38:41 +00:00
jnemeth 2e0522b1d5 PR/49513 - Henning Petersen -- tyop 2014-12-29 10:38:52 +00:00
jnemeth f047653252 PR/49513 - Henning Petersen -- tyop 2014-12-29 10:27:03 +00:00
jnemeth 7344513002 PR/49451 - Ben Gergely -- add missing attribution 2014-12-05 23:21:23 +00:00
snj bd4986da66 English 2014-10-18 06:42:31 +00:00
snj 75815ac0a1 1) "It's its"
2) Whitespace
3) You're all too old to be confusing "your" with "you're"
2014-10-18 06:40:18 +00:00
wiz e5079a7b49 usage police 2014-10-04 13:15:50 +00:00
ast bfe1fbfe02 Imported and adapted from FreeBSD svn r272166 and r272207; this fixes
false positives for products of primes larger than 2^16. For example,
before this commit:

  $ /usr/games/primes 4295360521 4295360522
  4295360521
but
  $ /usr/games/factor 4295360521
  4295360521: 65539 65539

or
  $ /usr/games/primes 3825123056546413049 3825123056546413050
  3825123056546413049
yet
  $ /usr/games/factor 3825123056546413049
  3825123056546413049: 165479 23115459100831

or
  $ /usr/games/primes 18446744073709551577
  18446744073709551577
although
  $ /usr/games/factor 18446744073709551577
  18446744073709551577: 139646831 132095686967

Incidentally, the above examples show the smallest and largest cases that
were erroneously stated as prime in the range 2^32 .. 3825123056546413049
.. 2^64; the primes(6) program now stops at 3825123056546413050 as
primality tests on larger integers would be by brute force factorization.

In addition, special to the NetBSD version:
. for -d option, skip first difference when start is >65537 as it is incorrect
. corrected usage to mention both the existing -d as well as the new -h option

For original FreeBSD commit message by Colin Percival, see:
http://svnweb.freebsd.org/base?view=revision&revision=272166
2014-10-02 21:36:37 +00:00
christos 355dba76e5 adhere to stricter groff checking:
- don't specify distance separation between this and the next column for
  the last column, since there's no next column.
- don't pop environment you did not push
2014-09-30 20:46:59 +00:00
wiz 2a65137f55 Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
wiz 3039a5421b Bump date for -c (exactly one year after previous bump) 2014-07-15 16:17:15 +00:00
pgoyette 990812d69b At suggestion of christos@, use -b for b&w rather than -c 2014-07-13 17:38:38 +00:00
pgoyette 68006fcab2 Provide an option to restore traditional black-and-white mode. 2014-07-13 16:23:55 +00:00
dholland b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
dholland c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
mrg ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
christos a5d2792650 Add a little color. In order to minimize logic differences, keep 0 as the
empty board value, and since 7 is white, turn white into black (0) when
painting.
2014-06-11 16:47:39 +00:00
skrll eec6f7013a Remove unused. 2014-03-30 09:11:50 +00:00
dholland 9cdcb5fdab Use bool (not int) for a boolean return type. 2014-03-30 05:53:12 +00:00
dholland f2f2077532 Use the curses beep function instead of writing a beep to stdout. 2014-03-30 05:48:35 +00:00
dholland 3d0af5d09f curses has printw, use it. 2014-03-30 05:46:54 +00:00
dholland 7a606e3ec4 don't use the preprocessor to rename curses functions, just call them 2014-03-30 05:44:55 +00:00
dholland 290fd62765 fix off-by-one 2014-03-30 05:41:50 +00:00
dholland ea57ad9ea1 Instead of #define STDIN 0, use STDIN_FILENO. 2014-03-30 05:38:13 +00:00
dholland c560d1b163 Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
2014-03-30 05:30:28 +00:00
dholland b57df0f022 Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
2014-03-30 05:14:47 +00:00
dholland 5c657efd0e I wish the socket API didn't require casts. Easy to mess them up. 2014-03-30 04:57:37 +00:00