A real-time multiplayer chess game built with Node.js, Socket.io, and vanilla JavaScript.
- 🎮 Real-time multiplayer gameplay
- 🏠 Room-based matchmaking
- ♟️ Full chess rules validation
- 📱 Responsive design
- 🎨 Clean, modern UI
- 🔄 Automatic reconnection handling
- Create a Game: Click "Create New Game" to generate a room
- Share Room ID: Copy the room ID and share it with your opponent
- Join a Game: Enter a room ID and click "Join Game"
- Play: Take turns making moves - white goes first!
- Go to glitch.com
- Click "New Project" → "Import from GitHub" (or upload zip)
- Upload the project files
- The app will auto-start and provide a public URL
- Go to render.com
- Create a new Web Service
- Connect your GitHub repo or upload files
- Set build command:
npm install - Set start command:
npm start
npm install
npm startThen open http://localhost:3000
- Backend: Node.js + Express + Socket.io
- Frontend: Vanilla JavaScript + CSS Grid
- Chess Logic: chess.js library
- Real-time: WebSockets via Socket.io
- Click a piece to select it
- Valid moves are highlighted
- Click a highlighted square to move
- Use "Resign" to forfeit
- Use "Offer Draw" to propose a draw
Enjoy your game! ♟️