pad strings to avoid leftovers

This commit is contained in:
Gwenhael Le Moine 2022-09-14 16:25:26 +02:00
parent 7841e780ba
commit 11cda31ce7
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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|