Skip to content

Taylan474/chess-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Chess Game

A simple real-time multiplayer chess app built with React, Node.js, and Socket.IO. This project supports real-time communication between two players in the same match — no backend database, no lobby, just pure chess.

Demo

Two players can play in real-time with synchronized moves and resign detection.

Main menu

Features

  • Real-time multiplayer with Socket.IO

  • Simple username + game code join system

  • Turn-based logic and board sync

  • Game over on resignation

  • Fully responsive interface

Getting Started

Note: Requires Node.js version 18. You can use nvm to manage multiple Node versions.

  1. Start the Server
cd chess-serverSide
npm install
npm audit fix --force
npm start

The server will run on port 5000.

  1. Start the Client

Open a second terminal and run:

cd chess-clientSide
npm install --force
npm audit fix --force
npm start

The client will be available at http://localhost:3000.

To simulate both players, open two browser tabs with the same address.

Gameplay in Action

Player 1 moves Player 2 view after one move

Game Over Button after resigining

Game over screen after resigning

Tech Stack

  • Frontend: React, Chess.js, Socket.IO Client

  • Backend: Node.js, Express, Socket.IO

License

This project is open source and available under the MIT License.

Future Improvements

  • Add timers for each player

  • Implement game replay feature

  • Add lobby system

  • Implement chat between players

Contributions and pull requests are welcome.

Project by Taylan.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors