Prompt:
FEN: r3kbnr/pppb1ppp/2nq4/4p3/2P3P1/3PpP2/PP1B2BP/RN1QK1NR w KQkq - 0 10
List all capture moves available.


Prompt:
Given FEN: r1br2k1/1p3ppp/p1n1p3/3q4/8/1Q2PN2/PP1N1PPP/2R2RK1 b - - 1 14
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 4rrk1/1pp2ppn/p1p2qbp/8/4P1R1/2NP2QP/PPP3P1/5RK1 b - - 8 20
Is the move b7b6 legal?


Prompt:
FEN: 8/8/3k1p2/3p2p1/1P3PP1/4K3/8/8 b - -
List pseudo-legal moves from d5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 1r4k1/6P1/2N4K/8/1P1RP3/3P4/8/8 b - - 2 49
For the piece on g8, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from g8: g8f7 g8f8 g8g7 g8h7 g8h8.
Legal: g8f7.
Rejected: g8f8 king_would_be_in_check; g8g7 king_would_be_in_check; g8h7 king_would_be_in_check; g8h8 king_would_be_in_check.


Prompt:
FEN: 3k3r/4bppp/p1p5/2n1n3/PP3P2/7P/1P3PB1/RNB3K1 b - -
For move a6a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a6a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 5rk1/p6p/1q6/1p4p1/1Pp1RbQ1/P1Pr1P1P/1B4P1/5K1R b - - 1 34
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: d3 black rook; c4 black pawn; f4 black bishop; b5 black pawn; g5 black pawn; b6 black queen; a7 black pawn; h7 black pawn; f8 black rook; g8 black king.
Moves by piece:
d3 black rook: d3c3 d3d1 d3d2 d3d4 d3d5 d3d6 d3d7 d3d8 d3e3 d3f3
c4 black pawn: no legal moves
f4 black bishop: f4b8 f4c1 f4c7 f4d2 f4d6 f4e3 f4e5 f4g3 f4h2
b5 black pawn: no legal moves
g5 black pawn: no legal moves
b6 black queen: b6a5 b6a6 b6b7 b6b8 b6c5 b6c6 b6c7 b6d4 b6d6 b6d8 b6e3 b6e6 b6f2 b6f6 b6g1 b6g6 b6h6
a7 black pawn: a7a5 a7a6
h7 black pawn: h7h5 h7h6
f8 black rook: f8a8 f8b8 f8c8 f8d8 f8e8 f8f5 f8f6 f8f7
g8 black king: g8f7 g8g7 g8h8
All legal moves: a7a5 a7a6 b6a5 b6a6 b6b7 b6b8 b6c5 b6c6 b6c7 b6d4 b6d6 b6d8 b6e3 b6e6 b6f2 b6f6 b6g1 b6g6 b6h6 d3c3 d3d1 d3d2 d3d4 d3d5 d3d6 d3d7 d3d8 d3e3 d3f3 f4b8 f4c1 f4c7 f4d2 f4d6 f4e3 f4e5 f4g3 f4h2 f8a8 f8b8 f8c8 f8d8 f8e8 f8f5 f8f6 f8f7 g8f7 g8g7 g8h8 h7h5 h7h6


Prompt:
FEN: rnbqkb1r/pp3ppp/5n2/3p4/3P4/1pN1PN2/P4PPP/R1BQKB1R w KQkq -
Walk each ray for the slider on a1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a1 white rook.
Ray N: a2 white pawn: own piece (stop, excluded).
Ray E: b1 empty; c1 white bishop: own piece (stop, excluded).
Ray S: edge.
Ray W: edge.
Moves from rays: a1b1


Prompt:
FEN: 8/8/6K1/8/8/8/1kp5/5Q2 w - -
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: white.
Pieces: f1 white queen; g6 white king.
Filter by piece:
f1 white queen: pseudo-legal f1a1 f1a6 f1b1 f1b5 f1c1 f1c4 f1d1 f1d3 f1e1 f1e2 f1f2 f1f3 f1f4 f1f5 f1f6 f1f7 f1f8 f1g1 f1g2 f1h1 f1h3 | rejected none | legal f1a1 f1a6 f1b1 f1b5 f1c1 f1c4 f1d1 f1d3 f1e1 f1e2 f1f2 f1f3 f1f4 f1f5 f1f6 f1f7 f1f8 f1g1 f1g2 f1h1 f1h3
g6 white king: pseudo-legal g6f5 g6f6 g6f7 g6g5 g6g7 g6h5 g6h6 g6h7 | rejected none | legal g6f5 g6f6 g6f7 g6g5 g6g7 g6h5 g6h6 g6h7
All legal moves: f1a1 f1a6 f1b1 f1b5 f1c1 f1c4 f1d1 f1d3 f1e1 f1e2 f1f2 f1f3 f1f4 f1f5 f1f6 f1f7 f1f8 f1g1 f1g2 f1h1 f1h3 g6f5 g6f6 g6f7 g6g5 g6g7 g6h5 g6h6 g6h7


Prompt:
FEN: 4r3/p5pk/6bp/8/1p3NPP/2Pp1P2/P2R1K2/8 b - - 0 34
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b4b3 b4c3 e8a8 e8b8 e8c8 e8d8 e8e1 e8e2 e8e3 e8e4 e8e5 e8e6 e8e7 e8f8 e8g8 e8h8 g6e4 g6f5 g6f7 g6h5 h6h5 h7g8 h7h8


Prompt:
FEN: 8/pp4r1/2p5/7p/2k4P/P7/7K/8 b - - 3 49
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: c4 black king; h5 black pawn; c6 black pawn; a7 black pawn; b7 black pawn; g7 black rook.


Prompt:
FEN: 2kr4/2ppbp2/p5p1/1p4Pp/3Pb3/1P6/PPN5/R1B1K3 b - - 2 23
What legal moves does the piece on e4 have?

e4a8 e4b7 e4c2 e4c6 e4d3 e4d5 e4f3 e4f5 e4g2 e4h1


Prompt:
FEN: 5r2/p1p2p1p/1qP2nk1/5R2/1pPN4/1P1Br2P/PQ4P1/R5K1 w - - 3 25
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 4b3/8/3k4/3P4/1B1KP3/8/8/8 b - -
List all capture moves available.


Prompt:
Given FEN: 8/8/p1p5/P1P5/5k1P/1KP1p3/1N5r/8 b - - 3 56
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: rnb1r1k1/1p3pbp/p2p2p1/2pP2B1/Pq2B3/R1N2N2/1P1Q1PPP/4K2R b K -
Is the move d6f7 legal?

No, illegal. Reason: own piece destination.


Prompt:
FEN: rn1q1rk1/pp3ppp/2pb2b1/8/3PpP1P/2P1P1R1/PP1N2Q1/R1B1K1N1 b Q - 1 16
List pseudo-legal moves from c6.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: r2qkb1r/pp5p/2n1bnp1/2pp1p2/8/2PPP1P1/PPK1BP1P/RNBQ3R b kq - 1 11
For the piece on c5, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from c5: c5c4.
Legal: c5c4.
Rejected: none.


Prompt:
FEN: r5k1/6p1/bp2p3/p2pBr2/3P4/2P1P1P1/P5K1/R6R b - - 0 27
For move g8h7, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: g8h7.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: rnb1kbnr/ppp1q1pp/5p2/3pp3/8/3P2P1/PPPBPPBP/RN1QK1NR w KQkq - 0 7
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: a1 white rook; b1 white knight; d1 white queen; e1 white king; g1 white knight; h1 white rook; a2 white pawn; b2 white pawn; c2 white pawn; d2 white bishop; e2 white pawn; f2 white pawn; g2 white bishop; h2 white pawn; d3 white pawn; g3 white pawn.
Moves by piece:
a1 white rook: no legal moves
b1 white knight: b1a3 b1c3
d1 white queen: d1c1
e1 white king: e1f1
g1 white knight: g1f3 g1h3
h1 white rook: no legal moves
a2 white pawn: a2a3 a2a4
b2 white pawn: b2b3 b2b4
c2 white pawn: c2c3 c2c4
d2 white bishop: d2a5 d2b4 d2c1 d2c3 d2e3 d2f4 d2g5 d2h6
e2 white pawn: e2e3 e2e4
f2 white pawn: f2f3 f2f4
g2 white bishop: g2d5 g2e4 g2f1 g2f3 g2h3
h2 white pawn: h2h3 h2h4
d3 white pawn: d3d4
g3 white pawn: g3g4
All legal moves: a2a3 a2a4 b1a3 b1c3 b2b3 b2b4 c2c3 c2c4 d1c1 d2a5 d2b4 d2c1 d2c3 d2e3 d2f4 d2g5 d2h6 d3d4 e1f1 e2e3 e2e4 f2f3 f2f4 g1f3 g1h3 g2d5 g2e4 g2f1 g2f3 g2h3 g3g4 h2h3 h2h4


Prompt:
FEN: rnbqkbnr/p4ppp/1pppp3/8/8/1PP1P3/P1QP1PPP/RNB1KBNR w KQkq - 0 5
Walk each ray for the slider on a1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a1 white rook.
Ray N: a2 white pawn: own piece (stop, excluded).
Ray E: b1 white knight: own piece (stop, excluded).
Ray S: edge.
Ray W: edge.
Moves from rays: none


Prompt:
FEN: r1bq1rk1/p2p1pp1/2p2n1p/4p3/2B1P2B/2P5/P1P2PPP/R2Q1RK1 b - - 1 11
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 a8b8 c6c5 c8a6 c8b7 d7d5 d7d6 d8a5 d8b6 d8c7 d8e7 d8e8 f6d5 f6e4 f6e8 f6g4 f6h5 f6h7 f8e8 g7g5 g7g6 g8h7 g8h8 h6h5


Prompt:
FEN: r3k1nr/1bp3bp/p2pP3/1p4B1/8/1P6/1PP1QPqP/RN2K2R w KQkq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a1a2 a1a3 a1a4 a1a5 a1a6 b1a3 b1c3 b1d2 b3b4 c2c3 c2c4 e1d1 e1d2 e2b5 e2c4 e2d1 e2d2 e2d3 e2e3 e2e4 e2e5 e2f1 e2f3 e2g4 e2h5 e6e7 f2f3 f2f4 g5c1 g5d2 g5d8 g5e3 g5e7 g5f4 g5f6 g5h4 g5h6 h1f1 h1g1 h2h3 h2h4


Prompt:
FEN: r3kbnr/ppqb2pp/2n1p3/3pP3/P2p3P/2P2N2/1P4P1/RNBQKB1R w KQkq - 0 10
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: a1 white rook; b1 white knight; c1 white bishop; d1 white queen; e1 white king; f1 white bishop; h1 white rook; b2 white pawn; g2 white pawn; c3 white pawn; f3 white knight; a4 white pawn; h4 white pawn; e5 white pawn.


Prompt:
FEN: 2Q2N2/ppp4p/2kp2p1/2bPp3/5P2/3P4/PP1K1nPP/n1B4R b - -
What legal moves does the piece on f2 have?


Prompt:
FEN: r1b1kb1r/pp2pppp/6q1/2p5/8/2Q4P/PPP2P2/R1B1K1NR b KQkq - 3 13
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 8/4k3/N6p/2P5/P1bp1P2/6K1/7P/8 w - - 1 48
List all capture moves available.


Prompt:
Given FEN: k7/8/2p5/r6p/1K6/1P1p4/2q4P/8 b - - 2 42
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 8/4q3/2p5/2P4k/3p1p1P/5P1K/5Q2/8 w - - 0 50
Is the move c5h3 legal?

No, illegal. Reason: own piece destination.


Prompt:
FEN: rnbqkb1r/pp3ppp/3ppn2/2p5/2B1P3/3P1N2/PPP2PPP/RNBQ1RK1 b kq - 0 5
List pseudo-legal moves from d6.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: r4rk1/3qbppp/1p2pn2/3p4/2pP4/p3PP2/R5PP/1NQ1K1NR w K - 0 18
For the piece on b1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from b1: b1a3 b1c3 b1d2.
Legal: b1a3 b1c3 b1d2.
Rejected: none.


Prompt:
FEN: r1bqkbnr/ppp2ppp/2n1p3/1N1p4/3P1B2/8/PPP1PPPP/R2QKBNR b KQkq - 1 4
For move a7a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a7a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: r4r1k/pb1nqn1p/4p1p1/5pP1/1p1P1P1P/3BN3/PPQ1N3/2KR3R w - - 2 21
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: c1 white king; d1 white rook; h1 white rook; a2 white pawn; b2 white pawn; c2 white queen; e2 white knight; d3 white bishop; e3 white knight; d4 white pawn; f4 white pawn; h4 white pawn; g5 white pawn.
Moves by piece:
c1 white king: c1b1 c1d2
d1 white rook: d1d2 d1e1 d1f1 d1g1
h1 white rook: h1e1 h1f1 h1g1 h1h2 h1h3
a2 white pawn: a2a3 a2a4
b2 white pawn: b2b3
c2 white queen: c2a4 c2b1 c2b3 c2c3 c2c4 c2c5 c2c6 c2c7 c2c8 c2d2
e2 white knight: e2c3 e2g1 e2g3
d3 white bishop: d3a6 d3b5 d3c4 d3e4 d3f5
e3 white knight: e3c4 e3d5 e3f1 e3f5 e3g2 e3g4
d4 white pawn: d4d5
f4 white pawn: no legal moves
h4 white pawn: h4h5
g5 white pawn: no legal moves
All legal moves: a2a3 a2a4 b2b3 c1b1 c1d2 c2a4 c2b1 c2b3 c2c3 c2c4 c2c5 c2c6 c2c7 c2c8 c2d2 d1d2 d1e1 d1f1 d1g1 d3a6 d3b5 d3c4 d3e4 d3f5 d4d5 e2c3 e2g1 e2g3 e3c4 e3d5 e3f1 e3f5 e3g2 e3g4 h1e1 h1f1 h1g1 h1h2 h1h3 h4h5


Prompt:
FEN: rn1qkb1r/ppp1nppp/8/3p4/3P4/3B1Q2/PPP2PPP/RNB2RK1 b kq - 1 8
Walk each ray for the slider on a8: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a8 black rook.
Ray N: edge.
Ray E: b8 black knight: own piece (stop, excluded).
Ray S: a7 black pawn: own piece (stop, excluded).
Ray W: edge.
Moves from rays: none


