◀ BACK TO THE POND

ABOUT

ErgoFishing was made to learn ErgoScript, Ergo's smart contract language, not to run a casino. Reading docs is dry; writing a small game yourself, running it on chain, with real players pressing the buttons, is where you meet every corner: where the money sits, who may spend which box, when, and what happens when one side walks away halfway.

Fishing was picked because it needs exactly the hardest parts of a fair contract: both sides put money in, the result is random and nobody knows it in advance, and the money always has a way back when one side stops.

WHAT YOU LEARN

The source of all 3 contracts, their constants and how to compile them to check the addresses are at the bottom of the Rules page. A box-flow diagram is in the project's docs/ folder.

PLAY IN THE RIGHT SPIRIT

BY THE SAME AUTHOR

ErgoFishing is made by @dungvn3000, who also built:

Want the background before reading the contracts? Start with Learn Me An Ergo.

TECH

ErgoScript (3 contracts), Fleet SDK building transactions right in the browser, the Nautilus wallet signing (the server never holds your keys), CodeIgniter 4 + SQLite on the server, Alpine.js, Tailwind and daisyUI for the interface, pixel art drawn on a canvas, sound synthesized with Web Audio.