test: create testing functions for average number of guesses over all possible targets

This commit is contained in:
wi11-holdsworth 2025-10-07 19:39:10 +11:00
parent 46ece35fde
commit 28532a3b3a
2 changed files with 21 additions and 4 deletions

View file

@ -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