Chess
(2 Players)
Match Flow:
Game Creation:
-Admin calls
addGame
withgameUid
and metadata.-Game owner sets
gameFee
usingupdateGameFee
.Match Creation:
-Player 1 calls
createMatch
with game UID, stake amount, and max players = 2.Player Join:
-Player 2 calls
joinMatch
, providing the staking amount.Game Execution:
-Players compete in an off-chain chess match.
Result Submission:
-Winnerβs address is submitted by the game owner via
submitMatchResult
.Reward Distribution:
-Winner receives stake minus protocol and game fees.
2. Poker (4 Players)
Match Flow:
Game Creation:
-Admin adds Poker as a game via
addGame
.-Game owner sets a 5% fee using
updateGameFee
.Match Creation:
-Player 1 calls
createMatch
with game UID, stake amount, and max players = 4.Player Join:
-Players 2, 3, and 4 join sequentially by calling
joinMatch
.Game Execution:
-Off-chain Poker match is conducted with all players participating.
Result Submission:
-Game owner submits the result via
submitMatchResult
, specifying the winner or winners for tiered rewards.Reward Distribution:
-Staking rewards are distributed among winners, with protocol and game fees deducted.
3. Ludo (4 Players, Private Match)
Match Flow:
Game Creation:
-Admin registers Ludo via
addGame
.-Game owner sets metadata and fees.
Match Creation:
-Player 1 creates a private match using
createMatch
and provides a cryptographic hash of authorized player addresses.Player Join:
-Players 2, 3, and 4 call
joinMatch
and provide matching authorization data.Game Execution:
-The Ludo match is conducted off-chain among the participants.
Result Submission:
-Game owner submits the winner via
submitMatchResult
.Reward Distribution:
-Staking rewards are distributed to the winner, with protocol and game fees deducted.
Last updated