Chess Powers
Real-time multiplayer chess with AI-generated custom piece rules
A multiplayer chess variant platform where players define custom piece behaviour in plain English. A GPT-4o agent interprets the description, generates JavaScript class overrides for each piece, and writes a human-readable summary. No coding required — just describe what you want ("the knight can teleport to any empty square once per game") and the agent handles the rest.
/create and chats with the AI agent in freeform — no structured prompts
CustomPieceDefinition[] with JS code and plain-English summaries
Function constructor
- Piece logic runs entirely client-side in a restricted sandbox — no access to
window,document, or network APIs - Server only syncs game state via WebSocket; it never executes user-generated code
- Lobbies persist after games end and can be browsed and re-joined by other players
- The agent is given the full
Pieceabstract interface in its system prompt to ensure generated code always conforms