Description Usage Arguments Value Examples
Parse GUI commands from chess engine.
1 |
ucilog |
strings from uci_quit() or uci_read()$temp |
filter |
string, one of 'bestmove' (default), 'score' or 'bestline' |
strings with parsed information from engine
1 2 3 4 5 6 7 8 9 10 11 12 | # Linux (make sure you have executable permission):
engine_path <- "./stockfish_10_x64"
# Windows
# engine_path <- "./stockfish_10_x64.exe"
require(processx)
e <- uci_engine(engine_path)
e <- uci_go(depth = 10)
rslt <- uci_quit(e)
uci_parse(rslt)
# Using pipe '%>%' from magrittr:
require(magrittr)
uci_engine(engine_path) %>% uci_go(depth = 10) %>% uci_quit() %>% uci_parse()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.