giga-chess

Crates.iogiga-chess
lib.rsgiga-chess
version0.9.0
created_at2024-05-20 12:58:24.652108+00
updated_at2025-06-25 15:31:13.65459+00
descriptionA rust chess library built for performance, handling game logic and legal/best move generation.
homepage
repositoryhttps://github.com/Zitronenjoghurt/giga-chess
max_upload_size
id1245705
size175,175
(Zitronenjoghurt)

documentation

README

Rust codecov

giga-chess

A rust chess library built for performance, handling game logic and legal/best move generation.

Example

use giga_chess::prelude::*;

fn main() {
    let engine = Engine::initialize();

    let mut game = Game::new(&engine, PGNMetadata::now());
    let moves = game.legal_moves();

    // Choose some kind of move
    let chosen_move = *moves.iter().nth(0).unwrap();
    game.play_move(&engine, chosen_move);

    println!("{}", game.board().to_string());
}
Commit count: 28

cargo fmt