uci_engine: Create an engine handler in R

Description Usage Arguments Value Examples

View source: R/uci_engine.R

Description

Create an engine handler in R and send command isready

Usage

1
uci_engine(path)

Arguments

path

path to engine file. Make sure you have executable permission on this file.

Value

engine object (list of two: pipe to engine and temp as a result from stdout engine)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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()

rosawojciech/bigchess documentation built on Jan. 19, 2021, 5:54 a.m.