🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

remote-chess-engine

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remote-chess-engine

Remote Chess Engine, ready to process position analysis tasks via Remote Interface for Chess Positions Analysis (RICPA)

latest
Source
npmnpm
Version
0.8.1
Version published
Maintainers
1
Created
Source

Remote Chess Engine

Build Status Coverage Status npm version

Remote Chess Engine, ready to process position analysis tasks via Remote Interface for Chess Positions Analysis (RICPA)

Install

npm install -g remote-chess-engine

Configure

create config/local.json with the following properties, setting valid path and values:

{
  "pathToEngine": "stockfish_9_x64.exe",
  "uciOptions": [{"name":"Threads", "value":3}, {"name": "Hash", "value": 4096}],
  "port": 9977,
  "evaluationsFile": "evaluations.json",
  "queueFile": "queue.json",
  "historyFile": "history.json"
}

Run

remote-chess-engine

API

GET /fen: input - fen, depth. Returns bestMove for this fen and depth or placeInQueue and estimatedTime when answer could be provided. If fen is not analyzed and is not in queue, returns {bestMove: underfined, placeInQueue: undefined, estimatedTime: underfined}

POST /fen - posts fen for analysis with specified depth at the end of a queue, triggers analysis from the top of queue if nothing is being analyzed now

  • fen - FEN of chess position
  • depth - depth to analyze
  • pingUrl - url to execute get call when analysis finished
  • returns place in queue starting from 0 and estimated time to analyze ({placeInQueue, estimatedTime})

DELETE /fen - delete specified fen from the queue. Input - fen.

GET /queue - gets queue as [{fen, depth, estimatedTime}, ...]

Keywords

chess

FAQs

Package last updated on 07 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts