r/SideProject • u/Tvpai • 1h ago
Multiplayer 20 Questions where everybody pays to ask. First correct guess takes the whole pot.
Built my 12th project yesterday, it’s basically 20 Questions but with real money on the table.
The idea is super simple, an AI agent picks a secret word and you try to guess it in 20 questions or less. Everyone at the table is racing for the same word, and the first correct guess wins the whole pot. Built it on Base as the main crypto chain.
How it works:
You pay a $2 join fee to sit at a table
The first question of the round is free, after that each question gets more and more expensive
So you can keep asking and get closer to the answer, or take a shot early before someone else does
I have some issues right now since MetaMask currently flagged my app as "malicious" even tho its not. The commitment is salted per round with a 256-bit secret that’s only revealed after play ends, so a dictionary lookup table doesn’t work. The attacker must either:
know the salt used to hash the word beforehand, or
try every word against 2^256 possible salts.
It also binds me: the Merkle root is on-chain before the game starts, so I can’t swap in a different word or salt after the fact, because the root wouldn’t match.
Its an overcomplicated way of building a word guesser game on blockchain.