giga-chess 0.8.2

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

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