Prompt:
FEN: 3b2k1/pb3pp1/1pq1p2p/2p5/4PB2/2P2P1P/PPB1Q1P1/6K1 w - - 0 21
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b2b3 b2b4 c2a4 c2b1 c2b3 c2d1 c2d3 c3c4 e2a6 e2b5 e2c4 e2d1 e2d2 e2d3 e2e1 e2e3 e2f1 e2f2 e4e5 f4b8 f4c1 f4c7 f4d2 f4d6 f4e3 f4e5 f4g3 f4g5 f4h2 f4h6 g1f1 g1f2 g1h1 g1h2 g2g3 g2g4 h3h4


Prompt:
FEN: r2q1rk1/p3bppp/1p2p3/3b4/1n1p4/1P3NP1/PB1QPPBP/R4RK1 w - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a1b1 a1c1 a1d1 a1e1 a2a3 a2a4 b2a3 b2c1 b2c3 b2d4 d2b4 d2c1 d2c2 d2c3 d2d1 d2d3 d2d4 d2e1 d2e3 d2f4 d2g5 d2h6 e2e3 e2e4 f1b1 f1c1 f1d1 f1e1 f3d4 f3e1 f3e5 f3g5 f3h4 g1h1 g2h1 g2h3 g3g4 h2h3 h2h4


Prompt:
FEN: 6k1/6pp/3p4/4p3/p1PpP3/P2R3P/1r4r1/1K1R4 w - - 3 29
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: b1 white king; d1 white rook; a3 white pawn; d3 white rook; h3 white pawn; c4 white pawn; e4 white pawn.


Prompt:
FEN: 1rb2rk1/2qn1pp1/4p2p/2P5/8/6P1/2Q1NPBP/R1R3K1 b - -
What legal moves does the piece on g7 have?


Prompt:
FEN: 1r3rk1/1q3p1p/2pp2p1/8/1pPPB2Q/1N3R2/6P1/1R4K1 b - - 1 24
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: rn1q1rk1/1p1bb1pp/p2p1n2/2pPp3/2P1Pp2/2NB2P1/PP3PKP/R1BQNR2 b - - 1 12
List all capture moves available.


Prompt:
Given FEN: 2r5/pp3k1p/3bNp2/3P4/2P2p2/2K2P2/P6P/4R3 w - - 0 27
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 3kq2r/3p2pp/3B3n/1B3P2/p7/5P2/PP4PP/2RR2K1 b - - 0 28
Is the move h7e1 legal?

No, illegal. Reason: illegal piece movement or blocked path.


Prompt:
FEN: 1r6/4ppkp/3p2p1/2pP4/1nq1P1P1/2N2PKP/1P1Q4/1R6 w - -
List pseudo-legal moves from b1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from b1: b1a1 b1c1 b1d1 b1e1 b1f1 b1g1 b1h1


Prompt:
FEN: r1bqk2r/2p1bppp/1nN1p3/p2n4/Q1pP4/6P1/P3PPBP/RNB2RK1 w kq -
For the piece on b1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from b1: b1a3 b1c3 b1d2.
Legal: b1a3 b1c3 b1d2.
Rejected: none.


Prompt:
FEN: 2kr2nQ/2pq1p1p/p5p1/1pb5/3pP3/PP6/1P2NPPP/RNB2RK1 b - - 0 14
For move a6a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a6a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 2k4r/p1p1bppp/1p3n2/1P6/P3n3/4B3/1PP1NP1P/2KR4 b - - 4 19
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: e4 black knight; b6 black pawn; f6 black knight; a7 black pawn; c7 black pawn; e7 black bishop; f7 black pawn; g7 black pawn; h7 black pawn; c8 black king; h8 black rook.
Moves by piece:
e4 black knight: e4c3 e4c5 e4d2 e4d6 e4f2 e4g3 e4g5
b6 black pawn: no legal moves
f6 black knight: f6d5 f6d7 f6e8 f6g4 f6g8 f6h5
a7 black pawn: a7a5 a7a6
c7 black pawn: c7c5 c7c6
e7 black bishop: e7a3 e7b4 e7c5 e7d6 e7d8 e7f8
f7 black pawn: no legal moves
g7 black pawn: g7g5 g7g6
h7 black pawn: h7h5 h7h6
c8 black king: c8b7 c8b8
h8 black rook: h8d8 h8e8 h8f8 h8g8
All legal moves: a7a5 a7a6 c7c5 c7c6 c8b7 c8b8 e4c3 e4c5 e4d2 e4d6 e4f2 e4g3 e4g5 e7a3 e7b4 e7c5 e7d6 e7d8 e7f8 f6d5 f6d7 f6e8 f6g4 f6g8 f6h5 g7g5 g7g6 h7h5 h7h6 h8d8 h8e8 h8f8 h8g8


Prompt:
FEN: 1r6/p1rnkpp1/1p1pp2p/P2p4/3P4/R2BP3/1PPK1PPP/2R5 w - -
Walk each ray for the slider on c1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: c1 white rook.
Ray N: c2 white pawn: own piece (stop, excluded).
Ray E: d1 empty; e1 empty; f1 empty; g1 empty; h1 empty; edge.
Ray S: edge.
Ray W: b1 empty; a1 empty; edge.
Moves from rays: c1a1 c1b1 c1d1 c1e1 c1f1 c1g1 c1h1


Prompt:
FEN: r2q1rk1/p3bppp/1p1p4/4N3/4Q3/1P6/nBP2PPP/3R1RK1 w - - 0 16
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: b2a1 b2a3 b2c1 b2c3 b2d4 b3b4 c2c3 c2c4 d1a1 d1b1 d1c1 d1d2 d1d3 d1d4 d1d5 d1d6 d1e1 e4a4 e4a8 e4b4 e4b7 e4c4 e4c6 e4d3 e4d4 e4d5 e4e1 e4e2 e4e3 e4f3 e4f4 e4f5 e4g4 e4g6 e4h4 e4h7 e5c4 e5c6 e5d3 e5d7 e5f3 e5f7 e5g4 e5g6 f1e1 f2f3 f2f4 g1h1 g2g3 g2g4 h2h3 h2h4


Prompt:
FEN: r3r1k1/1pp2pp1/p1n5/P4b2/1PN1pb1N/2P4P/1K2R3/4RB2 b - - 1 31
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a8a7 a8b8 a8c8 a8d8 b7b5 b7b6 c6a5 c6a7 c6b4 c6b8 c6d4 c6d8 c6e5 c6e7 e4e3 e8b8 e8c8 e8d8 e8e5 e8e6 e8e7 e8f8 f4c1 f4d2 f4d6 f4e3 f4e5 f4g3 f4g5 f4h2 f4h6 f5c8 f5d7 f5e6 f5g4 f5g6 f5h3 f5h7 f7f6 g7g5 g7g6 g8f8 g8h7 g8h8


Prompt:
FEN: 3rkr2/1pq2p1Q/2b1pPp1/pp5p/5P2/P2B4/2P3PP/3R1R1K w - - 5 31
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: d1 white rook; f1 white rook; h1 white king; c2 white pawn; g2 white pawn; h2 white pawn; a3 white pawn; d3 white bishop; f4 white pawn; f6 white pawn; h7 white queen.


Prompt:
FEN: rnbqkb1r/pp2pppp/2p2n2/6N1/4p3/2N4P/PPPP1PP1/R1BQKB1R b KQkq -
What legal moves does the piece on e8 have?


Prompt:
FEN: 8/pp5R/b2p1k2/K2n4/8/8/8/8 b - - 1 48
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: rnbqkb1r/ppp1nppp/4p3/3p4/3P1B2/4PN2/PPP2PPP/RN1QKB1R b KQkq - 0 4
List all capture moves available.


Prompt:
Given FEN: 8/6pk/4R3/1rb3Kp/8/3P4/7P/8 w - - 0 40
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 2k1r3/1p1r1p1p/p7/2p1Pn2/3P1P2/1P1R2P1/P3N2P/2K4R b - - 0 23
Is the move e8a4 legal?

No, illegal. Reason: illegal piece movement or blocked path.


Prompt:
FEN: rn1qkbnr/ppp1ppp1/7p/3p1b2/2PP1B2/2N5/PP2PPPP/R2QKBNR b KQkq - 1 4
List pseudo-legal moves from d5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 8/8/1Pk2pp1/7p/7P/b3B1P1/5PK1/8 w - -
For the piece on f2, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from f2: f2f3 f2f4.
Legal: f2f3 f2f4.
Rejected: none.


Prompt:
FEN: rnbqk2r/p1pp1p1p/1p2pbp1/7n/1Q2P2P/6P1/PPPP1P2/RNB1KBNR b KQkq - 1 8
For move e8e7, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: e8e7.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: rn1qk2r/ppp1bppp/8/3pPb2/3Nn3/3B4/PPP2PPP/RNBQ1RK1 b kq -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: e4 black knight; d5 black pawn; f5 black bishop; a7 black pawn; b7 black pawn; c7 black pawn; e7 black bishop; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; b8 black knight; d8 black queen; e8 black king; h8 black rook.
Moves by piece:
e4 black knight: e4c3 e4c5 e4d2 e4d6 e4f2 e4f6 e4g3 e4g5
d5 black pawn: no legal moves
f5 black bishop: f5c8 f5d7 f5e6 f5g4 f5g6 f5h3
a7 black pawn: a7a5 a7a6
b7 black pawn: b7b5 b7b6
c7 black pawn: c7c5 c7c6
e7 black bishop: e7a3 e7b4 e7c5 e7d6 e7f6 e7f8 e7g5 e7h4
f7 black pawn: f7f6
g7 black pawn: g7g5 g7g6
h7 black pawn: h7h5 h7h6
a8 black rook: no legal moves
b8 black knight: b8a6 b8c6 b8d7
d8 black queen: d8c8 d8d6 d8d7
e8 black king: e8d7 e8f8 e8g8
h8 black rook: h8f8 h8g8
All legal moves: a7a5 a7a6 b7b5 b7b6 b8a6 b8c6 b8d7 c7c5 c7c6 d8c8 d8d6 d8d7 e4c3 e4c5 e4d2 e4d6 e4f2 e4f6 e4g3 e4g5 e7a3 e7b4 e7c5 e7d6 e7f6 e7f8 e7g5 e7h4 e8d7 e8f8 e8g8 f5c8 f5d7 f5e6 f5g4 f5g6 f5h3 f7f6 g7g5 g7g6 h7h5 h7h6 h8f8 h8g8


Prompt:
FEN: r3k2r/ppq1bp2/1np1pnbp/3pP1p1/3P4/PPN2PP1/2PBN1BP/R2Q1RK1 b kq -
Walk each ray for the slider on g6: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: g6 black bishop.
Ray NE: h7 empty; edge.
Ray SE: h5 empty; edge.
Ray SW: f5 empty; e4 empty; d3 empty; c2 white pawn: capture (stop, included).
Ray NW: f7 black pawn: own piece (stop, excluded).
Moves from rays: g6c2 g6d3 g6e4 g6f5 g6h5 g6h7


Prompt:
FEN: rn1qkb1r/ppp1n3/3ppp1p/6p1/2BPP3/4BQ1P/PPPN1PP1/R4RK1 b kq - 1 10
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b7b5 b7b6 b8a6 b8c6 b8d7 c7c5 c7c6 d6d5 d8c8 d8d7 e6e5 e7c6 e7c8 e7d5 e7f5 e7g6 e7g8 e8d7 e8f7 f6f5 f8g7 g5g4 h6h5 h8g8 h8h7


Prompt:
FEN: 1R6/2Q5/8/6P1/6K1/k7/8/8 w - - 13 59
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: b8a8 b8b1 b8b2 b8b3 b8b4 b8b5 b8b6 b8b7 b8c8 b8d8 b8e8 b8f8 b8g8 b8h8 c7a5 c7a7 c7b6 c7b7 c7c1 c7c2 c7c3 c7c4 c7c5 c7c6 c7c8 c7d6 c7d7 c7d8 c7e5 c7e7 c7f4 c7f7 c7g3 c7g7 c7h2 c7h7 g4f3 g4f4 g4f5 g4g3 g4h3 g4h4 g4h5 g5g6


Prompt:
FEN: rnbqkbnr/p1pp1ppp/1p2p3/8/3PP3/2N5/PPP2PPP/R1BQKBNR b KQkq - 0 3
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: b6 black pawn; e6 black pawn; a7 black pawn; c7 black pawn; d7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; b8 black knight; c8 black bishop; d8 black queen; e8 black king; f8 black bishop; g8 black knight; h8 black rook.


Prompt:
FEN: 1B6/3k4/pp2p2p/5n2/6p1/5pP1/PPP2P1P/4K3 b - - 1 28
What legal moves does the piece on a6 have?


Prompt:
FEN: 2r4b/8/1pk1p1pp/2p1p3/2P1N3/R3P2P/1P2KPP1/8 b - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: r1bqr3/pp1nppkp/2p3p1/8/2P5/1P1n4/P2PNPPP/RN1Q1RK1 w - - 0 14
List all capture moves available.


Prompt:
Given FEN: 5rk1/pr3p2/1pp1p2p/2P3p1/PP1PR1P1/3Q1P1q/1B5b/R6K w - - 0 30
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 3k4/7R/5pp1/3K4/8/7P/6P1/8 b - - 9 58
Is the move h2d6 legal?


Prompt:
FEN: r2b1rk1/2p2ppp/p3b3/1p4B1/8/1P3N2/1PP2PPP/R4RK1 w - - 0 18
List pseudo-legal moves from a1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from a1: a1a2 a1a3 a1a4 a1a5 a1a6 a1b1 a1c1 a1d1 a1e1


Prompt:
FEN: rnbqk2r/1pp1bppp/p2p1n2/8/3NP3/2NB4/PPP2PPP/R1BQK2R w KQkq - 2 7
For the piece on a1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from a1: a1b1.
Legal: a1b1.
Rejected: none.


