Important
THIS PROJECT IS UNDER ACTIVE DEVELOPMENT. THERE ARE CORE FUNCTIONALITIES THAT HAVE NOT BEEN IMPLEMENTED YET DO NOT USE.
Chess library, tui and engine written in Rust.
Contains:
- core chess library in ruchess-core
- tui in ./ruchess-bin
- engine in ./ruchess-engine !NOT IMPLEMENTED
Ruchess is not yet published on crates.io.
First clone this repo.
git clone github.com/zjom/ruchess --headUpdate your cargo.toml file with a dependencies section pointing at the path of where you cloned this project.
Example:
[package]
name = "urpackage"
version = "0.1.0"
edition = "2024"
[dependencies]
ruchess-core = { path = "<path to repo root>/ruchess-core" }use ruchess_core::{Game, Move};
fn main()->{
let mut game = Game::new();
println!("{}",game);
let m:Move = "e2e4".parse().expect("failed to parse move");
game.make_move(m).expect("invalid move");
println!("{}",game);
}cargo run <path to repo root>CORE
- enforce checks
- end of game determination
- optimise attack calculations using precomputed magic numbers
- serialize/deserialize game/move encoding formats
Engine