Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚢 torpido

Battleship you play by typing ssh torpido.dev.

torpido — battleship over SSH

Go License: MIT Built with Bubble Tea  ·  torpido.dev

No download. No account. No browser. Open a terminal, run one command, and you land straight in a lobby — bots on tap, or a room code to send a friend.

ssh torpido.dev

Your SSH key is your identity, so your record and nickname come back with you every time. Nothing to sign up for, nothing to remember.

Playing

  • A bot to warm up — three of them, always around.
  • A friend — create a room, send the four-letter code, settle it 1v1.
  • Quick match — get thrown at whoever's online.
placing   arrows / hjkl to move   ·  r to rotate  ·  enter to drop
firing    arrows / hjkl to aim    ·  enter to fire
          q steps back a screen   ·  ctrl+c disconnects

What's inside

  • Real 1v1 over SSH — invite codes, quick match, password rooms, rematches
  • Three bots — Rookie, Admiral, and the Sea Wolf, who hunts by probability and does not miss
  • A leaderboard that follows your key — top ten and your own rank, no signup
  • Terminal, but with a pulse — waves that roll, hits that explode, a battle log that scrolls
  • English & Türkçe

How it's built

One Go binary that speaks SSH. Wish hands each incoming session to a Bubble Tea program, so the exact same code drives your terminal and every opponent's. The connection is the game — no client, no web app, nothing to install.

Run your own

go install github.com/ensardev/ssh-torpido@latest
ssh-torpido serve            # listens on :2222 — set TORPIDO_ADDR=:22 for the real thing

deploy/ has a systemd unit and a one-command deploy script, plus notes on putting the game on port 22 so ssh yourdomain just works.

Why?

No grand reason. It was a fun thing to build and it's a fun thing to lose at. That's the whole pitch.


MIT · made by ensar.dev

About

Battleship in your terminal. No install, no signup - just SSH.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages