These are the source files for the tetrii applet. Remember
it was written under 1.3, so it uses some depracated functionality, and
may have problems or not work under some Java implementations.
-
tetrii.java - the main applet.
It runs the setup and customization stuff, starts the Boards, and reports
the score.
-
Board.java - A single tetris board.
It runs a timer and drops pieces, reads input and passes it on to the pieces,
and reports scoring back to its parent.
-
Piece.java - Static classes, one
for each orientation for each piece. They know their colors, geometry,
transformations, and point value.
-
Cell.java - A single square on a
tetris board. It knows its color, whether it is occupied or not, and who
its neighboring cells are.
-
Constants.java - Constants to
be used in several classes.
-
help.java - a popup window to display
help text. Uses the file tetrii.help.
-
my.java - various general useful functions.
-
variableInt.java - a simple
class that allows changing an integer in a call. Analogous to passing an
address to a C function.