fix: solve conflict between farthest checker & filled quarter rules

This commit is contained in:
Henri Bourcereau 2026-03-01 22:43:43 +01:00
parent ad157e1626
commit f4049f548e
3 changed files with 374 additions and 13 deletions

View file

@ -211,9 +211,10 @@ impl TricTracEngine {
self.game_state.consume(&evt);
Ok(())
}
Some(_) => anyhow::bail!(
"apply_action: action {} is not valid in current state",
action_idx
Some(evt) => anyhow::bail!(
"apply_action: event {:?} is not valid in current state {}",
evt,
self.game_state
),
None => anyhow::bail!(
"apply_action: could not build event from action index {}",