From 4cb994a3a6b206141e0db0993be91215037b09ff Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Wed, 1 May 2024 18:10:38 +0200 Subject: [PATCH] Minor tweaks --- Chess/nim.cfg | 1 - Chess/nimfish/nimfishpkg/eval.nim | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Chess/nim.cfg b/Chess/nim.cfg index 0ed6f5d..f2b04e9 100644 --- a/Chess/nim.cfg +++ b/Chess/nim.cfg @@ -4,4 +4,3 @@ --passL:"-flto" --passC:"-flto -march=native -mtune=native" --mm:atomicArc ---deepCopy diff --git a/Chess/nimfish/nimfishpkg/eval.nim b/Chess/nimfish/nimfishpkg/eval.nim index 54e066c..c38e94b 100644 --- a/Chess/nimfish/nimfishpkg/eval.nim +++ b/Chess/nimfish/nimfishpkg/eval.nim @@ -202,7 +202,7 @@ func highestEval*: Score {.inline.} = Score(25_000) func mateScore*: Score {.inline.} = lowestEval() + 1 -proc getGamePhase(board: Chessboard): int = +func getGamePhase(board: Chessboard): int {.inline.} = ## Computes the game phase according to ## how many pieces are left on the board result = 0