Prompt:
FEN: 1r3rk1/5pp1/p6p/4PPb1/2q5/1P3N1P/P5K1/1R3R2 w - - 0 33
For move a2a3, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a2a3.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 8/2k5/1p2R3/1B2P3/P2P1pp1/4n3/1PP4r/6K1 b - - 2 33
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: h2 black rook; e3 black knight; f4 black pawn; g4 black pawn; b6 black pawn; c7 black king.
Moves by piece:
h2 black rook: h2c2 h2d2 h2e2 h2f2 h2g2 h2h1 h2h3 h2h4 h2h5 h2h6 h2h7 h2h8
e3 black knight: e3c2 e3c4 e3d1 e3d5 e3f1 e3f5 e3g2
f4 black pawn: f4f3
g4 black pawn: g4g3
b6 black pawn: no legal moves
c7 black king: c7b7 c7b8 c7c8 c7d8
All legal moves: c7b7 c7b8 c7c8 c7d8 e3c2 e3c4 e3d1 e3d5 e3f1 e3f5 e3g2 f4f3 g4g3 h2c2 h2d2 h2e2 h2f2 h2g2 h2h1 h2h3 h2h4 h2h5 h2h6 h2h7 h2h8


Prompt:
FEN: r1b1k2r/2qp1ppp/p1pb1n2/8/P3PB2/2N5/1PP1BQPP/R4RK1 b kq -
Walk each ray for the slider on d6: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: d6 black bishop.
Ray NE: e7 empty; f8 empty; edge.
Ray SE: e5 empty; f4 white bishop: capture (stop, included).
Ray SW: c5 empty; b4 empty; a3 empty; edge.
Ray NW: c7 black queen: own piece (stop, excluded).
Moves from rays: d6a3 d6b4 d6c5 d6e5 d6e7 d6f4 d6f8


Prompt:
FEN: 3q4/4prkp/3p1pp1/1prP4/p1P2P2/1P1Q3P/P5P1/3RR2K b - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a4a3 a4b3 b5b4 b5c4 c5c4 c5c6 c5c7 c5c8 c5d5 d8a5 d8a8 d8b6 d8b8 d8c7 d8c8 d8d7 d8e8 d8f8 d8g8 d8h8 e7e5 e7e6 f6f5 f7f8 g6g5 g7f8 g7g8 g7h6 g7h8 h7h5 h7h6


Prompt:
FEN: r2qkbnr/pp1n1ppp/4p3/1BppPb2/3P4/2P2N1P/PP3PP1/RNBQK2R b KQkq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 a8b8 a8c8 b7b6 c5c4 c5d4 d8a5 d8b6 d8b8 d8c7 d8c8 d8e7 d8f6 d8g5 d8h4 e8e7 f5b1 f5c2 f5d3 f5e4 f5g4 f5g6 f5h3 f7f6 f8d6 f8e7 g7g5 g7g6 g8e7 g8f6 g8h6 h7h5 h7h6


Prompt:
FEN: 8/6p1/p4p2/1p2kPp1/1P6/3K3B/1P3n2/8 w - - 4 50
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: b2 white pawn; d3 white king; h3 white bishop; b4 white pawn; f5 white pawn.


Prompt:
FEN: 3kr1r1/pp2n2p/2pQ4/2n5/8/6P1/PPPP1PKP/R1B4R b - - 0 18
What legal moves does the piece on d8 have?


Prompt:
FEN: 6rk/6pp/8/5Q2/r1q5/6P1/P4P1P/R4RK1 w - - 1 28
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 1K6/8/7p/8/6p1/7k/8/8 b - - 1 54
List all capture moves available.


Prompt:
Given FEN: r4rk1/1b3ppp/pp3n2/3qn3/P7/2B1PN2/4BPPP/2RQ1RK1 b - - 1 19
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r3k3/ppp1r2N/3b2Q1/5p2/2n5/2P5/P1P2PbP/R1K4R b - - 0 23
Is the move a7e8 legal?

No, illegal. Reason: own piece destination.


Prompt:
FEN: r1b2rk1/pp2ppbp/1qn2np1/2pp4/3P1B2/2PBPN2/PP1N1PPP/R1Q2RK1 b - -
List pseudo-legal moves from c5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 8/2qk3p/P1b2p1P/Q1B1p1p1/2P5/5P2/5KP1/8 w - -
For the piece on f2, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from f2: f2e1 f2e2 f2e3 f2f1 f2g1 f2g3.
Legal: f2e1 f2e2 f2e3 f2f1 f2g1 f2g3.
Rejected: none.


Prompt:
FEN: 5r2/p2nkp1Q/3p4/2pP4/2Pp1Nr1/5K2/P1P2P2/8 b - - 4 23
For move e7e6, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: e7e6.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: 4n2k/4R1p1/2b4p/p1pp4/3p4/P2P3P/B1PB1PP1/6K1 w - - 1 32
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: g1 white king; a2 white bishop; c2 white pawn; d2 white bishop; f2 white pawn; g2 white pawn; a3 white pawn; d3 white pawn; h3 white pawn; e7 white rook.
Moves by piece:
g1 white king: g1f1 g1h1 g1h2
a2 white bishop: a2b1 a2b3 a2c4 a2d5
c2 white pawn: c2c3 c2c4
d2 white bishop: d2a5 d2b4 d2c1 d2c3 d2e1 d2e3 d2f4 d2g5 d2h6
f2 white pawn: f2f3 f2f4
g2 white pawn: g2g3 g2g4
a3 white pawn: a3a4
d3 white pawn: no legal moves
h3 white pawn: h3h4
e7 white rook: e7a7 e7b7 e7c7 e7d7 e7e1 e7e2 e7e3 e7e4 e7e5 e7e6 e7e8 e7f7 e7g7
All legal moves: a2b1 a2b3 a2c4 a2d5 a3a4 c2c3 c2c4 d2a5 d2b4 d2c1 d2c3 d2e1 d2e3 d2f4 d2g5 d2h6 e7a7 e7b7 e7c7 e7d7 e7e1 e7e2 e7e3 e7e4 e7e5 e7e6 e7e8 e7f7 e7g7 f2f3 f2f4 g1f1 g1h1 g1h2 g2g3 g2g4 h3h4


Prompt:
FEN: 8/8/p3bk2/1p1p3p/1P1P1P2/P3N1K1/8/8 w - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a3a4 e3c2 e3c4 e3d1 e3d5 e3f1 e3f5 e3g2 e3g4 f4f5 g3f2 g3f3 g3g2 g3h2 g3h4


Prompt:
FEN: 8/1p6/8/8/4k1K1/8/1P6/8 b - -
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: black.
Pieces: e4 black king; b7 black pawn.
Filter by piece:
e4 black king: pseudo-legal e4d3 e4d4 e4d5 e4e3 e4e5 e4f3 e4f4 e4f5 | rejected e4f3 king_would_be_in_check; e4f4 king_would_be_in_check; e4f5 king_would_be_in_check | legal e4d3 e4d4 e4d5 e4e3 e4e5
b7 black pawn: pseudo-legal b7b5 b7b6 | rejected none | legal b7b5 b7b6
All legal moves: b7b5 b7b6 e4d3 e4d4 e4d5 e4e3 e4e5


Prompt:
FEN: r2qkb1r/pp1n1ppp/5n2/2pp1b2/3P1B2/2P2N2/PP1N1PPP/R2QKB1R w KQkq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a1b1 a1c1 a2a3 a2a4 b2b3 b2b4 c3c4 d1a4 d1b1 d1b3 d1c1 d1c2 d1e2 d2b1 d2b3 d2c4 d2e4 d4c5 e1e2 f1a6 f1b5 f1c4 f1d3 f1e2 f3e5 f3g1 f3g5 f3h4 f4b8 f4c7 f4d6 f4e3 f4e5 f4g3 f4g5 f4h6 g2g3 g2g4 h1g1 h2h3 h2h4


Prompt:
FEN: r1b1r1k1/1p3ppp/p1qp1b2/2n1p3/4P3/2N3NP/PPP1BPP1/1R1Q1RK1 w - -
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: b1 white rook; d1 white queen; f1 white rook; g1 white king; a2 white pawn; b2 white pawn; c2 white pawn; e2 white bishop; f2 white pawn; g2 white pawn; c3 white knight; g3 white knight; h3 white pawn; e4 white pawn.


Prompt:
FEN: r2q1rk1/pb1nbppp/1p2p3/8/3PP3/5NP1/P4PBP/R1BQR1K1 w - -
What legal moves does the piece on d1 have?


Prompt:
FEN: r1bq1rk1/pp1p1ppp/2n2n2/8/1bP1p3/2N1PN2/PP1B1PPP/R2QKB1R w KQ -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: r1bqkb1r/pppp2pp/2n2n2/5P2/2B1p3/8/PPPP1PPP/RNBQK1NR w KQkq -
List all capture moves available.


Prompt:
Given FEN: 5rk1/4qppp/ppr1pn2/6N1/2b2P2/2P1Q3/6PP/R4RK1 w - - 0 27
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 7k/5p1p/4R3/6p1/8/6P1/5PBP/5K2 w - -
Is the move h8f5 legal?


Prompt:
FEN: 2r3k1/4r2p/p5p1/5p2/2PN3q/Q3PB2/P2n4/1R3RK1 b - -
List pseudo-legal moves from d2.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from d2: d2b1 d2b3 d2c4 d2e4 d2f1 d2f3


Prompt:
FEN: rn1q1rk1/pp1bb1pp/3p4/3P1p2/3Pp3/5N2/PP2BPPP/R1BQ1RK1 w - - 0 12
For the piece on a1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from a1: a1b1.
Legal: a1b1.
Rejected: none.


Prompt:
FEN: r4rk1/p5bp/1p2b1p1/3P2Bq/6pP/Q7/PP3P2/3R1RK1 w - -
For move a3a4, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a3a4.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 1rbq1rk1/p3ppbp/2np1np1/2p5/1p2PPP1/3PNN2/PPP3BP/R1BQ1RK1 b - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: b4 black pawn; c5 black pawn; c6 black knight; d6 black pawn; f6 black knight; g6 black pawn; a7 black pawn; e7 black pawn; f7 black pawn; g7 black bishop; h7 black pawn; b8 black rook; c8 black bishop; d8 black queen; f8 black rook; g8 black king.
Moves by piece:
b4 black pawn: b4b3
c5 black pawn: c5c4
c6 black knight: c6a5 c6d4 c6e5
d6 black pawn: d6d5
f6 black knight: f6d5 f6d7 f6e4 f6e8 f6g4 f6h5
g6 black pawn: g6g5
a7 black pawn: a7a5 a7a6
e7 black pawn: e7e5 e7e6
f7 black pawn: no legal moves
g7 black bishop: g7h6 g7h8
h7 black pawn: h7h5 h7h6
b8 black rook: b8a8 b8b5 b8b6 b8b7
c8 black bishop: c8a6 c8b7 c8d7 c8e6 c8f5 c8g4
d8 black queen: d8a5 d8b6 d8c7 d8d7 d8e8
f8 black rook: f8e8
g8 black king: g8h8
All legal moves: a7a5 a7a6 b4b3 b8a8 b8b5 b8b6 b8b7 c5c4 c6a5 c6d4 c6e5 c8a6 c8b7 c8d7 c8e6 c8f5 c8g4 d6d5 d8a5 d8b6 d8c7 d8d7 d8e8 e7e5 e7e6 f6d5 f6d7 f6e4 f6e8 f6g4 f6h5 f8e8 g6g5 g7h6 g7h8 g8h8 h7h5 h7h6


Prompt:
FEN: rn2k2r/pp3ppp/4bq2/1Bbp4/8/2N2N2/PPP2PPP/R2QK2R b KQkq -
Walk each ray for the slider on c5: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: c5 black bishop.
Ray NE: d6 empty; e7 empty; f8 empty; edge.
Ray SE: d4 empty; e3 empty; f2 white pawn: capture (stop, included).
Ray SW: b4 empty; a3 empty; edge.
Ray NW: b6 empty; a7 black pawn: own piece (stop, excluded).
Moves from rays: c5a3 c5b4 c5b6 c5d4 c5d6 c5e3 c5e7 c5f2 c5f8


Prompt:
FEN: r2qkbnr/ppp2pp1/2np3p/4p3/2B1P1b1/2NPBN2/PPP2PPP/R2QK2R b KQkq - 3 6
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 a8b8 a8c8 b7b5 b7b6 c6a5 c6b4 c6b8 c6d4 c6e7 d6d5 d8b8 d8c8 d8d7 d8e7 d8f6 d8g5 d8h4 e8d7 e8e7 f7f5 f7f6 f8e7 g4c8 g4d7 g4e6 g4f3 g4f5 g4h3 g4h5 g7g5 g7g6 g8e7 g8f6 h6h5 h8h7


Prompt:
FEN: 6k1/pbqp1pp1/1p1b3p/2pP4/2B3n1/2NQB1P1/PP3P1P/4N1K1 b - - 1 20
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b6b5 b7a6 b7a8 b7c6 b7c8 b7d5 c7b8 c7c6 c7c8 c7d8 d6e5 d6e7 d6f4 d6f8 d6g3 f7f5 f7f6 g4e3 g4e5 g4f2 g4f6 g4h2 g7g5 g7g6 g8f8 g8h8 h6h5


Prompt:
FEN: 3r4/pB2rp1k/6p1/2P1b2p/3N2b1/4P1P1/P4KP1/1R3R2 b - - 0 25
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: g4 black bishop; e5 black bishop; h5 black pawn; g6 black pawn; a7 black pawn; e7 black rook; f7 black pawn; h7 black king; d8 black rook.


Prompt:
FEN: r2qkb1r/p2n1ppp/2p2n2/2ppp2b/PP1P4/4PP2/1B1N2PP/R2QKBNR w KQkq - 0 10
What legal moves does the piece on d2 have?


Prompt:
FEN: r3k2r/pp3nbp/3p1Np1/q1pNp3/4P3/3P1Q1P/PPP2PP1/R4RK1 b kq - 0 16
Detect the game state: check, checkmate, stalemate, or none.


Prompt:
FEN: 2rq1rk1/3nbpp1/p1n4p/1pP1p2b/1P1pP3/P2B1N1P/1BQN1PP1/R3R1K1 w - - 5 18
List all capture moves available.


Prompt:
Given FEN: r7/2q3pk/p1n2p1b/1p3P2/4Q3/2P5/PP3PP1/R6K w - - 1 28
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 2r2rk1/3qbpp1/1pn1pn1p/1N1p4/5B2/PP2PB1P/5PP1/1QRR2K1 b - -
Is the move e6e5 legal?


Prompt:
FEN: rnbqkbnr/ppp3pp/4pp2/3p4/3PP3/2N2N2/PPP2PPP/R1BQKB1R b KQkq - 1 4
List pseudo-legal moves from d5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 5rk1/1p2bqpp/1P1p1p2/2pPpN2/4P3/3QB2P/5PP1/1R4K1 w - - 5 25
For the piece on b1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from b1: b1a1 b1b2 b1b3 b1b4 b1b5 b1c1 b1d1 b1e1 b1f1.
Legal: b1a1 b1b2 b1b3 b1b4 b1b5 b1c1 b1d1 b1e1 b1f1.
Rejected: none.


Prompt:
FEN: r3r1k1/p4ppp/2p1bn2/2ppN3/8/2PP2P1/PPB3P1/R3R1K1 b - - 4 20
For move a7a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a7a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 2k5/3R4/2K5/2P5/8/8/2r5/8 w - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: c5 white pawn; c6 white king; d7 white rook.
Moves by piece:
c5 white pawn: no legal moves
c6 white king: c6b5 c6b6 c6d5 c6d6
d7 white rook: d7a7 d7b7 d7c7 d7d1 d7d2 d7d3 d7d4 d7d5 d7d6 d7d8 d7e7 d7f7 d7g7 d7h7
All legal moves: c6b5 c6b6 c6d5 c6d6 d7a7 d7b7 d7c7 d7d1 d7d2 d7d3 d7d4 d7d5 d7d6 d7d8 d7e7 d7f7 d7g7 d7h7


Prompt:
FEN: 3r3r/1pk2p1p/6p1/2Q5/1n1p1PqP/8/PPP1P3/2K2R1R b - - 0 23
Walk each ray for the slider on g4: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: g4 black queen.
Ray N: g5 empty; g6 black pawn: own piece (stop, excluded).
Ray NE: h5 empty; edge.
Ray E: h4 white pawn: capture (stop, included).
Ray SE: h3 empty; edge.
Ray S: g3 empty; g2 empty; g1 empty; edge.
Ray SW: f3 empty; e2 white pawn: capture (stop, included).
Ray W: f4 white pawn: capture (stop, included).
Ray NW: f5 empty; e6 empty; d7 empty; c8 empty; edge.
Moves from rays: g4c8 g4d7 g4e2 g4e6 g4f3 g4f4 g4f5 g4g1 g4g2 g4g3 g4g5 g4h3 g4h4 g4h5


Prompt:
FEN: r6r/1p1bkppp/p7/4B3/2B1P3/5N2/PPP1nPPP/2KR3R w - - 1 16
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: c1b1 c1d2 c4e2


Prompt:
FEN: 4rk2/ppp3p1/2np3p/2b5/2B2Bnq/2N5/PP4PP/4RR1K w - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b2b3 b2b4 c3a4 c3b1 c3b5 c3d1 c3d5 c3e2 c3e4 c4a6 c4b3 c4b5 c4d3 c4d5 c4e2 c4e6 c4f7 c4g8 e1a1 e1b1 e1c1 e1d1 e1e2 e1e3 e1e4 e1e5 e1e6 e1e7 e1e8 f1f2 f1f3 f1g1 f4c1 f4d2 f4d6 f4e3 f4e5 f4g3 f4g5 f4h6 g2g3 h2h3


Prompt:
FEN: 8/2k3Q1/1rpnq1n1/5p2/5P1p/4P2P/P4R2/5BK1 b - - 5 36
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: h4 black pawn; f5 black pawn; b6 black rook; c6 black pawn; d6 black knight; e6 black queen; g6 black knight; c7 black king.


Prompt:
FEN: 8/2R5/5q2/3k4/8/1P6/K7/2b5 w - - 4 56
What legal moves does the piece on b3 have?


Prompt:
FEN: 8/2k3p1/2p1n3/2P2K2/2r5/8/8/8 b - - 1 49
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 8/8/1k6/4BN2/4K3/8/8/8 w - -
List all capture moves available.


Prompt:
Given FEN: r3k2r/1p1nbppp/p3pn2/P1pp3b/Nq1P1B2/2PBPN1P/5PP1/R2QR1K1 b kq -
List any special moves available (castling, en passant, promotion).

Castling available: kingside, queenside.


Prompt:
FEN: 2kr3r/1ppq1pb1/p2p1n1p/3P4/1P1pP2P/P2P1QP1/6B1/R1B2RK1 b - - 0 17
Is the move c7c6 legal?


Prompt:
FEN: 8/1p6/pn3p2/3p1Pp1/1P1Pb1P1/P3BB2/2k2K2/8 w - -
List pseudo-legal moves from f2.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from f2: f2e1 f2e2 f2f1 f2g1 f2g2 f2g3


Prompt:
FEN: r7/1p3k2/p3b1p1/P4p2/1P1qp3/R2p4/4R2P/2Q4K b - - 0 38
For the piece on d3, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from d3: d3d2 d3e2.
Legal: d3d2 d3e2.
Rejected: none.


Prompt:
FEN: 8/2kP1R2/8/6P1/8/3r3p/6K1/8 w - - 0 44
For move d7d8b, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: d7d8b.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; does_not_resolve_check.


Prompt:
FEN: r1b1k1nr/p1ppqppp/2p5/2b5/4P3/2N2Q2/PPP2PPP/R1B1KB1R b KQkq -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: c5 black bishop; c6 black pawn; a7 black pawn; c7 black pawn; d7 black pawn; e7 black queen; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; c8 black bishop; e8 black king; g8 black knight; h8 black rook.
Moves by piece:
c5 black bishop: c5a3 c5b4 c5b6 c5d4 c5d6 c5e3 c5f2
c6 black pawn: no legal moves
a7 black pawn: a7a5 a7a6
c7 black pawn: no legal moves
d7 black pawn: d7d5 d7d6
e7 black queen: e7d6 e7d8 e7e4 e7e5 e7e6 e7f6 e7f8 e7g5 e7h4
f7 black pawn: f7f5 f7f6
g7 black pawn: g7g5 g7g6
h7 black pawn: h7h5 h7h6
a8 black rook: a8b8
c8 black bishop: c8a6 c8b7
e8 black king: e8d8 e8f8
g8 black knight: g8f6 g8h6
h8 black rook: no legal moves
All legal moves: a7a5 a7a6 a8b8 c5a3 c5b4 c5b6 c5d4 c5d6 c5e3 c5f2 c8a6 c8b7 d7d5 d7d6 e7d6 e7d8 e7e4 e7e5 e7e6 e7f6 e7f8 e7g5 e7h4 e8d8 e8f8 f7f5 f7f6 g7g5 g7g6 g8f6 g8h6 h7h5 h7h6


Prompt:
FEN: r1b1kb1r/1pqn1ppp/p1n1p3/3pP3/3N1PQ1/P1N1B3/1PP3PP/R3KB1R b KQkq -
Walk each ray for the slider on c7: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: c7 black queen.
Ray N: c8 black bishop: own piece (stop, excluded).
Ray NE: d8 empty; edge.
Ray E: d7 black knight: own piece (stop, excluded).
Ray SE: d6 empty; e5 white pawn: capture (stop, included).
Ray S: c6 black knight: own piece (stop, excluded).
Ray SW: b6 empty; a5 empty; edge.
Ray W: b7 black pawn: own piece (stop, excluded).
Ray NW: b8 empty; edge.
Moves from rays: c7a5 c7b6 c7b8 c7d6 c7d8 c7e5


Prompt:
FEN: 8/p4k1p/8/1P2P1r1/1b3N2/P4b1K/1P6/3R4 b - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b4a3 b4a5 b4c3 b4c5 b4d2 b4d6 b4e1 b4e7 b4f8 f3a8 f3b7 f3c6 f3d1 f3d5 f3e2 f3e4 f3g2 f3g4 f3h1 f3h5 f7e7 f7e8 f7f8 f7g7 f7g8 g5e5 g5f5 g5g1 g5g2 g5g3 g5g4 g5g6 g5g7 g5g8 g5h5 h7h5 h7h6


Prompt:
FEN: rnbq1rk1/pp1n1pbp/3p2p1/2pPP3/2P1P3/2N2N2/PP2B1PP/R1BQK2R b KQ - 0 9
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b7b5 b7b6 b8a6 b8c6 d6e5 d7b6 d7e5 d7f6 d8a5 d8b6 d8c7 d8e7 d8e8 d8f6 d8g5 d8h4 f7f5 f7f6 f8e8 g6g5 g7e5 g7f6 g7h6 g7h8 g8h8 h7h5 h7h6


Prompt:
FEN: r2q3k/pppnbrp1/3p2bp/3Pp3/1PP5/P4N1P/1B2BPP1/R2QR1K1 b - - 3 23
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: e5 black pawn; d6 black pawn; g6 black bishop; h6 black pawn; a7 black pawn; b7 black pawn; c7 black pawn; d7 black knight; e7 black bishop; f7 black rook; g7 black pawn; a8 black rook; d8 black queen; h8 black king.


Prompt:
FEN: rnbqk1nr/pBp1b1pp/3ppp2/8/8/3P2P1/PPP1PP1P/RNBQK1NR w KQkq - 0 5
What legal moves does the piece on a2 have?


Prompt:
FEN: 3r1q2/2b1kp2/1RQ5/pK2N3/8/1P6/8/8 w - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 8/p4pk1/1p3Q1p/2p3pP/3p2P1/3P4/PPPK1P2/8 b - - 0 30
List all capture moves available.


Prompt:
Given FEN: rnb1k1nr/ppp2ppp/3p1q2/8/3PPp1b/5N2/PPPKQ1PP/RNB2B1R w kq - 0 7
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: rn1qkbnr/pp2pppp/8/2p5/3pP1b1/2PP1N1P/PP3PP1/RNBQKB1R b KQkq - 0 5
Is the move e7f6 legal?

No, illegal. Reason: illegal piece movement or blocked path.


Prompt:
FEN: r4rk1/1pp1qp1n/3p4/p2b3Q/3pP1p1/P2P2P1/1PP2PBP/R4RK1 w - - 0 17
List pseudo-legal moves from a1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from a1: a1a2 a1b1 a1c1 a1d1 a1e1


Prompt:
FEN: r2qk1nr/pp1bbppp/8/1B1p4/3p2Q1/8/PPPP1PPP/RNB1R1K1 b kq - 5 10
For the piece on d7, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from d7: d7b5 d7c6 d7c8 d7e6 d7f5 d7g4.
Legal: d7b5 d7c6.
Rejected: d7c8 pinned_piece_exposes_king; d7e6 pinned_piece_exposes_king; d7f5 pinned_piece_exposes_king; d7g4 pinned_piece_exposes_king.


Prompt:
FEN: r2q1rk1/p3ppbp/1p1p1np1/1Pp2b2/2n1P3/P1NP1N2/1BQ2PPP/1R2KB1R b K -
For move a7a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a7a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 8/5b1k/5Q2/7K/8/8/8/8 w - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: h5 white king; f6 white queen.
Moves by piece:
h5 white king: h5g4 h5g5 h5h4
f6 white queen: f6f7 f6g6
All legal moves: f6f7 f6g6 h5g4 h5g5 h5h4


Prompt:
FEN: r1b1k2r/4qpbp/p2p4/1p2pP2/8/N1PB4/PP3PPP/R2QK2R b KQkq -
Walk each ray for the slider on e7: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: e7 black queen.
Ray N: e8 black king: own piece (stop, excluded).
Ray NE: f8 empty; edge.
Ray E: f7 black pawn: own piece (stop, excluded).
Ray SE: f6 empty; g5 empty; h4 empty; edge.
Ray S: e6 empty; e5 black pawn: own piece (stop, excluded).
Ray SW: d6 black pawn: own piece (stop, excluded).
Ray W: d7 empty; c7 empty; b7 empty; a7 empty; edge.
Ray NW: d8 empty; edge.
Moves from rays: e7a7 e7b7 e7c7 e7d7 e7d8 e7e6 e7f6 e7f8 e7g5 e7h4


Prompt:
FEN: 3r3k/1q4pb/p3Qb1p/1p6/5BPP/3r4/PP5K/4RR2 w - - 1 30
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b2b3 b2b4 e1a1 e1b1 e1c1 e1d1 e1e2 e1e3 e1e4 e1e5 e6a6 e6b3 e6b6 e6c4 e6c6 e6c8 e6d5 e6d6 e6d7 e6e2 e6e3 e6e4 e6e5 e6e7 e6e8 e6f5 e6f6 e6f7 e6g8 f1f2 f1f3 f1g1 f1h1 f4b8 f4c1 f4c7 f4d2 f4d6 f4e3 f4e5 f4g3 f4g5 f4h6 g4g5 h2g1 h4h5


Prompt:
FEN: r2qkb1r/pp2nppp/3p4/1QpPp1B1/4n1b1/2P5/PP3PPP/RN2KBNR b KQkq - 1 9
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: d8d7 e7c6 g4d7


Prompt:
FEN: 3r1rk1/qb1pn1pp/p1n1p3/1pP1Pp2/1P6/P1N2N2/1Q1RBPPP/2R3K1 w - f6 0 20
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: c1 white rook; g1 white king; b2 white queen; d2 white rook; e2 white bishop; f2 white pawn; g2 white pawn; h2 white pawn; a3 white pawn; c3 white knight; f3 white knight; b4 white pawn; c5 white pawn; e5 white pawn.


Prompt:
FEN: 3r1b1r/pp2k1pp/4p3/4q3/8/1P2P3/P1P1QPPP/3R1RK1 b - - 3 17
What legal moves does the piece on e5 have?

e5a1 e5a5 e5b2 e5b5 e5b8 e5c3 e5c5 e5c7 e5d4 e5d5 e5d6 e5e3 e5e4 e5f4 e5f5 e5f6 e5g3 e5g5 e5h2 e5h5


