uci_cmd: Sending command to chess engine

Description Usage Arguments Value Examples

View source: R/uci_cmd.R

Description

Sending command to chess engine

Usage

1
uci_cmd(engine, command = "")

Arguments

engine

engine object

command

string command

Value

engine object

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

bigchess documentation built on Aug. 5, 2020, 5:09 p.m.