Why does ChatGPT play illegal moves in chess?
ChatGPT can suggest an illegal chess move when its text reply is not checked against the rules of the current position. It may use the wrong piece location, miss a check or overlook a blocked path. The immediate fix is to reject the move on a legal-move board, keep the last valid position and ask for a replacement.
This describes an unchecked move suggestion. ChatGPT can also use tools: a connected chess program can store the position and reject invalid moves. The model, the information it receives and the validation around it all matter. “ChatGPT always has no board” is too broad, just as “send a FEN and it cannot go wrong” is too strong.
What can go wrong?
| Failure | What you notice | What to check |
|---|---|---|
| Position drift | A captured piece reappears or a piece starts on the wrong square | Compare the current FEN and accepted move list |
| Missed king safety | A natural-looking move leaves the king in check | Is the king attacked after the proposed move? |
| Blocked path or special rule | A bishop passes through a pawn, or castling is unavailable | Piece paths, castling rights and the exact position |
| Notation mismatch | The intended move is unclear or the board cannot parse it | Side to move, language of piece initials and full move notation |
The last case is worth separating: malformed or ambiguous notation is not necessarily an illegal chess idea. Find out what move was intended before diagnosing the chess.
The September 2026 GameArena paper supplied tested models with FEN and move history, and used an external referee. Illegal or malformed outputs triggered retries; four unsuccessful attempts lost the game. That is evidence about those tested systems, not a universal error rate for every ChatGPT model or tool configuration.
Example 1: ignoring a check
Under FIDE's rule 3.9.2, a move cannot leave or expose your own king to check. Here Black is already in check after 1.e4 e5 2.Nf3 d6 3.Bb5+. The bishop on b5 attacks the king on e8.
Developing the knight to f6 would be illegal here: it does not stop the bishop's attack on the king. Our Stockfish check instead gives the pawn to c6, knight to d7 and bishop to d7 as its three leading choices. Each blocks the check. This is an illustrative position, not a claim that a particular current ChatGPT model played that error.
Notice the useful question: “Does this move deal with the check?” A move can develop a piece and look normal while failing the one rule that matters in this position.
Example 2: a bishop blocked by its own pawn
After 1.d4 d5 2.Nf3 Nf6, White cannot move the bishop from f1 to c4. Its path crosses e2, where White's own pawn still stands.
The same bishop move is familiar from openings where White has moved that pawn. Familiarity does not make it legal in this position. A good explanation must account for the pieces actually on the board, rather than describing a common opening pattern.
These two examples show different errors: missing an attack on the king, and missing an occupied square. For the broader distinction between generating commentary and calculating chess, see ChatGPT vs Stockfish.
A recovery prompt after an illegal move
Use the position before the rejected move. Copy it from your board rather than asking the assistant to reconstruct its own mistake.
Your last move was rejected by my board. It has not been played.
The last accepted position is:
FEN: [paste the current FEN from the board]
Accepted move list: [paste the moves]
It is [White/Black] to move.
Suggest one replacement move in standard algebraic notation.
If the position or notation is unclear, ask me before moving.
Do not continue from the rejected move. I will validate your replacement on the board.
A FEN supplies the position; a PGN supplies the game's moves and metadata (Chess.com's explanation). Neither turns a text answer into a validated move. If you keep having to repair the game, use a chess program as the opponent and use the assistant for discussion afterward. Our guide to playing with Claude applies the same board-first routine.
Legal is not the same as good
A legal-move checker answers whether the move is allowed. An engine evaluates how strong it is. A language explanation answers why a checked move matters. Mixing those jobs can produce a plausible explanation of a weak move, or a correct evaluation attached to the wrong board.
For your own finished games, save the position and engine line, then ask what your move allowed and what the alternative changes. Can ChatGPT analyze chess games? explains how to keep that evidence attached to the discussion.
Chess Coach provides this workflow inside ChatGPT and Claude. Stockfish runs on our server for finished Chess.com and Lichess games, and you can test moves on the interactive board. The assistant explains checked findings; its wording still needs to match the board. It never helps with a game in progress.
Use Claude's public directory → Connect, or ChatGPT's public listing → Install plugin → Connect Chess Coach, then sign in. Follow the steps for Chess Coach in ChatGPT or Chess Coach in Claude to connect your account and request a review. New accounts set it up in about 3 minutes, with a diagnosis of their last 20 games, and then choose a plan.
Frequently asked questions
Why does ChatGPT suggest illegal chess moves?
A proposed move in a text reply may not have passed through a legal-move validator. The model can use the wrong position, miss king safety or overlook a blocked path. A separate board or chess tool must check the actual move.
Does sending ChatGPT a FEN prevent illegal moves?
No. A FEN gives the current position, including whose turn it is and castling rights. That helps avoid ambiguity, but the proposed move still needs to be validated on that position.
Do all ChatGPT models make illegal moves at the same rate?
No. Results depend on the model, input, reasoning setup and validation tools. A benchmark of specific models does not establish a rate for every ChatGPT conversation or newer model.
How do I recover after ChatGPT makes an illegal move?
Keep the last legal position on your board, copy its FEN and move list, and ask for a replacement move from there. Do not add the rejected move to the game. Check the replacement before continuing.