hackquest logo

Surge

Surge is a real time PvP gaming platform on Flow EVM, where two players stake crypto, play quick skill-based games, and the winner takes most of the pot instantly.

Videos

Tech Stack

React
Solidity
Next
Web3

Description

SURGE ⚡

A Web3 Skill-Based Gaming Arena on Mantle

SURGE is a decentralized 1v1 skill-based gaming platform where players stake MNT, compete head-to-head in cognitive games, and the winner takes the pot — all secured by smart contracts.

No luck. No bots. Just pure skill.

Players connect their wallets, deposit stakes, get matched with real opponents in real-time, and prove their cognitive abilities across 5 unique games. Every match is trustless, every payout is instant, and every victory is earned.


🚀 Features

On-chain Skill Gaming: Fair play with stake deposits, real-time matchmaking, and automatic payouts

5 Cognitive Games: Test memory, reflexes, pattern recognition, and word skills

Real-time P2P Matchmaking: WebSocket-powered opponent matching with synchronized game starts

Non-Custodial Stakes: Smart contracts hold funds; winners withdraw directly

Live Leaderboards: Track top players, earnings, and win rates on-chain

Cross-chain Ready: Built for Mantle with multi-chain architecture


🎮 The Games

Game

Difficulty

Skill Tested

Number Memory Battle

Hard

Remember 8-digit sequences in 500ms flashes

Word Scramble Duel

Hard

Unscramble API-generated words in 15 seconds

Pattern Predictor

Hard

Predict the next shape in visual sequences

Reflex War

Medium

React to random signals faster than your opponent

Memory Match Showdown

Hard

Find 10 pairs among 20 cards in 45 seconds

Every game uses synchronized challenges — both players see the same content at the same time.


🛠️ Tech Stack

Layer

Technology

Frontend

Next.js 16, React, TypeScript, Tailwind CSS

Animations

GSAP for premium micro-interactions

Web3

Wagmi v2, Viem, MetaMask SDK

Blockchain

Mantle Sepolia Testnet (Mainnet ready)

Backend

Node.js, Express, Socket.io

Database

Firebase Firestore (match history, leaderboards)

Smart Contracts

Solidity, Hardhat


📜 Smart Contracts

SurgeGaming.sol

Core game contract handling:

  • Stake deposits with match creation

  • Winner declaration with payout calculations

  • Draw handling with stake refunds

  • Platform fee distribution (25%)

Deployed Contracts

Network

Contract

Address

Arbitrum Sepolia

SurgeGaming

0x8fD3A16F905dF98907B3739bCD0E31a7949cd2D2

Mantle Sepolia

SurgeGaming

0x6bFe0C83f7924d54A0780F80d2B4561CfbC0B2B1

Platform Wallet

Minimum Stake

0.0001 MNT (655af3107a4000 wei)

🎯 How It Works

1. Connect Wallet → MetaMask integration with Mantle

2. Choose Game → Select from 5 skill-based challenges

3. Set Stake → Pick 0.001 to 0.1 MNT

4. Deposit → Smart contract secures both players' stakes

5. Get Matched → Real-time WebSocket matchmaking

6. Play → Compete head-to-head with synchronized challenges

7. Win → Smart contract releases funds to winner

8. Withdraw → One-click payout to your wallet

🔗 Mantle Integration

Why Mantle?

  • ⚡ Fast transactions for real-time gaming

  • 💸 Ultra-low fees for micro-stakes

  • 🔒 Ethereum-level security

  • 🚀 Perfect for high-frequency game interactions

Native Token: MNT (used for all stakes and payouts)


🗄️ Backend Architecture

Real-time Matchmaking

Player joins queue → WebSocket broadcasts

Match found → Both players notified

3-second countdown → Game starts simultaneously

Scores submitted → Smart contract declares winner

Firebase Integration

  • Match history storage

  • Leaderboard aggregation

  • Player statistics tracking


🎮 Demo

Live App: https://surge-snowy.vercel.app/


⚡ Quickstart

Prerequisites

  • Node.js v18+

  • MetaMask wallet

  • Mantle Sepolia testnet configured

  • MNT test tokens

Install & Run

# Clone the repository

git clone https://github.com/Mrinmoy-programmer07/Surge.git

cd Surge

# Install frontend dependencies

cd frontend

pnpm install

# Install backend dependencies

cd ../backend

pnpm install

# Start backend server

pnpm start

# Start frontend (new terminal)

cd frontend

pnpm run dev

Deploy Contracts

cd contracts

pnpm install

npx hardhat compile

npx hardhat run scripts/deploy.js --network mantleSepolia


🔗 Links


SURGE. Play. Win. Earn.

Progress During Hackathon

🧩 Hackathon Journey SURGE was born from a simple question: What if your gaming skills could actually pay off? We started with frustration — traditional games reward time over skill, gambling platforms rely on luck, and most Web3 games are riddled with bots. We wanted something different: a pure skill arena where the best player wins. STEP 1: Deployed SurgeGaming.sol on Mantle Sepolia. First stake, first match, first on-chain payout. STEP 2: Built the matchmaking engine with Socket.io. Watching two players connect in real-time for the first time was magic. STEP 3: Created 5 unique cognitive games, each testing different skills. Number Memory pushed players to remember 8-digit sequences in milliseconds. STEP 4: The UI transformation. From basic forms to a cyberpunk arena with GSAP animations, neon glows, and premium micro-interactions. STEP 5: Polish, polish, polish. Dynamic word API for infinite scrambles, speed-based scoring, difficulty calibration across all games. From late-night debugging sessions to watching strangers compete for real stakes, SURGE evolved from an idea into a skill-proving battleground. This isn't just a game — it's proof that Web3 gaming can be fair, skill-based, and genuinely fun.

Fundraising Status

Surge Gaming is actively seeking funding and strategic partnerships to accelerate the development of our decentralized pay-before-queue gaming platform. Our goal is to expand from a hackathon prototype into a fully playable, scalable, and community-driven Web3 competitive gaming ecosystem built on Mantle.
Team Leader
SSatish Jalan
Project Link
Sector
Gaming