Skip to content

Instantly share code, notes, and snippets.

Pedro Paulo Jr ppaulojr

Block or report user

Report or block ppaulojr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ppaulojr
ppaulojr / stockfish.sh
Created Mar 5, 2017 — forked from notbanker/stockfish.sh
Use stockfish engine to output the position evaluation only
View stockfish.sh
#!/usr/bin/env bash
# Call stockfish engine on mac and return only the evaluation score
# Usage stockfish.sh 'r1b2rk1/4qppp/2pp4/pp6/3Bn3/PB3Q1P/1PP2PP1/3R1RK1' 5 mac 12 1024
# Usage stockfish.sh 'r1b2rk1/4qppp/2pp4/pp6/3Bn3/PB3Q1P/1PP2PP1/3R1RK1' 5 mac 12 1024
# Assumes the stockfish binary is called 'stockfish_'+binary
fen=$1
seconds=${2:-3}
binary=${3:-mac}
threads=${4:-12}
You can’t perform that action at this time.