AKIRA//DR
Back to Mission Database
CLASSIFIED // DECRYPTING...
SECONDARYSEC-10 // KING_SYNCSEM_05

Realtime Multiplayer Chess

Authoritative Socket.IO multiplayer chess with WebRTC P2P video calling and 60s rejoin.

Live Demo: TODO(user)
Role
Solo Creator
Status
SHIPPED
Timeline
2026-09-04 → 2026-09-04
Repo Snapshot
0 Stars · 0 Forks
MISSION // HIGHLIGHTS
SECONDARY
  • >Server holds authoritative chess.js game state — invalid moves are rejected centrally.
  • >Custom 8x8 SVG board with zero external image assets, plus spectator mode & 60s reconnect window.
  • >Peer-to-peer WebRTC video calling with TURN relay fallback and throttled in-room chat.
SYS//ARCHITECTURE_TOPOLOGY
Realtime Multiplayer Chess
01 // CLIENT_INTERFACE> React02 // CORE_RUNTIME> Express> Socket.IO> WebRTC> chess.js03 // DATA_&_CLOUD> Local / Cloud State

// Briefing

Built solo purely for the fun of engineering an authoritative real-time game loop with integrated peer-to-peer video and zero external board graphics.

// Architecture

Node + Express + Socket.IO backend validates every move via chess.js and broadcasts FEN/SAN updates. The Vite + React client mirrors legal drags locally and negotiates WebRTC video streams with optional TURN credentials.

// Build Log

Implemented room codes, time controls with increment, takeback/draw limits, end-to-end TypeScript smoke test (smoke-test.ts), and two-service render.yaml deployment.

// Challenges

Coordinating reconnect grace timers (60s rejoin window) alongside WebRTC offer/answer signaling without leaking stale room state.

// Outcome

Verified server flow with automated smoke-test.ts covering checkmate, takebacks, rematch, and video signaling. TODO(user): Share Render live URL when deployed.

// Next Steps

Deploy chess-server and chess-client blueprint to Render for instant two-player links.

SYS//TECH_STACK
6 MODULES

Core Stack

ReactTypeScriptExpressSocket.IOWebRTCchess.js

Domains

Full-StackBackendFrontend

Tags

#multiplayer#websockets#webrtc#game-dev
RELLINKED_MISSIONS

Related Projects