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": "OVERLOADING",
"description": "The defending rook on f8 is overloaded, forced to choose between guarding the back rank and protecting f7.",
"cases": [
{
"id": "overloading_rook_on_f8",
"initialFen": "5rk1/5p2/8/3Q4/8/8/8/4R1K1 w - - 0 1",
"sideToMove": "white",
"bestMove": { "san": "Qxf7+", "uci": "d5f7" },
"resultingFen": "5rk1/5Q2/8/8/8/8/8/4R1K1 b - - 0 1",
"expectedPattern": {
"type": "OVERLOADING",
"side": "white",
"attackerSquares": ["f7"],
"targetSquares": ["f8", "f7"],
"explanationKey": "back_rank_vs_defense"
},
"context": "Capturing on f7 lures the only defender; after ...Rxf7 the back rank collapses to Re8#.",
"tags": ["overloading", "back_rank_setup"]
}
]
}