Scrapbook-0.4.0: code examples
Copyright© Frank Jung 2019
LicenseGPL-3
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yahtzee

Description

Yahtzee test suite from blog Good Design and Type Safety in Yahtzee

Synopsis

Documentation

data DiceChoice Source #

Keep the dice, or re-roll?

Constructors

Keep Word 
Reroll 

type DiceVals = [Word] Source #

Dice values from 1 to 6.

allRolls :: [DiceChoice] -> [DiceVals] Source #

Generate all rolls from a given state.