R/on_board.R

Defines functions on_board

on_board <- function(i, j, nrow, ncol) {
  i > 0 && j > 0 && i <= nrow && j <= ncol
}

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.