Skip to content

Instantly share code, notes, and snippets.

Avatar

Fabian Fichter ianfab

  • Heidelberg, Germany
View GitHub Profile
@ianfab
ianfab / atomic960.py
Last active Jul 3, 2018
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 / analysis.py
Last active Jun 16, 2018
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():
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