Fabian Fichter [Fri, 18 Dec 2020 12:51:24 +0000]
Tweak horde breakthrough bonus
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 1952 W: 1029 L: 899 D: 24
http://www.variantfishtest.org:6543/tests/view/
5fdc72e46e23db221d9e9586
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2054 W: 1083 L: 952 D: 19
http://www.variantfishtest.org:6543/tests/view/
5fdc785c6e23db221d9e9589
Bajusz Tamás [Fri, 18 Dec 2020 09:21:28 +0000]
Fix refcount bugs in pyffish (#218)
Fabian Fichter [Fri, 18 Dec 2020 09:10:52 +0000]
Simplify horde breakthrough bonus
horde STC
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 564 W: 312 L: 248 D: 4
http://www.variantfishtest.org:6543/tests/view/
5fdbea7c6e23db221d9e957a
horde LTC
LLR: 2.97 (-2.94,2.94) [-10.00,5.00]
Total: 363 W: 211 L: 146 D: 6
http://www.variantfishtest.org:6543/tests/view/
5fdbf10b6e23db221d9e9582
Fabian Fichter [Wed, 16 Dec 2020 19:04:14 +0000]
Refine horde connected bonus
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 957 W: 532 L: 416 D: 9
http://www.variantfishtest.org:6543/tests/view/
5fda46cb6e23db221d9e9557
horde LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 904 W: 506 L: 391 D: 7
http://www.variantfishtest.org:6543/tests/view/
5fda4a616e23db221d9e955a
Fabian Fichter [Wed, 16 Dec 2020 17:48:29 +0000]
Simplify away shogi pawn structure evaluation
shogi STC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 1737 W: 890 L: 834 D: 13
http://www.variantfishtest.org:6543/tests/view/
5fd93a846e23db221d9e9540
shogi LTC
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 3348 W: 1686 L: 1642 D: 20
http://www.variantfishtest.org:6543/tests/view/
5fd9b46f6e23db221d9e9552
Fabian Fichter [Wed, 16 Dec 2020 17:47:26 +0000]
Simplify away shogi pawns from space bonus
shogi STC
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 1986 W: 1016 L: 962 D: 8
http://www.variantfishtest.org:6543/tests/view/
5fd940e86e23db221d9e954f
shogi LTC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 1394 W: 724 L: 666 D: 4
http://www.variantfishtest.org:6543/tests/view/
5fd9b4876e23db221d9e9554
Fabian Fichter [Mon, 14 Dec 2020 22:46:31 +0000]
Increase connected bonus for horde
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 3522 W: 1821 L: 1668 D: 33
http://www.variantfishtest.org:6543/tests/view/
5fd79bf96e23db221d9e9531
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1983 W: 1046 L: 916 D: 21
http://www.variantfishtest.org:6543/tests/view/
5fd7b7246e23db221d9e9534
Fabian Fichter [Sun, 13 Dec 2020 12:22:28 +0000]
Lower bonus for non-queen breakthroughs
horde STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1498 W: 804 L: 681 D: 13
http://www.variantfishtest.org:6543/tests/view/
5fd4c8d96e23db221d9e950b
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3282 W: 1703 L: 1554 D: 25
http://www.variantfishtest.org:6543/tests/view/
5fd512666e23db221d9e951b
Fabian Fichter [Fri, 11 Dec 2020 20:59:04 +0000]
Cache TsumeMode option
Speed-up for horde chess.
horde STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1761 W: 935 L: 808 D: 18
http://www.variantfishtest.org:6543/tests/view/
5fd3c1ac6e23db221d9e94f7
Fabian Fichter [Fri, 11 Dec 2020 12:49:22 +0000]
Tweak horde imbalance
horde STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1562 W: 834 L: 710 D: 18
http://www.variantfishtest.org:6543/tests/view/
5fd290846e23db221d9e94d2
horde LTC
LLR: 2.94 (-2.94,2.94) [0.00,10.00]
Total: 714 W: 411 L: 299 D: 4
http://www.variantfishtest.org:6543/tests/view/
5fd2b1a46e23db221d9e94dc
Fabian Fichter [Wed, 9 Dec 2020 17:33:43 +0000]
Refactor rider attacks
Fabian Fichter [Wed, 9 Dec 2020 19:06:55 +0000]
Speed up attack generation for leapers
chess STC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 2299 W: 535 L: 502 D: 1262
http://www.variantfishtest.org:6543/tests/view/
5fd0060c6e23db221d9e94b4
seirawan STC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 896 W: 342 L: 295 D: 259
http://www.variantfishtest.org:6543/tests/view/
5fd0ab0f6e23db221d9e94c4
minishogi STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 3418 W: 1785 L: 1633 D: 0
http://www.variantfishtest.org:6543/tests/view/
5fd006326e23db221d9e94b7
asean STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1211 W: 246 L: 174 D: 791
http://www.variantfishtest.org:6543/tests/view/
5fd006816e23db221d9e94b9
No functional change.
Fabian Fichter [Mon, 7 Dec 2020 21:01:51 +0000]
Simplify gating SEE
seirawan STC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 830 W: 327 L: 278 D: 225
http://www.variantfishtest.org:6543/tests/view/
5fce987d6e23db221d9e949d
seirawan LTC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 817 W: 287 L: 241 D: 289
http://www.variantfishtest.org:6543/tests/view/
5fce9faa6e23db221d9e94a0
Fabian Fichter [Tue, 8 Dec 2020 16:42:19 +0000]
Simplify SEE for racing kings
racingkings STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 582 W: 237 L: 153 D: 192
http://www.variantfishtest.org:6543/tests/view/
5fce8bf26e23db221d9e9498
racingkings LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 582 W: 205 L: 127 D: 250
http://www.variantfishtest.org:6543/tests/view/
5fce95a26e23db221d9e949b
Fabian Fichter [Sun, 6 Dec 2020 16:44:38 +0000]
Support more piece types for NNUE
Fabian Fichter [Fri, 4 Dec 2020 15:51:07 +0000]
Merge official-stockfish/master
bench: 4140089
Fabian Fichter [Tue, 1 Dec 2020 20:12:23 +0000]
Use pure NNUE for king of the hill
Since the best NNUE network is much stronger than classical evaluation,
it seems intuitive to switch from hybrid to pure NNUE evaluation.
kingofthehill STC
Score: 133 - 34 - 33 [0.748] 200
Elo: 188.5 +/- 49.5, LOS: 100.0 %, DrawRatio: 16.5 %
kingofthehill LTC
Score: 63 - 20 - 17 [0.715] 100
Elo: 159.8 +/- 68.4, LOS: 100.0 %, DrawRatio: 17.0 %
Fabian Fichter [Sun, 29 Nov 2020 21:42:02 +0000]
Spezialize attackers_to
Precalculate variant properties at startup to allow speedups
using optimizations for variants with standard chess pieces.
chess STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 999 W: 278 L: 200 D: 521
http://www.variantfishtest.org:6543/tests/view/
5fc37df16e23db221d9e9430
No functional change.
Fabian Fichter [Sun, 29 Nov 2020 20:25:22 +0000]
Cache legal capture state
Speed-up for variants with mandatory captures.
giveaway STC
LLR: 2.94 (-2.94,2.94) [0.00,10.00]
Total: 1873 W: 743 L: 637 D: 493
http://www.variantfishtest.org:6543/tests/view/
5fc2239d6e23db221d9e9423
losers STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1194 W: 577 L: 469 D: 148
http://www.variantfishtest.org:6543/tests/view/
5fc223af6e23db221d9e9426
No functional change.
Fabian Fichter [Fri, 27 Nov 2020 18:46:52 +0000]
Fix piece drops for NNUE
Vizvezdenec [Thu, 26 Nov 2020 05:38:09 +0000]
use classical for certain endgames.
STC https://tests.stockfishchess.org/tests/view/
5fbc64c067cbf42301d6b1d6
LLR: 2.97 (-2.94,2.94) {-0.25,1.25}
Total: 53360 W: 5223 L: 5024 D: 43113
Ptnml(0-2): 184, 3877, 18390, 4014, 215
LTC https://tests.stockfishchess.org/tests/view/
5fbc97f267cbf42301d6b1ee
LLR: 2.96 (-2.94,2.94) {0.25,1.25}
Total: 126472 W: 5111 L: 4766 D: 116595
Ptnml(0-2): 50, 4032, 54749, 4333, 72
closes https://github.com/official-stockfish/Stockfish/pull/3240
bench: 3820648
MaximMolchanov [Sat, 14 Nov 2020 00:55:29 +0000]
Calculate sum from first elements
in affine transform for AVX512/AVX2/SSSE3
The idea is to initialize sum with the first element instead of zero.
Reduce one add_epi32 and one set_zero SIMD instructions for each output dimension.
sum = 0; for i = 1 to n sum += a[i] ->
sum = a[1]; for i = 2 to n sum += a[i]
STC:
LLR: 2.95 (-2.94,2.94) {-0.25,1.25}
Total: 69048 W: 7024 L: 6799 D: 55225
Ptnml(0-2): 260, 5175, 23458, 5342, 289
https://tests.stockfishchess.org/tests/view/
5faf2cf467cbf42301d6aa06
closes https://github.com/official-stockfish/Stockfish/pull/3227
No functional change.
Unai Corzo [Tue, 24 Nov 2020 16:06:30 +0000]
Assorted search and eval parameter tune
Search and eval parameter tune.
STC https://tests.stockfishchess.org/tests/view/
5fba850a67cbf42301d6b07d
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 24312 W: 2388 L: 2228 D: 19696
Ptnml(0-2): 85, 1800, 8241, 1930, 100
LTC https://tests.stockfishchess.org/tests/view/
5fbad5ea67cbf42301d6b0fa
LLR: 2.95 (-2.94,2.94) {0.25,1.25}
Total: 88376 W: 3619 L: 3351 D: 81406
Ptnml(0-2): 56, 2977, 37849, 3255, 51
closes https://github.com/official-stockfish/Stockfish/pull/3232
bench: 3600361
Fabian Fichter [Tue, 24 Nov 2020 22:32:59 +0000]
Consider gating pieces in SEE
Consider king captures as illegal if attacked by gating piece.
seirawan STC
LLR: -1.04 (-2.94,2.94) [0.00,10.00]
Total: 9842 W: 3420 L: 3320 D: 3102
http://www.variantfishtest.org:6543/tests/view/
5fb8369c6e23db221d9e9400
seirawan LTC
LLR: 2.96 (-2.94,2.94) [-10.00,5.00]
Total: 1483 W: 494 L: 453 D: 536
http://www.variantfishtest.org:6543/tests/view/
5fb90fbf6e23db221d9e9407
Closes #210.
Stéphane Nicolet [Thu, 12 Nov 2020 13:05:28 +0000]
Small cleanups 13
No functional change
Fabian Fichter [Thu, 19 Nov 2020 18:32:49 +0000]
Support Semi-Torpedo chess (#209)
Fabian Fichter [Fri, 20 Nov 2020 21:54:42 +0000]
Merge official-stockfish/master
bench: 3970036
QueensGambit [Fri, 20 Nov 2020 19:59:16 +0000]
Updated ffish.js to 0.4.7
because of bugfix in FairySF #207
Fabian Fichter [Fri, 20 Nov 2020 14:39:49 +0000]
Add discord link
Bajusz Tamás [Thu, 19 Nov 2020 07:21:42 +0000]
Bump pyffish version (#208)
Fabian Fichter [Wed, 18 Nov 2020 19:20:52 +0000]
Prevent gating on castling target squares
Validate whether the gating square will be blocked
by king or rook after castling.
Closes #207.
Fabian Fichter [Tue, 17 Nov 2020 20:36:52 +0000]
Fix CECP analysis mode after passing moves
Continue searching in analysis mode after a passing move is executed.
Fabian Fichter [Mon, 16 Nov 2020 21:05:09 +0000]
Fix NNUE rotation for non-standard board sizes
Fabian Fichter [Mon, 16 Nov 2020 20:09:23 +0000]
Update bot links in readme
Fabian Fichter [Sun, 15 Nov 2020 14:28:06 +0000]
Fix appveyor build configuration
Fabian Fichter [Sun, 15 Nov 2020 14:03:01 +0000]
Simplify compile-time switch for NNUE embedding
Disable default net by default instead of disabling Use NNUE.
Fabian Fichter [Sun, 15 Nov 2020 13:26:46 +0000]
Fix NNUE detection for absolute paths
Check the file name, not the full path, for prefix with the variant name.
FauziAkram [Wed, 11 Nov 2020 18:56:29 +0000]
Rook Mobility Tweak
Passed STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 171152 W: 34715 L: 34202 D: 102235
Ptnml(0-2): 3278, 20155, 38228, 20606, 3309
https://tests.stockfishchess.org/tests/view/
5fa861f467cbf42301d6a68e
Passed LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 149616 W: 20471 L: 19882 D: 109263
Ptnml(0-2): 1172, 14434, 43102, 14833, 1267
https://tests.stockfishchess.org/tests/view/
5fa9c8ff67cbf42301d6a74f
closes https://github.com/official-stockfish/Stockfish/pull/3226
Bench: 3597730
Fabian Fichter [Sat, 14 Nov 2020 18:11:18 +0000]
Skip NNUE rotation for racing kings
Fabian Fichter [Fri, 30 Oct 2020 18:45:34 +0000]
Support pondering in CECP
Refactor handling of protocol state for CECP and implement pondering.
Improves the protocol compliance of several commands along the way.
Closes #103.
Fabian Fichter [Fri, 13 Nov 2020 17:11:44 +0000]
Update gitignore config
Fabian Fichter [Fri, 13 Nov 2020 00:31:41 +0000]
Update readme
SFisGOD [Tue, 10 Nov 2020 17:28:43 +0000]
Increase reduction at root
when the best move does not change frequently
STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 51320 W: 5159 L: 4956 D: 41205
Ptnml(0-2): 215, 3897, 17242, 4082, 224
https://tests.stockfishchess.org/tests/view/
5faa072367cbf42301d6a767
LTC:
LLR: 2.98 (-2.94,2.94) {0.25,1.25}
Total: 15952 W: 762 L: 642 D: 14548
Ptnml(0-2): 8, 561, 6725, 667, 15
https://tests.stockfishchess.org/tests/view/
5faa4c3567cbf42301d6a794
closes https://github.com/official-stockfish/Stockfish/pull/3225
Bench: 3954692
Fabian Fichter [Wed, 11 Nov 2020 19:17:25 +0000]
Merge official-stockfish/master
bench: 3828292
Fabian Fichter [Tue, 10 Nov 2020 20:27:15 +0000]
Make NNUE compatible with basic fairy pieces
Re-use existing architecture and map fairy pieces
to their standard chess counterparts.
Joost VandeVondele [Tue, 10 Nov 2020 17:28:43 +0000]
Increase reduction at root
when the best move does not change frequently
STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 51320 W: 5159 L: 4956 D: 41205
Ptnml(0-2): 215, 3897, 17242, 4082, 224
https://tests.stockfishchess.org/tests/view/
5faa072367cbf42301d6a767
LTC:
LLR: 2.98 (-2.94,2.94) {0.25,1.25}
Total: 15952 W: 762 L: 642 D: 14548
Ptnml(0-2): 8, 561, 6725, 667, 15
https://tests.stockfishchess.org/tests/view/
5faa4c3567cbf42301d6a794
closes https://github.com/official-stockfish/Stockfish/pull/3225
Bench: 3954692
lonfom169 [Mon, 9 Nov 2020 02:43:32 +0000]
Increase reduction based on the number of best move changes.
Thanks to Vizvezdenec for the PvNode idea and also to vondele the !PvNode idea.
Passed STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 19120 W: 1998 L: 1839 D: 15283
Ptnml(0-2): 76, 1445, 6375, 1572, 92
https://tests.stockfishchess.org/tests/view/
5fa8af3e67cbf42301d6a6c9
Passed LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 75584 W: 3454 L: 3205 D: 68925
Ptnml(0-2): 54, 2832, 31771, 3081, 54
closes https://github.com/official-stockfish/Stockfish/pull/3224
Bench: 3595418
QueensGambit [Sun, 8 Nov 2020 12:33:50 +0000]
Changed game header parsing to use quotation marks (Closes #204)
Added test for loading Seirawan chess pgn
Updated README.md
Updated ffish to 0.4.6
Fabian Fichter [Sun, 8 Nov 2020 09:23:45 +0000]
Add Upside-down chess to variants.ini
Stéphane Nicolet [Fri, 6 Nov 2020 18:20:27 +0000]
Qsearch pruning: follow-up
This is a follow-up of the recent qsearch pruning patch in
https://github.com/official-stockfish/Stockfish/commit/
a260c9a8a24a2630a900efc3821000c3481b0c5d
We now use the same guard condition (testing that we already have a defense with
a score better score than a TB loss) for all pruning heuristics in qsearch().
This allows some pruning when in check, but in a controlled way to ensure that
no wrong mate scores appear.
Tested with Elo-gaining bounds:
STC:
LLR: 2.97 (-2.94,2.94) {-0.25,1.25}
Total: 22632 W: 2433 L: 2264 D: 17935
Ptnml(0-2): 98, 1744, 7487, 1865, 122
https://tests.stockfishchess.org/tests/view/
5fa59405936c54e11ec99515
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 105432 W: 4965 L: 4648 D: 95819
Ptnml(0-2): 85, 4110, 44011, 4423, 87
https://tests.stockfishchess.org/tests/view/
5fa5b609936c54e11ec9952a
closes https://github.com/official-stockfish/Stockfish/pull/3221
Bench: 3578092
SFisGOD [Sat, 7 Nov 2020 00:50:02 +0000]
Update default net to nn-
c3ca321c51c9.nnue
Optimization of the net biases of the 32 x 32 layer and the output layer.
Tuning of 32 x 32 layer (200k games, 5 seconds TC)
https://tests.stockfishchess.org/tests/view/
5f9aaf266a2c112b60691c68
STC:
LLR: 2.95 (-2.94,2.94) {-0.25,1.25}
Total: 41848 W: 4665 L: 4461 D: 32722
Ptnml(0-2): 239, 3308, 13659, 3446, 272
https://tests.stockfishchess.org/tests/view/
5fa5ef5a936c54e11ec9954f
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 88008 W: 4045 L: 3768 D: 80195
Ptnml(0-2): 69, 3339, 36908, 3622, 66
https://tests.stockfishchess.org/tests/view/
5fa62a78936c54e11ec99577
closes https://github.com/official-stockfish/Stockfish/pull/3220
Bench: 3649288
Fabian Fichter [Sat, 7 Nov 2020 22:47:31 +0000]
Support loading multiple variant NNUE files
Use same separator colon/semicolon as for TB files.
Fabian Fichter [Sat, 7 Nov 2020 20:52:02 +0000]
Add patreon link
Fabian Fichter [Sat, 7 Nov 2020 20:09:20 +0000]
Delay adjudication in janggimodern variant
Tomasz Sobczyk [Tue, 3 Nov 2020 21:49:10 +0000]
AVX-512 for smaller affine and feature transforms.
For the feature transformer the code is analogical to AVX2 since there was room for easy adaptation of wider simd registers.
For the smaller affine transforms that have 32 byte stride we keep 2 columns in one zmm register. We also unroll more aggressively so that in the end we have to do 16 parallel horizontal additions on ymm slices each consisting of 4 32-bit integers. The slices are embedded in 8 zmm registers.
These changes provide about 1.5% speedup for AVX-512 builds.
Closes https://github.com/official-stockfish/Stockfish/pull/3218
No functional change.
FauziAkram [Wed, 4 Nov 2020 23:54:53 +0000]
Introducing King On File
this new concept calculates bonuses/penalties for the king when the king is in a semiopen or open file.
Passed STC:
LLR: 2.95 (-2.94,2.94) {-0.25,1.25}
Total: 44904 W: 9365 L: 9028 D: 26511
Ptnml(0-2): 857, 5309, 9841, 5530, 915
https://tests.stockfishchess.org/tests/view/
5fa343625d72639a7acef72b
Passed LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 60552 W: 8449 L: 8051 D: 44052
Ptnml(0-2): 466, 5772, 17481, 6012, 545
https://tests.stockfishchess.org/tests/view/
5fa40e365d72639a7acef79e
closes https://github.com/official-stockfish/Stockfish/pull/3219
Bench: 3689484
Joost VandeVondele [Fri, 23 Oct 2020 05:39:35 +0000]
Change handling the special case of a single legal move.
Using no searching time in case of a single legal move is not beneficial from
a strength point of view, and this special case can be easily removed:
STC:
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 22472 W: 2458 L: 2357 D: 17657
Ptnml(0-2): 106, 1733, 7453, 1842, 102
https://tests.stockfishchess.org/tests/view/
5f926cbc81eda81bd78cb6df
LTC:
LLR: 2.94 (-2.94,2.94) {-0.75,0.25}
Total: 37880 W: 1736 L: 1682 D: 34462
Ptnml(0-2): 22, 1392, 16057, 1448, 21
https://tests.stockfishchess.org/tests/view/
5f92a26081eda81bd78cb6fe
The advantage of using the normal time management for a single legal move is that scores
reported for that move are reasonable, not searching leads to artifacts during games
(see e.g. https://tcec-chess.com/#div=sf&game=96&season=19)
The disadvantage of using normal time management of a single legal move is that thinking
times can be unnaturally long, making it 'painful to watch' in online tournaments.
This patch uses normal time management, but caps the used time to 500ms.
This should lead to reasonable scores, and be hardly perceptible.
closes https://github.com/official-stockfish/Stockfish/pull/3195
closes https://github.com/official-stockfish/Stockfish/pull/3183
variant of a patch suggested by SFisGOD
No functional change.
Tomasz Sobczyk [Tue, 3 Nov 2020 10:23:35 +0000]
Manually align arrays on the stack
as a workaround to issues with overaligned alignas() on stack variables in gcc < 9.3 on windows.
closes https://github.com/official-stockfish/Stockfish/pull/3217
fixes #3216
No functional change
J. Oster [Sun, 1 Nov 2020 17:33:17 +0000]
Fix incorrect pruning in qsearch
Only do countermove based pruning in qsearch if we already have a move with a better score than a TB loss.
This patch fixes a bug (started as 843a961) that incorrectly prunes moves if in check,
and adds an assert to make sure no wrong mate scores are given in the future.
It replaces a no-op moveCount check with a check for bestValue.
Initially discussed in #3171 and later in #3199, #3198 and #3210.
This PR effectively closes #3171
It also likely fixes #3196 where this causes user visible incorrect TB scores,
which probably result from these incorrect mate scores.
Passed STC and LTC non-regression tests.
https://tests.stockfishchess.org/tests/view/
5f9ef8dabca9bf35bae7f648
LLR: 2.93 (-2.94,2.94) {-1.25,0.25}
Total: 21672 W: 2339 L: 2230 D: 17103
Ptnml(0-2): 126, 1689, 7083, 1826, 112
https://tests.stockfishchess.org/tests/view/
5f9f0caebca9bf35bae7f666
LLR: 2.97 (-2.94,2.94) {-0.75,0.25}
Total: 33152 W: 1551 L: 1485 D: 30116
Ptnml(0-2): 27, 1308, 13832, 1390, 19
closes https://github.com/official-stockfish/Stockfish/pull/3214
Bench: 3625915
FauziAkram [Thu, 29 Oct 2020 14:33:18 +0000]
Elo Worth in King Danger
Adding the EloWorth for each term in King Danger.
Should be useful for simplifications, tuning patches, and new ideas.
closes https://github.com/official-stockfish/Stockfish/pull/3204
non-functional change
Tomasz Sobczyk [Wed, 28 Oct 2020 23:14:53 +0000]
Optimize affine transform for SSSE3 and higher targets.
A non-functional speedup. Unroll the loops going over
the output dimensions in the affine transform layers by
a factor of 4 and perform 4 horizontal additions at a time.
Instead of doing naive horizontal additions on each vector
separately use hadd and shuffling between vectors to reduce
the number of instructions by using all lanes for all stages
of the horizontal adds.
passed STC of the initial version:
LLR: 2.95 (-2.94,2.94) {-0.25,1.25}
Total: 17808 W: 1914 L: 1756 D: 14138
Ptnml(0-2): 76, 1330, 5948, 1460, 90
https://tests.stockfishchess.org/tests/view/
5f9d516f6a2c112b60691da3
passed STC of the final version after cleanup:
LLR: 2.95 (-2.94,2.94) {-0.25,1.25}
Total: 16296 W: 1750 L: 1595 D: 12951
Ptnml(0-2): 72, 1192, 5479, 1319, 86
https://tests.stockfishchess.org/tests/view/
5f9df5776a2c112b60691de3
closes https://github.com/official-stockfish/Stockfish/pull/3203
No functional change
mstembera [Fri, 30 Oct 2020 20:45:40 +0000]
Update default net to nn-
cb26f10b1fd9.nnue
Result of https://tests.stockfishchess.org/tests/view/
5f9a06796a2c112b60691c0f tuning.
STC
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 53712 W: 5776 L: 5561 D: 42375
Ptnml(0-2): 253, 4282, 17604, 4431, 286
https://tests.stockfishchess.org/tests/view/
5f9c7bbc6a2c112b60691d4d
LTC
LLR: 2.97 (-2.94,2.94) {0.25,1.25}
Total: 80184 W: 4007 L: 3739 D: 72438
Ptnml(0-2): 58, 3302, 33130, 3518, 84
https://tests.stockfishchess.org/tests/view/
5f9d01f06a2c112b60691d87
closes https://github.com/official-stockfish/Stockfish/pull/3209
bench: 3517795
Fabian Fichter [Sat, 31 Oct 2020 12:24:43 +0000]
Fix failing assertion in losers chess
Prevent non-evasion move generation when in check.
Fabian Fichter [Sat, 31 Oct 2020 10:56:15 +0000]
Fix NNUE for large-board version (#199)
Fabian Fichter [Sat, 31 Oct 2020 08:45:20 +0000]
Reset move repetition on checks
Fabian Fichter [Fri, 30 Oct 2020 23:10:38 +0000]
Add FEN validation to pyffish (#87)
Fabian Fichter [Fri, 30 Oct 2020 11:04:39 +0000]
Remove highlight of passing move in CECP
Input of passing by king move is invalid, so remove it (#192).
Fabian Fichter [Thu, 29 Oct 2020 19:25:18 +0000]
Overwrite setup command for Janggi variants
Improve compatibility with most recent XBoard version
supporting Janggi as a built-in variant (see #192).
Fabian Fichter [Thu, 29 Oct 2020 10:42:31 +0000]
Merge official-stockfish/master
bench: 4282417
syzygy1 [Tue, 27 Oct 2020 18:22:41 +0000]
Do not skip non-recapture ttMove when in check
The qsearch() MovePicker incorrectly skips a non-recapture ttMove
when in check (if depth <= DEPTH_QS_RECAPTURES). This is clearly not
intended and can cause qsearch() to return a mate score when there
is no mate. Introduced in cad300c and 6596f0e, as observed by
joergoster in #3171 and #3198.
This PR fixes the bug by not skipping the non-recapture ttMove when in check.
Passed non-regression STC:
https://tests.stockfishchess.org/tests/view/
5f9867ea6a2c112b60691b10
LLR: 2.98 (-2.94,2.94) {-1.25,0.25}
Total: 27112 W: 2943 L: 2842 D: 21327
Ptnml(0-2): 127, 2170, 8878, 2237, 144
Passed non-regression LTC:
https://tests.stockfishchess.org/tests/view/
5f9967326a2c112b60691bb0
LLR: 2.99 (-2.94,2.94) {-0.75,0.25}
Total: 18392 W: 807 L: 738 D: 16847
Ptnml(0-2): 9, 655, 7802, 718, 12
closes https://github.com/official-stockfish/Stockfish/pull/3199
closes https://github.com/official-stockfish/Stockfish/pull/3198
Bench: 3870606
Fabian Fichter [Wed, 28 Oct 2020 17:33:00 +0000]
Change CECP pass move to "@@@@"
Fabian Fichter [Wed, 28 Oct 2020 17:20:58 +0000]
Fix CECP error message for illegal moves
Closes #203.
SFisGOD [Tue, 27 Oct 2020 20:24:55 +0000]
Update default net to nn-
2eb2e0707c2b.nnue
Optimization of the net weights of the 32 x 32 layer (1024 parameters) and net biases of the 512 x 32 layer (32 parameters) using SPSA.
Tuning of 32 x 32 Layer (800,000 games, 5 seconds time control):
https://tests.stockfishchess.org/tests/view/
5f942040d3978d7e86f1aa05
Tuning of 512 x 32 Layer (80,000 games, 20 seconds time control):
https://tests.stockfishchess.org/tests/view/
5f8f926d2c92c7fe3a8c608b
STC:
LLR: 2.96 (-2.94,2.94) {-0.25,1.25}
Total: 17336 W: 1918 L: 1754 D: 13664
Ptnml(0-2): 79, 1344, 5672, 1480, 93
https://tests.stockfishchess.org/tests/view/
5f9882346a2c112b60691b34
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 37304 W: 1822 L: 1651 D: 33831
Ptnml(0-2): 27, 1461, 15501, 1640, 23
https://tests.stockfishchess.org/tests/view/
5f98a4b36a2c112b60691b40
closes https://github.com/official-stockfish/Stockfish/pull/3201
Bench: 3403528
FauziAkram [Fri, 23 Oct 2020 23:01:04 +0000]
Bishop Pawns based on Files
Passed STC:
https://tests.stockfishchess.org/tests/view/
5f8cc8145a4eacb45305da3c
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 132544 W: 27795 L: 27328 D: 77421
Ptnml(0-2): 2756, 15558, 29272, 15835, 2851
Passed LTC:
https://tests.stockfishchess.org/tests/view/
5f8df614bacb75a4f9a4721e
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 169608 W: 23257 L: 22622 D: 123729
Ptnml(0-2): 1408, 16316, 48758, 16877, 1445
closes https://github.com/official-stockfish/Stockfish/pull/3194
Bench: 4067106
Fabian Fichter [Tue, 27 Oct 2020 18:29:36 +0000]
Support Kakao Janggi repetition rules
Closes #198 and #142.
Fabian Fichter [Mon, 26 Oct 2020 07:51:30 +0000]
Tweak horde space bonus
horde STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 464 W: 283 L: 175 D: 6
http://www.variantfishtest.org:6543/tests/view/
5f954c276e23db221d9e9394
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 969 W: 540 L: 424 D: 5
http://www.variantfishtest.org:6543/tests/view/
5f9574466e23db221d9e9397
Fabian Fichter [Sun, 25 Oct 2020 17:10:47 +0000]
Disable scale factor for Janggi
janggi
LLR: 3.00 (-2.94,2.94) [0.00,10.00]
Total: 1304 W: 693 L: 573 D: 38
Fabian Fichter [Sat, 24 Oct 2020 16:00:50 +0000]
Tweak horde chess evaluation
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 5975 W: 3049 L: 2861 D: 65
http://www.variantfishtest.org:6543/tests/view/
5f92cb296e23db221d9e936b
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3220 W: 1671 L: 1523 D: 26
http://www.variantfishtest.org:6543/tests/view/
5f935c4e6e23db221d9e9381
Fabian Fichter [Sat, 24 Oct 2020 09:37:10 +0000]
Tweak NMP depth for losing chess
giveaway STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1259 W: 523 L: 424 D: 312
http://www.variantfishtest.org:6543/tests/view/
5f93432e6e23db221d9e9373
giveaway LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1092 W: 430 L: 337 D: 325
http://www.variantfishtest.org:6543/tests/view/
5f93603b6e23db221d9e9384
Fabian Fichter [Sat, 24 Oct 2020 09:29:46 +0000]
Increase NMP margin for slow variants
makruk STC
LLR: 2.98 (-2.94,2.94) [0.00,10.00]
Total: 1864 W: 182 L: 118 D: 1564
http://www.variantfishtest.org:6543/tests/view/
5f8e86a46e23db221d9e9312
makruk LTC
LLR: 2.99 (-2.94,2.94) [0.00,10.00]
Total: 1277 W: 108 L: 49 D: 1120
http://www.variantfishtest.org:6543/tests/view/
5f92a9756e23db221d9e9356
shatranj STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1688 W: 195 L: 130 D: 1363
http://www.variantfishtest.org:6543/tests/view/
5f8dfcbf6e23db221d9e9306
shatranj LTC
LLR: 3.53 (-2.94,2.94) [0.00,10.00]
Total: 1293 W: 134 L: 63 D: 1096
http://www.variantfishtest.org:6543/tests/view/
5f912df66e23db221d9e9335
losalamos STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2926 W: 731 L: 634 D: 1561
http://www.variantfishtest.org:6543/tests/view/
5f8fd6d06e23db221d9e9322
Fabian Fichter [Fri, 23 Oct 2020 10:07:20 +0000]
Breakthrough bonus for horde chess
horde STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 783 W: 443 L: 330 D: 10
http://www.variantfishtest.org:6543/tests/view/
5f91d5366e23db221d9e9342
horde LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 644 W: 375 L: 264 D: 5
http://www.variantfishtest.org:6543/tests/view/
5f91ee7f6e23db221d9e9345
Fabian Fichter [Fri, 23 Oct 2020 10:04:43 +0000]
Evaluate horde imbalance
horde STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 570 W: 337 L: 227 D: 6
http://www.variantfishtest.org:6543/tests/view/
5f91bada6e23db221d9e933c
horde LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 592 W: 347 L: 237 D: 8
http://www.variantfishtest.org:6543/tests/view/
5f91cf096e23db221d9e9340
syzygy1 [Tue, 20 Oct 2020 19:06:06 +0000]
More incremental accumulator updates
This patch was inspired by c065abd which updates the accumulator,
if possible, based on the accumulator of two plies back if
the accumulator of the preceding ply is not available.
With this patch we look back even further in the position history
in an attempt to reduce the number of complete recomputations.
When we find a usable accumulator for the position N plies back,
we also update the accumulator of the position N-1 plies back
because that accumulator is most likely to be helpful later
when evaluating positions in sibling branches.
By not updating all intermediate accumulators immediately,
we avoid doing too much work that is not certain to be useful.
Overall, roughly 2-3% speedup.
This patch makes the code more specific to the net architecture,
changing input features of the net will require additional changes
to the incremental update code as discussed in the PR #3193 and #3191.
Passed STC:
https://tests.stockfishchess.org/tests/view/
5f9056712c92c7fe3a8c60d0
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 10040 W: 1116 L: 968 D: 7956
Ptnml(0-2): 42, 722, 3365, 828, 63
closes https://github.com/official-stockfish/Stockfish/pull/3193
No functional change.
Joost VandeVondele [Sun, 18 Oct 2020 13:01:19 +0000]
Add net as dependency of config
cleaner output and error message if the server is down and the net is not available.
closes https://github.com/official-stockfish/Stockfish/pull/3188
No functional change
xoto10 [Wed, 21 Oct 2020 13:52:13 +0000]
Reduce big time spikes by reducing PV re-searches.
Save time by reducing PV re-searches above original depth. Instead use 5% extra time on every move.
STC 10+0.1 th 1 :
LLR: 2.93 (-2.94,2.94) {-0.25,1.25}
Total: 90688 W: 9702 L: 9436 D: 71550
Ptnml(0-2): 408, 7252, 29792, 7450, 442
https://tests.stockfishchess.org/tests/view/
5f8df807bacb75a4f9a47223
LTC 60+0.6 th 1 :
LLR: 2.97 (-2.94,2.94) {0.25,1.25}
Total: 97856 W: 4602 L: 4303 D: 88951
Ptnml(0-2): 53, 3757, 41057, 3960, 101
https://tests.stockfishchess.org/tests/view/
5f8ec4872c92c7fe3a8c602d
closes https://github.com/official-stockfish/Stockfish/pull/3192
Bench 3943959
Johannes Czech [Wed, 21 Oct 2020 22:51:47 +0000]
Upgrade ffish.js to 0.4.4 and add validate_fen
* Upgraded ffish.js to 0.4.4
+ validate_fen(const std::string& fen, const Variant* v) (Closes #87)
+ ffish.validate_fen(fen)
+ ffish.validate_fen(fen, uciVariant)
+ ffish.startingFen(uciVariant)
+ board.pocket(turn)
Refactoring
+ replaced bool first = true by save_pop_back(string& s)
+ replaced string = " " + s; by string += " "; string += s;
updated README.md
+ simplified memory specification
* Added C++17 specification for building ffish.js
+ updated ffish.js to 0.4.4
* Added more checks to validate_fen()
+ FEN_TOUCHING_KINGS
+ replaced FEN_INVALID_CHECK_COUNTER by FEN_INVALID_NUMBER_OF_KINGS
+ combined FEN_FILE_SIZE_MISMATCH and FEN_INVALID_NUMBER_OF_RANKS into
FEN_INVALID_BOARD_GEOMETRY
+ added more checks for FEN_INVALID_CASTLING_INFO
added struct CharSquare
added class CharBoard (for geometry checks)
refactored different checks into separate functions
Fabian Fichter [Tue, 20 Oct 2020 16:58:48 +0000]
Cleaner definition of piece types
No functional change.
Fabian Fichter [Sun, 18 Oct 2020 21:22:11 +0000]
Revert wrong extern constexpr
Fabian Fichter [Sun, 18 Oct 2020 20:50:54 +0000]
Fix NNUE piece indeces
Fabian Fichter [Sun, 18 Oct 2020 18:40:07 +0000]
Merge official-stockfish/master
- Updates language standard to C++17.
- Includes merge of NNUE code.
- NNUE embedding is disabled by default
- Variant name is matched against NN file name to detect support
bench: 4170106
Vizvezdenec [Sat, 17 Oct 2020 11:40:10 +0000]
Do more reductions for late quiet moves in case of consecutive fail highs.
Idea of this patch can be described as following - in case we have consecutive fail highs and we reach late enough moves at root node probability of remaining quiet moves being able to produce even bigger value than moves that produced previous cutoff (so ones that should be high in move ordering but now they fail to produce beta cutoff because we actually reached high move count) should be quiet small so we can reduce them more.
passed STC
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 53392 W: 5681 L: 5474 D: 42237
Ptnml(0-2): 214, 4104, 17894, 4229, 255
https://tests.stockfishchess.org/tests/view/
5f88501adcdad978fe8c527e
passed LTC
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 59136 W: 2773 L: 2564 D: 53799
Ptnml(0-2): 30, 2117, 25078, 2300, 43
https://tests.stockfishchess.org/tests/view/
5f884dbfdcdad978fe8c527a
closes https://github.com/official-stockfish/Stockfish/pull/3184
Bench: 4066972
mstembera [Sun, 18 Oct 2020 11:23:28 +0000]
Update default net to nn-
eba324f53044.nnue
The new net is based on the previous net
04cf2b4ed1da but with the biases
for the 1st hidden layer tuned SPSA, see the SPSA session on fishtest there:
https://tests.stockfishchess.org/tests/view/
5f875213dcdad978fe8c5211
Thanks to @vondele for writing out the net, see discussion in this thread:
https://github.com/mstembera/Stockfish/commit/
432da86721647dff1d9426a7cdcfd2dbada8155e
Passed STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 15000 W: 1640 L: 1483 D: 11877
Ptnml(0-2): 50, 1183, 4908, 1278, 81
https://tests.stockfishchess.org/tests/view/
5f8955e20fea1a44ec4f0a5d
Passed LTC:
LLR: 2.96 (-2.94,2.94) {0.25,1.25}
Total: 81272 W: 3948 L: 3682 D: 73642
Ptnml(0-2): 64, 3194, 33856, 3456, 66
https://tests.stockfishchess.org/tests/view/
5f89e8efeae8a6e60644d6e7
closes https://github.com/official-stockfish/Stockfish/pull/3187
Bench: 3762411
Fabian Fichter [Sat, 17 Oct 2020 22:56:19 +0000]
Fix compiler warning
No functional change.
Fabian Fichter [Sat, 17 Oct 2020 22:23:21 +0000]
Support Chaturanga
https://en.wikipedia.org/wiki/Chaturanga
The exact historic rules of this game are unknown.
This implementations follows the rules from chess.com.
Unai Corzo [Mon, 12 Oct 2020 07:03:49 +0000]
Scale factor tweak
Add !pawnsOnBothFlanks heuristic to scale factor.
STC https://tests.stockfishchess.org/tests/view/
5f8080575b3847b5d41f9134
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 250960 W: 49779 L: 49168 D: 152013
Ptnml(0-2): 4224, 28822, 58802, 29383, 4249
LTC https://tests.stockfishchess.org/tests/view/
5f832f498ea73fb8ddf83ddb
LLR: 2.95 (-2.94,2.94) {0.25,1.25}
Total: 88584 W: 11827 L: 11388 D: 65369
Ptnml(0-2): 585, 8079, 26578, 8412, 638
closes https://github.com/official-stockfish/Stockfish/pull/3179
bench: 3834252
FauziAkram [Tue, 6 Oct 2020 19:43:48 +0000]
RookOnQueenFile Removal
Removing Rook On Queen File looks beneficial, and it might even bring some ELO.
I will try to reintroduce it with a different method later on.
Passed STC:
https://tests.stockfishchess.org/tests/view/
5f7cea204389873867eb10cb
LLR: 2.94 (-2.94,2.94) {-1.25,0.25}
Total: 18624 W: 3800 L: 3568 D: 11256
Ptnml(0-2): 308, 2131, 4257, 2253, 363
Passed LTC:
https://tests.stockfishchess.org/tests/view/
5f7d76a4e936c6892bf50598
LLR: 2.95 (-2.94,2.94) {-0.75,0.25}
Total: 117864 W: 15515 L: 15340 D: 87009
Ptnml(0-2): 926, 11127, 34671, 11262, 946
closes https://github.com/official-stockfish/Stockfish/pull/3176
Bench: 3756191
Joost VandeVondele [Wed, 14 Oct 2020 08:23:30 +0000]
Update default net to nn-
04cf2b4ed1da.nnue
Further tune the net parameters, now the last but one layer (32x32).
To limit the number of parameters optimized, the network layer was
decomposed using SVD, and the singular values were treated
as parameters and tuned.
Tuning branch: https://github.com/vondele/Stockfish/tree/svdTune
Tuner: https://github.com/vondele/nevergrad4sf
passed STC:
https://tests.stockfishchess.org/tests/view/
5f83e82f8ea73fb8ddf83e4e
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 8488 W: 944 L: 795 D: 6749
Ptnml(0-2): 39, 609, 2811, 734, 51
passed LTC:
https://tests.stockfishchess.org/tests/view/
5f83f4118ea73fb8ddf83e66
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 169016 W: 8043 L: 7589 D: 153384
Ptnml(0-2): 133, 6623, 70538, 7085, 129
closes https://github.com/official-stockfish/Stockfish/pull/3181
Bench: 3945198
Fabian Fichter [Mon, 12 Oct 2020 22:02:33 +0000]
Add sponsor button
Fabian Fichter [Fri, 9 Oct 2020 21:13:00 +0000]
Fix typo in error message
FauziAkram [Fri, 2 Oct 2020 12:32:19 +0000]
Pawn Tuning
Tuning of pawns, for classical evaluation:
Passed STC:
https://tests.stockfishchess.org/tests/view/
5f771f0e52560f5fc78559ec
LLR: 2.96 (-2.94,2.94) {-0.25,1.25}
Total: 252696 W: 50321 L: 49692 D: 152683
Ptnml(0-2): 4614, 29845, 57049, 29978, 4862
Passed LTC:
https://tests.stockfishchess.org/tests/view/
5f77cfef090dcf9aaa16d38b
LLR: 2.94 (-2.94,2.94) {0.25,1.25}
Total: 48184 W: 6556 L: 6193 D: 35435
Ptnml(0-2): 335, 4516, 14100, 4733, 408
closes https://github.com/official-stockfish/Stockfish/pull/3169
bench: 4016121