Linux command
tetris-bsd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a game
tetris-bsd
Start at a specific level
tetris-bsd -l [level]
Enable preview
tetris-bsd -p
Use custom control keys
tetris-bsd -k "[jkl pq]"
Start with seed
tetris-bsd -s [seed]
说明
tetris-bsd is a terminal-based Tetris implementation from the BSD games collection. The game displays falling tetrominoes that must be arranged to form complete horizontal rows. Completed rows disappear, and the game ends when blocks stack to the top. Default controls use vi-style keys: j (left), k (rotate), l (right), space (drop), p (pause), q (quit). The falling speed is directly proportional to the level number. Scoring awards one point per block placed and one point per space dropped. The final score is multiplied by the current level. High scores are saved in /var/games/bsdgames/tetris-bsd.scores.
参数
- -l _level_
- Set the starting level (default: 2). Higher levels make blocks fall faster (blocks fall N times per second at level N).
- -k _keys_
- Customize control keys. Provide six characters for: left, rotate, right, drop, pause, quit.
- -p
- Enable preview of the next shape that will appear.
- -s _seed_
- Set the random seed for reproducible block sequences.
FAQ
What is the tetris-bsd command used for?
tetris-bsd is a terminal-based Tetris implementation from the BSD games collection. The game displays falling tetrominoes that must be arranged to form complete horizontal rows. Completed rows disappear, and the game ends when blocks stack to the top. Default controls use vi-style keys: j (left), k (rotate), l (right), space (drop), p (pause), q (quit). The falling speed is directly proportional to the level number. Scoring awards one point per block placed and one point per space dropped. The final score is multiplied by the current level. High scores are saved in /var/games/bsdgames/tetris-bsd.scores.
How do I run a basic tetris-bsd example?
Run `tetris-bsd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l _level_ do in tetris-bsd?
Set the starting level (default: 2). Higher levels make blocks fall faster (blocks fall N times per second at level N).