#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

#223 in Game development

Download history 20/week @ 2020-02-16 122/week @ 2020-02-23 40/week @ 2020-03-08 21/week @ 2020-03-15 60/week @ 2020-03-22 21/week @ 2020-03-29 62/week @ 2020-04-05 88/week @ 2020-04-12 2/week @ 2020-04-19 1/week @ 2020-04-26 20/week @ 2020-05-17 21/week @ 2020-05-24 60/week @ 2020-05-31

152 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

~785KB
~14K SLoC