On chain mastermind/cows and bulls tournament built on Inco network
Prize Pool
Video: demo Deck: https://docs.google.com/presentation/d/1QEbknOpkDt-Bz82htuTw9E1d23snHOuSdhhkCJmNf30/edit?usp=sharing
On chain cows and bulls tournament built on Inco network, leveraging fully homomorphic encryption to enable secret values and randomisation in smart contracts.
A secret code of 4 colour pegs is created 🟤🟤🟤🟤 A player attempts to guess the secret code 🔴🟢🟠🟣 After each guess, the player gets feedback:
A black peg for each correct color in the correct position (bull). ⚫ A white peg for each correct color in the wrong position (cow). ⚪
Objective: Use the feedback to deduce the secret code within 8 attempts.
Deposit 0.001 inco native tokens to play
Fail = lose your deposit
Win = earn points = land on the leaderboard
Redeem points for proportion of the pot, but leave leaderboard
Fully homorphic encryption opened an entirely new paradigm in smartcontract engineering, it was an interesting problem to solve having timestamp based view functions after blocks where mined to prevent reverting transactions on bad game outcomes.