convert_to_lan: convert_to_lan

View source: R/get_moves.R

convert_to_lanR Documentation

convert_to_lan

Description

Internal helper function for get_moves(). This is a wrapper around bigchess::san2lan() to deal with empty movetext. When movetext == ”, it returns ' ', which in get_moves() gets passed to strsplit() that will convert it to ”.

Usage

convert_to_lan(movetext)

Arguments

movetext

A character vector of movetext in SAN format.

Value

A character vector of movetext in LAN format.


dryguy/rbitr documentation built on Oct. 15, 2024, 6:18 a.m.