Linux command
netris 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Play Tetris solo
netris
Host networked game
netris -w
Connect to host
netris -c [host]
Set difficulty
netris -l [5]
Two player local
netris -2
说明
netris is a network-capable Tetris game. Play solo or against others over network. The tool provides classic Tetris gameplay. Supports head-to-head competition.
参数
- -w
- Wait for an opponent (server mode).
- -c _HOST_
- Connect to opponent at _HOST_ (client mode).
- -p _PORT_
- Use the given TCP port (default 9284).
- -l _LEVEL_
- Starting level (1–9).
- -s _SPEED_
- Initial drop speed (higher is faster).
- -k _KEYS_
- Use a custom keyset string.
- -F
- "Fair" mode — both players get the same piece sequence.
- -D
- Do not show the next piece preview.
- -i _SECS_
- Request a game invitation timeout.
- -r _PATH_
- Run a robot opponent executable.
- -S _FILE_
- Save (or replay) the game session to/from _FILE_.
- -2
- Two-player local mode on the same terminal.
- -h
- Display help information.
FAQ
What is the netris command used for?
netris is a network-capable Tetris game. Play solo or against others over network. The tool provides classic Tetris gameplay. Supports head-to-head competition.
How do I run a basic netris example?
Run `netris` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -w do in netris?
Wait for an opponent (server mode).