get_points

This commit is contained in:
Henri Bourcereau 2024-06-15 19:10:01 +02:00
parent 1af5694b71
commit bfd58cc399
3 changed files with 88 additions and 29 deletions

View file

@ -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 {