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

@ -60,6 +60,10 @@ impl Dice {
format!("{} & {}", self.values.0, self.values.1)
}
pub fn is_double(&self) -> bool {
self.values.0 == self.values.1
}
// pub fn to_bits(self) -> [bool;6] {
// self.to_bits_string().into_bytes().iter().map(|strbit| *strbit == '1' as u8).collect()
// }