GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ebemunk/node-uci: UCI Protocol for node.js - talk to chess engines painlessly

BranchesTags
Open more actions menu

Latest commit

 

History

135 Commits
135 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
lib
lib
 
 
src
src
 
 
.babelrc
.babelrc
 
 
.codeclimate.yml
.codeclimate.yml
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.travis.yml
.travis.yml
 
 
.yarnrc
.yarnrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ideas.md
ideas.md
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
rollup.config.js
rollup.config.js
 
 
uci.txt
uci.txt
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

node-uci

node-uci is an implementation of the Universal Chess Interface protocol for node.js. In short, you can talk to engines (like Stockfish, Rybka, etc.) from node.js without any headaches. Abstracts away the pesky communication and parsing of UCI and provides a sane API to communicate with engines.

Build Status Code Climate Test Coverage

Install

Through npm with npm install node-uci.

Usage / Docs

Usage examples and documentation

TLDR;

import { Engine } from 'node-uci'
// or
const Engine = require('node-uci').Engine

// async/await
const engine = new Engine('engine/executable/path')
await engine.init()
await engine.setoption('MultiPV', '4')
await engine.isready()
console.log('engine ready', engine.id, engine.options)
const result = await engine.go({ nodes: 2500000 })
console.log('result', result)
await engine.quit()

//promises with chain
const engine = new Engine('engine/executable/path')
engine
  .chain()
  .init()
  .setoption('MultiPV', 3)
  .position('r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 3 3')
  .go({ depth: 15 })
  .then(result => {
    console.log(result)
  })

License

MIT

Contribute

PRs always welcome

About

UCI Protocol for node.js - talk to chess engines painlessly

ebemunk.github.io/node-uci/

Topics

chesschess-engineuci

Resources

Readme
MIT license
Activity

Stars

49 stars

Watchers

2 watching

Forks

15 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.