Player: R6 Class Representing a Player

Description Details Methods

Description

This class represents a very basic player that plays randomly and will never feel confident enough to submit a solution

Details

More sophisticated players should inherit this class

Methods

Public methods


Method get_submission()

Usage
Player$get_submission()

Method get_next_question()

Usage
Player$get_next_question()

Method recieve_info()

Usage
Player$recieve_info(question, info)

Method submit()

Usage
Player$submit(candidate_minefield)

Method new()

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

Method print()

Usage
Player$print(...)

Method clone()

The objects of this class are cloneable with this method.

Usage
Player$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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