-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pseudo legal pawn moves generation
- Loading branch information
1 parent
538d5ee
commit bd643b3
Showing
5 changed files
with
378 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
use std::process::exit; | ||
mod board; | ||
|
||
mod constants; | ||
use crate::constants::DEFAULT_FEN_STRING; | ||
|
||
mod board; | ||
use crate::board::BoardState; | ||
|
||
mod piece_parsing; | ||
use crate::piece_parsing::parse_bitboards_into_vector; | ||
|
||
mod move_generation; | ||
use crate::move_generation::generate_pawn_moves; | ||
|
||
fn main() { | ||
let board = board::BoardState::from_fen(constants::DEFAULT_FEN_STRING).unwrap_or_else(|err| { | ||
let board = BoardState::from_fen(DEFAULT_FEN_STRING).unwrap_or_else(|err| { | ||
println!("{}", err); | ||
exit(1); | ||
}); | ||
|
||
// generate pseudo legal moves for black pawns | ||
let pawn_moves = generate_pawn_moves( | ||
parse_bitboards_into_vector(1, board.bb_pieces[1][0]), | ||
board.bb_colors[1], | ||
board.bb_colors[0], | ||
); | ||
} |
Oops, something went wrong.