This is a web-based multiplayer chess game implemented in JavaScript using Node.js and the following modules:
express
socket.io
connect
- Clone the repository.
- Install the required dependencies by running
npm install
.
- Start the server by running
npm start
. - Open your web browser and navigate to
http://localhost:3000
. - Enter your opponent ID in the reserved place. Then you will have a random piece color to start the game with.
- Enjoy the game.
In this we implement the following features :
- Basics:
- Piece movement
- Capture
- King Castling (long and short)
- Check and Checkmate
- Sound effect (to make things much better)
To play with another player on another machine, change the socket address from localhost to the server address in the board.js file.
If you found any bugs or you have some advices you have the issues section
- Thanks to Chess.com for inspiring the design