-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
51 lines (38 loc) · 1.53 KB
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
set windows-shell := ["pwsh.exe", "-NoLogo", "-Command"]
default: build
build:
echo "Building the project..."
cargo build --release
test:
echo "Running tests..."
cargo test --release --all --all-features
lint:
cargo clippy --all --all-features --tests -- -D warnings
search-bench:
echo "Running search benchmark..."
cargo rustc --release --bin byte-knight -- -C target-cpu=native
./target/release/byte-knight bench
perft depth:
echo "Running perft..."
cargo run --release --bin perft -- -d {{ depth }}
perft-epd:
echo "Running EPD perft test suite..."
cargo run --release --bin perft -- --epd-file data/standard.epd
perft-bench:
echo "Running perft benchmark..."
cargo run --release --bin perft-bench -- -e data/standard.epd
magics:
echo "Generating magics..."
cargo run --release --bin generate_magics
verify-zobrist:
echo "Verifying Zobrist hash..."
cargo run --release --bin verify_zobrist
release target:
echo "Building release binaries..."
cargo rustc --release --bin byte-knight --target={{ target }}
cache-main: build
echo "Caching binary for testing..."
cp target/release/byte-knight ./bk-main
compare-to-main engine1: build
echo "Comparing {{ engine1 }} to bk-main"
fastchess -engine cmd="{{ engine1 }}" name="dev" -engine cmd="./bk-main" name="bk-main" -openings file="./data/Pohl.epd" format=epd order=random -each tc=10+0.1 -rounds 200 -repeat -concurrency 8 -sprt elo0=0 elo1=5 alpha=0.05 beta=0.1 model=normalized -output format=cutechess