Prompt:
FEN: r3kb1r/ppp1qppp/2np2b1/8/4n1P1/5N1P/PPPPQPB1/RNB1K2R w KQkq - 1 10
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 2r3k1/pp3p1p/2n1r1p1/2p1pqB1/3p3Q/1P1P2P1/P1P2P2/R3R1K1 b - - 0 23
List all capture moves available.


Prompt:
Given FEN: 4b3/5N2/3p3P/ppkP1p2/2PR1P2/1P2K3/P7/8 w - - 1 38
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r2r2k1/1p3pp1/p5n1/2BP4/1P2P2b/P4pP1/8/RN1R1K2 b - - 3 29
Is the move g8f8 legal?

No, illegal. Reason: king would be in check.


Prompt:
FEN: r1b1k2r/pp3pbp/4p1p1/3q4/3n4/4BP2/PPPQB1PP/2KR3R b kq - 1 12
List pseudo-legal moves from d4.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from d4: d4b3 d4b5 d4c2 d4c6 d4e2 d4f3 d4f5


Prompt:
FEN: rnbqk2r/pp2npbp/2p3p1/4p3/4P3/2NB1P2/PPP1N1PP/R1BQK2R w KQkq - 2 8
For the piece on a1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from a1: a1b1.
Legal: a1b1.
Rejected: none.


Prompt:
FEN: r4rk1/p4p1p/2q3p1/2b1p3/2n5/4B2Q/P4PPP/RNR3K1 w - - 2 23
For move a2a3, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a2a3.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 4rrk1/6Rp/4p1p1/3p3n/2pQ1qP1/7P/1P3PB1/4R1K1 b - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: c4 black pawn; f4 black queen; d5 black pawn; h5 black knight; e6 black pawn; g6 black pawn; h7 black pawn; e8 black rook; f8 black rook; g8 black king.
Moves by piece:
c4 black pawn: no legal moves
f4 black queen: no legal moves
d5 black pawn: no legal moves
h5 black knight: h5g7
e6 black pawn: no legal moves
g6 black pawn: no legal moves
h7 black pawn: no legal moves
e8 black rook: no legal moves
f8 black rook: no legal moves
g8 black king: g8h8
All legal moves: g8h8 h5g7


Prompt:
FEN: r3nrk1/pp1q1pb1/2ppb1pp/8/4P3/2PPB1NP/PP1N1QP1/R4RK1 w - - 0 17
Walk each ray for the slider on a1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a1 white rook.
Ray N: a2 white pawn: own piece (stop, excluded).
Ray E: b1 empty; c1 empty; d1 empty; e1 empty; f1 white rook: own piece (stop, excluded).
Ray S: edge.
Ray W: edge.
Moves from rays: a1b1 a1c1 a1d1 a1e1


Prompt:
FEN: 1N6/8/3K4/5B2/8/8/8/1k6 b - -
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: black.
Pieces: b1 black king.
Filter by piece:
b1 black king: pseudo-legal b1a1 b1a2 b1b2 b1c1 b1c2 | rejected b1c2 does_not_resolve_check | legal b1a1 b1a2 b1b2 b1c1
All legal moves: b1a1 b1a2 b1b2 b1c1


Prompt:
FEN: 3q4/p4pk1/2p2NpR/2P3P1/1P6/P7/1RK2P2/8 b - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 d8a5 d8a8 d8b6 d8b8 d8c7 d8c8 d8d1 d8d2 d8d3 d8d4 d8d5 d8d6 d8d7 d8e7 d8e8 d8f6 d8f8 d8g8 d8h8 g7f8


Prompt:
FEN: rnbqk1nr/pp1p1pbp/2p1p1p1/8/8/3PP3/PPPBBPPP/RN1QK1NR w KQkq - 0 5
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: a1 white rook; b1 white knight; d1 white queen; e1 white king; g1 white knight; h1 white rook; a2 white pawn; b2 white pawn; c2 white pawn; d2 white bishop; e2 white bishop; f2 white pawn; g2 white pawn; h2 white pawn; d3 white pawn; e3 white pawn.


Prompt:
FEN: r1bqkb1r/pp3ppp/2nppn2/1B6/3NPB2/2N5/PPP2PPP/R2QK2R b KQkq -
What legal moves does the piece on g7 have?


Prompt:
FEN: 8/4k3/8/4N3/8/3QK3/8/8 w - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 6k1/1p2q1pp/p1p1p3/1n6/1P2Pn2/P3QP2/1B3KPP/8 b - - 5 28
List all capture moves available.


Prompt:
Given FEN: 7k/2p3p1/6rp/8/4b3/P3b1BP/1P3R1P/R5K1 b - -
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 3rr1k1/pp4pp/6b1/2pN4/2PqNn2/1P1P1P2/P2K3P/R4Q2 w - - 8 28
Is the move e8a2 legal?


Prompt:
FEN: rnbk1b1r/p3q1pp/8/1p1NNp2/3P4/1Q6/PP3PPP/2KR3R b - - 0 15
List pseudo-legal moves from b5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 8/1p6/5k1p/1p1p2p1/1P1P1KPP/P7/8/8 w - -
For the piece on a3, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from a3: a3a4.
Legal: none.
Rejected: a3a4 does_not_resolve_check.


Prompt:
FEN: 8/p5p1/4k2p/P2pP2P/4n1P1/2p1PK2/8/8 b - - 1 33
For move e6d6, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: e6d6.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: 6b1/k1p3p1/8/P1p1P1N1/5P2/2KB4/6PP/8 b - - 0 39
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: c5 black pawn; a7 black king; c7 black pawn; g7 black pawn; g8 black bishop.
Moves by piece:
c5 black pawn: c5c4
a7 black king: a7a8 a7b7 a7b8
c7 black pawn: c7c6
g7 black pawn: g7g6
g8 black bishop: g8a2 g8b3 g8c4 g8d5 g8e6 g8f7 g8h7
All legal moves: a7a8 a7b7 a7b8 c5c4 c7c6 g7g6 g8a2 g8b3 g8c4 g8d5 g8e6 g8f7 g8h7


Prompt:
FEN: 6n1/1p1b1kp1/p2Bnp2/8/2P1q1P1/PK6/1P3P2/2r5 b - - 3 31
Walk each ray for the slider on c1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: c1 black rook.
Ray N: c2 empty; c3 empty; c4 white pawn: capture (stop, included).
Ray E: d1 empty; e1 empty; f1 empty; g1 empty; h1 empty; edge.
Ray S: edge.
Ray W: b1 empty; a1 empty; edge.
Moves from rays: c1a1 c1b1 c1c2 c1c3 c1c4 c1d1 c1e1 c1f1 c1g1 c1h1


Prompt:
FEN: 4b3/8/8/R3K1k1/8/8/8/8 w - - 23 78
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: white.
Pieces: a5 white rook; e5 white king.
Filter by piece:
a5 white rook: pseudo-legal a5a1 a5a2 a5a3 a5a4 a5a6 a5a7 a5a8 a5b5 a5c5 a5d5 | rejected none | legal a5a1 a5a2 a5a3 a5a4 a5a6 a5a7 a5a8 a5b5 a5c5 a5d5
e5 white king: pseudo-legal e5d4 e5d5 e5d6 e5e4 e5e6 e5f4 e5f5 e5f6 | rejected e5f4 king_would_be_in_check; e5f5 king_would_be_in_check; e5f6 king_would_be_in_check | legal e5d4 e5d5 e5d6 e5e4 e5e6
All legal moves: a5a1 a5a2 a5a3 a5a4 a5a6 a5a7 a5a8 a5b5 a5c5 a5d5 e5d4 e5d5 e5d6 e5e4 e5e6


Prompt:
FEN: r1bq1rk1/3n1ppp/p1pbpn2/1p6/3P4/2NBPN2/PPQ2PPP/R1B1R1K1 b - - 3 11
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a6a5 a8a7 a8b8 b5b4 c6c5 c8b7 d6a3 d6b4 d6b8 d6c5 d6c7 d6e5 d6e7 d6f4 d6g3 d6h2 d7b6 d7b8 d7c5 d7e5 d8a5 d8b6 d8c7 d8e7 d8e8 e6e5 f6d5 f6e4 f6e8 f6g4 f6h5 f8e8 g7g5 g7g6 g8h8 h7h5 h7h6


Prompt:
FEN: 8/8/8/5B2/8/4N3/5K1k/8 w - -
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: f2 white king; e3 white knight; f5 white bishop.


Prompt:
FEN: 3r2k1/R3Qpp1/7p/8/5K2/8/1P3rPP/3n4 w - -
What legal moves does the piece on g2 have?


Prompt:
FEN: r1b1kb1r/pp2pppp/2n5/3q4/8/5N2/PP1P1PPP/R1BQKB1R w KQkq -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 4k3/1bR1Npbp/p5p1/1p6/1B6/1P2PP1P/4r1P1/6K1 b - - 1 30
List all capture moves available.


Prompt:
Given FEN: 8/8/8/R7/3k4/8/8/6K1 w - -
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 3R4/8/8/1r6/8/K1k5/3p4/8 w - -
Is the move d8h5 legal?

No, illegal. Reason: illegal piece movement or blocked path.


Prompt:
FEN: rnq1nk2/1p1b2bN/p5p1/8/8/8/PP1PQPPP/R1B2RK1 b - -
List pseudo-legal moves from a6.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 2kr1bnr/ppp1pppp/q7/3P3b/1nN5/1QN5/PP1BPPPP/R3KB1R b KQ - 8 10
For the piece on b4, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from b4: b4a2 b4c2 b4c6 b4d3 b4d5.
Legal: b4a2 b4c2 b4c6 b4d3 b4d5.
Rejected: none.


Prompt:
FEN: rn1qk2r/ppb1nppp/2p1p3/3pPb2/1P1P4/P1N2N2/2PB1PPP/R2QKB1R w KQkq -
For move a1a2, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a1a2.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: rn2kbnr/pp1bq2p/2p1pp2/3p4/3P3P/2P5/PP2PPB1/RNBQK1NR w KQkq - 0 9
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: a1 white rook; b1 white knight; c1 white bishop; d1 white queen; e1 white king; g1 white knight; h1 white rook; a2 white pawn; b2 white pawn; e2 white pawn; f2 white pawn; g2 white bishop; c3 white pawn; d4 white pawn; h4 white pawn.
Moves by piece:
a1 white rook: no legal moves
b1 white knight: b1a3 b1d2
c1 white bishop: c1d2 c1e3 c1f4 c1g5 c1h6
d1 white queen: d1a4 d1b3 d1c2 d1d2 d1d3
e1 white king: e1d2 e1f1
g1 white knight: g1f3 g1h3
h1 white rook: h1h2 h1h3
a2 white pawn: a2a3 a2a4
b2 white pawn: b2b3 b2b4
e2 white pawn: e2e3 e2e4
f2 white pawn: f2f3 f2f4
g2 white bishop: g2d5 g2e4 g2f1 g2f3 g2h3
c3 white pawn: c3c4
d4 white pawn: no legal moves
h4 white pawn: h4h5
All legal moves: a2a3 a2a4 b1a3 b1d2 b2b3 b2b4 c1d2 c1e3 c1f4 c1g5 c1h6 c3c4 d1a4 d1b3 d1c2 d1d2 d1d3 e1d2 e1f1 e2e3 e2e4 f2f3 f2f4 g1f3 g1h3 g2d5 g2e4 g2f1 g2f3 g2h3 h1h2 h1h3 h4h5


Prompt:
FEN: rnb2r2/pp2ppkp/5np1/q1P5/4N3/5N2/PPPQ1PPP/R3KB1R b KQ -
Walk each ray for the slider on a5: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a5 black queen.
Ray N: a6 empty; a7 black pawn: own piece (stop, excluded).
Ray NE: b6 empty; c7 empty; d8 empty; edge.
Ray E: b5 empty; c5 white pawn: capture (stop, included).
Ray SE: b4 empty; c3 empty; d2 white queen: capture (stop, included).
Ray S: a4 empty; a3 empty; a2 white pawn: capture (stop, included).
Ray SW: edge.
Ray W: edge.
Ray NW: edge.
Moves from rays: a5a2 a5a3 a5a4 a5a6 a5b4 a5b5 a5b6 a5c3 a5c5 a5c7 a5d2 a5d8


Prompt:
FEN: 8/2p3p1/1p1k3p/1p2RB2/1P1P1P2/5PK1/r5PP/8 b - - 5 36
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: black.
Pieces: a2 black rook; b5 black pawn; b6 black pawn; d6 black king; h6 black pawn; c7 black pawn; g7 black pawn.
Filter by piece:
a2 black rook: pseudo-legal a2a1 a2a3 a2a4 a2a5 a2a6 a2a7 a2a8 a2b2 a2c2 a2d2 a2e2 a2f2 a2g2 | rejected none | legal a2a1 a2a3 a2a4 a2a5 a2a6 a2a7 a2a8 a2b2 a2c2 a2d2 a2e2 a2f2 a2g2
b5 black pawn: pseudo-legal none | rejected none | legal none
b6 black pawn: pseudo-legal none | rejected none | legal none
d6 black king: pseudo-legal d6c5 d6c6 d6d5 d6d7 d6e5 d6e6 d6e7 | rejected d6c5 king_would_be_in_check; d6d5 king_would_be_in_check; d6d7 king_would_be_in_check; d6e5 king_would_be_in_check; d6e6 king_would_be_in_check; d6e7 king_would_be_in_check | legal d6c6
h6 black pawn: pseudo-legal h6h5 | rejected none | legal h6h5
c7 black pawn: pseudo-legal c7c5 c7c6 | rejected none | legal c7c5 c7c6
g7 black pawn: pseudo-legal g7g5 g7g6 | rejected none | legal g7g5 g7g6
All legal moves: a2a1 a2a3 a2a4 a2a5 a2a6 a2a7 a2a8 a2b2 a2c2 a2d2 a2e2 a2f2 a2g2 c7c5 c7c6 d6c6 g7g5 g7g6 h6h5


Prompt:
FEN: r2qk2r/pp3ppp/2nbpn2/2pp4/3P1Bb1/2N1PN2/PPP1BPPP/R2Q1RK1 w kq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a1b1 a1c1 a2a3 a2a4 b2b3 b2b4 c3a4 c3b1 c3b5 c3d5 c3e4 d1b1 d1c1 d1d2 d1d3 d1e1 d4c5 e2a6 e2b5 e2c4 e2d3 e3e4 f1e1 f3d2 f3e1 f3e5 f3g5 f3h4 f4d6 f4e5 f4g3 f4g5 f4h6 g1h1 g2g3 h2h3 h2h4


Prompt:
FEN: rnb1k1nr/ppp3pp/3p4/4ppq1/2P5/2PBPQ2/P2P1PPP/R1B1K1NR w KQkq -
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: a1 white rook; c1 white bishop; e1 white king; g1 white knight; h1 white rook; a2 white pawn; d2 white pawn; f2 white pawn; g2 white pawn; h2 white pawn; c3 white pawn; d3 white bishop; e3 white pawn; f3 white queen; c4 white pawn.


Prompt:
FEN: 5B2/2R3pk/4p2p/5p2/1P1Pp2P/2P1PnP1/5PK1/r7 b - -
What legal moves does the piece on f3 have?


Prompt:
FEN: r2q1rk1/1b2b1p1/2p1p2p/p1ppPn2/P1P5/1PNP3N/6PP/R1BQ1R1K b - - 0 16
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: r2qk2r/ppb2ppp/2p1pn2/8/3P4/2P2Q1P/PPBB1PP1/R4RK1 b kq - 2 14
List all capture moves available.


Prompt:
Given FEN: 8/8/5k2/1Br1p1p1/P2b2P1/K7/8/4q3 b - - 2 56
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 2r1kr2/2NRb3/2p1P3/p3Rp1p/2P3p1/1P6/P4PP1/6K1 b - - 3 30
Is the move c8c7 legal?


Prompt:
FEN: rnbqk2r/ppppnpbp/4p1p1/8/2B1PN2/5Q2/PPPP1PPP/RNB1K2R b KQkq - 3 5
List pseudo-legal moves from e6.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 8/1p2k2p/p5p1/2pRp3/P3P1K1/1P5P/2r5/4R3 b - - 2 34
For the piece on e7, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from e7: e7d6 e7d7 e7d8 e7e6 e7e8 e7f6 e7f7 e7f8.
Legal: e7e6 e7e8 e7f6 e7f7 e7f8.
Rejected: e7d6 king_would_be_in_check; e7d7 king_would_be_in_check; e7d8 king_would_be_in_check.


Prompt:
FEN: 8/6p1/2k5/2p1q3/2Qp3p/7P/3K2P1/2R5 b - - 3 45
For move c6b5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: c6b5.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: rnbqkbnr/pp2pppp/2p5/3p4/8/1QP1P3/PP1P1PPP/RNB1KBNR b KQkq - 1 3
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: d5 black pawn; c6 black pawn; a7 black pawn; b7 black pawn; e7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; b8 black knight; c8 black bishop; d8 black queen; e8 black king; f8 black bishop; g8 black knight; h8 black rook.
Moves by piece:
d5 black pawn: d5d4
c6 black pawn: c6c5
a7 black pawn: a7a5 a7a6
b7 black pawn: b7b5 b7b6
e7 black pawn: e7e5 e7e6
f7 black pawn: f7f5 f7f6
g7 black pawn: g7g5 g7g6
h7 black pawn: h7h5 h7h6
a8 black rook: no legal moves
b8 black knight: b8a6 b8d7
c8 black bishop: c8d7 c8e6 c8f5 c8g4 c8h3
d8 black queen: d8a5 d8b6 d8c7 d8d6 d8d7
e8 black king: e8d7
f8 black bishop: no legal moves
g8 black knight: g8f6 g8h6
h8 black rook: no legal moves
All legal moves: a7a5 a7a6 b7b5 b7b6 b8a6 b8d7 c6c5 c8d7 c8e6 c8f5 c8g4 c8h3 d5d4 d8a5 d8b6 d8c7 d8d6 d8d7 e7e5 e7e6 e8d7 f7f5 f7f6 g7g5 g7g6 g8f6 g8h6 h7h5 h7h6


Prompt:
FEN: 5r2/8/6pk/1Q2p2p/1b3p2/1P5P/2P3PK/8 b - - 2 41
Walk each ray for the slider on b4: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: b4 black bishop.
Ray NE: c5 empty; d6 empty; e7 empty; f8 black rook: own piece (stop, excluded).
Ray SE: c3 empty; d2 empty; e1 empty; edge.
Ray SW: a3 empty; edge.
Ray NW: a5 empty; edge.
Moves from rays: b4a3 b4a5 b4c3 b4c5 b4d2 b4d6 b4e1 b4e7


Prompt:
FEN: 3r3r/p3k1pp/2p1b1p1/1p6/1P2P3/1B6/P4PPP/RN3RK1 w - - 2 20
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: white.
Pieces: a1 white rook; b1 white knight; f1 white rook; g1 white king; a2 white pawn; f2 white pawn; g2 white pawn; h2 white pawn; b3 white bishop; b4 white pawn; e4 white pawn.
Filter by piece:
a1 white rook: pseudo-legal none | rejected none | legal none
b1 white knight: pseudo-legal b1a3 b1c3 b1d2 | rejected none | legal b1a3 b1c3 b1d2
f1 white rook: pseudo-legal f1c1 f1d1 f1e1 | rejected none | legal f1c1 f1d1 f1e1
g1 white king: pseudo-legal g1h1 | rejected none | legal g1h1
a2 white pawn: pseudo-legal a2a3 a2a4 | rejected none | legal a2a3 a2a4
f2 white pawn: pseudo-legal f2f3 f2f4 | rejected none | legal f2f3 f2f4
g2 white pawn: pseudo-legal g2g3 g2g4 | rejected none | legal g2g3 g2g4
h2 white pawn: pseudo-legal h2h3 h2h4 | rejected none | legal h2h3 h2h4
b3 white bishop: pseudo-legal b3a4 b3c2 b3c4 b3d1 b3d5 b3e6 | rejected none | legal b3a4 b3c2 b3c4 b3d1 b3d5 b3e6
b4 white pawn: pseudo-legal none | rejected none | legal none
e4 white pawn: pseudo-legal e4e5 | rejected none | legal e4e5
All legal moves: a2a3 a2a4 b1a3 b1c3 b1d2 b3a4 b3c2 b3c4 b3d1 b3d5 b3e6 e4e5 f1c1 f1d1 f1e1 f2f3 f2f4 g1h1 g2g3 g2g4 h2h3 h2h4


Prompt:
FEN: r1b1k2r/ppppbppp/2n2q2/2n5/2B5/2Pp1N2/PPQ2PPP/RNB1R1K1 w kq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b1a3 b1d2 b2b3 b2b4 c1d2 c1e3 c1f4 c1g5 c1h6 c2a4 c2b3 c2d1 c2d2 c2d3 c2e2 c4a6 c4b3 c4b5 c4d3 c4d5 c4e6 c4f7 e1d1 e1e2 e1e3 e1e4 e1e5 e1e6 e1e7 e1f1 f3d2 f3d4 f3e5 f3g5 f3h4 g1f1 g1h1 g2g3 g2g4 h2h3 h2h4


Prompt:
FEN: 8/8/5b2/8/8/5kp1/4p3/6K1 w - - 0 65
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: g1 white king.


Prompt:
FEN: r2qkb1r/ppp2p1p/2n1b1p1/3np1NQ/2BP4/8/PPP2PPP/RNB1K2R w KQkq -
What legal moves does the piece on e1 have?


Prompt:
FEN: 2B5/8/7p/p1p1kPp1/2P3P1/P1pKp3/7P/8 w - - 0 36
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 6k1/6p1/1p3p2/5Pp1/1N4P1/3pn2P/5K2/8 b - -
List all capture moves available.


Prompt:
Given FEN: 1k2rb2/pN6/2P4p/1r3p2/5P2/7P/6P1/2R1R1K1 b - - 0 36
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r1b2rk1/1pp1qpp1/7p/p1b1p3/3n4/P1BP1NP1/1P2PPBP/2RQ1RK1 w - -
Is the move f3e5 legal?


Prompt:
FEN: 2bq1rk1/1p3ppp/3b1n2/1p6/8/2Q1PN2/4BPPP/B4RK1 w - - 0 19
List pseudo-legal moves from a1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: 5r1k/p5p1/3R3p/2p2pn1/4r3/2P3PP/PP3P1K/8 b - - 0 27
For the piece on e4, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from e4: e4a4 e4b4 e4c4 e4d4 e4e1 e4e2 e4e3 e4e5 e4e6 e4e7 e4e8 e4f4 e4g4 e4h4.
Legal: e4a4 e4b4 e4c4 e4d4 e4e1 e4e2 e4e3 e4e5 e4e6 e4e7 e4e8 e4f4 e4g4 e4h4.
Rejected: none.


Prompt:
FEN: rnbqkbnr/pp3p1p/2ppp1p1/8/3PP3/2N2N2/PPP2PPP/R1BQKB1R w KQkq - 0 5
For move a1b1, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a1b1.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 2rq1rk1/6pp/3pbb2/1p6/3pN3/6P1/PP3PBP/R2Q1RK1 w - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: a1 white rook; d1 white queen; f1 white rook; g1 white king; a2 white pawn; b2 white pawn; f2 white pawn; g2 white bishop; h2 white pawn; g3 white pawn; e4 white knight.
Moves by piece:
a1 white rook: a1b1 a1c1
d1 white queen: d1a4 d1b1 d1b3 d1c1 d1c2 d1d2 d1d3 d1d4 d1e1 d1e2 d1f3 d1g4 d1h5
f1 white rook: f1e1
g1 white king: g1h1
a2 white pawn: a2a3 a2a4
b2 white pawn: b2b3 b2b4
f2 white pawn: f2f3 f2f4
g2 white bishop: g2f3 g2h1 g2h3
h2 white pawn: h2h3 h2h4
g3 white pawn: g3g4
e4 white knight: e4c3 e4c5 e4d2 e4d6 e4f6 e4g5
All legal moves: a1b1 a1c1 a2a3 a2a4 b2b3 b2b4 d1a4 d1b1 d1b3 d1c1 d1c2 d1d2 d1d3 d1d4 d1e1 d1e2 d1f3 d1g4 d1h5 e4c3 e4c5 e4d2 e4d6 e4f6 e4g5 f1e1 f2f3 f2f4 g1h1 g2f3 g2h1 g2h3 g3g4 h2h3 h2h4


Prompt:
FEN: 8/1r3pp1/3n2k1/1N1p1p1p/1R5P/3K2P1/8/8 w - - 0 35
Walk each ray for the slider on b4: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: b4 white rook.
Ray N: b5 white knight: own piece (stop, excluded).
Ray E: c4 empty; d4 empty; e4 empty; f4 empty; g4 empty; h4 white pawn: own piece (stop, excluded).
Ray S: b3 empty; b2 empty; b1 empty; edge.
Ray W: a4 empty; edge.
Moves from rays: b4a4 b4b1 b4b2 b4b3 b4c4 b4d4 b4e4 b4f4 b4g4


Prompt:
FEN: rnbqkb1r/pppppp1p/5np1/8/2PP4/6P1/PP2PP1P/RNBQKBNR b KQkq - 0 3
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b7b5 b7b6 b8a6 b8c6 c7c5 c7c6 d7d5 d7d6 e7e5 e7e6 f6d5 f6e4 f6g4 f6g8 f6h5 f8g7 f8h6 g6g5 h7h5 h7h6 h8g8


Prompt:
FEN: 2kr3r/1pq2p2/p1bpp3/4P1pp/8/2N2PQ1/PPP3PP/2KR3R b - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a6a5 b7b5 b7b6 c6a4 c6b5 c6d5 c6d7 c6e4 c6e8 c6f3 c7a5 c7b6 c7b8 c7d7 c7e7 c8b8 c8d7 d6d5 d6e5 d8d7 d8e8 d8f8 d8g8 f7f5 f7f6 g5g4 h5h4 h8e8 h8f8 h8g8 h8h6 h8h7


Prompt:
FEN: rnbq1rk1/ppp2ppp/1b2pn2/8/1PBPP3/P1N2N2/5PPP/R1BQK2R w KQ - 3 9
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: a1 white rook; c1 white bishop; d1 white queen; e1 white king; h1 white rook; f2 white pawn; g2 white pawn; h2 white pawn; a3 white pawn; c3 white knight; f3 white knight; b4 white pawn; c4 white bishop; d4 white pawn; e4 white pawn.


Prompt:
FEN: r5kr/p4pp1/1pq4p/n7/3P4/Q4N2/PP3PPP/1KR1R3 b - - 1 20
What legal moves does the piece on h6 have?


Prompt:
FEN: 6k1/7r/8/p4PPP/3p4/8/1n1R4/6K1 b - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 5K2/3k1P2/8/8/8/6rp/7R/8 w - -
List all capture moves available.


Prompt:
Given FEN: r2r2k1/pbqn1ppp/1p2p3/3n4/4QP2/P1P3N1/1PB3PP/R1B2RK1 b - - 4 17
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 2k2r1r/p1p2pp1/1p2pn1p/3p4/3P4/2qB4/P1P2QPP/3NRRK1 b - - 1 22
Is the move f2a1 legal?


Prompt:
FEN: 2kr3r/1pp1q3/p2pBb2/4np1p/NPP3p1/P3P1P1/1B3P1P/R2QR1K1 b - - 0 20
List pseudo-legal moves from e5.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from e5: e5c4 e5c6 e5d3 e5d7 e5f3 e5f7 e5g6


Prompt:
FEN: 6R1/7R/5K2/4B3/4k3/8/1P6/8 w - - 1 48
For the piece on f6, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from f6: f6e6 f6e7 f6f5 f6f7 f6g5 f6g6 f6g7.
Legal: f6e6 f6e7 f6f7 f6g5 f6g6 f6g7.
Rejected: f6f5 king_would_be_in_check.


