From a8a680b9444dba1d390d2ad312a5e7bb1d5b2026 Mon Sep 17 00:00:00 2001 From: dece Date: Sat, 6 Jun 2020 01:28:05 +0200 Subject: [PATCH] engine: fix evaluation formula typo --- src/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine.rs b/src/engine.rs index 46b0c8c..05703f0 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -346,7 +346,7 @@ fn evaluate(stats: &(board::BoardStats, board::BoardStats)) -> f32 { + 3.0 * (ws.num_bishops - bs.num_bishops) as f32 + 3.0 * (ws.num_knights - bs.num_knights) as f32 + (ws.num_pawns - bs.num_pawns) as f32 - + 0.5 * ( // FIXME + - 0.5 * ( ws.num_doubled_pawns - bs.num_doubled_pawns + ws.num_isolated_pawns - bs.num_isolated_pawns + ws.num_backward_pawns - bs.num_backward_pawns