-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5010b45
commit da398d6
Showing
3 changed files
with
72 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
fun score (dice: int list, category: string): int = | ||
datatype category = | ||
Ones | ||
| Twos | ||
| Threes | ||
| Fours | ||
| Fives | ||
| Sixes | ||
| FullHouse | ||
| FourOfAKind | ||
| LittleStraight | ||
| BigStraight | ||
| Choice | ||
| Yacht | ||
|
||
fun score (dice: int list, category): int = | ||
raise Fail "'score' is not implemented" |