fix play loop

This commit is contained in:
Henri Bourcereau 2024-03-29 21:04:58 +01:00
parent 6ceefe01ab
commit 6a0dc9395a
4 changed files with 48 additions and 24 deletions

View file

@ -46,8 +46,8 @@ impl Bot {
pub fn consume(&mut self, event: &GameEvent) -> Option<GameEvent> {
self.game.consume(event);
println!("bot game {:?}", self.game);
println!("bot player_id {:?}", self.player_id);
// println!("bot game {:?}", self.game);
// println!("bot player_id {:?}", self.player_id);
if self.game.active_player_id == self.player_id {
return match self.game.turn_stage {
TurnStage::RollDice => Some(GameEvent::Roll {