#chess

nightly bin+lib chess-move-gen

Fast chess move generation library. Uses SIMD for fast sliding piece move generation

32 releases

Uses old Rust 2015

0.8.2 Nov 29, 2020
0.7.8 Nov 25, 2020
0.7.0 Jul 17, 2020
0.6.4 Nov 30, 2018
0.3.3 Mar 30, 2017

#322 in Game dev

Download history 44/week @ 2021-04-11 17/week @ 2021-04-18 37/week @ 2021-04-25 2/week @ 2021-05-02 7/week @ 2021-05-09 33/week @ 2021-05-16 35/week @ 2021-06-06 6/week @ 2021-06-13 10/week @ 2021-06-27 3/week @ 2021-07-04 70/week @ 2021-07-18 35/week @ 2021-07-25

123 downloads per month

MIT license

6.5MB
114K SLoC


lib.rs:

chess_move_gen

Provides structs and methods for generating chess moves efficiently

Example usage:

use chess_move_gen::*;
let mut list = MoveVec::new();
let position = &Position::from_fen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w QqKk - 0 1").unwrap();
legal_moves::<MoveVec>(position, &mut list);
assert_eq!(list.len(), 20);

Dependencies

~1.5MB
~30K SLoC