BATTLESHIPS(6)

๐Ÿ“ฆ version 6.5.20250531, in opensuse-leap 16.0

๐Ÿ’… BATTLESHIPS โ€” the game, but make it a group chat

okay so bestie, this one's from section 6 of the manual (that's games, the fun section, not the boring syscall one ๐ŸŽ€) and it's literally the classic Battleships game. The page is filed under BATTLESHIPS(6) and the command itself is called bs โ€” short, iconic, no notes ๐Ÿ‘‘


โœจ NAME โœจ

bs โ€” the battleships game. that's it. that's the whole name. slay ๐Ÿ’–


๐ŸŒŠ SYNOPSIS ๐ŸŒŠ

battle [ -b | -s ] [ -c ]
heads up bestie: the NAME section says bs but the synopsis line literally says battle. that's the manpage's business, not mine โ€” I'm just reporting it fr fr ๐Ÿ™ˆ

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So this program lets you play the familiar Battleships game against the computer on a 10x10 board. Ten by ten. that's a hundred squares of pure emotional damage ๐Ÿ˜ญ

The interface is visual and largely self-explanatory โ€” you place your ships and pick your shots by moving the cursor around the "sea" with the rogue/hack motion keys hjklyubn. yes, the old-school vi keys. ngl that's the most gamer thing I've seen all day ๐ŸŽฎ

โš ๏ธ important detail that will 100% trip you up: when you're selecting a ship to place, you must type the capital letter. They're capital ships, okay?? it's thematically consistent, it's giving attention to detail ๐Ÿ’…

Also during ship placement:

  • the r command ignores the current position and randomly places your currently selected ship ๐ŸŽฒ
  • the R command places all remaining ships randomly โ€” the "I'm done thinking" button, iconic
  • the ^L command (form feed, ASCII 12) forces a screen redraw. when the terminal does that weird thing, this is your girl โœจ

The command-line arguments control the game modes:

  • -b โ€” selects a "blitz" variant
  • -s โ€” selects a "salvo" variant
  • -c โ€” permits ships to be placed adjacently

The "blitz" variant lets a side shoot for as long as it continues to score hits. hit, shoot again, hit, shoot again. chain it. go off queen ๐Ÿ”ฅ

The "salvo" game gives a player one shot per turn for each of their ships still afloat. so this one puts a premium on scoring hits early and knocking out some ships. and it makes the situation much harder where you face a superior force with only your PT-boat ๐Ÿ˜ญ๐Ÿ’€ like genuinely, good luck bestie, you're gonna need it.

Normally, ships must be separated by at least one square of open water. the -c option disables this check and allows them to close-pack. cozy. snuggled. adjacent.

The algorithm the computer uses once it has found a ship to sink is provably optimal. the dispersion criterion for the random-fire algorithm may not be. so: computer is scary smart in the endgame and maybe a little feral at the start, no cap ๐Ÿงš


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Originally written by Bruce Holloway in 1986. Salvo mode added by Chuck A. DeGaul (cbosgd!cad). Visual user interface, "closepack" option, code rewrite, and manual page by Eric S. Raymond <esr@snark.thyrsus.com>, **August 1989`. absolute legends, all of them ๐Ÿซถ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

okay there's genuinely no SEE ALSO section in this one, which is its own kind of main character energy. nothing to compare it to. it stands alone. periodt ๐Ÿ’œ


and that's the page!! ๐Ÿ’– this gorgeous little thing came out of the ncurses-examples package, and the version/date stamp on it is 2024-06-15 โ€” so like, she's vintage and she's current. we love a timeless icon โœจ๐ŸŒธ๐Ÿฆ‹

battle responsibly, bestie โ€” and remember: capital letters for capital ships ๐Ÿ’…๐Ÿšข

๐Ÿ“ฆ where this page comes from