This commit is contained in:
Henri Bourcereau 2024-11-05 18:03:14 +01:00
parent 5762187b04
commit 25acc86059
3 changed files with 23 additions and 9 deletions

View file

@ -57,14 +57,7 @@ impl BotStrategy for DefaultStrategy {
}
fn calculate_adv_points(&self) -> u8 {
let dice_roll_count = self
.get_game()
.players
.get(&self.player_id)
.unwrap()
.dice_roll_count;
let points_rules = PointsRules::new(&Color::White, &self.game.board, self.game.dice);
points_rules.get_points(dice_roll_count).0
self.calculate_points()
}
fn choose_move(&self) -> (CheckerMove, CheckerMove) {