Fix worst-case score calculation
This commit is contained in:
parent
f50a25ea3b
commit
a18cd5ef8d
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ worstCase :: Class -> M.Map Class Int -> Int
|
|||
worstCase c cmap =
|
||||
let solutions = M.mapKeysWith (+) (score c) cmap
|
||||
maxHitCount = maximum solutions
|
||||
minEliminated = M.size cmap - maxHitCount
|
||||
minEliminated = sum cmap - maxHitCount
|
||||
in minEliminated
|
||||
|
||||
nextGuesses :: GuessState -> [(Int, [String])]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue