Skip to contents

The exact inverse of gm_read_fen(): reading the output of this function reproduces the position it was given.

Usage

gm_write_fen(x, ...)

Arguments

x

A gm_position object.

...

Unused; must be empty.

Value

A length-1 character 'FEN' string.

Examples

gm_write_fen(gm_position())
#> [1] "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"