This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Rules } from '../src/types'; | |
import { perft } from '../src/debug'; | |
import { setupPosition } from '../src/variant'; | |
import { parseFen, makeFen } from '../src/fen'; | |
import { parseUci } from '../src/util' | |
const skip = 0; | |
const variantPerfts: [Rules, string, string, number, number, number][] = [ | |
['racingkings', 'racingkings-start', '8/8/8/8/8/8/krbnNBRK/qrbnNBRQ w - -', 21, 421, 11264], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get update -y | |
sudo apt-get install apt-transport-https | |
sudo apt-get install ca-certificates | |
sudo apt-get install curl | |
sudo apt-get install gnupg-agent -y | |
sudo apt-get install software-properties-common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building ui modules with target=dev and mode=build | |
node: v15.0.1 | |
yarn: 1.22.5 | |
yarn install v1.22.5 | |
[1/5] Validating package.json... | |
[2/5] Resolving packages... | |
[3/5] Fetching packages... | |
info fsevents@2.1.3: The platform "linux" is incompatible with this module. | |
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@1.2.13: The platform "linux" is incompatible with this module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
class UciEngine{ | |
constructor(path){ | |
this.process = require('child_process').spawn(path) | |
this.buffer = "" | |
this.process.stdout.on('data', data =>{ | |
let content = data.toString() |