public void SetDice(IEnumerable <IDie> dice) { _dice = dice; DiceCalculationResult calcResult = Calculate(); Score = calcResult.Score; IsScoreable = calcResult.Score > 0; IsValid = calcResult.IsValid; }
public void SetDice(byte[] dice) { _dice = dice; DiceCalculationResult calcResult = Calculate(); Score = calcResult.Score; IsScoreable = calcResult.Score > 0; IsValid = calcResult.IsValid; }