use super::*;
use crate::state::representation::Board;
use mobility::EvalAux;
#[cfg(feature = "dev")]
use crate::tuning::tuner::TunerCoeff;
pub fn evaluate(board: &Board, white_aux: &EvalAux, black_aux: &EvalAux) -> PackedEval {
evaluate_color(board, white_aux) - evaluate_color(board, black_aux)
}
fn evaluate_color(_board: &Board, aux: &EvalAux) -> PackedEval {
params::KING_AREA_THREATS[(aux.king_area_threats as usize).min(7)]
}
#[cfg(feature = "dev")]
pub fn get_coeffs(white_aux: &EvalAux, black_aux: &EvalAux, index: &mut u16, coeffs: &mut Vec<TunerCoeff>, indices: &mut Vec<u16>) {
get_array_coeffs(white_aux.king_area_threats as u8, black_aux.king_area_threats as u8, 8, index, coeffs, indices)
}