wip debug get_valid_actions for black

This commit is contained in:
Henri Bourcereau 2026-03-04 17:43:27 +01:00
parent 65180d8164
commit 817dbd77a7
10 changed files with 200 additions and 41 deletions

View file

@ -1,5 +1,5 @@
use trictrac_bot::{Bot, BotStrategy};
use log::{debug, error};
use trictrac_bot::{Bot, BotStrategy};
use trictrac_store::{CheckerMove, DiceRoller, GameEvent, GameState, PlayerId, TurnStage};
// Application Game
@ -67,7 +67,7 @@ impl GameRunner {
"--------------- new valid event {event:?} (stage {:?}) -----------",
self.state.turn_stage
);
self.state.consume(event);
let _ = self.state.consume(event).inspect_err(|e| error!("{}", e));
debug!(
" --> stage {:?} ; active player points {:?}",
self.state.turn_stage,