Skip to content

Instantly share code, notes, and snippets.

@hyperbotauthor
hyperbotauthor / chessopstest.ts
Created October 26, 2021 23:49
chessops test 3check fen
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],
@hyperbotauthor
hyperbotauthor / installdocker.sh
Last active November 8, 2020 12:11
install docker
#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
@hyperbotauthor
hyperbotauthor / buildlog
Created November 3, 2020 10:49
lila ui build error log
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.
@hyperbotauthor
hyperbotauthor / uci.js
Last active October 22, 2020 14:14
pondering uci engine
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()