A multiplayer implementation of chess, using Chessboard.js, Chess.js, Express.js, and Socket.IO.
This is hosted on my website, the-index.info.
Setup is pretty simple.
- Clone the repository:
git clone https://github.com/nethe550/multiplayer-chess.git && cd ./multiplayer-chess/
- Run
npm install
to install all dependencies. - Edit
port
in config.json. This is the port the Node.js server listens on. (default: 3000) - Edit
games
in config.json. This is the amount of concurrent game rooms that the server will serve. (default: 128) - Run
npm init
to start the server.
To access the chess server, go to http://<your-hostname>:<your-port>
.
<your-hostname>
is the host name of whatever you're running the server off of. (Usuallylocalhost
)<your-port>
is the port number you specified in config.json (default: 3000)
- Added room availability display on room join menu
- Fixed error with status saying player is in check by themselves
- Fixed CSS for Chrome-based browsers
- Fixed CSS for Safari-based browsers
- Theme switcher now stores preference as a cookie
- Styled the chess board to match the themes better
- Auto-resize chess board on window resize for reactive layout
- Fixed some invalid state situations caused by joining / leaving the same game multiple times
- Fixed usability on mobile devices