R/new_board.R

Defines functions new_board

new_board <- function(nrow, ncol, mine_count = NULL, mines = NULL) {
  new_mineplot(nrow, ncol)
  board <- matrix("-", nrow, ncol)
  set_board(board, nrow, ncol, mine_count, mines)
}

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.