← 返回命令列表

Linux command

tetris 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start a game

tetris

Start with a specific level

tetris -l [level]

Start in two-player mode

tetris 2p

Listen for a network game

tetris listen [port]

Connect to a network game

tetris connect [hostname]:[port]

Set terminal width

tetris -w [80]

Show help

tetris -help game

说明

vitetris (often installed as tetris) is a terminal-based Tetris clone with gameplay similar to early Nintendo Tetris games. It supports single-player, local two-player, and network multiplayer modes. The game features customizable controls, configurable appearance, and network play where both players can independently choose their difficulty settings. It requires only libc with no additional library dependencies. Controls and appearance can be customized through in-game menus or command-line options. High scores are saved in ~/.vitetris.

参数

-l _level_
Set the starting level (affects falling speed).
-h _height_
Set the starting height of garbage blocks.
-w _width_
Set the terminal width.
2p
Start a local two-player game.
listen _port_
Listen for incoming network connections on the specified port.
connect _host:port_
Connect to a remote player for network play.
-help
Print help and exit.
-help game
List game options and exit.
-help term
List terminal options and exit.

FAQ

What is the tetris command used for?

vitetris (often installed as tetris) is a terminal-based Tetris clone with gameplay similar to early Nintendo Tetris games. It supports single-player, local two-player, and network multiplayer modes. The game features customizable controls, configurable appearance, and network play where both players can independently choose their difficulty settings. It requires only libc with no additional library dependencies. Controls and appearance can be customized through in-game menus or command-line options. High scores are saved in ~/.vitetris.

How do I run a basic tetris example?

Run `tetris` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l _level_ do in tetris?

Set the starting level (affects falling speed).