chess-pipeline
chess-pipeline copied to clipboard
Piece sac visitor
I think it might be useful/interesting for analysis if we can tell whether there was a piece sac in a game. This could be difficult to implement since I can think of a few situations where a player ends up a piece up in material:
- a simple blunder (e.g. 3 defending vs 2 attacking and miscounting/not seeing defenders)
- a tactical piece sac that leads to the player who sac'd being up positionally
- a tactical piece sac that leads to the player winning back material (e.g. sac queen -> fork king + queen and the sacrificing player is up a pawn/piece/whatever)
- a "time"/pressure piece sac that leads to a player having an attack that is difficult to defend against
Obviously blunders shouldn't be counted as piece sacs, but the 4th situation might be considered a piece sac. This implies that it's not just a move that leads to a |3| variation (or so) in eval - we also need to consider what tactics might be available, or how difficult that position is to play.