hatchmoment. scored by care · not by stars

dicechess-play-api

Real‑time Dice Chess server with bot API, rating ladder, and WebSocket play

Dice Chess Play API provides a real‑time server for the dice‑based chess variant, supporting human‑vs‑human, human‑vs‑bot, and bot‑vs‑bot matches. It exposes a WebSocket interface for instant play, a REST/ndjson bot API for third‑party bots, and automatically maintains a Glicko‑2 rating ladder. Built in Scala 3 with cats‑effect and http4s, it guarantees provably fair dice rolls via a commit‑reveal protocol and stores game state in PostgreSQL for durability. The design keeps game logic isolated, enabling easy scaling and reliable crash recovery.

bot-apicats-effectdice-chessdoobiefortematefs2game-serverglicko-2http4spostgresqlscalascala3websocket
View on GitHub →

fortemate/dicechess-play-api