From ad04f16e478357633c08174e844c8756f7892a32 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 17 Aug 2026 15:22:37 +0200 Subject: refactor(board): refactoring move generation code into better and nice way + adding debug command moves --- src/evaluate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/evaluate.cpp') diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 3958999..c14fb9a 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -223,8 +223,8 @@ int EvaluateBoardForWhite(Game *g) { score += CountBoardMaterial(g, isEndGame); if (isEndGame) { - Position whiteKing = FindKing(g, true); - Position blackKing = FindKing(g, false); + Position whiteKing = FindKing(*g, true); + Position blackKing = FindKing(*g, false); score += ForceKingToEdgeBonus(blackKing, whiteKing); score -= ForceKingToEdgeBonus(whiteKing, blackKing); -- cgit v1.2.3