Discussions
Can I build a daily word puzzle with verifiable answers using the headlessRPC game sample?
Hi everyone,
I run Fugl Kryssord, a small Norwegian crossword help site. It lists bird names that often show up in crosswords, sorted by number of letters, so people can find the right answer when a clue just says "fugl".
I would like to add a daily puzzle to the site. Every morning there would be one short bird word to guess, and the first few people who solve it would get a tiny reward. The part I care about most is trust. I want players to be able to check that the answer was fixed before the puzzle started and was not changed later.
My plan is to store only a hash of the day's answer on TrustNote when the puzzle goes live, and publish the actual word the next day. Anyone could then hash the word themselves and compare it with the stored value.
I noticed the samples section has an HTML5 game built on headlessRPC and the Python SDK, so I have a few questions:
- Is that game sample a good starting point for something like this, or is there a simpler approach in the docs?
- Can a player check a stored hash from a normal web page without running a full node?
- Norwegian words use the letters Æ, Ø and Å. Is there anything I should watch out for with text encoding before hashing, so the same word always gives the same hash?
- Roughly what would one transaction cost? It would only be one hash per day, plus a few small rewards.
Any pointer to the right guide or example would help a lot. Thanks!
