giga-chess 0.5.0

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::engine::Engine;
use giga_chess::game::color::Color;
use giga_chess::game::Game;

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

    let starting_color = Color::White;
    let mut game = Game::new(&engine, starting_color);
    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());
}