position_move: Create a xiangqi position

View source: R/position_move.R

position_moveR Documentation

Create a xiangqi position

Usage

position_move(moves, pos = "start")

Arguments

moves

vector length n, each element with uci(lan) notation, no whitespaces*

pos

by default the starting position, otherwise named list of length 90.

Details

The notation system used in this position function is the one described by the Universal Chinese Chess Protocol UCCI, that which most xiangqi engines use as the internal structure.

Examples

position <- moves[1:49] %>% translate_notation("san") %>% clean_moves() %>% position_move()

D-Se/xiangqi documentation built on May 12, 2022, 6:06 a.m.