Skip to content

Commit

Permalink
Implement IsFiveOfAKind check
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberknetic committed Dec 18, 2019
1 parent 98139d3 commit 999b5e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static bool IsFiveOfAKind(this IEnumerable<IDie> dice)
throw new ArgumentException("A valid roll must contain exactly five dice");
}

throw new NotImplementedException();
return dice.GroupBy(d => d.Value).Count() == 1;
}
}
}

0 comments on commit 999b5e7

Please sign in to comment.