Learn R Programming

bigchess (version 1.9.1)

uci_cmd: 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

Run this code
# NOT RUN {
# 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()
# }

Run the code above in your browser using DataLab