pub fn lowest3_4d6() -> Self {
        let dice = Die::new(1, 6);
        let mut stats = [0; 6];
        for i in 0..6 {
            let mut sum = 0;
            let mut min = dice.roll().num();
            for _ in 0..3 {
                let temp = dice.roll().num();
                if temp >= min {
                    sum += temp;
                } else {
                    sum += min;
                    min = temp;
                }
            }
            stats[i] = sum.try_into().unwrap();
        }
        return Self::new(stats);
    }
/// Return scores generated by rolling 4d6 and using the sum of the highest 3 number rolled for each score
Return scores generated by rolling 4d6 and using the sum of the highest 3 number rolled for each score
Return scores generated by rolling 4d6 and using the sum of the highest 3 number rolled for each score
pub fn lowest3_4d6() -> Self {
        let dice = Die::new(1, 6);
        let mut stats = [0; 6];
        for i in 0..6 {
            let mut sum = 0;
            let mut min = dice.roll().num();
            for _ in 0..3 {
                let temp = dice.roll().num();
                if temp >= min {
                    sum += temp;
                } else {
                    sum += min;
                    min = temp;
                }
            }
            stats[i] = sum.try_into().unwrap();
        }
        return Self::new(stats);
    }
pub fn lowest3_4d6 ( ) -> Self { let dice = Die :: new ( 1 , 6 ) ; let mut stats = [ 0 ; 6 ] ; for i in 0 .. 6 { let mut sum = 0 ; let mut min = dice . roll ( ) . num ( ) ; for _ in 0 .. 3 { let temp = dice . roll ( ) . num ( ) ; if temp >= min { sum += temp ; } else { sum += min ; min = temp ; } } stats [ i ] = sum . try_into ( ) . unwrap ( ) ; } return Self :: new ( stats ) ; }
Return scores generated by rolling 4d6 and using the sum of the highest 3 number rolled for each score
Return scores generated by rolling 4d6 and using the sum of the highest 3 number rolled for each score