Thanglm2006/ChessServer — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me the backend for an online multiplayer chess app. I need users to be able to sign up, log in with JWT or Google, find opponents through a queue, play live games with WebSocket updates, and have the server validate moves so players can’t cheat.

Please include a server managed chess clock with timeout handling, Elo rating changes after games, friend requests, friend lists, direct game invites, and saved game history in PGN format. Use Java with Spring Boot, PostgreSQL for persistent data, Redis for live game and matchmaking state, and Docker Compose so I can run everything locally with one command.

Also add clear API and WebSocket instructions for a frontend developer, including the main auth, matchmaking, friend, game, and history flows. Make the setup simple with environment variables for the database, Redis, and Google OAuth. Look up current docs online if you need to.

Want more depth? Deep Reverse