TETRIS(6)
π TETRIS(6) π
okay bestie, so this is the Games Manual page for tetris β yes, that tetris, section 6, the good stuff. pull up a chair, we're doing blocks π§±β¨
πΈ NAME πΈ
tetris β it's the game of tetris. that's it. that's the whole name. iconic, no notes π
β¨ SYNOPSIS β¨
tetris [-ps] [-k keys] [-l level]
look at that little one-liner. so demure. so mindful π
π¦ DESCRIPTION π¦
so tetris runs a display-based game, and heads up β it must be played on a CRT terminal. no CRT, no vibes, no game. π
the goal? fit the shapes together to form complete rows, and when a row is complete it justβ¦ vanishes. poof. gone. and when the shapes fill all the way up to the top, the game ends. that's it, that's the whole arc π
you can optionally pick a level of play, or custom-select your own control keys if the defaults aren't giving what you need.
the default level of play is 2.
the default control keys are literally these, memorise them:
jβ move leftkβ rotate 1/4 turn counterclockwiselβ move rightβ¨spaceβ©β droppβ pauseqβ quit
and now the options, bestie:
-kβ the default control keys can be changed using the-koption. the keys argument must have the six keys in order, and β important β remember to quote any space or tab characters from the shell. for example:
tetris -l 2 -k 'jkl pq'
will play the default games, i.e. level 2 and with the default control keys. and cute bonus: the current key settings are displayed at the bottom of the screen during play, so you can always double check π
-lβ select a level of play.-sβ display the top scores. π-pβ switch on previewing of the shape that will appear next. (this is the good one, fr fr)
π PLAY π
at the start of the game, a shape will appear at the top of the screen, falling one square at a time. the speed at which it falls is determined directly by the level: if you select level 2, the blocks will fall twice per second; at level 9, they fall 9 times per second. (and as the game goes on, things speed up, no matter what your initial selection β so don't get comfy π)
when this shape βtouches downβ on the bottom of the field, another will appear at the top. endless supply of shapes, we love that for us π«Ά
you can move shapes to the left or right, rotate them counterclockwise, or drop them to the bottom by pressing the appropriate keys. as you fit them together, completed horizontal rows vanish, and any blocks above fall down to fill in. and when the blocks stack up to the top of the screen? game over. the end. bye π
β SCORING β
okay so the math here is genuinely generous:
- you get one point for every block you fit into the stack
- and one point for every space a block falls when you hit the drop key
(dropping the blocks is therefore a good way to increase your score. just saying. dropping = free points π₯)
your total score is the product of the level of play and your accumulated points β so 200 points on level 3 gives you a score of 600. math girlies rise π§
now the leaderboard rules, and they're specific:
- each player gets at most one entry on any level, for a total of nine scores in the high scores file
- players who no longer have accounts are limited to one score
- scores over 5 years old are expired
the exception to these conditions is that the highest score on a given level is always kept β so that following generations can pay homage to those who have wasted serious amounts of time. periodt. π
the score list is produced at the end of the game. the printout includes each player's overall ranking, name, score, and how many points were scored on what level. and scores which are the highest on a given level are marked with asterisks β*β. so if you see a star, that's a legend. π«
π FILES π
/var/games/bsdgames/tetris-bsd.scoresβ high score file
π BUGS π
the higher levels are unplayable without a fast terminal connection. not me warning you about level 9 on a slow connection ππ
π AUTHORS π
- adapted from a 1989 International Obfuscated C Code Contest winner by Chris Torek and Darren F. Provine.
- manual adapted from the original entry written by Nancy L. Tinkham and Darren F. Provine.
- code for previewing next shape added by Hubert Feyrer in 1999.
okay that's the whole page bestie!! this one's from the Debian crew, dated May 31, 1993 β vintage but still serving πβ¨ go stack some blocks, you're gonna slay π«Άπ
π¦ where this page comes from
- debian bookworm: bsdgames 2.17-29+b1
- debian trixie: bsdgames 2.17-35
- ubuntu jammy: bsdgames 2.17-29
- ubuntu noble: bsdgames 2.17-33
- ubuntu resolute: bsdgames 2.17-35
- ubuntu stonking: bsdgames 2.17-35ubuntu1
- Copyright (c) 1992, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms