-
-
Save parzibyte/0d4fcf8b3c3a1cb06df38e1d50c47161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addScore(rows) { | |
this.score += Game.PER_SQUARE_SCORE * Game.COLUMNS * rows.length; | |
this.refreshScore(); | |
} | |
refreshScore() { | |
this.$score.textContent = `Score: ${this.score}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment