mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Merge commit '5688b188cc8560e107815c83a7084220fddebdb9' into cluster
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
||||
id: clang-format
|
||||
continue-on-error: true
|
||||
with:
|
||||
clang-format-version: "17"
|
||||
clang-format-version: "18"
|
||||
exclude-regex: "incbin"
|
||||
|
||||
- name: Comment on PR
|
||||
@@ -33,9 +33,9 @@ jobs:
|
||||
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # @v2.5.0
|
||||
with:
|
||||
message: |
|
||||
clang-format 17 needs to be run on this PR.
|
||||
clang-format 18 needs to be run on this PR.
|
||||
If you do not have clang-format installed, the maintainer will run it when merging.
|
||||
For the exact version please see https://packages.ubuntu.com/mantic/clang-format-17.
|
||||
For the exact version please see https://packages.ubuntu.com/noble/clang-format-18.
|
||||
|
||||
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
|
||||
comment_tag: execution
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ discussion._
|
||||
|
||||
Changes to Stockfish C++ code should respect our coding style defined by
|
||||
[.clang-format](.clang-format). You can format your changes by running
|
||||
`make format`. This requires clang-format version 17 to be installed on your system.
|
||||
`make format`. This requires clang-format version 18 to be installed on your system.
|
||||
|
||||
## Navigate
|
||||
|
||||
|
||||
+2
-2
@@ -156,8 +156,8 @@ dotprod = no
|
||||
arm_version = 0
|
||||
STRIP = strip
|
||||
|
||||
ifneq ($(shell which clang-format-17 2> /dev/null),)
|
||||
CLANG-FORMAT = clang-format-17
|
||||
ifneq ($(shell which clang-format-18 2> /dev/null),)
|
||||
CLANG-FORMAT = clang-format-18
|
||||
else
|
||||
CLANG-FORMAT = clang-format
|
||||
endif
|
||||
|
||||
+2
-4
@@ -83,10 +83,8 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
|
||||
optimism += optimism * nnueComplexity / 470;
|
||||
nnue -= nnue * nnueComplexity / 20000;
|
||||
|
||||
int material = 300 * pos.count<PAWN>() + 350 * pos.count<KNIGHT>() + 400 * pos.count<BISHOP>()
|
||||
+ 640 * pos.count<ROOK>() + 1200 * pos.count<QUEEN>();
|
||||
|
||||
v = (nnue * (34300 + material) + optimism * (4400 + material)) / 36672;
|
||||
int material = 600 * pos.count<PAWN>() + pos.non_pawn_material();
|
||||
v = (nnue * (68600 + material) + optimism * (8800 + material)) / 73344;
|
||||
|
||||
// Damp down the evaluation linearly when shuffling
|
||||
v -= v * pos.rule50_count() / 212;
|
||||
|
||||
Reference in New Issue
Block a user