summaryrefslogtreecommitdiffstats
path: root/tetris/tetris.h
Commit message (Collapse)AuthorAgeFilesLines
* tetris: Use arc4random_uniform instead of modulo for better randomnessnia2020-07-211-2/+2
|
* Center game board on screen. OK from christos@.nat2016-03-031-1/+2
|
* Provide an option to restore traditional black-and-white mode.pgoyette2014-07-131-1/+2
|
* Add a little color. In order to minimize logic differences, keep 0 as thechristos2014-06-111-1/+2
| | | | empty board value, and since 7 is white, turn white into black (0) when painting.
* sprinkle staticdholland2009-08-121-2/+1
|
* ANSIfy function declarations.dholland2009-05-251-2/+2
| | | | | Some object file diffs, but they are harmless. (Mostly they seem to come from internal counters in gcc... and in one case the order of two instructions was harmlessly swapped, which is odd and annoying.)
* Remove uses of __P.jsm2004-01-271-4/+4
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-6/+2
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Declare variables as extern in headers rather than using linker commons.jsm2000-01-011-9/+9
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-1/+4
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Add use of `const' where appropriate to the games.jsm1999-09-081-7/+7
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* only show preview if the -p option is givenhubertf1999-01-031-3/+4
|
* Add previewing of next shape. Old (previous) behaviour can behubertf1999-01-031-1/+4
| | | restored by compiling with NO_PREVIEW defined.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-2/+2
|
* NetBSD RCS Idscgd1995-04-221-0/+2
|
* ascii tetris!cgd1994-05-061-0/+169