A Hoken Tech workshop · games
Teams hunt for hidden cards and claim the secret codes from their phones. The contract knows only each code's fingerprint, gives the points and runs the live leaderboard. Then the debrief: how could you cheat, and how do you fix it? In the extended version, each team hides its own treasure.
Short 2 h 15 min · Extended 4 h 20 min
Schools, team building, events and festivals, anyone who learns best by playing.
Short: a smartphone per team. Extended: a computer and a free GitHub account.
Live demo · real test blockchain
In class, teams type here the codes they find. On this page the demo is read-only: you can see how many codes are hidden and the leaderboard.
This is the same lab participants use in class, in read-only mode: the data comes live from the EOS Jungle4 testnet.
Open the lab full screen ↗Why games on a blockchain are fair by design: public rules nobody can change mid-game.
A real case, The Lost Diamond, and the trick: checking a code without ever revealing it.
The flaw: codes travel in clear text. How commit-reveal fixes it, and why codes must be long.
Extended version: each team publishes its own hunt, hides a code and claims the others' from its Codespace.
Every part has slides with speaker notes, a hands-on exercise in the lab and real transcripts from the testnet. The short version needs only a smartphone. The extended one adds the smart contract part: participants write it, publish it on the testnet and use it.
Total: 4 h 20 min
The contract hashes the code it receives and compares it with the fingerprints it stores: the first team to find a code takes all its points.
void claim(name by, string team, string code) {
require_auth(by);
const string c = normalize(code); // minuscole, senza spazi ai lati
auto clue = byhash.find(sha256(c.data(), c.size()));
check(clue != byhash.end(), "codice sbagliato: controllate di averlo copiato bene");
// … una squadra non riscatta due volte lo stesso codice …
const uint32_t points = first ? clue->points : 1;
}
Excerpt. Messages are in Italian, as in class.
The workshop grows out of these articles. They're in English.
Tell us who it's for, how many people and which version you'd like. We'll reply with a proposal and dates.
Cookie settings · Recedi dal contratto qui
© 2026 HOKEN TECH S.R.L. · Via Ippolito Nievo 25, 70056 Molfetta (BA), Italy · VAT 08677120720 · REA BA-642341 · PEC hokentech@pec.it · +39 371 791 4151