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