FireFather
86e3fedf7e
Update evaluate_nnue.cpp
2020-06-25 04:38:39 +02:00
FireFather
08d8adbade
added header guards
...
5 include files in \eval\nnue\architectures
2020-06-24 22:41:00 +02:00
nodchip
7818d23afb
Merge pull request #13 from zz4032/linux-identifier
...
Linux identifier corrected.
2020-06-24 09:35:44 +09:00
nodchip
0abd692543
Fixed a build error on Visual Studio.
2020-06-24 09:33:46 +09:00
zz4032
5ae64e2244
Adding mm_malloc.h
...
Otherwise compiling with 'modern' or 'avx2' architecture on Linux aborts with errors.
2020-06-24 09:28:45 +09:00
zz4032
5aa801e721
Update misc.h
2020-06-23 20:54:50 +02:00
zz4032
3102896a00
Linux identifier corrected.
2020-06-23 20:53:32 +02:00
zz4032
ccd2e602a0
Adding mm_malloc.h
...
Otherwise compiling with 'modern' or 'avx2' architecture on Linux aborts with errors.
2020-06-23 19:55:54 +02:00
nodchip
999f5ec446
COMP=msys2を指定できるようにした
2020-06-24 00:47:34 +09:00
nodchip
43e78187d7
ARCH=x86-64-avx2を指定できるようにした
2020-06-24 00:27:45 +09:00
nodchip
76b0de40a1
コンパイラーオプションを-std=c++14から-std=c++17に変更した
2020-06-23 23:47:59 +09:00
nodchip
c7884470fb
Merge branch 'master' of github.com:nodchip/Stockfish
2020-06-22 10:28:02 +09:00
nodchip
6c7a594362
Added "-Wl,-s" option.
2020-06-22 10:27:52 +09:00
tttak
2d5c50d85b
eval_nnueコマンド追加
2020-06-22 09:50:22 +09:00
nodchip
33772a0418
コンパイルエラーを修正した
2020-06-08 23:46:06 +09:00
nodchip
5c936572e9
Merge branch 'master' of github.com:official-stockfish/Stockfish
...
# Conflicts:
# src/Makefile
# src/position.cpp
# src/position.h
# src/search.cpp
# src/types.h
# src/uci.cpp
2020-06-08 23:09:51 +09:00
tttak
91a7557ab4
test nnue test_features等の有効化
2020-06-08 15:07:48 +09:00
pb00067
15e190e942
Use lowply-history also on low depths
...
STC:
https://tests.stockfishchess.org/tests/view/5ed75078f29b40b0fc95a8b9
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 73928 W: 14301 L: 14005 D: 45622
Ptnml(0-2): 1243, 8572, 17096, 8752, 1301
LTC:
https://tests.stockfishchess.org/tests/view/5ed895e0f29b40b0fc95a976
LLR: 2.93 (-2.94,2.94) {0.25,1.75}
Total: 154848 W: 19684 L: 19074 D: 116090
Ptnml(0-2): 1048, 14108, 46627, 14468, 1173
closes https://github.com/official-stockfish/Stockfish/pull/2718
bench: 4582693
2020-06-06 16:18:42 +02:00
protonspring
fd8e88427b
small speed-up in movegen
...
pass color as a template parameter.
closes https://github.com/official-stockfish/Stockfish/pull/2715
No functional change.
2020-06-06 16:03:19 +02:00
Moez Jellouli
784263596f
Minimal thinking time, even if only one rootMove.
...
without search, the eval returned can be misleading (e.g. mate instead of draw),
leading to wrong adjudication. With a minimal search, this is avoided.
This patch leads to 1ms long searches if there is only 1 move,
similar patches all indicate a small Elo gain.
Fixes https://github.com/official-stockfish/Stockfish/issues/2707
Passed non-regression STC:
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 22312 W: 4350 L: 4204 D: 13758
Ptnml(0-2): 323, 2488, 5437, 2536, 372
https://tests.stockfishchess.org/tests/view/5ed562b0f29b40b0fc95a7d0
closes https://github.com/official-stockfish/Stockfish/pull/2709
Bench: 4733799
2020-06-06 15:58:50 +02:00
nodchip
d23f96d156
No pruning at low plies.
...
This makes those very early depths a bit more reliable.
Thanks, joergoster!
be7f37187b
2020-06-06 18:50:15 +09:00
Moez Jellouli
16566a8fcf
Singular quiet LMR
...
If ttMove is a capture and had a singular extension, it is probably the best move.
No need to make a decrease of LMR on other moves.
STC
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 41968 W: 8170 L: 7918 D: 25880
Ptnml(0-2): 733, 4770, 9726, 5022, 733
https://tests.stockfishchess.org/tests/view/5ed6b666f29b40b0fc95a884
LTC
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 71376 W: 9200 L: 8827 D: 53349
Ptnml(0-2): 486, 6544, 21342, 6743, 573
https://tests.stockfishchess.org/tests/view/5ed7578bf29b40b0fc95a8c9
closes https://github.com/official-stockfish/Stockfish/pull/2713
Bench: 4733799
2020-06-04 19:03:54 +02:00
nodchip
2523f72ff9
盤上から取り除かれた駒に関する差分計算を省き、高速化した
2020-06-03 23:32:08 +09:00
Stefan Geschwentner
d1ec10cd4f
Give bonus for bishops that are alligned with enemy kingring.
...
Inspired by the succesful patch "Give bonus for rooks that are alligned with enemy kingring" from Vizvezdenec,
this idea has been reused for bishops. Here, we only consider attacks that are not blocked by any pawn.
Also we have a 50% higher bonus than for the rooks.
STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 68960 W: 13495 L: 13202 D: 42263
Ptnml(0-2): 1213, 8018, 15802, 8157, 1290
https://tests.stockfishchess.org/tests/view/5ed27495042fa6d77c3553aa
LTC:
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 54560 W: 7105 L: 6780 D: 40675
Ptnml(0-2): 379, 4986, 16254, 5253, 408
https://tests.stockfishchess.org/tests/view/5ed30375596e6dc1e1f97425
closes https://github.com/official-stockfish/Stockfish/pull/2708
Bench: 4860021
2020-06-01 17:35:02 +02:00
ElbertoOne
8c3d9d996a
Isolated pawns tweak
...
Give opposed doubled isolated pawns only the Doubled penalty.
The other isolated pawns get the Isolated penalty and the WeakUnopposed penalty.
The popcount condition has been replaced with an opposed check,
which is non-functional, but probably gives a speed-up.
Passed STC (https://tests.stockfishchess.org/tests/view/5ed0f0f0042fa6d77c3552f5 ):
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 121832 W: 23562 L: 23195 D: 75075
Ptnml(0-2): 2092, 14064, 28313, 14279, 2168
LTC: (https://tests.stockfishchess.org/tests/view/5ed22e40042fa6d77c355387 )
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 103368 W: 13232 L: 12768 D: 77368
Ptnml(0-2): 693, 9484, 30919, 9842, 746
closes https://github.com/official-stockfish/Stockfish/pull/2706
Bench: 4085694
2020-06-01 17:27:29 +02:00
nodchip
a85e3055f4
いくつかのターゲットでOpenMPを有効にした
2020-06-02 00:13:35 +09:00
tttak
78134b7641
OpenMPの有効化
2020-06-01 23:51:05 +09:00
Joost VandeVondele
616eb60008
Less pruning in draw PV lines.
...
no futility pruning for certain captures if the PvNode has a draw eval.
passed STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 59392 W: 11576 L: 11302 D: 36514
Ptnml(0-2): 977, 6816, 13920, 6922, 1061
https://tests.stockfishchess.org/tests/view/5ed0b1bb042fa6d77c355295
passed LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 64040 W: 8273 L: 7923 D: 47844
Ptnml(0-2): 424, 5842, 19220, 6028, 506
https://tests.stockfishchess.org/tests/view/5ed145e0042fa6d77c35531c
closes https://github.com/official-stockfish/Stockfish/pull/2705
Bench: 4704615
2020-05-30 20:32:52 +02:00
protonspring
a5e3b4edde
Consolidate all attacks bitboards
...
This is a non-functional simplification that simplifies getting attacks bitboards.
* consolidates all attacks to attacks_bb (remove Position::attacks_from(..)).
* attacks_bb<PieceType>(square) gets pseudo attacks
* attacks_bb<PieceType>(square, bitboard) gets attacks considering occupied squares in the bitboard).
* pawn_attacks_bb(Color, Square) gets pawn attacks like other pawn attack bitboards.
* Wraps all access to PawnAttacks arrays and PseudoAttacks arrays and adds asserts as appropriate.
Passed STC
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 90208 W: 17533 L: 17482 D: 55193
Ptnml(0-2): 1412, 10232, 21798, 10217, 1445
https://tests.stockfishchess.org/tests/view/5ece996275787cc0c05d9790
closes https://github.com/official-stockfish/Stockfish/pull/2703
No functional change
2020-05-30 20:30:31 +02:00
nodchip
6703ec8ab0
nnue-gen-sfen-from-original-evalターゲットを追加した
2020-05-30 09:50:29 +09:00
nodchip
dd9818c2c1
Added "-static" compiler option.
2020-05-29 09:36:24 +09:00
nodchip
f18acf97ed
Added the "nnue" target.
...
Fixed build errors on the "nnue-learn-use-blas" target.
2020-05-28 10:08:51 +09:00
xoto10
fb8095718b
In BlockedStorm, theirPawns includes ones attacked by us.
...
Pawns heading towards our king tend to be dangerous whether or not we are attacking them so remove this test.
STC:
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 91184 W: 18196 L: 18137 D: 54851
Ptnml(0-2): 1580, 10656, 21092, 10653, 1611
https://tests.stockfishchess.org/tests/view/5ecc3f7080f2c838b9655841
LTC:
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 14152 W: 2045 L: 1937 D: 10170
Ptnml(0-2): 99, 1325, 4130, 1413, 109
https://tests.stockfishchess.org/tests/view/5ecc4f3180f2c838b9655861
closes https://github.com/official-stockfish/Stockfish/pull/2702
Bench 4828973
2020-05-26 07:11:59 +02:00
Vizvezdenec
d40d04c17c
Give bonus for rooks that are alligned with enemy kingring
...
The idea of this patch is that if rooks are not directly attacking the opponent king,
they can support king attacks staying behind pawns or minor pieces and be really
deadly if position slightly opens up at enemy king ring ranks. Loosely based on
some stockfish games where it underestimated attacks on it king when enemy has one
or two rooks supporting pawn pushes towards it king.
passed STC
https://tests.stockfishchess.org/tests/view/5ecb093680f2c838b96550f9
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 53672 W: 10535 L: 10265 D: 32872
Ptnml(0-2): 952, 6210, 12258, 6448, 968
passed LTC
https://tests.stockfishchess.org/tests/view/5ecb639f80f2c838b9655117
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 62424 W: 8094 L: 7748 D: 46582
Ptnml(0-2): 426, 5734, 18565, 6042, 445
closes https://github.com/official-stockfish/Stockfish/pull/2700
Bench: 4663220
2020-05-25 22:18:56 +02:00
Moez Jellouli
7f2c8a2b81
Remove attacked pawns from storm evaluation
...
STC:
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 54456 W: 11009 L: 10737 D: 32710
Ptnml(0-2): 929, 6326, 12523, 6444, 1006
https://tests.stockfishchess.org/tests/view/5ec962e4404591b2793008a5
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 62448 W: 9018 L: 8664 D: 44766
Ptnml(0-2): 462, 5928, 18121, 6220, 493
https://tests.stockfishchess.org/tests/view/5ec976a8a586eee45aa2ab40
Non regression STC with "noob_3moves.epd" opening book
LLR: 3.81 (-2.94,2.94) {-1.50,0.50}
Total: 91896 W: 17770 L: 17653 D: 56473
Ptnml(0-2): 1598, 10782, 21124, 10793, 1651
https://tests.stockfishchess.org/tests/view/5ec9b83ea586eee45aa2ab96
closes https://github.com/official-stockfish/Stockfish/pull/2698
Bench 4488597
2020-05-25 22:15:13 +02:00
ElbertoOne
81c58855e4
Remove and replace DoubledIsolated penalty by Doubled
...
The values for both penalties were very close, so DoubledIsolated can be removed and replaced by Doubled.
Passed STC (simplification): https://tests.stockfishchess.org/tests/view/5ec7c18e2a585b485af54407
LLR: 2.97 (-2.94,2.94) {-1.50,0.50}
Total: 105360 W: 20175 L: 20136 D: 65049
Ptnml(0-2): 1803, 12230, 24572, 12275, 1800
Passed LTC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 15440 W: 1978 L: 1877 D: 11585
Ptnml(0-2): 92, 1405, 4667, 1422, 134
closes https://github.com/official-stockfish/Stockfish/pull/2696
Bench: 4668875
2020-05-23 22:10:14 +02:00
FauziAkram
86575bcdd8
Queen Mobility Tweak
...
It's ok to have low mobility values for the Queen in the middlegame, but it's absolutely not ok to have low mobility values for the Queen in the endgame.
Decrease penalty for bad mobility in MG and increase it in EG.
STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 17264 W: 3424 L: 3206 D: 10634
Ptnml(0-2): 279, 2004, 3893, 2132, 324
https://tests.stockfishchess.org/tests/view/5ec8f9c1526edcbe9091eba1
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 175016 W: 22071 L: 21404 D: 131541
Ptnml(0-2): 1195, 15796, 52914, 16353, 1250
https://tests.stockfishchess.org/tests/view/5ec9057c404591b2793007df
closes https://github.com/official-stockfish/Stockfish/pull/2697
Bench: 4487054
2020-05-23 22:06:26 +02:00
Joost VandeVondele
383b12e1a5
small cleanups
...
closes https://github.com/official-stockfish/Stockfish/pull/2653
No functional change
2020-05-23 13:27:16 +02:00
xoto10
d940e59dad
Keep low ply history from previous move
...
This patch keeps the low-ply history from the previous move, shifting the data down by 2 ply.
Tested with closedpos book:
STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 71584 W: 14175 L: 13891 D: 43518
Ptnml(0-2): 1069, 8228, 16993, 8354, 1148
https://tests.stockfishchess.org/tests/view/5ec0eaafe9d85f94dc429974
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 96552 W: 13946 L: 13498 D: 69108
Ptnml(0-2): 676, 9082, 28375, 9404, 739
https://tests.stockfishchess.org/tests/view/5ec145efe9d85f94dc4299b0
closes https://github.com/official-stockfish/Stockfish/pull/2688
Bench 5148950
2020-05-23 13:19:26 +02:00
Joost VandeVondele
669b5d83ef
Improve CI testing
...
also enable CXXFLAGS="-D_GLIBCXX_DEBUG" in CI.
closes https://github.com/official-stockfish/Stockfish/pull/2692
No functional change.
2020-05-23 13:14:09 +02:00
Stefan Geschwentner
cdf5cfdb92
Add doubled isolated pawn penalty.
...
This patch gives an additional penalty if a doubled isolated pawn is stopped
only by a single opponent pawn on the same file. Thanks to NKONSTANTAKIS,
who shared this idea on the forum!
https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/vC4Qn-PMlS4 .
STC:
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 84872 W: 16688 L: 16370 D: 51814
Ptnml(0-2): 1507, 9940, 19274, 10158, 1557
https://tests.stockfishchess.org/tests/view/5ec65bd955202b947dc5d4ac
LTC:
LLR: 2.93 (-2.94,2.94) {0.25,1.75}
Total: 58104 W: 7614 L: 7278 D: 43212
Ptnml(0-2): 411, 5369, 17196, 5625, 451
https://tests.stockfishchess.org/tests/view/5ec6e9f2c23f5b0710632b19
Closes https://github.com/official-stockfish/Stockfish/pull/2694
Bench: 5148950
2020-05-22 20:40:24 +02:00
Stefan Geschwentner
09c6917d05
Tweak knight mobility
...
New tuned values for knight mobility in endgames.
STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 112576 W: 21999 L: 21644 D: 68933
Ptnml(0-2): 2009, 13084, 25735, 13463, 1997
https://tests.stockfishchess.org/tests/view/5ec58379377121ac09e10272
LTC:
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 125192 W: 16200 L: 15671 D: 93321
Ptnml(0-2): 891, 11584, 37182, 11983, 956
https://tests.stockfishchess.org/tests/view/5ec5c0b8377121ac09e1028b
Closes https://github.com/official-stockfish/Stockfish/pull/2693
Bench: 4778956
2020-05-21 14:11:14 +02:00
Stéphane Nicolet
6c1af710d1
A combo of parameters tweaks
...
This patch is a combinaison of two recent parameters tweaks which had
failed narrowly (yellow) at long time control:
• improvement in move ordering during search by softening the distinction
between bad captures and good captures during move generation, leading
to improved awareness of Stockfish of potential piece sacrifices (idea
by Rahul Dsilva)
• increase in the weight of pawns in the "initiative" part of the evaluation
function. With this change Stockfish should have more incentive to exchange
pawns when losing, and to keep pawns when winning.
STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 10704 W: 2178 L: 1974 D: 6552
Ptnml(0-2): 168, 1185, 2464, 1345, 190
https://tests.stockfishchess.org/tests/view/5ec5553b377121ac09e1023d
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 60592 W: 7835 L: 7494 D: 45263
Ptnml(0-2): 430, 5514, 18086, 5817, 449
https://tests.stockfishchess.org/tests/view/5ec55ca2377121ac09e10249
Closes https://github.com/official-stockfish/Stockfish/pull/2691
Bench: 4519117
2020-05-21 14:05:07 +02:00
protonspring
20ceeac8b3
Simplify evaluation for blocked passers.
...
This is a functional simplification of the evaluation code for blocked passers.
I've also changed a few variable names for clarity.
STC
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 141984 W: 27450 L: 27466 D: 87068
Ptnml(0-2): 2414, 16511, 33175, 16461, 2431
https://tests.stockfishchess.org/tests/view/5ec4001b05aa4bc72d9759e7
LTC
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 30536 W: 3966 L: 3885 D: 22685
Ptnml(0-2): 216, 2841, 9073, 2922, 216
https://tests.stockfishchess.org/tests/view/5ec4bd0d377121ac09e101b7
Closes https://github.com/official-stockfish/Stockfish/pull/2690
Bench: 4704681
2020-05-21 13:57:50 +02:00
Sami Kiminki
b36a1fa1b4
Avoid sending info strings before 'uci' has been received
...
Do not send the following info string on the first call to
aligned_ttmem_alloc() on Windows:
info string Hash table allocation: Windows large pages [not] used.
The first call occurs before the 'uci' command has been received. This
confuses some GUIs, which expect the first engine-sent command to be
'id' as the response to the 'uci' command. (see https://github.com/official-stockfish/Stockfish/issues/2681 )
closes https://github.com/official-stockfish/Stockfish/pull/2689
No functional change.
2020-05-19 17:02:21 +02:00
xoto10
dd1adce748
Increase base time use and limit max used.
...
This change increases the base part of optimumTime at all depths. It also reduces the size of max_scale and thus maximumTime by using a linear scale instead of pow(x, 0.3) and by limiting max_scale to no more than 7 (previously as high as 8 or 9 at very high depths).
Tested using the closedpos book:
STC 10+0.1:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 83696 W: 16813 L: 16508 D: 50375
Ptnml(0-2): 1315, 9649, 19686, 9812, 1386
https://tests.stockfishchess.org/tests/view/5ebfa92de9d85f94dc42989b
LTC 60+0.6:
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 39384 W: 5868 L: 5582 D: 27934
Ptnml(0-2): 276, 3697, 11489, 3925, 305
https://tests.stockfishchess.org/tests/view/5ec0a6dce9d85f94dc42995a
Test for non-regression:
STC Sudden Death 10+0 :
LLR: 2.94 (-2.94,2.94) {-2.00,0.00}
Total: 111976 W: 25661 L: 25768 D: 60547
Ptnml(0-2): 2567, 13420, 24118, 13319, 2564
https://tests.stockfishchess.org/tests/view/5ec23b3be9d85f94dc429a58
closes https://github.com/official-stockfish/Stockfish/pull/2685
Bench 4395562
2020-05-19 16:53:47 +02:00
protonspring
83c9e5911e
Don't adjust MoveOverhead by increment
...
This is a change to address a potential timing issue for slow networks.
Move Overhead was limited by TC increment,
which might be problematic if small increments (or sudden death)
on slow networks (needing high Move Overhead) are used.
STC, sudden death.
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 169368 W: 38023 L: 38054 D: 93291
Ptnml(0-2): 3767, 20250, 36595, 20391, 3681
https://tests.stockfishchess.org/tests/view/5ebf25efe9d85f94dc42986f
STC, 10+0.1
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 83896 W: 16092 L: 16026 D: 51778
Ptnml(0-2): 1401, 9697, 19670, 9795, 1385
https://tests.stockfishchess.org/tests/view/5ec0239de9d85f94dc42991e
closes https://github.com/official-stockfish/Stockfish/pull/2684
No functional change.
2020-05-17 10:10:28 +02:00
Joost VandeVondele
d116e27f0f
Workaround for older compiler
...
gcc < 5 doesn't fully support the c++11 `std::is_trivially_copyable<Entry>::value`
Remove it, as it is not essential.
fixes https://github.com/official-stockfish/Stockfish/issues/2681
closes https://github.com/official-stockfish/Stockfish/pull/2682
No functional change.
2020-05-15 19:40:25 +02:00
protonspring
c6ce612f0a
Simplify Time Management
...
This is a functional simplification of the time management system.
With this patch, there is a simple equation for each of two distinct
time controls: basetime + increment, and x moves in y seconds (+increment).
These equations are easy to plot and understand making future modifications
or adding additional time controls much easier.
SlowMover is reset to 100 so that is has no effect unless a user changes it.
There are two scaling variables:
* Opt_scale is a scale factor (or percentage) of time to use for this current move.
* Max_scale is a scale factor to apply to the resulting optimumTime.
There seems to be some elo gain in most scenarios.
Better performance is attributable to one of two things:
* minThinkingTime was not allowing reasonable time calculations for very short games like 10+0 or 10+0.01. This is because adding almost no increment and substracting move overhead for 50 moves quickly results in almost 0 time very early in the game. Master depended on minThinkingTime to handle these short games instead of good time management. This patch addresses this issue by lowering minThinkingTime to 0 and adjusting moverOverhead if there are very low increments.
* Notice that the time distribution curves tail downward for the first 10 moves or so. This causes less time to attribute for very early moves leaving more time available for middle moves where more important decisions happen.
Here is a summary of tests for this version at different time controls:
SMP 5+0.05
LLR: 2.97 (-2.94,2.94) {-1.50,0.50}
Total: 46544 W: 7175 L: 7089 D: 32280
Ptnml(0-2): 508, 4826, 12517, 4914, 507
https://tests.stockfishchess.org/tests/user/protonspring
STC
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 20480 W: 3872 L: 3718 D: 12890
Ptnml(0-2): 295, 2364, 4824, 2406, 351
https://tests.stockfishchess.org/tests/view/5ebc343e7dd5693aad4e6873
STC, sudden death
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 7024 W: 1706 L: 1489 D: 3829
Ptnml(0-2): 149, 813, 1417, 938, 195
https://tests.stockfishchess.org/tests/view/5ebc346f7dd5693aad4e6875
STC, TCEC style
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 4192 W: 1014 L: 811 D: 2367
Ptnml(0-2): 66, 446, 912, 563, 109
https://tests.stockfishchess.org/tests/view/5ebc34857dd5693aad4e6877
40/10
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 54032 W: 10592 L: 10480 D: 32960
Ptnml(0-2): 967, 6148, 12677, 6254, 970
https://tests.stockfishchess.org/tests/view/5ebc50597dd5693aad4e688d
LTC, sudden death
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 9152 W: 1391 L: 1263 D: 6498
Ptnml(0-2): 75, 888, 2526, 1008, 79
https://tests.stockfishchess.org/tests/view/5ebc6f5c7dd5693aad4e689b
LTC
LLR: 2.98 (-2.94,2.94) {-1.50,0.50}
Total: 12344 W: 1563 L: 1459 D: 9322
Ptnml(0-2): 70, 1103, 3740, 1171, 88
https://tests.stockfishchess.org/tests/view/5ebc6f4c7dd5693aad4e6899
closes https://github.com/official-stockfish/Stockfish/pull/2678
Bench: 4395562
2020-05-14 20:47:59 +02:00
Sami Kiminki
beb327f910
Fix a Windows-only crash on exit without 'quit'
...
There was a bug in commit d4763424d2
(Add support for Windows large pages) that could result in trying to
free memory allocated with VirtualAlloc incorrectly with free().
Fix this by reverting the TT.resize(0) logic in the previous commit,
and instead, just call aligned_ttmem_free() in
TranspositionTable::~TranspositionTable().
fixes https://github.com/official-stockfish/Stockfish/issues/2677
closes https://github.com/official-stockfish/Stockfish/pull/2679
No functional change
2020-05-14 20:35:40 +02:00