Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabian Fichter ianfab

  • Heidelberg, Germany
  • 15:27 (UTC +02:00)
View GitHub Profile
@ianfab
ianfab / analysis.py
Last active June 16, 2018 08:11
Analyze chess (variant) positions from an EPD file
View analysis.py
import argparse
import logging
import chess, chess.variant, chess.uci
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def parse_args():
@ianfab
ianfab / atomic960.py
Last active July 3, 2018 18:52
Analyze chess960 starting positions for chess or chess variants.
View atomic960.py
import argparse
import csv
import chess, chess.variant, chess.uci
def parse_args():
parser = argparse.ArgumentParser(description='Evaluate atomic960 positions.')
parser.add_argument('-e', '--engine', required=True, help='Path to engine.')
parser.add_argument('-o', '--output', required=True, help='Output csv file.')
parser.add_argument('-d', '--depth', type=int, default=10, help='Search depth.')
@ianfab
ianfab / bench-parallel.sh
Created March 14, 2017 18:29
bench script
View bench-parallel.sh
#!/bin/bash
if [[ $# -ne 3 ]]; then
echo "usage:" $0 "base test n_runs"
echo "example:" $0 "./stockfish_base ./stockfish_test 10"
exit 1
fi
base=$1
test=$2
n_runs=$3