c4game: A reference class to create a connect 4 game object.

Description Usage Format Value Fields Examples

Description

A reference class to create a connect 4 game object.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Value

an R6 object.

Fields

board

A matrix.

y

A character.

player

A number

Examples

1
2
3
game <- c4game$new()
game <- c4game$new(board = matrix(, nrow = 6, ncol = 7))
# object instatiation returns an R6 object

sellorm/c4game documentation built on July 7, 2019, 1:50 a.m.