san2lan: Movetext conversion from SAN to LAN

Description Usage Arguments Value Examples

View source: R/san2lan.R

Description

Convert SAN movetext (FIDE) to LAN movetext (used by chess engines)

Usage

1
san2lan(movetext.san)

Arguments

movetext.san

movetext string in standard algebraic notation (SAN) required by FIDE, but without comments, variants etc.

Value

movetext in long algebraic notation

Examples

1
san2lan("1. e4 e5 2. Nf3 Nf5 3. d5 ")

Example output

[1] "e2e4 e7e5 g1f3 g8f5 d2d5"

bigchess documentation built on Aug. 5, 2020, 5:09 p.m.