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:

  1. github oauth sign in
  2. get bonk airdrop to play few games if new account
  3. press join to queue for a game
  4. press create to start your own custom game
    1. private / public option
    2. time, difficulty etc
    3. set bet amount / free
    4. choose mode
      1. winner takes all
      2. split between winners
    5. copy invite link
  5. game starts, redirected to game page
  6. countdown timer and question is revealed
  7. in 10s, custom input is revealed
  8. if winner takes all
    1. first correct answer gets awarded all the money from the pot
    2. others are allowed to finish the problem until timer runs out
  9. if split between winners
    1. time differences are calculated
    2. todo: formula to split rewards based on time difference ( will figure then )
    3. rewards are sent after timer is complete
  10. game over screen with stats and option to share / save image & start new game