Blockchain based Game to find matching icons and get rewards
To build a cool game using Chainlink VRF to generate the Random number for shuffle functionality.
A Web3 Game where users find matching cards and claim ERC20 token as rewards. The user starts the game by creating a transaction to the Smart Contract deployed at Rinkeby Network. This registers the start of the game & requests for the random number from the Chainlink VRF. The Request ID is registered as the GameID which holds the mapping of the Game Stats for the wallet address. On an average, it takes about 2 block confirmations to get the random number after which the overlay is removed, the game timer starts and user can start playing the game. Once the user has finished all the matches, another transaction is made to end the game which results in updating the game stats for the GameID and rewarding 1 ERC20 token to the user's wallet.
Note:
- Users must select Rinkeby Test Network on their Dapp Browser or Metamask.
- Users must have sufficient rETH to make the transactions and pay gas fees.
- If this webpage is opened in a Non-Ethereum browser, User can still play the game but there will be no rewards or game logs created.
HTML, CSS, JavaScript, Solidity, Web3.js, Chainlink
Slow Response from Blockchain as sometimes it took a long time to get the random number.
Integrate Chainlink VRF, Hosting on Fleek
Chainlink, Game Development
- Multiplayer Gaming
- Challenge Options
- ERC1155 Integration so that players can get rare NFTs and fungible tokens rewards based on their gameplay.
- Multiple card sets to choose from Celebrity, Games, Places, Monuments etc.