fix: solve conflict between farthest checker & filled quarter rules
This commit is contained in:
parent
ad157e1626
commit
f4049f548e
3 changed files with 374 additions and 13 deletions
|
|
@ -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 {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue