Skip to content
Adrian Mark Doczi — Home
All projects

Chessy

Real-time chess for two in the browser. Pick a room code, send it to a friend and you can start playing right away. The server checks every move against the full rules, and there is a move list and chat next to the board.

Status
Live
My role
My own project. I designed and built it, and I run it on my own server.
Technologies
Node.js, Express.js, Socket.IO, EJS

The problem

Two people should be able to play chess in the browser with nothing but a room code: no sign-up, nothing to install.

The solution

A Node.js and Express server keeps every game, validates each move against the rules and pushes the new state to both players over Socket.IO. The pages are rendered with EJS.

Main features

  • Rooms joined with a code you send to a friend
  • Moves appear for both players in real time
  • The server checks every move against the full rules of chess
  • A move list and chat next to the board
  • Checkmate is detected, and a dialog ends the game

How it is built

  • Node.js and Express.js server
  • Real-time communication with Socket.IO
  • Event-driven architecture
  • Multiplayer game rooms
  • Game state kept in sync between the players
  • Move validation on the server
  • The rules of chess, including checkmate detection
  • Real-time chat and move history
  • Joining by room code, without signing up
  • Server-rendered pages with EJS
  • Self-hosted on my own server

The hardest part

Keeping two browsers in step: every move is validated on the server, and the game state, the move list and the chat reach both players in real time.

Screens

Chessy

100%