-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"recommendations": [ | ||
"bungcip.better-toml", | ||
"tamasfe.even-better-toml", | ||
"davidanson.vscode-markdownlint", | ||
"matklad.rust-analyzer", | ||
"redhat.vscode-yaml", | ||
"serayuzgur.crates", | ||
"streetsidesoftware.code-spell-checker", | ||
"yzhang.markdown-all-in-one", | ||
"editorconfig.editorconfig" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This is a collection of commonly used recipes for development. Most of them | ||
# are wrappers around Cargo and Cargo extensions with certain setup. | ||
|
||
# Enable x86_64 features that are required for maximum performance. | ||
compile_flags := "RUSTFLAGS='-C target-feature=+avx2,+fma,+bmi1,+bmi2'" | ||
|
||
build: | ||
{{ compile_flags }} cargo build --profile=fast | ||
|
||
# Runs the engine and enters UCI mode. | ||
run: | ||
{{ compile_flags}} cargo run --profile=fast | ||
|
||
# Checks the code for bad formatting, errors and warnings. | ||
lint: | ||
cargo +nightly fmt --all | ||
cargo +nightly clippy --all-features --fix --allow-staged | ||
typos | ||
|
||
# Run most tests that are fast and are run by default. | ||
test_basic: | ||
cargo test | ||
|
||
# Run tests that are slow and are not run by default. | ||
test_slow: | ||
cargo test -- --ignored | ||
|
||
# Run all tests. | ||
test: test_basic test_slow | ||
|
||
bench: | ||
{{ compile_flags }} cargo bench --profile=fast | ||
|
||
# Lists all fuzzing targets that can be used as inputs for fuzz command. | ||
list_fuzz_targets: | ||
cd fuzz | ||
cargo +nightly fuzz list | ||
|
||
fuzz target: | ||
cd fuzz | ||
{{ compile_flags }} cargo +nightly fuzz run {{ target }} |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use crate::chess::position::Position; | ||
|
||
const PAWN_VALUE: f32 = 1.; | ||
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 3 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
|
||
const KNIGHT_VALUE: f32 = 3.; | ||
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 4 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
|
||
const BISHOP_VALUE: f32 = 3.; | ||
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 5 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
|
||
const ROOK_VALUE: f32 = 5.; | ||
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 6 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
|
||
const QUEEN_VALUE: f32 = 9.; | ||
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 7 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
|
||
|
||
fn material_advantage(position: &Position) -> f32 { | ||
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, stable, false)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, stable, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, 1.78.0, false)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (macos-latest, nightly, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (ubuntu-latest, nightly, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, stable, true)
Check warning on line 9 in src/evaluation/material.rs GitHub Actions / Test Suite (windows-latest, nightly, true)
|
||
0. | ||
} | ||
|
||
// TODO: Test. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mod material; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod uci; |