| Crates.io | giga-chess |
| lib.rs | giga-chess |
| version | 0.9.0 |
| created_at | 2024-05-20 12:58:24.652108+00 |
| updated_at | 2025-06-25 15:31:13.65459+00 |
| description | A rust chess library built for performance, handling game logic and legal/best move generation. |
| homepage | |
| repository | https://github.com/Zitronenjoghurt/giga-chess |
| max_upload_size | |
| id | 1245705 |
| size | 175,175 |
A rust chess library built for performance, handling game logic and legal/best move generation.
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());
}