wip
This commit is contained in:
parent
a3bcdb8912
commit
ff5ff74282
5 changed files with 25 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue