R/replay_minesweeper.R

Defines functions replay_minesweeper

Documented in replay_minesweeper

#' Replay a Minesweeper Recording
#'
#' Replay a recorded game of minesweeper in the current graphics device.
#'
#' @param recording object of class "minesweeper_recording" returned by
#' [play_minesweeper()]
#' @returns `recording`, invisibly.
#' @examplesIf .Platform$OS.type == "unix" && interactive()
#' x11() # Unix-specific example
#' recording <- play_minesweeper()
#' replay_minesweeper(recording)
#' dev.off()
#' @export
replay_minesweeper <- function(recording) {
  replay(recording, save_to_gif = FALSE)
}

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.