Skip to content

Instantly share code, notes, and snippets.

@melcor76
Created November 26, 2019 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melcor76/e820132c9eecbc69a6515238296dc85f to your computer and use it in GitHub Desktop.
Save melcor76/e820132c9eecbc69a6515238296dc85f to your computer and use it in GitHub Desktop.
js-tetris - lineclearpoints
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