fix play loop
This commit is contained in:
parent
6ceefe01ab
commit
6a0dc9395a
4 changed files with 48 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue