feat: implement initialGuess
This commit is contained in:
parent
7b98957f63
commit
d8dbc1c86c
1 changed files with 5 additions and 2 deletions
7
Proj2.hs
7
Proj2.hs
|
|
@ -78,9 +78,12 @@ feedback target guess = (length correctPitches, correctNotes, correctOctaves)
|
|||
correctNotes = length $ S.intersection targetNoteSet guessNoteSet
|
||||
correctOctaves = length $ S.intersection targetOctaveSet guessOctaveSet
|
||||
|
||||
-- implement me
|
||||
initialGuess :: ([Pitch], GameState)
|
||||
initialGuess = ([], [[]])
|
||||
initialGuess = ([a1, a2, a3], [[]])
|
||||
where
|
||||
a1 = Pitch A One
|
||||
a2 = Pitch A Two
|
||||
a3 = Pitch A Three
|
||||
|
||||
-- implement me
|
||||
nextGuess :: ([Pitch], GameState) -> (Int, Int, Int) -> ([Pitch], GameState)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue