Play the Chain
What is Stockfish? The strongest open-source chess engine in the world, and for years the reigning computer chess champion. Grandmasters use it to analyse their games; no human has a realistic chance against it at full strength. It's over 12,000 lines of performance-tuned C++. What's new here: that whole engine was compiled to WebAssembly and runs inside a smart contract (a canister on the Internet Computer). Every move it plays is computed by 13 independent machines that must agree on it, with no server behind it.
What happens when you move
Everyone plays on a shared tank of cycles
- Send ICP from your funnAI wallet,
the NNS app or any ICP wallet, to the canister's principal:
From an exchange, use its account ID:
ne5l7-xiaaa-aaaaj-qsm3q-cai460d1214503541468865ef7728ed17cf6e232585e6898a8d1626230ffa8e2cc7 - Press Refuel. The canister finds the ICP and turns it into cycles.
Nothing here runs on a server. The page, the rules and the engine all live in one canister: it checks your move, runs a single-threaded Stockfish 11 search inside the 40B-instruction limit of one message, and writes both moves to its stable memory. The game record can't be edited afterwards.