-
-
Save melcor76/e820132c9eecbc69a6515238296dc85f to your computer and use it in GitHub Desktop.
js-tetris - lineclearpoints
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
getLineClearPoints(lines) { | |
return lines === 1 ? Points.SINGLE : | |
lines === 2 ? Points.DOUBLE : | |
lines === 3 ? Points.TRIPLE : | |
lines === 4 ? Points.TETRIS : | |
0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment