KingCaptureProbability
dicechess.engine.search.KingCaptureProbability
object KingCaptureProbability
Probabilistic king (and queen) capture analysis for Dice Chess.
Given a position, enumerates all 216 possible 3d6 outcomes (grouped into 56 weighted multisets) and determines whether the opponent can capture the defender's king (or queen) on their next turn.
King-capture paths are always legal regardless of the Maximum Micro-moves Rule, so a depth-first search with early exit yields exact probabilities. Queen-capture paths respect the Maximum Micro-moves Rule; the returned probability may therefore be slightly overestimated in edge cases where a queen capture is not part of any max-length sequence.
Attributes
- Source
- KingCaptureProbability.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
In this article