This is a Guessing Game Dapp. You can test the live (on Alfajores Testnet) here[https://aishat-akinyemi.github.io/celo-guessing-game/].
First Timer
- Enter a list of comma separated strings you want to guess from
- Enter How many Rounds you would like to play
- The total amount of cUSD you want to spend in the session.
- You can play the number of Rounds you selected, and you may choose to start a new game. This will automatically end the previous round.
Returning Player
- If you have an ongoing set of rounds, you may continue or choose to start a new game.
Requirement
- Celo Extension Wallet 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.
- Event logging
- when your dapp mainly uses ERC20 tokens, the way you handle payments changes and using
msg.value
might often lead to errors. Before I noticed this, the contract was charging both Celo and CUSD simultaneously
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.