/myhunt/minehunt; VERSION

This commit is contained in:
Gwenhael Le Moine 2022-11-22 11:34:19 +01:00
parent ed5f034bee
commit ffb5eda987
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 6 additions and 4 deletions

View file

@ -8,7 +8,7 @@ gemfile do
gem 'curses'
end
require 'myhunt'
require 'minehunt'
def display_curses( field,
state = { dead: false, victory: false },
@ -49,7 +49,7 @@ def display_curses( field,
end
def ncurses_main( number_of_mines )
field = MyHunt::Board.new( number_of_mines )
field = MineHunt::Board.new( number_of_mines )
finished = false
Curses.init_screen
@ -70,7 +70,7 @@ def ncurses_main( number_of_mines )
begin
case ch
when 'r'
field = MyHunt::Board.new( number_of_mines )
field = MineHunt::Board.new( number_of_mines )
finished = false
else
break

View file

@ -1,7 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
module MyHunt
module MineHunt
VERSION = '1.0.0'
class Cell
attr_accessor :mine,
:open