Linux command
nbsos 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Play SOS game
nbsos
Play against computer
nbsos -p [5]
Play two humans
nbsos -1 h -2 h
Set board dimensions
nbsos -l [10] -w [10]
说明
nbsos is a terminal-based SOS board game from the nbsdgames collection. Players take turns placing the letters S or O on a grid. Forming a straight connected S-O-S sequence scores a point; the player with the highest score wins. Controls: arrow keys or hjkl to move cursor, S/O to place a letter, q to quit. Mouse input is also supported.
参数
- -1 _type_
- Set player 1 type: h (human) or c (computer).
- -2 _type_
- Set player 2 type: h (human) or c (computer).
- -p _depth_
- Set AI difficulty level (1-127).
- -l _number_
- Set board length (0-1000).
- -w _number_
- Set board width (0-1000).
- -n
- Disable replay prompts at game end.
- -h
- Display help information.
FAQ
What is the nbsos command used for?
nbsos is a terminal-based SOS board game from the nbsdgames collection. Players take turns placing the letters S or O on a grid. Forming a straight connected S-O-S sequence scores a point; the player with the highest score wins. Controls: arrow keys or hjkl to move cursor, S/O to place a letter, q to quit. Mouse input is also supported.
How do I run a basic nbsos example?
Run `nbsos` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -1 _type_ do in nbsos?
Set player 1 type: h (human) or c (computer).