get_points
This commit is contained in:
parent
1af5694b71
commit
bfd58cc399
3 changed files with 88 additions and 29 deletions
|
|
@ -331,6 +331,10 @@ impl Board {
|
|||
self.get_field_checkers(field).map(|(_ount, color)| color)
|
||||
}
|
||||
|
||||
pub fn is_field_in_small_jan(field: Field) -> bool {
|
||||
field < 7 || field > 18
|
||||
}
|
||||
|
||||
/// returns the list of Fields containing Checkers of the Color
|
||||
pub fn get_color_fields(&self, color: Color) -> Vec<(usize, i8)> {
|
||||
match color {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue