This commit is contained in:
Henri Bourcereau 2025-01-09 21:27:24 +01:00
parent a3bcdb8912
commit ff5ff74282
5 changed files with 25 additions and 0 deletions

View file

@ -49,6 +49,10 @@ impl BotStrategy for ClientStrategy {
self.calculate_points()
}
fn choose_go(&self) -> bool {
true
}
fn choose_move(&self) -> (CheckerMove, CheckerMove) {
let (dice1, dice2) = match self.color {
Color::White => (self.game.dice.values.0 as i8, self.game.dice.values.1 as i8),

View file

@ -50,6 +50,10 @@ impl BotStrategy for DefaultStrategy {
self.calculate_points()
}
fn choose_go(&self) -> bool {
true
}
fn choose_move(&self) -> (CheckerMove, CheckerMove) {
let rules = MoveRules::new(&self.color, &self.game.board, self.game.dice);
let possible_moves = rules.get_possible_moves_sequences(true);