1*57278Sbostic.\" Copyright (c) 1992 The Regents of the University of California. 2*57278Sbostic.\" All rights reserved. 3*57278Sbostic.\" 4*57278Sbostic.\" %sccs.include.redist.man% 5*57278Sbostic.\" 6*57278Sbostic.\" @(#)tetris.6 5.1 (Berkeley) 12/22/92 7*57278Sbostic.\" 8*57278Sbostic.Dd "" 9*57278Sbostic.Dt TETRIS 6 10*57278Sbostic.Os 11*57278Sbostic.Sh NAME 12*57278Sbostic.Nm tetris 13*57278Sbostic.Nd the game of tetris 14*57278Sbostic.Sh SYNOPSIS 15*57278Sbostic.Nm 16*57278Sbostic.Op level 17*57278Sbostic.Op \-keys 18*57278Sbostic.br 19*57278Sbostic.Nm 20*57278Sbostic0 21*57278Sbostic.Sh DESCRIPTION 22*57278SbosticThe 23*57278Sbostic.Nm 24*57278Sbosticcommand runs display-based game which must be played on a CRT terminal. 25*57278SbosticThe object is to fit the shapes together forming complete rows, 26*57278Sbosticwhich then vanish. 27*57278SbosticWhen the shapes fill up to the top, the game ends. 28*57278SbosticYou can optionally select a level of play, or custom-select control keys. 29*57278Sbostic.Pp 30*57278SbosticTo select a level of play, 31*57278Sbosticspecify a number from 1 to 9 as the first argument. 32*57278SbosticThe default level is 2; 33*57278Sbostichigher levels mean a faster game, as described below. 34*57278SbosticIf you specify multiple levels, only the first is used. 35*57278Sbostic.Pp 36*57278SbosticThe default control keys are as follows: 37*57278Sbostic.Bl -tag -width <space>x 38*57278Sbostic.It j 39*57278Sbosticmove left 40*57278Sbostic.It k 41*57278Sbosticrotate 1/4 turn counterclockwise 42*57278Sbostic.It l 43*57278Sbosticmove right 44*57278Sbostic.It <space> 45*57278Sbosticdrop 46*57278Sbostic.It p 47*57278Sbosticpause 48*57278Sbostic.It q 49*57278Sbosticquit 50*57278Sbostic.El 51*57278SbosticThese can be changed by putting the replacements on the command line, 52*57278Sbosticpreceded by a hyphen (``-''), in the order above 53*57278Sbostic(but note that if you want to specify a space, 54*57278Sbosticyou must quote it from the shell). 55*57278SbosticFor example, running: 56*57278Sbostic.D1 1 "tet 2 -jkl\e pq" 57*57278Sbosticwill play at level 2, using the default key assignments. 58*57278SbosticSelecting the same key twice in the specification string causes an error. 59*57278SbosticThe current key settings are displayed at the bottom of the screen during play. 60*57278Sbostic.Sh PLAY 61*57278SbosticAt the start of the game, a shape will appear at the top of the screen, 62*57278Sbosticfalling one square at a time. 63*57278SbosticThe speed at which it falls is determined directly by the level: 64*57278Sbosticif you select level 2, the blocks will fall twice per second; 65*57278Sbosticat level 9, they fall 9 times per second. 66*57278Sbostic(As the game goes on, things speed up, 67*57278Sbosticno matter what your initial selection.) 68*57278SbosticWhen this shape 69*57278Sbostic.Dq "touches down" 70*57278Sbosticon the bottom of the field, another will appear at the top. 71*57278Sbostic.Pp 72*57278SbosticYou can move shapes to the left or right, rotate them counterclockwise, 73*57278Sbosticor drop them to the bottom by pressing the appropriate keys. 74*57278SbosticAs you fit them together, completed horizontal rows vanish, 75*57278Sbosticand any blocks above fall down to fill in. 76*57278SbosticWhen the blocks stack up to the top of the screen, the game is over. 77*57278Sbostic.Sh SCORING 78*57278SbosticYou get one point for every block you fit into the stack, 79*57278Sbosticand one point for every space a block falls when you hit the drop key. 80*57278Sbostic(Dropping the blocks is therefore a good way to increase your score.) 81*57278SbosticYour total score is the product of the level of play 82*57278Sbosticand your accumulated 83*57278Sbostic.ie t points\(em200 84*57278Sbostic.el points -- 200 85*57278Sbosticpoints on level 3 gives you a score of 600. 86*57278SbosticEach player gets at most one entry on any level, 87*57278Sbosticto a total of nine scores in the highscores file. 88*57278SbosticPlayers who no longer have accounts are limited to one score. 89*57278SbosticAlso, scores over 5 years old are expired. 90*57278SbosticThe exception to these conditions is that the highest score on a given level is 91*57278Sbostic.Em always 92*57278Sbostickept, 93*57278Sbosticso that following generations can pay homage to those who went before. 94*57278Sbostic.Pp 95*57278SbosticThe score list is produced at the end of the game. 96*57278SbosticOptionally, you can read the current scores without playing 97*57278Sbosticby selecting level 0. 98*57278SbosticThe printout includes each player's overall ranking, 99*57278Sbosticname, score, and how many points were scored on what level. 100*57278SbosticScores which are the highest on a given level 101*57278Sbosticare marked with asterisks 102*57278Sbostic.Dq * . 103*57278Sbostic.Sh FILES 104*57278Sbostic.Bl -tag -width /var/games/tetris.scoresxx 105*57278Sbostic.It /var/games/tetris.scores 106*57278Sbostichigh score file 107*57278Sbostic.El 108*57278Sbostic.Sh BUGS 109*57278SbosticThe higher levels are unplayable without a fast terminal connection. 110*57278Sbostic.Sh AUTHORS 111*57278SbosticAdapted from a 1989 International Obfuscated C Code Contest winner by 112*57278SbosticChris Torek and Darren F Provine. 113*57278Sbostic.Pp 114*57278SbosticManual entry written by Nancy L Tinkham & Darren F Provine. 115