Learn R Programming

gogamer (version 0.4.3)

gostate: Go game state

Description

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

Usage

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

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

Run the code above in your browser using DataLab