Prompt:
FEN: rnbqk2r/ppp1p1bp/3p1np1/5pB1/2PP4/2N1PN2/PP3PPP/R2QKB1R b KQkq -
For move a7a5, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a7a5.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: 1r4k1/5p1p/p5p1/5p2/3P1q2/2P1R3/2RK4/8 b - - 26 58
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: f4 black queen; f5 black pawn; a6 black pawn; g6 black pawn; f7 black pawn; h7 black pawn; b8 black rook; g8 black king.
Moves by piece:
f4 black queen: f4c7 f4d4 f4d6 f4e3 f4e4 f4e5 f4f1 f4f2 f4f3 f4g3 f4g4 f4g5 f4h2 f4h4 f4h6
f5 black pawn: no legal moves
a6 black pawn: a6a5
g6 black pawn: g6g5
f7 black pawn: f7f6
h7 black pawn: h7h5 h7h6
b8 black rook: b8a8 b8b1 b8b2 b8b3 b8b4 b8b5 b8b6 b8b7 b8c8 b8d8 b8e8 b8f8
g8 black king: g8f8 g8g7 g8h8
All legal moves: a6a5 b8a8 b8b1 b8b2 b8b3 b8b4 b8b5 b8b6 b8b7 b8c8 b8d8 b8e8 b8f8 f4c7 f4d4 f4d6 f4e3 f4e4 f4e5 f4f1 f4f2 f4f3 f4g3 f4g4 f4g5 f4h2 f4h4 f4h6 f7f6 g6g5 g8f8 g8g7 g8h8 h7h5 h7h6


Prompt:
FEN: rr4k1/3n1ppp/pq6/1p1Pp3/1Bp1P3/2P2Q2/R4PPP/R5K1 b - - 6 22
Walk each ray for the slider on b6: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: b6 black queen.
Ray N: b7 empty; b8 black rook: own piece (stop, excluded).
Ray NE: c7 empty; d8 empty; edge.
Ray E: c6 empty; d6 empty; e6 empty; f6 empty; g6 empty; h6 empty; edge.
Ray SE: c5 empty; d4 empty; e3 empty; f2 white pawn: capture (stop, included).
Ray S: b5 black pawn: own piece (stop, excluded).
Ray SW: a5 empty; edge.
Ray W: a6 black pawn: own piece (stop, excluded).
Ray NW: a7 empty; edge.
Moves from rays: b6a5 b6a7 b6b7 b6c5 b6c6 b6c7 b6d4 b6d6 b6d8 b6e3 b6e6 b6f2 b6f6 b6g6 b6h6


Prompt:
FEN: rn2r1k1/1p1q1ppp/p4n2/2pP4/P7/2N2QB1/1P3PPP/R4RK1 w - - 5 18
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a1a2 a1a3 a1b1 a1c1 a1d1 a1e1 a4a5 b2b3 b2b4 c3a2 c3b1 c3b5 c3d1 c3e2 c3e4 d5d6 f1b1 f1c1 f1d1 f1e1 f3d1 f3d3 f3e2 f3e3 f3e4 f3f4 f3f5 f3f6 f3g4 f3h5 g1h1 g3b8 g3c7 g3d6 g3e5 g3f4 g3h4 h2h3 h2h4


Prompt:
FEN: 8/4r3/P7/2p1k1p1/2B3P1/1P2K3/8/8 w - -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a6a7 b3b4 c4b5 c4d3 c4d5 c4e2 c4e6 c4f1 c4f7 c4g8 e3d2 e3d3 e3e2 e3f2 e3f3


Prompt:
FEN: r1bqr1k1/ppp2ppp/3p1b2/2nPp3/2B1P3/2N2N1P/PPP2PP1/R2Q1RK1 b - - 6 10
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: c5 black knight; e5 black pawn; d6 black pawn; f6 black bishop; a7 black pawn; b7 black pawn; c7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; c8 black bishop; d8 black queen; e8 black rook; g8 black king.


Prompt:
FEN: 3r2k1/5p2/8/2p2p2/8/P1P5/1K6/7q w - - 0 46
What legal moves does the piece on c3 have?


Prompt:
FEN: r3r1k1/1bqn1pbp/pp1R1np1/8/4P3/1PN2P2/PBP1Q1PP/2K2B1R w - - 1 15
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 6k1/5p1p/p7/3ppb2/1n6/NP6/1K2BPPP/8 w - - 2 25
List all capture moves available.


Prompt:
Given FEN: r1b2k1r/pp3ppp/2n1pn2/2Pp4/P2Nq3/2PBB1Q1/2P2PPP/R3K2R b KQ - 9 14
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r4rk1/1p2qp1p/3pbnp1/p3p3/1nP2P2/1NBBP2P/PPQ3P1/1K1R3R w - - 1 16
Is the move h1h2 legal?


Prompt:
FEN: 2k5/pp4pp/2p1N3/2K1P3/4P3/8/P2r3P/3n4 b - - 0 28
List pseudo-legal moves from d1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from d1: d1b2 d1c3 d1e3 d1f2


Prompt:
FEN: rn1qk2r/pp3ppp/2pbpnb1/3p4/3P1B2/2PBPN2/PP1N1PPP/R2QK2R w KQkq -
For the piece on a1, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from a1: a1b1 a1c1.
Legal: a1b1 a1c1.
Rejected: none.


Prompt:
FEN: 8/3k1ppp/8/1ppr1n2/6P1/5P1P/P3RK2/8 b - - 0 35
For move d7e6, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: d7e6.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: rn1qkb1r/pp1B1ppp/8/3pp3/3Nn3/8/PPP2PPP/RNBQ1RK1 b kq - 0 9
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: e4 black knight; d5 black pawn; e5 black pawn; a7 black pawn; b7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; b8 black knight; d8 black queen; e8 black king; f8 black bishop; h8 black rook.
Moves by piece:
e4 black knight: no legal moves
d5 black pawn: no legal moves
e5 black pawn: no legal moves
a7 black pawn: no legal moves
b7 black pawn: no legal moves
f7 black pawn: no legal moves
g7 black pawn: no legal moves
h7 black pawn: no legal moves
a8 black rook: no legal moves
b8 black knight: b8d7
d8 black queen: d8d7
e8 black king: e8d7 e8e7
f8 black bishop: no legal moves
h8 black rook: no legal moves
All legal moves: b8d7 d8d7 e8d7 e8e7


Prompt:
FEN: r2q2k1/2p3p1/p1pp3p/4n3/4N3/3P3Q/PPP3P1/5NK1 w - -
Walk each ray for the slider on h3: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: h3 white queen.
Ray N: h4 empty; h5 empty; h6 black pawn: capture (stop, included).
Ray NE: edge.
Ray E: edge.
Ray SE: edge.
Ray S: h2 empty; h1 empty; edge.
Ray SW: g2 white pawn: own piece (stop, excluded).
Ray W: g3 empty; f3 empty; e3 empty; d3 white pawn: own piece (stop, excluded).
Ray NW: g4 empty; f5 empty; e6 empty; d7 empty; c8 empty; edge.
Moves from rays: h3c8 h3d7 h3e3 h3e6 h3f3 h3f5 h3g3 h3g4 h3h1 h3h2 h3h4 h3h5 h3h6


Prompt:
FEN: 2kr2r1/pb4qp/1b2p3/1Pp5/4N3/3P2P1/4QPBP/R4RK1 b - - 0 23
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b6a5 b6c7 b7a6 b7a8 b7c6 b7d5 b7e4 c5c4 c8b8 c8c7 c8d7 d8d3 d8d4 d8d5 d8d6 d8d7 d8e8 d8f8 e6e5 g7a1 g7b2 g7c3 g7c7 g7d4 g7d7 g7e5 g7e7 g7f6 g7f7 g7f8 g7g3 g7g4 g7g5 g7g6 g7h6 g7h8 g8e8 g8f8 g8h8 h7h5 h7h6


Prompt:
FEN: rnb1k2r/pp2ppbp/2p3p1/3qP1Q1/8/5p2/PPPP2PP/RNB1K1NR w KQkq - 0 10
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b1a3 b1c3 b2b3 b2b4 c2c3 c2c4 d2d3 d2d4 e1d1 e1f1 e1f2 e5e6 g1e2 g1f3 g1h3 g2f3 g2g3 g2g4 g5e3 g5e7 g5f4 g5f5 g5f6 g5g3 g5g4 g5g6 g5h4 g5h5 g5h6 h2h3 h2h4


Prompt:
FEN: r4rk1/5pp1/p2ppq1p/1p1n4/3Pb3/P3PN1P/1P1QBPP1/2R2RK1 w - - 6 20
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: c1 white rook; f1 white rook; g1 white king; b2 white pawn; d2 white queen; e2 white bishop; f2 white pawn; g2 white pawn; a3 white pawn; e3 white pawn; f3 white knight; h3 white pawn; d4 white pawn.


Prompt:
FEN: 6k1/4r3/4P3/N2r1Bpp/8/1R6/6PP/6K1 w - - 2 41
What legal moves does the piece on a5 have?


Prompt:
FEN: 3r2k1/6pp/pp1p4/4p3/8/4KP2/P1P3PP/3R4 b - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: r1bqkbnr/1p1p1ppp/p3p3/2p5/4P3/2NB1Q2/PPPP1PPP/R1B1K2R w KQkq -
List all capture moves available.


Prompt:
Given FEN: rnbqk2r/pp3ppp/4pn2/3p4/3P4/1Pb2N2/P1PNBPPP/1RBQK2R b Kkq -
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r2q1rk1/1b2bppp/p1p1p3/1p1n4/n3N3/3P2P1/1P1B1PBP/2RQNRK1 w - - 0 16
Is the move h2h3 legal?


Prompt:
FEN: 8/4r1k1/P5p1/1Bp1b3/P2pP1K1/3P4/2P5/5R2 w - - 5 49
List pseudo-legal moves from f1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".

Pseudo-legal moves from f1: f1a1 f1b1 f1c1 f1d1 f1e1 f1f2 f1f3 f1f4 f1f5 f1f6 f1f7 f1f8 f1g1 f1h1


Prompt:
FEN: 1r6/pprnkpp1/3pp2p/P2p4/3P4/3BP3/1PPK1PPP/R1R5 w - -
For the piece on d2, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from d2: d2c3 d2d1 d2e1 d2e2.
Legal: d2d1 d2e1 d2e2.
Rejected: d2c3 king_would_be_in_check.


Prompt:
FEN: 8/3Q4/8/5pK1/6p1/4r2p/R1k5/8 b - -
For move c2b2, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: c2b2.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; does_not_resolve_check.


Prompt:
FEN: r4rk1/pb3pp1/1p2pq2/2pN4/8/1P2P1Q1/PBPP2PP/R5K1 b - -
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: c5 black pawn; b6 black pawn; e6 black pawn; f6 black queen; a7 black pawn; b7 black bishop; f7 black pawn; g7 black pawn; a8 black rook; f8 black rook; g8 black king.
Moves by piece:
c5 black pawn: c5c4
b6 black pawn: b6b5
e6 black pawn: e6d5 e6e5
f6 black queen: f6b2 f6c3 f6d4 f6d8 f6e5 f6e7 f6f1 f6f2 f6f3 f6f4 f6f5 f6g5 f6g6 f6h4 f6h6
a7 black pawn: a7a5 a7a6
b7 black bishop: b7a6 b7c6 b7c8 b7d5
f7 black pawn: no legal moves
g7 black pawn: g7g5 g7g6
a8 black rook: a8b8 a8c8 a8d8 a8e8
f8 black rook: f8b8 f8c8 f8d8 f8e8
g8 black king: g8h7 g8h8
All legal moves: a7a5 a7a6 a8b8 a8c8 a8d8 a8e8 b6b5 b7a6 b7c6 b7c8 b7d5 c5c4 e6d5 e6e5 f6b2 f6c3 f6d4 f6d8 f6e5 f6e7 f6f1 f6f2 f6f3 f6f4 f6f5 f6g5 f6g6 f6h4 f6h6 f8b8 f8c8 f8d8 f8e8 g7g5 g7g6 g8h7 g8h8


Prompt:
FEN: 5n2/pp2k1p1/2p2p2/3p2p1/3P4/2P2PP1/PP2NKP1/8 b - - 1 25
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 b7b5 b7b6 c6c5 e7d6 e7d7 e7d8 e7e6 e7e8 e7f7 f6f5 f8d7 f8e6 f8g6 f8h7 g5g4 g7g6


Prompt:
FEN: 8/8/2kp4/3P4/K1P1p3/2B1P3/8/1r6 b - - 0 43
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: black.
Pieces: b1 black rook; e4 black pawn; c6 black king; d6 black pawn.
Filter by piece:
b1 black rook: pseudo-legal b1a1 b1b2 b1b3 b1b4 b1b5 b1b6 b1b7 b1b8 b1c1 b1d1 b1e1 b1f1 b1g1 b1h1 | rejected b1a1 does_not_resolve_check; b1b2 does_not_resolve_check; b1b3 does_not_resolve_check; b1b4 does_not_resolve_check; b1b5 does_not_resolve_check; b1b6 does_not_resolve_check; b1b7 does_not_resolve_check; b1b8 does_not_resolve_check; b1c1 does_not_resolve_check; b1d1 does_not_resolve_check; b1e1 does_not_resolve_check; b1f1 does_not_resolve_check; b1g1 does_not_resolve_check; b1h1 does_not_resolve_check | legal none
e4 black pawn: pseudo-legal none | rejected none | legal none
c6 black king: pseudo-legal c6b5 c6b6 c6b7 c6c5 c6c7 c6d5 c6d7 | rejected c6b5 does_not_resolve_check; c6d5 does_not_resolve_check | legal c6b6 c6b7 c6c5 c6c7 c6d7
d6 black pawn: pseudo-legal none | rejected none | legal none
All legal moves: c6b6 c6b7 c6c5 c6c7 c6d7


Prompt:
FEN: rnbqkbnr/ppp2ppp/3p4/8/3p4/1P6/PBP1PPPP/RN1QKBNR w KQkq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a2a4 b1a3 b1c3 b1d2 b2a3 b2c1 b2c3 b2d4 b3b4 c2c3 c2c4 d1c1 d1d2 d1d3 d1d4 e1d2 e2e3 e2e4 f2f3 f2f4 g1f3 g1h3 g2g3 g2g4 h2h3 h2h4


