On-Chain Wordle is a decentralized word guessing game where players compete on the blockchain.
On-Chain Wordle is a decentralized version of the classic word-guessing game, built on the blockchain. Players take turns submitting 5-letter words, receiving feedback on their guesses, and competing to guess the secret word. The game operates in a fully transparent and secure environment, where all actions are recorded on-chain. Each guess provides feedback using the "G" (correct letter and position), "Y" (correct letter, wrong position), and "B" (incorrect letter) system. Players are eliminated for invalid guesses, and the first player to guess the secret word correctly wins. With smart contracts, the game ensures fair play, uniqueness, and no cheating.
Note - The word has initially be set to "APPLE" during the deployment of the contract.
Link To Smart Contract Deployed on Explorer - https://sepolia.mantlescan.xyz/address/0x6834fa556f198c6F075D28b5FA9Ee5531dB8aD9D
Link to Twitter Post - https://x.com/blaze15311/status/1865448728108437777
During the hackathon, I developed On-Chain Wordle, a decentralized word-guessing game on the blockchain. I built a smart contract to handle the game's logic, validate guesses, and provide feedback through blockchain events. The frontend integrates wallet functionality (MetaMask) for smooth player interaction, with all actions recorded on-chain for transparency. The game follows a turn-based system, where players submit guesses and receive feedback, showcasing how decentralized gaming can be engaging and secure.