wip
This commit is contained in:
parent
5762187b04
commit
25acc86059
3 changed files with 23 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue