Reinitialize repository and add working move generation for all pieces
This commit is contained in:
commit
951a8bbec6
28 changed files with 3373 additions and 0 deletions
13
src/main.rs
Normal file
13
src/main.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
use chess_engine::board::Board;
|
||||
use chess_engine::movegen::generate_pseudo_legal_moves;
|
||||
use chess_engine::r#move::*;
|
||||
|
||||
|
||||
fn main() {
|
||||
let board = Board::from_fen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR b KQkq - 1 2");
|
||||
let mut move_list = MoveList::new();
|
||||
|
||||
generate_pseudo_legal_moves(&board, &mut move_list);
|
||||
|
||||
println!("Counted {} pseudo legal moves.", move_list.len());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue