Permalink
Browse files

Automatic parenthesis problem solved

  • Loading branch information...
1 parent cc3f7f9 commit 53c40316fb26bd546b2ce641c1c814876a136028 @vjeux committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 server/coffee/server.coffee
@@ -153,7 +153,7 @@ game = ->
for answer_str in answers.split ' '
[name, answer] = answer_str.split '='
pirates.forEach (player) ->
- if player.name == name and isInt +answer and +answer >= 0
+ if (player.name == name) and (isInt +answer) and (+answer >= 0)
player.share = +answer
if (player.share for player in pirates).sum() != bounty
reset()

0 comments on commit 53c4031

Please sign in to comment.