3 releases
0.1.3 | May 7, 2021 |
---|---|
0.1.1 | Apr 23, 2021 |
0.1.0 | Apr 23, 2021 |
#2049 in Game dev
3.5MB
120K
SLoC
A Fast Chess Library In Rust
This is a fork of github.com/jordanbray/chess with a unique set of bugs useful for certain applications; use this crate at your own risk, and prefer using the upstream crate to this one.
lib.rs
:
Rust Chess Library
This is a chess move generation library for rust. It is designed to be fast, so that it can be used in a chess engine or UI without performance issues.
Example
This generates all the moves on the starting chess position, and checks that the number of moves is correct.
use minorhacks_chess::{Board, MoveGen};
let board = Board::default();
let movegen = MoveGen::new_legal(&board);
assert_eq!(movegen.len(), 20);
Dependencies
~145–355KB