wip rolldice
This commit is contained in:
parent
dff9f7f3e1
commit
1f663cf524
4 changed files with 21 additions and 6 deletions
|
|
@ -46,7 +46,8 @@ impl Bot {
|
|||
|
||||
pub fn consume(&mut self, event: &GameEvent) -> Option<GameEvent> {
|
||||
self.game.consume(event);
|
||||
// println!("{:?}", self.game);
|
||||
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