A Play2Earn + Donate DApp.
This was submitted for ETH Shangai Hackhathon.
MetaChess is a DApp built with TypeScript, React and Solidity.
It enables users to enjoy a chess game whilst promoting a positive social impact project on the blockchain.
- The MetaChess DApp spins up an instance where 2 players must pay a challenge fee (contribute to a pot) to play.
- A smart contract acts as an escrow/proctor and monitors the game.
- When the game ends, the smart contract awards the winner 90% of the total pot amount.
- It also sends a donation fee (10% of the total pot amount) to the charity's address.
>> LIVE INTRO WEB APP
>> LIVE DAPP
>> SMART CONTRACTS - POLYGONSCAN (MUMBAI TESTNET)
· How to Start DEV· Feedback· References
Pre-Requisites: Node JS, NPM, NVM
After Forking/Cloning the main branch, you can get up and running in just a few minutes. From the project's root folder:
-
Install all required packages.
yarn install
-
Start the site.
yarn start
-
Voila! View app in any browser at http://localhost:3000/
NOTE: To interact/work directly with the contracts, please switch to the chess-engine branch for more details chess-engine
I always appreciate feedback, so share your thoughts and suggestions with me: mail@bisi.dev
If you find any bugs or have feature suggestions, create a new issue or pull request 🙏
Thanks a lot! 💪
Ayodeji Olabisi – bisi.dev
These are my references in scaffolding this app
- Smart Contracts : Truffle-Suite
- Host : Infura
- Environment : Polygon Mumbai
- INTRO WebApp : UNISWAP Landing Page
- DApp : UNISWAP App Utilitiy
- Chess Engine : JSVeron Chess Engine
- Design - Miracle Otugo