Class: Minesweeper::Cells::Cell
- Defined in:
- lib/minesweeper/cells/cell.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #toggle_bomb_flag!
Constructor Details
This class inherits a constructor from Minesweeper::Cells::Base
Instance Method Details
#bomb? ⇒ Boolean
6 7 8 |
# File 'lib/minesweeper/cells/cell.rb', line 6 def bomb? false end |
#open!(number_of_boms_nearby) ⇒ Object
10 11 12 13 14 |
# File 'lib/minesweeper/cells/cell.rb', line 10 def open!(number_of_boms_nearby) state.view = number_of_boms_nearby.to_s state.color = COLOR_CYAN state.status = :opened end |