actionables:
- going through soldev to understand how solana works and figuring out how to build the onchain elements of it
- build the onchain elements of it using basic token transfers ( should emulate the e2e “game” flow )
research and stream
source questions from aoc codewars, codeingame, leetcode, etc
- make a list of many questions which you can format in the below way:
- same question
- but multiple input:output combinations
- arrange the above in categories of difficulty ( easy, medium, hard, impossible )
- simple betting game
- minimum 2 people
- equal money put into pot
- common time agreed upon
- reveal questions when game starts on frontend
- question chosen randomly based on difficulty level
- check output safely without any access on the frontend to it
- maybe proxy the api so that they cant find answer in some other way
- those who submit correct answer before time ends win their share of the pot
- (mode) winner gets all
- maybe a good formula for this exists
- based on time difference from first player and last submission
- giving share based on that
- whoever wins, gets the tokens added to their balance
- everyone starts off with basic 1000 tokens ( minimum 100 tokens staking per game )
- live games where you can queue and play competitive coding
- game rooms, live events, just like valorant wow
technicalities
crypto element:
- create a game with a pool
- tokens sent to that pool account linked with the game
- game has a list of users playing
- game start time is stored onchain
- winners and time won is stored
- once time ends, winners are sent out tokens based on a formula ( fastest wins most… etc )
game can be onchain or offchain
web flow:
- github oauth sign in
- get bonk airdrop to play few games if new account
- press join to queue for a game
- press create to start your own custom game
- private / public option
- time, difficulty etc
- set bet amount / free
- choose mode
- winner takes all
- split between winners
- copy invite link
- game starts, redirected to game page
- countdown timer and question is revealed
- in 10s, custom input is revealed
- if winner takes all
- first correct answer gets awarded all the money from the pot
- others are allowed to finish the problem until timer runs out
- if split between winners
- time differences are calculated
- todo: formula to split rewards based on time difference ( will figure then )
- rewards are sent after timer is complete
- game over screen with stats and option to share / save image & start new game