translate | R Documentation |
#'
1 | pawn | 兵 卒 | P |
2 | canon | 炮 | C |
3 | rook | 车 | R |
4 | horse | 马 | H |
5 | elephant | 相 象 | E |
5 | advisor | 仕 士 | A |
5 | general | 帅 将 | K |
translate(moves, target = "auto", pos = "startpos")
moves |
chr vec of n elements equal to n moves |
target |
one of |
pos |
list of length 90. See |
chr vec of parsed notation, length 1.
san <- c("炮二进二", "炮2进7", "炮八平二", "3进1") lan <- c("h2h4", "b7b0", "b2h2", "f9e8") translate(lan) translate(san, input_type = "san")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.