hackquest logo

GOOZ

Gooz: A Web3-themed Monopoly game where players stake tokens, compete strategically, and earn on-chain rewards.

视频

描述

🎲 Gooz – Web3 Monopoly Board Game

Gooz is a multiplayer, Web3-powered board game inspired by Monopoly where players stake tokens, compete through property trades, and earn on-chain rewards. The mascot “Gooz” brings character to the project, but gameplay is entirely player-driven — each match turns decentralized finance into a strategic game of property management and survival.


🧭 Overview

Gooz merges classic turn-based Monopoly mechanics with on-chain escrow rewards. Players join live rooms, stake a fixed amount of tokens, and take turns rolling dice, buying, selling, and paying rent. The winner automatically receives the total staked pool directly from the smart contract, ensuring fair play with zero centralized custody.

The project showcases how real-time multiplayer logic, WebSocket synchronization, and smart contracts can combine to create an interactive, provably fair Web3 experience.


🏗️ Architecture

🖥️ Frontend

  • Framework: Next.js 15 (React + TypeScript)

  • UI Layer: Modular React components — Board, SidePanel, Chat, GameContext

  • State Management: Context API with event-driven updates

  • WebSocket Client: Native browser API for instant turn synchronization

  • Design: Responsive Tailwind interface for desktop and mobile

⚙️ Backend (Game Engine)

  • Server: Node.js WebSocket server

  • Game Manager: In-memory state engine controlling dice rolls, turns, and property logic

  • Event Flow: Structured JSON events (ROLL_DICE, BUY_PROPERTY, PAY_RENT, NEXT_TURN) broadcast to all clients

  • Synchronization: Automatic reconnection and state recovery on refresh

💠 Smart Contract Layer

  • Language: Solidity (Hardhat)

  • Contract: GamePool.sol – handles deposits, escrow, and reward distribution

  • Flow:

    1. Players deposit a fixed token amount to join a match

    2. Pool holds funds during gameplay

    3. When the game ends, the contract verifies the winner and transfers the total pool directly

  • Safety: Single-pool design for minimal gas, auditable logic, no off-chain fund control


🧩 Core Game Mechanics

Action

Description

🎲 Roll Dice

Move across 15-tile dynamic board

🏠 Buy Property

Purchase unowned spaces and earn rent

💸 Pay Rent

Automatic deduction when landing on owned tiles

🚓 Jail

Pay to escape or roll dice > 4

💤 Rest House

Gain tokens but skip next turn

🎉 Party House

Lose a small fee to the pool

💬 Chat

Real-time in-game player messaging


🚀 Progress During Hackathon

During the hackathon, Gooz evolved from a static prototype to a fully playable multiplayer Web3 game.

  • Gameplay Enhancements: Implemented complete Jail mechanics and refined turn synchronization for smoother transitions.

  • User Interface: Reworked board layout and player dashboard for clarity and responsive design.

  • Communication Layer: Added live chat system synchronized via WebSocket broadcast.

  • Blockchain Integration: Developed and tested the pool escrow smart contract to handle deposits, reward payouts, and transaction verification.

  • Backend Stability: Optimized event handling to prevent desyncs and ensure state persistence across sessions.
    The current version runs stably with full multiplayer support, on-chain escrow logic, and seamless client updates — ready for live demonstration and further expansion.


🧱 Technical Stack

Layer

Technologies

Frontend

Next.js 15, React 19, TypeScript, Tailwind CSS

Backend

Node.js, WebSocket (ws library)

Smart Contracts

Solidity, Hardhat, Ethers.js

Deployment

Local + Testnet (configurable via .env)

🔮 Future Roadmap

  • 🏦 Token upgrade system for owned properties

  • 🌐 Public testnet deployment with verified contract

  • 🎮 Tournament and leaderboard support

  • 🧾 On-chain game history and replays

  • 🧱 Expansion of board size and event types

⚠️ Disclaimer

Gooz is a hackathon demonstration project. Smart contracts and escrow logic are functional but not yet audited. Use test tokens only during evaluation.

Github Links
https://github.com/Dragoon4002/gooz_backend/ - Backend
https://github.com/dipansrimany2006/gooz - Frontend

本次黑客松进展

During the hackathon, significant progress was made on both gameplay and infrastructure. We implemented full Jail mechanics, improved turn-based synchronization, and overhauled the UI for better clarity and feedback. A live chat system was integrated to enable real-time player interaction within rooms, ensuring smoother multiplayer coordination. On the blockchain layer, we developed and deployed the escrow pool contract to manage deposits and payouts, completing the foundation for the game’s token economy. Additional refinements included visual polish, optimized board logic, and bug fixes in reconnection and event handling. The current build is stable, interactive, and ready for public testing with full on-chain escrow functionality.

技术栈

Next
Ethers
Solidity
Node

融资状态

We are looking for funds

队长
SSounak Dey
赛道
Gaming