Skip to content

niikhilpatel/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♟ Real-Time Multiplayer Chess Game

To visit the Live Project LIVE PREVIEW deployed in AWS EC2

To play this game open this link in one device and open once again in another device and both automatically connected.

A real-time multiplayer chess game built with Node.js, Socket.IO, and Chess.js. Players can drag and drop pieces, view captured pieces, and see whose turn it is. The UI is built using Tailwind CSS and supports spectator mode for additional users.

📸 Screenshots

Game Interface

image

Captured Pieces

image

🚀 Features

  • Real-time multiplayer gameplay using WebSockets
  • Automatic player role assignment (white / black / spectator)
  • Drag and drop movement using native HTML5 APIs
  • Turn indicator to show who's playing
  • Captured pieces display for both players
  • Board auto-rotates for black player
  • Clean and responsive UI with Tailwind CSS

🧠 Tech Stack

Frontend:

  • HTML5 + Tailwind CSS
  • JavaScript (Drag and Drop API)
  • EJS Template Engine

Backend:

  • Node.js
  • Express.js
  • Socket.IO (WebSocket communication)

Game Logic:

  • chess.js – for move validation and game state management

📦 Installation

git clone https://github.com/niikhilpatel/chess.git
cd chess
npm install
npm start

About

A multiplayer game using socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors