This commit is contained in:
Gwenhael Le Moine 2023-03-15 14:47:31 +01:00
parent 5ca2b0b27e
commit 842eedd93f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -17,11 +17,11 @@ def display_curses( field,
Curses.setpos 0, 0 Curses.setpos 0, 0
if state[:dead] if state[:dead]
Curses.addstr "You died! :(, score #{field.score} " Curses.addstr "You blew up!!, score: #{field.score} "
elsif state[:victory] elsif state[:victory]
Curses.addstr "You won!! :), score #{field.score} " Curses.addstr "You won!! :), score: #{field.score} "
else else
Curses.addstr "#{field.number_of_mines} mines, #{field.count_nearby_mines} nearby, score #{field.score}" Curses.addstr "Near #{field.count_nearby_mines} mines, score: #{field.score}"
end end
field.height.times do |y| field.height.times do |y|