Beispiel #1
0
        internal bool HasYahtzee()
        {
            if (Test !.AllowAnyMove)
            {
                return(true);
            }
            var count = Cup !.DiceList.DistinctCount(items => items.Value);

            return(count == 1); //hopefully this works.
        }
Beispiel #2
0
 private bool HasThree()
 {
     return(_saveRoot !.DiceList.DistinctCount(Items => Items.Value) == 1); //needs to be 1 distinct.
 }