gostate: Go game state

Description Usage Arguments Value Examples

View source: R/gostate-class.R

Description

gostate object stores a go game state including stone configuration on the board and the numbers of prisoners.

Usage

1
2
gostate(board, boardsize, b_captured, w_captured, movenumber = NULL,
  lastmove = NULL, points = NULL, comment = NULL)

Arguments

board

a data.frame representing stone allocation. It must have variables (x, y, color)

boardsize

baord size (integer)

b_captured, w_captured

numbers of captured stone (integer)

movenumber

integer of move number

lastmove

integer vector of length three that indicates the last move location and color in the order of (x, y, color)

points

data.frame of territory locations

comment

character vectror of comments

Value

gostate object

Examples

1
gostate(data.frame(x = 4, y = 4, color = 1), 19, 0, 0)

gogamer documentation built on May 29, 2017, 4:10 p.m.