Skip to content

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

License

Notifications You must be signed in to change notification settings

Zitronenjoghurt/giga-chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages