cDG is blockchain based web-casino with single game. Player can guess dice number, if his guess will be correct, player own 6 times more then he bet. Owner can deposit and withdraw cUSD from the contract.
Random number is generated from players wallet address, block timestamp and salt, which can be changed by owner.
https://antonina-nesmelova.github.io/celo-dice-game/
npm install
or
yarn install
npm run dev
npm run build
- Install the CeloExtensionWallet from the google chrome store.
- Create a wallet.
- Go to https://celo.org/developers/faucet and get tokens for the alfajores testnet.
- Switch to the alfajores testnet in the CeloExtensionWallet.
- Deposit some cUSD to contract by owner.
- Change account, choose bet and amount, roll dice.
- Switch account back to owner, withdraw funds.