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 |
#1289 in Game dev
94 downloads per month
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
~1.5MB
~35K SLoC