Learn R Programming

chess (version 1.0.1)

move: Make moves and create variations

Description

Adding moves to a game works roughly in the same way as PGN. Strings are added as single moves, and lists are added as variations (siblings) to the last move made. After adding moves, the game node returned corresponds to the last move of the mainline. See vignette("chess") for more information.

Usage

move(game, ..., notation = c("san", "uci", "xboard"))

Arguments

game

A game node

...

Sequence of moves (lists are converted to a variation the same way parentheses work in PGN)

notation

Notation used for moves (san, uci, or xboard)

Value

A game node