A modern real-time multiplayer gaming platform featuring Sudoku, Battleship, and Tic-Tac-Toe. Built with cutting-edge web technologies for seamless multiplayer experiences with live chat, leaderboards, and responsive design.
| Game | Description | Players | Features |
|---|---|---|---|
| š§© Sudoku | Collaborative puzzle solving | 1-4 | Real-time sync, hints, difficulty levels |
| ā Battleship | Classic naval combat | 2 | Ship placement, turn-based combat, animations |
| ā Tic-Tac-Toe | Quick strategy matches | 2 | Fast gameplay, instant results |
- š¬ Real-time Chat - In-game messaging for all multiplayer games
- š Live Leaderboards - Track progress and rankings in real-time
- š± Mobile Responsive - Optimized for all devices and screen sizes
- š Modern UI - Beautiful interface with smooth animations
- š Auto-reconnect - Robust connection handling with automatic reconnection
- React 19 - Latest React with concurrent features
- TypeScript - Full type safety and enhanced developer experience
- Zustand - Lightweight state management for each game
- Tailwind CSS 4 - Modern utility-first styling with animations
- Shadcn UI - Beautiful, accessible component library
- Vite - Lightning-fast build tool and dev server
- Node.js & Express - Scalable server architecture
- Socket.IO - Real-time bidirectional communication
- CORS - Cross-origin resource sharing configuration
- š¦ Node.js 18+
- š§ npm or yarn
# 1ļøā£ Clone the repository git clone https://github.com/bPavan16/ubiquitous-sudoku.git cd ubiquitous-sudoku # 2ļøā£ Install dependencies cd backend && npm install cd ../frontend && npm install # 3ļøā£ Setup environment files cp backend/.env.example backend/.env cp frontend/.env.example frontend/.env
# š„ļø Start backend (Terminal 1) cd backend && npm run dev # ā Server: http://localhost:3001 # š Start frontend (Terminal 2) cd frontend && npm run dev # ā App: http://localhost:5173
- š„ Health Check:
http://localhost:3001/api/health - š® Available Games:
http://localhost:3001/api/games - š Game Stats:
http://localhost:3001/api/stats
- Import your repo to Vercel
- Set root directory to
backend/ - Add environment variables:
NODE_ENV=production CORS_ORIGIN=https://your-frontend-domain.vercel.app
- Create new Vercel project for frontend
- Set root directory to
frontend/ - Add environment variable:
VITE_BACKEND_SERVER_URL=https://your-backend-domain.vercel.app
ā ļø Note: Vercel uses polling transport for Socket.IO (no WebSocket support in serverless)
š¦ ubiquitous-games/
āāā š„ļø backend/ # Node.js Express Server
ā āāā src/games/ # Game logic implementations
ā āāā src/socket/ # Socket.IO management
ā āāā src/index.js # Server entry point
āāā š frontend/ # React Application
ā āāā src/components/ # React components
ā āāā src/store/ # Zustand state stores
ā āāā src/App.tsx # Main app component
āāā š README.md # Project documentation
We welcome contributions! Here's how you can help:
- š“ Fork the repository
- š Create your feature branch (
git checkout -b feature/amazing-feature) - š¾ Commit your changes (
git commit -m 'Add amazing feature') - š¤ Push to the branch (
git push origin feature/amazing-feature) - š Open a Pull Request
bPavan16
- š GitHub: @bPavan16
- š« Repository: ubiquitous-sudoku
This project is licensed under the MIT License - feel free to use it however you'd like!
š® Ready to play? Start Gaming Now! š®
Made with ā¤ļø by bPavan16