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
K_FACTORS = ( | |
(720, 40), | |
(1040, 36), | |
(1280, 32), | |
(1560, 28), | |
(1920, 24), | |
(2240, 20), | |
(9999, 16), | |
) |
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 argparse | |
import os | |
import re | |
import sys | |
import pyffish | |
SEIRAWAN_CASTLING = {'O-O': 'O-O', 'O-O-O': 'O-O-O', 'h1-e1': 'O-O', 'h8-e8': 'O-O', 'a1-e1': 'O-O-O', 'a8-e8': 'O-O-O'} |
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
#!/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 |
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 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.') |
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 argparse | |
import logging | |
import chess, chess.variant, chess.uci | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
def parse_args(): |