28 Jul 23 3:58 am type: related:
poker on solana
logs on discord
onramp some poker tokens by buying some on our platform
10BONK)
user enters round with 1000 tokens
checks, bets with the tokens
bets are sent to a pool account of the round
bets and pot payouts are onchain
but the cards dealt and cards on deck are all from the game dapp are offchain
let’s discuss the flow
- user enters game
- user buys BONK using inapp/connected wallet
- user joins a round and waits for other players to join
- join = transfer buy in amount to game
- users can vote to start the game / game starts automatically once the table is full
- cards are dealt to the users
- round starts with big blind small blind, checks, raises and folds
- user who raise/call have their tokens sent to the pot
- users who fold will not get the tokens back (obv), now cant do anything other than watch
- cards are dealt to the river
- round until game ends
- winning logic ( split / full win ) based on hand and river
- send tokens to winning user
- automatic buy in for minimum number of rounds to have fair gameplay
- after which they can choose to buy in again / vote to end game / walk away
web3 element of this will initially be
- handling of the tokens and game
- being able to buy some game tokens using money
- and being able to convert back
technically a token contract
mint 1000 tokens per 10 back when tokens are sent back
- pot and rounds
- users joining rounds by sending initial bet
- users being able to bet on the game, and the game sends their tokens from their wallet to the pot
- setting winner, and getting their tokens back which they won on their wallet
being able to see the tokens on their actual wallet