.TH tetris "" "" "X Application"
.PC "Yet another Tetris game on X"
.fi
\fBtetris
[\-background \fIcolor\^\fB]
[\-beep]
[\-bigFont \fIfont\^\fB]
[\-display \fIdisplay\^\fB]
[\-foreground \fIcolor\^\fB]
[\-geometry \fIgeometry\^\fB]
[\-iconGeometry \fIgeometry\^\fB]
[\-l \fIstart_level\^\fB]
[\-p \fIprefilled_lines\^\fB]
[\-s]
[\-showNext]
[\-tinyFont \fIfont\^\fB]
[\-u \fIname\^\fB]
[\-xrm \fIresource\^\fB]\fR
.PP
.B tetris
plays the standard game of Tetris.
After play is concluded, it displays
the top 15 players, with each player having no more than three scores.
.PP
You can use any of three sets of keys to manipulate the blocks.
The first is for right-handed players:
.IP \fBJ\fR
Move block left.
.IS \fBL\fR
Move block right.
.IS \fBK\fR
Rotate block.
.IS \fB<space>\fR
Drop block.
.PP
The next set is for left-handed players:
.IP \fBS\fB
Move block left.
.IS \fBF\fR
Move block right.
.IS \fBD\fR
Rotate block.
.IS \fB<space>\fR
Drop block.
.PP
The last set can be used by either:
.IP \*(LA
Move block left.
.IS \*(RA
Move block right.
.IS \*(UA
Rotate block.
.IS \*(DA
Drop block.
.PP
The following keys control play:
.IP \fB+\fR
Accelerate play.
.IP \fB\-\fR
Slow play.
.IP \fBB\fR
Toggle beeping.
.IP \fBN\fR
Toggle the ``show-next'' feature.
.IP \fBP\fR
Pause the game and iconify the window.
.SH "Command-line Options"
.B tetris
recognizes the following command-line options:
.IP \fB\-s\fR
List all the recorded scores, then exit.
.IP "\fB\-u \fIname\fR\fR"
Play the game under the alias
.IR name ,
instead of your login identifier.
.IP "\fB\-l \fIlevel\fR"
Start
.B tetris
at
.IR level .
This is equivalent to setting the resource
.BR startLevel .
.IP "\fB\-p \fIlines\fR"
Start the game with some of the lines randomly filled.
This is equivalent to setting the resource
.BR preFilledLines .
.IP \fB\-showNext\fR
Start the game in ``show next'' mode.
This is equivalent to setting the resource
.BR showNext .
.IP \fB\-beep\fR
Turn on beeping.
This is equivalent to setting the resource
.BR beep .
.IP "\fB\-display \fIhost\^\fB:\fIdisplay\fR"
Play the game on
.IR display .
.IP "\fB\-geometry [+-]\fIX\^\fB[+-]\fIY\fR"
Sets the initial position of the
.B tetris
window.
.I X
and
.I Y
give the coordinates of the window upper-left corner.
This is equivalent to setting the resource
.BR geometry .
.IP "\fB\-iconGeometry [+-]\fIX\^\fB[+-]\fIY\fR"
Sets the initial position of the
.B tetris
icon.
.I X
and
.I Y
give the coordinates of the window upper-left corner.
This is equivalent to setting the resource
.BR iconGeometry .
.IP "\fB\-background \fIcolor\fR"
.IS "\fB\-bg \fIcolor\fR"
Set the background of the window to
.IR color .
The default is white.
This is equivalent to setting the resource
.BR background .
.IP "\fB\-foreground \fIcolor\fR"
.IS "\fB\-fg \fIcolor\fR"
Set the foreground of the window to
.IR color .
The default is black.
This is equivalent to setting the resource
.BR foreground .
.IP "\fB\-bigFont \fIfont\fR"
Use
.I font
to draw titles and important messages.
This is equivalent setting the resource
.BR bigFont .
.IP "\fB\-tinyFont \fIfont\fR"
Use
.I font
to write status information.
This is equivalent to setting resource
.BR tinyFont .
.IP "\fB\-xrm \fIresource\fR"
Set
.IR resource
within the server's data base.
.SH "See Also"
.B
X applications,
xtetris
.R
.SH Notes
.II "Qiang Alex Zhao"
.B tetris
was written by Qiang Alex Zhao (azhao@cs.arizona.edu), of the
University of Arizona.
.II "Pulley, Harry"
It was ported to \*(CO by Harry C. Pulley, IV.
.PP
Copyright \(co 1992-93 by Qiang Alex Zhao.
If you send the author a report or fix of a bug,
please note that his first name is
.I not
spelled ``Quiang''.
For updated source code, see
.B export.lcs.mit.edu
under
.BR /contrib .
