class Minesweeper::Core::Elements::FlaggedState

Public Instance Methods

reveal(cell) click to toggle source
# File lib/minesweeper/core/elements/flagged_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/flagged_state.rb, line 14
def to_s
  "F"
end
unflag(cell) click to toggle source
# File lib/minesweeper/core/elements/flagged_state.rb, line 10
def unflag(cell)
  cell.current_state = CellState::HIDDEN_STATE
end