Prompt:
FEN: 2r2rk1/pp3ppp/4p3/3pPnq1/8/P1N2Q1P/1P3PP1/2R1R1K1 w - -
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: c1 white rook; e1 white rook; g1 white king; b2 white pawn; f2 white pawn; g2 white pawn; a3 white pawn; c3 white knight; f3 white queen; h3 white pawn; e5 white pawn.


Prompt:
FEN: r1bq3r/ppppnpp1/1b1n2k1/3P2N1/7P/8/PP3PP1/RNBQR1K1 w - -
What legal moves does the piece on d1 have?

d1a4 d1b3 d1c2 d1d2 d1d3 d1d4 d1e2 d1f3 d1g4 d1h5


Prompt:
FEN: r1b2rk1/3nbppp/nqp1p3/p1N5/1p1PN3/1P2Q1P1/1B2PPBP/R4RK1 w - -
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: 5k2/8/4BBK1/8/8/8/8/8 w - -
List all capture moves available.


Prompt:
Given FEN: 8/1p6/8/2p5/2k5/8/3Q2PP/R5K1 b - -
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: 5rk1/4bppp/4pn2/NB4q1/Pp6/5P2/1P1R1P1P/R4Q1K b - -
Is the move h7h5 legal?


Prompt:
FEN: 8/1n1PK3/B7/8/4k3/7p/8/8 b - -
List pseudo-legal moves from h3.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: rn1qk2r/pbppbppp/1p2pn2/8/2PP4/P1N2N2/1PQ1PPPP/R1B1KB1R b KQkq -
For the piece on b6, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from b6: b6b5.
Legal: b6b5.
Rejected: none.


Prompt:
FEN: 2k4r/1pp2ppp/pr2p3/5q2/1PP5/P3Q2P/5PP1/2R1R1K1 w - - 1 23
For move a3a4, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: a3a4.
Pseudo-legal: yes.
King safe after move: yes.
Final: legal; legal.


Prompt:
FEN: r3r1k1/ppp2ppp/2b2n2/3qpNB1/8/1PPP1P1P/P5P1/1R1QR1K1 b - - 0 18
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: black.
Pieces: d5 black queen; e5 black pawn; c6 black bishop; f6 black knight; a7 black pawn; b7 black pawn; c7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; a8 black rook; e8 black rook; g8 black king.
Moves by piece:
d5 black queen: d5a5 d5b3 d5b5 d5c4 d5c5 d5d3 d5d4 d5d6 d5d7 d5d8 d5e4 d5e6 d5f3
e5 black pawn: e5e4
c6 black bishop: c6a4 c6b5 c6d7
f6 black knight: f6d7 f6e4 f6g4 f6h5
a7 black pawn: a7a5 a7a6
b7 black pawn: b7b5 b7b6
c7 black pawn: no legal moves
f7 black pawn: no legal moves
g7 black pawn: g7g6
h7 black pawn: h7h5 h7h6
a8 black rook: a8b8 a8c8 a8d8
e8 black rook: e8b8 e8c8 e8d8 e8e6 e8e7 e8f8
g8 black king: g8f8 g8h8
All legal moves: a7a5 a7a6 a8b8 a8c8 a8d8 b7b5 b7b6 c6a4 c6b5 c6d7 d5a5 d5b3 d5b5 d5c4 d5c5 d5d3 d5d4 d5d6 d5d7 d5d8 d5e4 d5e6 d5f3 e5e4 e8b8 e8c8 e8d8 e8e6 e8e7 e8f8 f6d7 f6e4 f6g4 f6h5 g7g6 g8f8 g8h8 h7h5 h7h6


Prompt:
FEN: r1b1k1nr/pppp1ppp/2n5/8/2B1PP1q/2P5/P5PP/R1BQK1NR w KQkq -
Walk each ray for the slider on a1: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: a1 white rook.
Ray N: a2 white pawn: own piece (stop, excluded).
Ray E: b1 empty; c1 white bishop: own piece (stop, excluded).
Ray S: edge.
Ray W: edge.
Moves from rays: a1b1


Prompt:
FEN: r1bqk1nr/ppp2ppp/2np4/b7/Q1BpP3/2P2N2/P4PPP/RNB1K2R w KQkq -
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: white.
Legal moves: a2a3 a4a3 a4a5 a4b3 a4b4 a4b5 a4c2 a4c6 a4d1 b1a3 b1d2 c1a3 c1b2 c1d2 c1e3 c1f4 c1g5 c1h6 c4a6 c4b3 c4b5 c4d3 c4d5 c4e2 c4e6 c4f1 c4f7 e1d1 e1d2 e1e2 e1f1 e1g1 e4e5 f3d2 f3d4 f3e5 f3g1 f3g5 f3h4 g2g3 g2g4 h1f1 h1g1 h2h3 h2h4


Prompt:
FEN: r1bqkb1r/ppp2pp1/3p1n1p/4n1N1/B2QP3/8/PPP2PPP/RNB1K2R b KQkq - 1 8
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: b7b5 c7c6 c8d7 d8d7 e5c6 e5d7 e8e7 f6d7


Prompt:
FEN: 3k4/8/8/2Q5/5N2/5K2/8/8 w - -
List the side-to-move pieces and their squares.

Side to move: white.
Pieces: f3 white king; f4 white knight; c5 white queen.


Prompt:
FEN: 8/8/2k5/8/2B5/1K1N4/8/8 w - -
What legal moves does the piece on c4 have?


Prompt:
FEN: 3r3r/pk2n3/1p1p4/1PpP1p1p/q3nPpP/3QP1P1/1NK1N3/3R3R w - - 2 28
Detect the game state: check, checkmate, stalemate, or none.


Prompt:
FEN: Q1b1kb1r/2p2ppp/8/p3N3/1p2P3/8/PPPP1PPP/RNB1K2R w KQk -
List all capture moves available.


Prompt:
Given FEN: 2qr2k1/1p1b1ppn/p2p2p1/2pP4/P1P1NPPP/4N1K1/1P1Q4/4R3 b - - 2 27
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r4rk1/N1R3p1/6n1/5pp1/8/5PB1/5P1P/5RK1 w - - 0 27
Is the move a7b5 legal?


Prompt:
FEN: rnb4r/pp4pp/3R4/3pp2N/4k3/8/PPP2PPP/1K6 w - -
List pseudo-legal moves from b1.

Answer format: return exactly "Pseudo-legal moves from <square>: <space-separated UCI moves>".


Prompt:
FEN: rnbq1rk1/ppp1ppbp/3p1np1/8/2PP1B2/4PN2/PP1N1PPP/R2QKB1R b KQ - 0 6
For the piece on d6, split pseudo-legal moves into legal and rejected moves with rejection reasons.

Answer format: return exactly three lines starting "Pseudo-legal from", "Legal:", and "Rejected:". Rejected entries must be "<uci> <reason_label>" separated by semicolons, or "none" when no moves are rejected.

Pseudo-legal from d6: d6d5.
Legal: d6d5.
Rejected: none.


Prompt:
FEN: 4k3/7R/8/3KN1rP/3p4/2b5/8/8 b - -
For move e8d7, decide whether king safety allows it.

Answer format: return exactly four lines starting "Move:", "Pseudo-legal:", "King safe after move:", and "Final:".

Move: e8d7.
Pseudo-legal: yes.
King safe after move: no.
Final: illegal; king_would_be_in_check.


Prompt:
FEN: 2kr1bnr/1pp1n1pp/p4p2/4p3/PP2P1b1/2P1BN2/3N1PPP/R3K2R w - - 1 14
Group all legal moves by side-to-move piece.

Answer format: include "Side to move:", "Pieces:", "Moves by piece:", one line per side-to-move piece, and "All legal moves:".

Side to move: white.
Pieces: a1 white rook; e1 white king; h1 white rook; d2 white knight; f2 white pawn; g2 white pawn; h2 white pawn; c3 white pawn; e3 white bishop; f3 white knight; a4 white pawn; b4 white pawn; e4 white pawn.
Moves by piece:
a1 white rook: a1a2 a1a3 a1b1 a1c1 a1d1
e1 white king: e1d1 e1e2 e1f1
h1 white rook: h1f1 h1g1
d2 white knight: d2b1 d2b3 d2c4 d2f1
f2 white pawn: no legal moves
g2 white pawn: g2g3
h2 white pawn: h2h3 h2h4
c3 white pawn: c3c4
e3 white bishop: e3a7 e3b6 e3c5 e3d4 e3f4 e3g5 e3h6
f3 white knight: f3d4 f3e5 f3g1 f3g5 f3h4
a4 white pawn: a4a5
b4 white pawn: b4b5
e4 white pawn: no legal moves
All legal moves: a1a2 a1a3 a1b1 a1c1 a1d1 a4a5 b4b5 c3c4 d2b1 d2b3 d2c4 d2f1 e1d1 e1e2 e1f1 e3a7 e3b6 e3c5 e3d4 e3f4 e3g5 e3h6 f3d4 f3e5 f3g1 f3g5 f3h4 g2g3 h1f1 h1g1 h2h3 h2h4


Prompt:
FEN: r3k2r/p2q1p1p/1p2p3/3p4/3Q1P2/4P3/P1P3PP/R1B1K2R b KQ - 3 16
Walk each ray for the slider on d7: list every square until a blocker, capture, or the board edge, then list the resulting moves.

Answer format: return a "Piece:" line, one "Ray <direction>:" line per ray in the listed order, and a final "Moves from rays:" line with space-separated UCI moves or "none".

Piece: d7 black queen.
Ray N: d8 empty; edge.
Ray NE: e8 black king: own piece (stop, excluded).
Ray E: e7 empty; f7 black pawn: own piece (stop, excluded).
Ray SE: e6 black pawn: own piece (stop, excluded).
Ray S: d6 empty; d5 black pawn: own piece (stop, excluded).
Ray SW: c6 empty; b5 empty; a4 empty; edge.
Ray W: c7 empty; b7 empty; a7 black pawn: own piece (stop, excluded).
Ray NW: c8 empty; edge.
Moves from rays: d7a4 d7b5 d7b7 d7c6 d7c7 d7c8 d7d6 d7d8 d7e7


Prompt:
FEN: 7k/p1p2ppp/1p1p1n2/3P4/2BP1n1P/8/PPPK1P2/8 b - - 2 28
For every side-to-move piece, list pseudo-legal moves, reject illegal ones with reasons, then give all legal moves.

Answer format: include "Side to move:", "Pieces:", "Filter by piece:", one line per side-to-move piece with "pseudo-legal ... | rejected ... | legal ..." fields, and "All legal moves:".

Side to move: black.
Pieces: f4 black knight; b6 black pawn; d6 black pawn; f6 black knight; a7 black pawn; c7 black pawn; f7 black pawn; g7 black pawn; h7 black pawn; h8 black king.
Filter by piece:
f4 black knight: pseudo-legal f4d3 f4d5 f4e2 f4e6 f4g2 f4g6 f4h3 f4h5 | rejected none | legal f4d3 f4d5 f4e2 f4e6 f4g2 f4g6 f4h3 f4h5
b6 black pawn: pseudo-legal b6b5 | rejected none | legal b6b5
d6 black pawn: pseudo-legal none | rejected none | legal none
f6 black knight: pseudo-legal f6d5 f6d7 f6e4 f6e8 f6g4 f6g8 f6h5 | rejected none | legal f6d5 f6d7 f6e4 f6e8 f6g4 f6g8 f6h5
a7 black pawn: pseudo-legal a7a5 a7a6 | rejected none | legal a7a5 a7a6
c7 black pawn: pseudo-legal c7c5 c7c6 | rejected none | legal c7c5 c7c6
f7 black pawn: pseudo-legal none | rejected none | legal none
g7 black pawn: pseudo-legal g7g5 g7g6 | rejected none | legal g7g5 g7g6
h7 black pawn: pseudo-legal h7h5 h7h6 | rejected none | legal h7h5 h7h6
h8 black king: pseudo-legal h8g8 | rejected none | legal h8g8
All legal moves: a7a5 a7a6 b6b5 c7c5 c7c6 f4d3 f4d5 f4e2 f4e6 f4g2 f4g6 f4h3 f4h5 f6d5 f6d7 f6e4 f6e8 f6g4 f6g8 f6h5 g7g5 g7g6 h7h5 h7h6 h8g8


Prompt:
FEN: r1bqkbnr/ppp2pp1/4n2p/3BN2Q/4P3/8/PPPP1PPP/RNB2RK1 b kq - 2 7
List all legal moves.

Answer format: return exactly two lines: "Side to move: <white|black>." then "Legal moves: <space-separated UCI moves>".

Side to move: black.
Legal moves: a7a5 a7a6 a8b8 b7b5 b7b6 c7c5 c7c6 c8d7 d8d5 d8d6 d8d7 d8e7 d8f6 d8g5 d8h4 e6c5 e6d4 e6f4 e6g5 e8e7 f8a3 f8b4 f8c5 f8d6 f8e7 g7g5 g7g6 g8e7 g8f6 h8h7


Prompt:
FEN: 8/8/P1k3p1/4RpP1/3P3P/8/5K2/8 b - - 2 56
List the side-to-move pieces and their squares.

Side to move: black.
Pieces: f5 black pawn; c6 black king; g6 black pawn.


Prompt:
FEN: 2k5/8/2B5/8/1P2PKN1/4B2r/8/8 b - - 0 54
What legal moves does the piece on c8 have?


Prompt:
FEN: 4r3/2b2ppk/1n1p1n1p/2pP4/1p2P3/1P2BP1P/3N1KP1/R3N3 w - - 3 27
Detect the game state: check, checkmate, stalemate, or none.

Normal position -- no check, checkmate, or stalemate.


Prompt:
FEN: r2qkb1r/p2b1ppp/2n1pn2/3p4/P2P1B2/2N2NP1/4PPBP/R2Q1RK1 b kq - 4 11
List all capture moves available.


Prompt:
Given FEN: rn1k2nQ/ppp4p/3p4/4p1q1/6b1/3P1B2/PPP1KP1P/RNB4R b - - 0 14
List any special moves available (castling, en passant, promotion).


Prompt:
FEN: r1b2r2/pp3pk1/2pp3p/2b1p1p1/2B1P3/2PP1PB1/PP3P1P/3R1RK1 b - - 1 15
Is the move f3h7 legal?