Skip to content

Commit

Permalink
[Linesh][#23] Refactor: use variables to replace magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanLin-TWer committed Mar 19, 2017
1 parent 497de9f commit 90e278f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/constants/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Game {
}

static withinBottomBoundary(y) {
return y < Game.row(5)
return y < Game.row(Game.VERTICAL_CELLS - 1)
}
}

0 comments on commit 90e278f

Please sign in to comment.