A Web3-powered multiplayer drawing game where friends stake, sketch, and compete to guess a random word. Voting determines the winner, and the staked amount is distributed fairly. Fun, fair, and on-chain!
In a world where people are increasingly spending time online, the game offers a creative and fun way for friends to interact with each other in a relaxed, casual environment. It makes it easy for people to connect virtually, enjoy drawing, and engage in friendly competition. Friends can join a room, draw a random word, vote for their favorite artwork, and have a good time together.
People often enjoy competition, but many social games don’t offer fair stakes or rewarding outcomes. By introducing a staking system, players have a financial or point-based incentive to perform their best. This adds excitement and motivates players to engage more deeply with the game.
While building this project, we faced significant challenges with WebSocket integrations and smart contract interactions. WebSocket connections often experienced unexpected disconnects and message delivery issues, making real-time communication unreliable. To address this, we implemented exponential backoff for reconnections, added heartbeat pings to monitor connection health, and used robust libraries like web sockets to manage connection stability. On the smart contract side, we encountered issues with gas optimization and contract state synchronization. These were resolved by auditing the contract for inefficiencies, utilizing batching techniques for transactions, and implementing retry mechanisms to handle transient failures. These solutions ensured a smooth and reliable user experience.
We integrated a staking system, allowing players to put up a stake (virtual currency or cryptocurrency) to join a game room. The winner receives the pooled stakes from all participants.
A real-time voting system was implemented, where players could vote for the drawing they liked the most once the drawing phase was complete. The voting was synchronized using web sockets to ensure immediate feedback.
A leaderboard feature was implemented to show the top players based on their wins and total stakes earned. This introduced an additional layer of motivation for players, encouraging competition and repeat engagement with the game as players strive to top the leaderboard.
Tracks Applied (7)
Walrus
Coinbase Developer Platform
Base
okto by CoinDCX
okto by CoinDCX
BNB Chain
Akave
Discussion