implemented transposition table
This commit is contained in:
parent
ea9419d7e0
commit
42816a6939
13 changed files with 464 additions and 91 deletions
|
|
@ -3,6 +3,7 @@ use chess_engine::movegen::generate_pseudo_legal_moves;
|
|||
use chess_engine::movegen::legal_check::is_other_king_attacked;
|
||||
use chess_engine::r#move::MoveList;
|
||||
use criterion::{criterion_group, criterion_main, Criterion};
|
||||
use chess_engine::zobrist::init_zobrist;
|
||||
|
||||
fn count_legal_moves_recursive(board: &mut Board, depth: u8) -> u64 {
|
||||
if depth == 0 {
|
||||
|
|
@ -23,6 +24,7 @@ fn count_legal_moves_recursive(board: &mut Board, depth: u8) -> u64 {
|
|||
|
||||
|
||||
fn run_perft_benchmark(c: &mut Criterion) {
|
||||
init_zobrist();
|
||||
let mut board = Board::from_fen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1");
|
||||
|
||||
c.bench_function("standard_perft5", |b| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue