Add TT lookups in quiescence, move TT inside Game, remove redundant occupancy and time limit functions
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
use crate::board::board::{Board, Color, PieceType};
|
||||
use crate::board::game::Game;
|
||||
use crate::board::state::{Castle, State};
|
||||
use crate::search::transposition_table::TranspositionTable;
|
||||
use crate::search::MAX_TT_SIZE;
|
||||
use String as FenError;
|
||||
|
||||
pub fn from_fen(fen: &str) -> Result<Game, FenError> {
|
||||
@@ -34,11 +36,12 @@ pub fn from_fen(fen: &str) -> Result<Game, FenError> {
|
||||
history: History::new(),
|
||||
mailbox,
|
||||
hash,
|
||||
tt: TranspositionTable::new(MAX_TT_SIZE),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn piece_placement(pieces: &str) -> Result<Board, FenError> {
|
||||
let mut board = Board::empty_board();
|
||||
let mut board = Board::new_empty();
|
||||
let (mut file, mut rank): (u8, u8) = (0, 7);
|
||||
|
||||
for c in pieces.chars() {
|
||||
|
||||
Reference in New Issue
Block a user