Skip to content

Sahillrathore/multiplayer-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β™Ÿ WeChess – Real-Time Multiplayer Chess

A real-time full-stack< chess game built using the MERN stack with live gameplay updates via WebSockets.
Players can compete online, spectate matches, and even share challenge links to play instantly β€” no signup needed.

πŸ”— Live App: https://wechess.netlify.app


✨ Features

  • πŸ§‘β€πŸ€β€πŸ§‘ Multiplayer Chess with Live Moves
  • πŸ”— Challenge Link System β€” share & play instantly
  • ⚑ Real-time updates using WebSockets / Socket.io
  • πŸšͺ Play as a registered user or guest
  • βœ”οΈ Move validation, turn system, check/checkmate detection
  • πŸ”„ Reconnect & resume gameplay
  • 🏁 Automatic match-result detection

πŸ›  Tech Stack

Layer Technologies
Frontend React, Tailwind CSS, Chess.js, Chessboard UI, Framer Motion, Redux, Socket IO
Backend Node.js, Express.js
Real-time Communication Socket.io
Database MongoDB + Mongoose
Deployment Netlify (Frontend), Backend Render.com

πŸ“ Project Structure

WeChess/
β”œβ”€β”€ client/ # React Frontend
β”‚ β”œβ”€β”€ src/components/
β”‚ β”œβ”€β”€ src/pages/
β”‚ └── src/store/
β”‚
β”œβ”€β”€ server/ # Node.js + Express Backend
β”‚ β”œβ”€β”€ auth/
β”‚ β”œβ”€β”€ game/
β”‚ β”œβ”€β”€ config 
β”‚ └── index.js
β”‚
└── README.md

---

## πŸš€ Run Project Locally

# Clone repo
git clone https://github.com/Sahillrathore/multiplayer-chess.git
cd multiplayer-chess

# Install dependencies
cd client && npm install
cd ../server && npm install

# Start backend
cd server
npm run dev

# Start frontend
cd ../client
npm run dev

## πŸš€ Run Project Locally

* User logs in or continues as guest
* A new match is created OR joined via shared link
* Moves sync live between both players
* Checkmate / Resign β†’ Game ends automatically

About

A multiplayer chess game that features real time play between two players and allows users to review their past games by loading the PGN over the board. This also lets users to create a custom challenge link and send to friends to accept the challenge.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages