/myhunt/minehunt; VERSION
This commit is contained in:
parent
ed5f034bee
commit
ffb5eda987
2 changed files with 6 additions and 4 deletions
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue