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
module Score where | |
import Data.List | |
cow :: [Char] -> [Char] -> Int | |
cow sol input = length [1 | (x, y) <- zip sol input, x==y] | |
bull :: [Char] -> [Char] -> Int | |
bull sol input = length sol - length (sol \\ input) |
NewerOlder