← 返回命令列表

Linux command

nbbattleship 命令

网络

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

常用示例

Play battleship

nbbattleship

说明

nbbattleship is a terminal-based battleship game from the nbsdgames collection. Players place ships on a grid and then take turns guessing the positions of the opponent's ships. Hit all segments of a ship to sink it; sink all ships to win. The game uses an ncurses interface. Use arrow keys or hjkl to move, ENTER to shoot, R to rotate ships during placement, q to quit. Mouse input is also supported.

FAQ

What is the nbbattleship command used for?

nbbattleship is a terminal-based battleship game from the nbsdgames collection. Players place ships on a grid and then take turns guessing the positions of the opponent's ships. Hit all segments of a ship to sink it; sink all ships to win. The game uses an ncurses interface. Use arrow keys or hjkl to move, ENTER to shoot, R to rotate ships during placement, q to quit. Mouse input is also supported.

How do I run a basic nbbattleship example?

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