is_ucilan | R Documentation |
The function uses regular expressions to check if the string's tokens match the expected pattern for chess moves in LAN.
is_ucilan(movetext)
movetext |
A character string, possibly containing a series of chess moves in SAN. |
UCI-format long algebraic notation is described in the UCI protocol. Note that this function does not check if the moves are legal.
TRUE if the string contains valid chess moves in LAN, FALSE otherwise
is_ucilan("e2e4 e7e5 g1f3 b8c6")
is_ucilan("1. e4 e5 2. Nf3 Nc6")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.