-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat,infra: Clean up the project and continue impl
- Add Makefile for OpenBench (#55) - Move all lints from src/lib.rs to Cargo.toml - Continue implementing the engine's UCI handler - Add engine integration test using assert_cmd - Extend the score to support checkmates - Add `pabi bench` command for OpenBench and impl stub - Make minor progress towards Transposition Table impl
- Loading branch information
1 parent
3d29d12
commit 1991d3b
Showing
31 changed files
with
731 additions
and
613 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Supporting builds through `make` command is a requirement for OpenBench: | ||
# https://github.com/AndyGrant/OpenBench/wiki/Requirements-For-Public-Engines#basic-requirements | ||
|
||
# Variable for the output binary name, defaults to 'pabi' if not provided. | ||
EXE ?= pabi | ||
|
||
ifeq ($(OS),Windows_NT) | ||
EXE_SUFFIX := .exe | ||
else | ||
EXE_SUFFIX := | ||
endif | ||
|
||
# Compile flags for the fastest possible build. | ||
COMPILE_FLAGS := RUSTFLAGS='-C target-feature=+avx2,+fma,+bmi1,+bmi2' | ||
|
||
# Compile the target and add a link to the binary for OpenBench to pick up. | ||
openbench: | ||
$(COMPILE_FLAGS) cargo rustc --profile=fast --bin=pabi -- --emit link=$(EXE)$(EXE_SUFFIX) | ||
|
||
.PHONY: openbench |
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
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
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
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
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
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
Oops, something went wrong.