ZK Battleship
Hide three ships, then hunt for a cat's. Every hit and miss comes with a zero-knowledge proof, so nobody can move a ship or fib about a shot.
Game
Your fleet
Ninja's waters
Choose your rival
Proof lab
idle Fleets not committed yet.
- Your fleet root
...- Ninja's fleet root
...
Transcript nothing yet
Verifier paste a transcript
Paste a copied transcript above, then verify it.
What the proofs check
Before the first shot, each side commits to a hidden fleet: a Merkle root over its 36 cells, each one salted. A Groth16 setup proof shows the hidden fleet is legal (one ship of 3 and two of 2, in bounds, not overlapping) without showing where the ships are.
After every shot, the browser makes a shot proof that the announced hit or miss matches the committed board, without revealing any unshot cells. Nobody can move a ship mid-game or call a hit a miss.
Copy the transcript and anyone can check the setup proofs, every shot proof, the turn order, the no-repeat rule, the hit counts, the winner and the transcript hash. Tick Answer the cat's shots yourself to call each of the cat's shots by hand. If you lie, the proof fails and the shot never enters the transcript.
How to play
Place a ship of 3 and two ships of 2 on your fleet board: click a cell, and press R or Rotate to turn the ship. Shuffle fleet places them at random. Then lock in your fleet and take turns firing at the cat's waters. The first side to sink all 7 ship cells wins.
Each difficulty is a different cat. Jinx fires at random. Pluto hunts on a checkerboard and works around each hit. Ninja counts every fleet layout that still fits what he has seen and fires where a ship is most likely. Pluto and Ninja show the odds of their shot hitting. Switching rivals or pressing New game starts over with your fleet still placed.
