diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-17 15:22:37 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-17 15:22:37 +0200 |
| commit | ad04f16e478357633c08174e844c8756f7892a32 (patch) | |
| tree | 6e1ca98dfa67584e86346bfe36c5d98ff6d59b3c /src/evaluate.cpp | |
| parent | 26c0c08b1c4fb302db55355bd49181c8740b7ee6 (diff) | |
refactor(board): refactoring move generation code into better and nice way + adding debug command moves
Diffstat (limited to 'src/evaluate.cpp')
| -rw-r--r-- | src/evaluate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
