Skip to content

Commit

Permalink
Merge pull request #9 from genyrosk/version-rust
Browse files Browse the repository at this point in the history
V2 chess engine built in Rust with 100x performance improvement
  • Loading branch information
genyrosk authored Jan 14, 2021
2 parents 9e383a1 + 8bbd865 commit e5bdb1c
Show file tree
Hide file tree
Showing 38 changed files with 3,359 additions and 92 deletions.
11 changes: 11 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Rust binaries
/target

# Rust files
Cargo.lock

# Scripts
__script.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
20 changes: 20 additions & 0 deletions Cargo.dev.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "gym-chess"
version = "0.2.0"
authors = ["genyrosk <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "gym_chess"
path = "src/lib.rs"

[dependencies]
lazy_static = "1.4.0"

[dependencies.pyo3]
version = "0.13.0"
features = []

[profile.dev]
debug = 2
17 changes: 17 additions & 0 deletions Cargo.py.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "gym-chess"
version = "0.3.0"
authors = ["genyrosk <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "gym_chess"
crate-type = ["cdylib"]

[dependencies]
lazy_static = "1.4.0"

[dependencies.pyo3]
version = "0.13.0"
features = ["extension-module"]
17 changes: 17 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "gym-chess"
version = "0.3.0"
authors = ["genyrosk <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "gym_chess"
crate-type = ["cdylib"]

[dependencies]
lazy_static = "1.4.0"

[dependencies.pyo3]
version = "0.13.0"
features = ["extension-module"]
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include Cargo.toml
recursive-include src *
Loading

0 comments on commit e5bdb1c

Please sign in to comment.