PavanRocks2045/Sequence
0
1---2title: Sequence3emoji: ๐ด4colorFrom: purple5colorTo: blue6sdk: docker7app_port: 78608pinned: false9---10 11# ๐ด Sequence โ Online Multiplayer Board Game12 13Play the classic **Sequence** board game online with friends! Create a room, share the link, and enjoy real-time multiplayer gameplay.14 15161718 19## โจ Features20 21- **Real-time Multiplayer** โ Play with friends via shareable room links22- **Up to 3 Teams** โ Blue, Green, and Red teams with neon-glow chips23- **Private Hands** โ Each player only sees their own cards24- **Full Board Visibility** โ See all placed chips on the 10ร10 board25- **No Turn Timer** โ Play at your own pace26- **Card Shuffle Animation** โ Gorgeous deck-shuffling animation on game start27- **Premium Dark UI** โ Glassmorphism design with dark theme28- **Jack Mechanics** โ Two-eyed jacks (wild) and one-eyed jacks (remove)29- **Sequence Detection** โ Automatic win detection for 5-in-a-row30 31## ๐ Quick Start (Local)32 33```bash34# Clone the repo35git clone https://github.com/Pavan20045/sequence.git36cd sequence37 38# Install dependencies39npm install40 41# Start the server42npm start43```44 45Open `http://localhost:3000` in your browser. Share the room code with friends!46 47## ๐ฏ How to Play48 491. **Create a Game** โ Enter your name and click "Create Game"502. **Share the Room Code** โ Send the code or link to friends513. **Choose Teams** โ Each player selects Blue, Green, or Red524. **Start** โ Host clicks "Start Game"535. **Play Cards** โ Select a card from your hand, click the matching board space546. **Make Sequences** โ Get 5 chips in a row (horizontal, vertical, or diagonal)557. **Win!** โ First team to complete the required sequences wins!56 57### Special Cards58- **Two-Eyed Jacks (Jโฆ, Jโฃ)** โ Wild! Place your chip on any empty space59- **One-Eyed Jacks (Jโ , Jโฅ)** โ Remove an opponent's chip from the board60- **Corner Spaces** โ Free for all teams (count toward any sequence)61 62## ๐ฆ Deployment63 64### Vercel65 66```bash67# Install Vercel CLI68npm i -g vercel69 70# Deploy71vercel --prod72```73 74> **Note:** 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).75 76### Hugging Face Spaces (Docker)77 781. Create a new Space on [Hugging Face](https://huggingface.co/new-space)792. Select **Docker** as the SDK803. Push this repo to the Space:81 82```bash83# Add HF remote84git remote add hf https://huggingface.co/spaces/PavanRocks2045/Sequence85 86# Push87git push hf main88```89 90The Dockerfile is pre-configured to use port 7860 (HF Spaces default).91 92### Railway / Render93 94Simply connect your GitHub repo โ both platforms auto-detect Node.js projects.95 96## ๐ Tech Stack97 98| Layer | Tech |99|-------|------|100| Server | Node.js + Express |101| Real-time | Socket.IO |102| Frontend | Vanilla HTML/CSS/JS |103| Styling | Custom CSS (Dark Glassmorphism) |104| Font | [Outfit](https://fonts.google.com/specimen/Outfit) |105 106## ๐ Project Structure107 108```109sequence-game/110โโโ server.js # Express + Socket.IO server111โโโ gameLogic.js # Core game logic (board, deck, sequences)112โโโ Dockerfile # Docker config for HF Spaces113โโโ vercel.json # Vercel deployment config114โโโ package.json115โโโ public/116 โโโ index.html # Single-page app117 โโโ css/118 โ โโโ style.css # Premium dark theme119 โโโ js/120 โโโ app.js # Client-side game logic121```122 123## ๐ License124 125MIT โ Feel free to fork and modify!126 