Skip to content

Commit

Permalink
eliminate magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
lau committed Apr 9, 2013
1 parent 18b733a commit 3bb68fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/letris/ascii_game.rb
Expand Up @@ -15,7 +15,7 @@ def render_board(board, lines_cleared)
buf = ''
buf = buf + "Keys: H: move left. L: move right. R: rotate piece. Q: quit\n"
buf = buf + "Lines cleared: #{lines_cleared}\n"
y_pos = 19
y_pos = board.height - 1
board.height.times do |y|
buf = buf + ''
buf = buf + "║"
Expand Down

0 comments on commit 3bb68fd

Please sign in to comment.