Skip to content

Commit

Permalink
Require 63, not 65, to get upper section bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
kvalle committed Apr 22, 2015
1 parent 2c025c2 commit e95031d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yahtzee/Game.hs
Expand Up @@ -125,7 +125,7 @@ printScoreCard card = do
lower = drop 6 card
sumUpper = total $ map sel3 upper
sumLower = total $ map sel3 lower
bonus = if sumUpper < 65 then 0 else 35
bonus = if sumUpper <= 63 then 0 else 35
putCat (cid, category, score, scoreFn) = putLeft category $ show score
putLeft name value = putStrLn $ printf " [ %-17s %3s ]" name value
putRight name value = putStrLn $ printf " [ %17s %3s ]" name value
Expand Down

0 comments on commit e95031d

Please sign in to comment.