pad strings to avoid leftovers
This commit is contained in:
parent
7841e780ba
commit
11cda31ce7
1 changed files with 3 additions and 3 deletions
|
@ -15,11 +15,11 @@ def display_curses( field, state = { dead: false, victory: false } )
|
|||
Curses.setpos 0, 0
|
||||
|
||||
if state[:dead]
|
||||
Curses.addstr 'You died! :('
|
||||
Curses.addstr 'You died! :( '
|
||||
elsif state[:victory]
|
||||
Curses.addstr 'You won!! :)'
|
||||
Curses.addstr 'You won!! :) '
|
||||
else
|
||||
Curses.addstr "nearby: #{field.count_nearby_mines}"
|
||||
Curses.addstr "nearby: #{field.count_nearby_mines} "
|
||||
end
|
||||
|
||||
field.height.times do |y|
|
||||
|
|
Loading…
Reference in a new issue