summaryrefslogtreecommitdiff
path: root/game/states/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'game/states/play.js')
-rw-r--r--game/states/play.js4
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);