TETRIS(6)

πŸ“¦
version 2.17 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 left
  • k β€” rotate 1/4 turn counterclockwise
  • l β€” move right
  • ⟨space⟩ β€” drop
  • p β€” pause
  • q β€” quit

and now the options, bestie:

  • -k β€” the default control keys can be changed using the -k option. 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