uci_stop: Sending command stop for chess engine

Description Usage Arguments Value Examples

View source: R/uci_stop.R

Description

Sending command stop for chess engine. Info about stop command from http://wbec-ridderkerk.nl/html/UCIProtocol.html stop calculating as soon as possible, don't forget the "bestmove" and possibly the "ponder" token when finishing the search

Usage

1
uci_stop(engine)

Arguments

engine

engine object

Value

engine object

Examples

1
2
3
4
5
6
7
8
9
# 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_go(depth = 100)
Sys.sleep(1)
e <- uci_stop(e)
uci_quit(e)

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