← Back to home

Mincomind

On chain mastermind/cows and bulls tournament built on Inco network

Screenshots

Mincomind screenshot 1
Mincomind screenshot 2
Mincomind screenshot 3
Mincomind screenshot 4

Problem Statement

Video: demo Deck: https://docs.google.com/presentation/d/1QEbknOpkDt-Bz82htuTw9E1d23snHOuSdhhkCJmNf30/edit?usp=sharingOn chain cows and bulls tournament built on Inco network, leveraging fully homomorphic encryption to enable secret values and randomisation in smart contracts.Game playBasicsA 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.TournamentDeposit 0.001 inco native tokens to playFail = lose your depositWin = earn points = land on the leaderboardRedeem points for proportion of the pot, but leave leaderboard

Solution

Smart contracts - Inco network leveraging homomorphic encryption to implement secrets & randomization on chainUI - Rescript react, Dynamic for wallet connection & interaction, blockscout for tx & account infoIndexer - envioFully 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.

Hackathon

ETHGlobal Brussels

2024

Prizes

  • πŸ†

    Best use of Blockscout Block Explorer

    Blockscout

  • πŸ†

    Best Gaming dApp1st place

    Inco Network

Contributors