PavanRocks2045/Sequence
0
๐ด Sequence โ Online Multiplayer Board Game
Play the classic Sequence board game online with friends! Create a room, share the link, and enjoy real-time multiplayer gameplay.
โจ Features
- Real-time Multiplayer โ Play with friends via shareable room links
- Up to 3 Teams โ Blue, Green, and Red teams with neon-glow chips
- Private Hands โ Each player only sees their own cards
- Full Board Visibility โ See all placed chips on the 10ร10 board
- No Turn Timer โ Play at your own pace
- Card Shuffle Animation โ Gorgeous deck-shuffling animation on game start
- Premium Dark UI โ Glassmorphism design with dark theme
- Jack Mechanics โ Two-eyed jacks (wild) and one-eyed jacks (remove)
- Sequence Detection โ Automatic win detection for 5-in-a-row
๐ Quick Start (Local)
# Clone the repo
git clone https://github.com/Pavan20045/sequence.git
cd sequence
# Install dependencies
npm install
# Start the server
npm startOpen http://localhost:3000 in your browser. Share the room code with friends!
๐ฏ How to Play
- Create a Game โ Enter your name and click "Create Game"
- Share the Room Code โ Send the code or link to friends
- Choose Teams โ Each player selects Blue, Green, or Red
- Start โ Host clicks "Start Game"
- Play Cards โ Select a card from your hand, click the matching board space
- Make Sequences โ Get 5 chips in a row (horizontal, vertical, or diagonal)
- Win! โ First team to complete the required sequences wins!
Special Cards
- Two-Eyed Jacks (Jโฆ, Jโฃ) โ Wild! Place your chip on any empty space
- One-Eyed Jacks (Jโ , Jโฅ) โ Remove an opponent's chip from the board
- Corner Spaces โ Free for all teams (count toward any sequence)
๐ฆ Deployment
Vercel
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prodNote: Vercel uses serverless functions. WebSocket support requires special configuration. For full real-time multiplayer, use a platform that supports persistent WebSocket connections (like Hugging Face Spaces, Railway, or Render).
Hugging Face Spaces (Docker)
- Create a new Space on Hugging Face
- Select Docker as the SDK
- Push this repo to the Space:
# Add HF remote
git remote add hf https://huggingface.co/spaces/PavanRocks2045/Sequence
# Push
git push hf mainThe Dockerfile is pre-configured to use port 7860 (HF Spaces default).
Railway / Render
Simply connect your GitHub repo โ both platforms auto-detect Node.js projects.
๐ Tech Stack
๐ Project Structure
sequence-game/
โโโ server.js # Express + Socket.IO server
โโโ gameLogic.js # Core game logic (board, deck, sequences)
โโโ Dockerfile # Docker config for HF Spaces
โโโ vercel.json # Vercel deployment config
โโโ package.json
โโโ public/
โโโ index.html # Single-page app
โโโ css/
โ โโโ style.css # Premium dark theme
โโโ js/
โโโ app.js # Client-side game logic๐ License
MIT โ Feel free to fork and modify!
