Skip to content

Instantly share code, notes, and snippets.

View op12no2's full-sized avatar
💭
Drinking

Colin Jenkins op12no2

💭
Drinking
View GitHub Profile
@op12no2
op12no2 / gist:04cad531c535d36f9c3ff1663cebc68e
Last active March 6, 2019 20:59
Connecting node.js to stdin/stdout
// The context here is a UCI chess interface such that a Javascript chess engine running in node.js can
// communicate with standard chess UIs like Arena and Winboard via stdin/stdout.  But the code may be
// useful in other contexts too.
// My own UCI interface (node.js and web worker compatible) can be found here in the lozUCI class:-
// https://github.com/op12no2/lozza
// stdin