Learn R Programming

chess2plyrs (version 0.3.0)

writefen: writefen

Description

write fen (Forsyth–Edwards Notation) notation

Usage

writefen(game, cb = NULL, tb = NULL, cb_tb_insteadof_game = FALSE)

Value

fen

Arguments

game

chess game object (i.e., a list with elements board, turn, history, and fen_history as created by newgame function)

cb

chess board if cb_tf_insteadof_game set to TRUE

tb

turn if cb_tf_insteadof_game set to TRUE

cb_tb_insteadof_game

if FALSE, uses game to create fen, if TRUE it uses cb and tb