Back to the blog

Games

Sea battle with friends: your fleet never leaves your device.

Play sea battle with a friend online: each fleet stays on its own device, fingerprinted before play, and both are shown and checked at the end.

By 3 min read

Three games side by side: a mancala board with seeds in its pits, a grid of sea with a ship hit and a miss, and five dice beside a cup

Online, a hidden fleet is only hidden if nobody but you holds it. Here nobody does.

A fingerprint first.

When you press Ready, your browser sends only a fingerprint of your fleet: SHA-256 of its squares and a secret. Your friend cannot work the fleet out from it.

Your browser answers.

Each shot at you is answered by your own browser from your fleet: miss, hit or sunk.

Checked at the end.

When a fleet sinks, both fleets are shown, and every browser checks each against its fingerprint and every answer it gave. A fleet that does not hold, or is not shown within a minute, loses. Liar's dice checks rolls the same way.

Further reading

Topics: sea battle with friends · sea battle online multiplayer · play sea battle with a friend · two player ship battle online · fair sea battle online

A little less theory. A little more doing.

Try it on your own terms, with a free browser tool.

Try the tool