| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Combinatorics.Mastermind
Documentation
Cf. board-games package.
numberDistinct :: Int -> Int -> Int -> Int -> Integer Source #
numberDistinct n k b w computes the number of matching codes,
given that all codes have distinct symbols.
n is the alphabet size, k the width of the code,
b the number of black evaluation sticks and
w the number of white evaluation sticks.