Skip to content

zjom/ruchess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruchess

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:

Usage

Ruchess is not yet published on crates.io.

First clone this repo.

git clone github.com/zjom/ruchess --head

As library

Update 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);
}

As a TUI

cargo run <path to repo root>

Roadmap

CORE

  • enforce checks
  • end of game determination
  • optimise attack calculations using precomputed magic numbers
  • serialize/deserialize game/move encoding formats

Engine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages