diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2014-09-28 19:17:30 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2014-09-28 19:17:30 +0200 |
commit | 2c1fc87836f70feed5f60fdb79b89c4d30b9cacc (patch) | |
tree | 6ea8556c716c9a496dfb47639deb75184b78c31f /game/states/play.js | |
parent | fdb805cfe9b0cbeea1ded7b06dc84ddbd2bc42c9 (diff) |
Diffstat (limited to 'game/states/play.js')
-rw-r--r-- | game/states/play.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/game/states/play.js b/game/states/play.js index cb1edf7..6699ef0 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -59,8 +59,6 @@ Play.prototype = { return Math.max(currentMax, nextRow.trim().length); }, 0); - - for (var y=0; y<splitRows.length; y++) { for (var x=0; x<splitRows[y].length; x++) { switch(splitRows[y][x]) { @@ -88,13 +86,11 @@ Play.prototype = { } } } - var totalScore = this.pills.children.reduce(function(score, nextPill) { return score + nextPill.score; }, 0); - this.players.forEach(function(player) { player.maxScore = totalScore; }, this); |