uci_cmd {bigchess}R Documentation

Sending command to chess engine

Description

Sending command to chess engine

Usage

uci_cmd(engine, command = "")

Arguments

engine

engine object

command

string command

Value

engine object

Examples


# Linux (make sure you have executable permission):
engine_path <- "./stockfish_10_x64"
# Windows
# engine_path <- "./stockfish_10_x64.exe"
e <- uci_engine(engine_path)
e <- uci_command(e,"go depth 10")
uci_quit(e)
# Using pipe '%>%' from magrittr:
require(magrittr)
uci_engine(engine_path) %>% uci_command("go depth 10") %>% uci_quit()

[Package bigchess version 1.9.1 Index]