#chess #move #generation #piece #gen #moves #legal

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

#1459 in Game dev

MIT license

6.5MB
114K SLoC

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

~3MB
~61K SLoC