lan_to_coordinates: Convert a chess move in long algebraic notation to...

View source: R/lan_to_coordinates.R

lan_to_coordinatesR Documentation

Convert a chess move in long algebraic notation to coordinates

Description

Convert a chess move in long algebraic notation to coordinates

Usage

lan_to_coordinates(lan)

Arguments

lan

A string representing a chess move in UCI long algebraic notation (e.g., "e2e4", "e7e8q").

Value

A list containing the original coordinates, destination coordinates, and the promoted piece (if any).

Examples

lan_to_coordinates("e2e4")
lan_to_coordinates("e7e8q")

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