uci_engine {bigchess} | R Documentation |
Create an engine handler in R and send command isready
uci_engine(path)
path |
path to engine file. Make sure you have executable permission on this file. |
engine object (list of two: pipe to engine and temp as a result from stdout engine)
# Linux (make sure you have executable permission):
engine_path <- "./stockfish_10_x64"
# Windows
# engine_path <- "./stockfish_10_x64.exe"
e <- uci_engine(engine_path)
uci_quit(e)
# Using pipe '%>%' from magrittr:
require(magrittr)
uci_engine(engine_path) %>% uci_quit()