DiceChain is a decentralized blockchain-based dice roll game where players use (TUC) to participate and win rewards.
DiceChain is a fun and engaging blockchain-powered game where players roll a virtual dice to predict the outcome and win tokens. Players interact with the game through a smart contract, ensuring full transparency and security of the game logic. The game uses TheUnlimitedCoin (TUC) as the in-game currency, where players pay a small entry fee to make a guess and can win rewards in TUC for a correct prediction. The decentralized nature of the game ensures that no centralized authority controls the game, and all operations are stored securely on the blockchain.
With DiceChain, the entry fee for the game is 1 TUC token, and winners are rewarded with 2 TUC tokens. The game is integrated with MetaMask for easy wallet connection, allowing users to interact directly with the smart contract and claim their rewards. The game is designed to be simple and easy to play, yet it showcases the power and potential of blockchain technology in providing transparency, fairness, and decentralization in online gaming.
Throughout the hackathon, I deployed the DiceChain smart contract on the Mantle Sepolia testnet. The contract ensures secure token transfers and handles the game logic, from accepting player entries to rewarding winners. I developed the frontend using HTML, CSS, and JavaScript, integrating it with web3.js to interact with the smart contract. MetaMask integration allows players to connect their wallets and participate seamlessly. Moving forward, I plan to add features like a leaderboard and mobile support for a more engaging experience.