R/hide_cells.R

Defines functions hide_cells

hide_cells <- function(board) {
  m <- attr(board, "hide")
  if(!any(m)) return(board)
  update_smiley(":)")
  board <- update_cells(board, "-", m)
  attr(board, "hide")[] <- FALSE
  board
}

Try the minesweeper package in your browser

Any scripts or data that you put into this service are public.

minesweeper documentation built on April 3, 2025, 9:29 p.m.