test: create testing functions for average number of guesses over all possible targets
This commit is contained in:
parent
e16c6bbf7d
commit
1f28cc7cda
2 changed files with 21 additions and 4 deletions
5
Main.hs
5
Main.hs
|
|
@ -39,7 +39,4 @@ toChord = fromJust . mapM toPitch . words
|
|||
-- | Prompt for a target and use guessTest to try to guess it.
|
||||
main :: IO ()
|
||||
main = do
|
||||
putStr "Target chord (3 pitches separated by spaces): "
|
||||
hFlush stdout
|
||||
text <- getLine
|
||||
guessTest $ toChord text
|
||||
putStr $ show avgGuesses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue