uci_parse {bigchess}R Documentation

Parse GUI commands from chess engine

Description

Parse GUI commands from chess engine.

Usage

uci_parse(ucilog, filter = "bestmove")

Arguments

ucilog

strings from uci_quit() or uci_read()$temp

filter

string, one of 'bestmove' (default), 'score' or 'bestline'

Value

strings with parsed information from engine

Examples


# 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()

[Package bigchess version 1.9.1 Index]