#chess

nightly bin+lib chess-move-gen

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

20 releases

0.6.4 Nov 30, 2018
0.5.2 Aug 2, 2018
0.5.0 Jun 6, 2017
0.3.3 Mar 30, 2017

#18 in #chess

Download history 5/week @ 2019-07-29 23/week @ 2019-08-05 1/week @ 2019-08-12 40/week @ 2019-08-19 84/week @ 2019-08-26 82/week @ 2019-09-02 21/week @ 2019-09-09 194/week @ 2019-09-16 72/week @ 2019-09-23 20/week @ 2019-09-30 6/week @ 2019-10-07 21/week @ 2019-10-14 21/week @ 2019-10-21 203/week @ 2019-10-28 42/week @ 2019-11-04

118 downloads per month

MIT license

6MB
105K 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

~735KB
~13K SLoC