#chess #chess-board #bug #unique #fork #moves #upstream

minorhacks_chess

Fork of the chess crate (github.com/jordanbray/chess). This one has a unique set of bugs useful for certain applications; prefer to use the upstream crate.

3 releases

0.1.3 May 7, 2021
0.1.1 Apr 23, 2021
0.1.0 Apr 23, 2021

#1719 in Game dev

Download history 4/week @ 2024-02-20 15/week @ 2024-02-27 10/week @ 2024-03-26 43/week @ 2024-04-02

53 downloads per month

MIT license

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

~200KB