Prometheuse1/chess_game — reverse-engineered prompt
Reverse engineered prompt
Build me a basic chess game in C++ that I can compile and run on Windows. It should show a chess board, let two people play against each other on the same computer, accept moves in a clear way, update the board after each move, and block illegal moves like moving pieces the wrong way or moving through other pieces.
Include the normal chess pieces and rules as much as is reasonable for a simple project, including captures, check, checkmate, and the option to restart or quit. Keep it beginner friendly and easy to understand, with clean code split between the main program and the board logic.
If there is already old code in this folder, reuse it where it makes sense and clean up anything broken so the project builds without errors.
Want more depth? Deep Reverse