class Minesweeper::Core::Elements::HiddenState

Public Instance Methods

flag(cell) click to toggle source
# File lib/minesweeper/core/elements/hidden_state.rb, line 10
def flag(cell)
  cell.current_state = CellState::FLAGGED_STATE
end
reveal(cell) click to toggle source
# File lib/minesweeper/core/elements/hidden_state.rb, line 5
def reveal(cell)
  cell.current_state = CellState::REVEALED_STATE
  cell.trigger
end
to_s() click to toggle source
# File lib/minesweeper/core/elements/hidden_state.rb, line 14
def to_s
  "H"
end