A blockchain-based roulette game built on the Oasis Sapphire Network where players can bet on numbers, colors, or even/odd outcomes. https://www.loom.com/share/9d834fdd53494752a79aa2472ed34dc3?sid=0de80e9c-da54-40b5-b7b5-900308b24d37
The game consists of two main contracts:
MoneyPool.sol
: Handles the betting pool and player contributionsRouletteGame.sol
: Implements the roulette game logic and random number generation
- MoneyPool:
0x150eA9e7BEcD5291B8bD27D935E08A25f41bD4d9
- RouletteGame:
0x9FB342f34962898D20EB6bCa1C5f3fbaD2Bb1840
- Create new game sessions with customizable duration
- Place bets on:
- Numbers (0-36)
- Colors (Red/Black)
- Parity (Even/Odd)
- Automatic random number generation using Sapphire's secure RNG
- Winner selection and prize distribution
- 2% platform fee on winnings
- Connect your wallet (MetaMask)
- Create a new game or join an existing one
- Place your bet:
- Choose betting type (Number/Color/Parity)
- Select your choice
- Enter bet amount
- Wait for game completion
- Winners receive payouts automatically
- MetaMask wallet
- Testnet ROSE tokens
- Browser with Web3 support
- Connect to Sapphire Testnet
- Create a new game:
- Place the bet in the moneyPool
- Spin the wheel