internal bool HasYahtzee() { if (Test !.AllowAnyMove) { return(true); } var count = Cup !.DiceList.DistinctCount(items => items.Value); return(count == 1); //hopefully this works. }
private bool HasThree() { return(_saveRoot !.DiceList.DistinctCount(Items => Items.Value) == 1); //needs to be 1 distinct. }