wip cli test roll

This commit is contained in:
Henri Bourcereau 2024-03-10 11:49:23 +01:00
parent be0264f9a7
commit c52d53737e
2 changed files with 34 additions and 9 deletions

View file

@ -33,6 +33,10 @@ impl Dices {
format!("{:0>3b}{:0>3b}", self.values.0, self.values.1)
}
pub fn to_display_string(self) -> String {
format!("{} & {}", 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()
// }