Add tactic position generators and tests

This commit is contained in:
stefan-kp
2025-12-06 09:23:04 +01:00
parent 1b2159445d
commit 743bda02bf
12 changed files with 844 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"patternType": "BACK_RANK_WEAKNESS",
"description": "Classic back-rank mate with no escape squares for the king.",
"cases": [
{
"id": "back_rank_rook_mate",
"initialFen": "6k1/5ppp/8/8/8/8/5PPP/R5K1 w - - 0 1",
"sideToMove": "white",
"bestMove": { "san": "Ra8#", "uci": "a1a8" },
"resultingFen": "R5k1/5ppp/8/8/8/8/5PPP/6K1 b - - 1 1",
"expectedPattern": {
"type": "BACK_RANK_WEAKNESS",
"side": "white",
"attackerSquares": ["a8"],
"targetSquares": ["g8"],
"explanationKey": "back_rank_mate"
},
"context": "No luft and the king is boxed in; the rook delivers mate on the back rank.",
"tags": ["mate", "fundamental"]
}
]
}