writefen: writefen

View source: R/writefen.R

writefenR Documentation

writefen

Description

write fen (Forsyth–Edwards Notation) notation

Usage

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

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

Value

fen


chess2plyrs documentation built on June 8, 2025, 10:03 a.m.