Board: R6 Class Representing a Board

Description Details Methods

Description

A container to house the minefield. but not the game state

Details

A board is largly hidden to the player, they must discover it on their own, and maintain the state themselves

Methods

Public methods


Method ask()

Usage
Board$ask(x, y)

Method submit()

Usage
Board$submit(candidate_minefield)

Method new()

Usage
Board$new(height = 10, width = 10, mines = 10)

Method print()

Usage
Board$print(...)

Method clone()

The objects of this class are cloneable with this method.

Usage
Board$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


kieran-mace/MineSweeper documentation built on Dec. 21, 2021, 6:40 a.m.