fairystockfish.git
5 years agoSupport Chaturanga
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.

5 years agoAdd sponsor button
Fabian Fichter [Mon, 12 Oct 2020 22:02:33 +0000]
Add sponsor button

5 years agoFix typo in error message
Fabian Fichter [Fri, 9 Oct 2020 21:13:00 +0000]
Fix typo in error message

5 years agoSupport parsing variant config string in pyffish
Fabian Fichter [Sat, 3 Oct 2020 20:47:23 +0000]
Support parsing variant config string in pyffish

5 years agoRemove blocked shogi pawns from mobility area
Fabian Fichter [Fri, 2 Oct 2020 09:34:06 +0000]
Remove blocked shogi pawns from mobility area

shogi STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 10872 W: 5545 L: 5286 D: 41
http://www.variantfishtest.org:6543/tests/view/5f6253786e23db221d9e91b8

shogi LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 17489 W: 8874 L: 8520 D: 95
http://www.variantfishtest.org:6543/tests/view/5f645f406e23db221d9e91c1

5 years agoTweak shogi piece promotion bonus
Fabian Fichter [Fri, 2 Oct 2020 09:31:14 +0000]
Tweak shogi piece promotion bonus

shogi STC (failed)
LLR: -2.97 (-2.94,2.94) [0.00,10.00]
Total: 7135 W: 3552 L: 3552 D: 31
http://www.variantfishtest.org:6543/tests/view/5f51377b6e23db221d9e9065

shogi LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 14354 W: 7294 L: 6985 D: 75
http://www.variantfishtest.org:6543/tests/view/5f65a4de6e23db221d9e91cc

5 years agoUpdated ffish.js to 0.4.2 (Closes #185)
QueensGambit [Wed, 30 Sep 2020 08:40:06 +0000]
Updated ffish.js to 0.4.2 (Closes #185)
+ board.moveStack()
+ board.pushSan(sanMove, notation)
+ board.pushMoves(uciMoves)
+ board.pushSanMoves(sanMoves)
+ board.pushSanMoves(sanMoves, notation)
+ ffish.readGamePGN(pgn)
+ game.headerKeys()
+ game.headers(key)
+ game.mainlineMoves()
+ ffish.variants()
+ ffish.loadVariantConfig()

Added parse_istream()
+ to allow reading a variant configuration file via a stringstream

Added NO_THREADS #define
+ to disable threads usage for build

Added custom variants info to README.md

Changed ordering for ffish.loadVariantsConfig() in test.js

5 years agoAdd more moderate variants to variants.ini
Fabian Fichter [Sat, 26 Sep 2020 10:43:42 +0000]
Add more moderate variants to variants.ini

5 years agoAdjust endgame evaluation for KSSK
Fabian Fichter [Sat, 26 Sep 2020 09:43:54 +0000]
Adjust endgame evaluation for KSSK

makruk
LLR: 2.97 (-2.94,2.94) [-10.00,5.00]
Total: 12891 W: 944 L: 932 D: 11015
http://www.variantfishtest.org:6543/tests/view/5f5ded636e23db221d9e9184

5 years agoReturn to development version
Fabian Fichter [Thu, 24 Sep 2020 10:38:05 +0000]
Return to development version

5 years agoFairy-Stockfish 11.2
Fabian Fichter [Wed, 23 Sep 2020 07:39:22 +0000]
Fairy-Stockfish 11.2

bench: 4262221

5 years agoFix move time for CECP
Fabian Fichter [Mon, 21 Sep 2020 15:22:13 +0000]
Fix move time for CECP

Ensure full usage of time specified by `st`.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 20 Sep 2020 12:10:42 +0000]
Merge official-stockfish/master

bench: 4262221

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 20 Sep 2020 11:55:24 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 20 Sep 2020 11:17:16 +0000]
Merge official-stockfish/master

bench: 4629236

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 20 Sep 2020 10:20:05 +0000]
Merge official-stockfish/master

No functional change.

5 years agoTweak shogi piece values
Fabian Fichter [Sat, 19 Sep 2020 16:41:31 +0000]
Tweak shogi piece values

shogi STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 5572 W: 2865 L: 2682 D: 2
http://www.variantfishtest.org:6543/tests/view/5f6110aa6e23db221d9e919c

shogi LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 5586 W: 2867 L: 2684 D: 35
http://www.variantfishtest.org:6543/tests/view/5f62fc106e23db221d9e91bb

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 19 Sep 2020 12:49:12 +0000]
Merge official-stockfish/master

bench: 4665603

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 19 Sep 2020 12:45:56 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 19 Sep 2020 11:41:08 +0000]
Merge official-stockfish/master

bench: 5113210

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 19 Sep 2020 09:36:55 +0000]
Merge official-stockfish/master

No functional change.

5 years agoRevise palace attacks for rook
Fabian Fichter [Wed, 16 Sep 2020 20:13:01 +0000]
Revise palace attacks for rook

janggi
Total: 500 W: 268 L: 221 D: 11

5 years agoBonus for connected soldiers
Fabian Fichter [Tue, 15 Sep 2020 21:51:18 +0000]
Bonus for connected soldiers

janggi
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 644 W: 369 L: 259 D: 16

5 years agoPenalty for undroppable shogi pawns
Fabian Fichter [Mon, 14 Sep 2020 19:32:15 +0000]
Penalty for undroppable shogi pawns

shogi STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 5265 W: 2710 L: 2532 D: 23
http://www.variantfishtest.org:6543/tests/view/5f5a95fa6e23db221d9e9120

shogi LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 3730 W: 1932 L: 1776 D: 22
http://www.variantfishtest.org:6543/tests/view/5f5c8fec6e23db221d9e9154

5 years agoScale evaluation for material counting
Fabian Fichter [Sun, 13 Sep 2020 18:15:56 +0000]
Scale evaluation for material counting

janggi
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1658 W: 873 L: 749 D: 36

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 13 Sep 2020 17:24:30 +0000]
Merge official-stockfish/master

No functional change.

5 years agoAdjust king PSQT based on pawn rank
Fabian Fichter [Sat, 12 Sep 2020 08:49:09 +0000]
Adjust king PSQT based on pawn rank

shogi STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 865 W: 489 L: 374 D: 2
http://www.variantfishtest.org:6543/tests/view/5f5b2c286e23db221d9e9135

shogi LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1244 W: 678 L: 558 D: 8
http://www.variantfishtest.org:6543/tests/view/5f5b5cf86e23db221d9e9145

5 years agoSoft limit on king danger
Fabian Fichter [Thu, 10 Sep 2020 19:49:11 +0000]
Soft limit on king danger

chess STC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 3531 W: 759 L: 732 D: 2040
http://www.variantfishtest.org:6543/tests/view/5f51e87b6e23db221d9e907f

crazyhouse STC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 1630 W: 810 L: 756 D: 64
http://www.variantfishtest.org:6543/tests/view/5f51e8e06e23db221d9e9084

crazyhouse LTC
LLR: 2.95 (-2.94,2.94) [-10.00,5.00]
Total: 2750 W: 1346 L: 1300 D: 104
http://www.variantfishtest.org:6543/tests/view/5f57249f6e23db221d9e9102

3check STC
LLR: 2.99 (-2.94,2.94) [-10.00,5.00]
Total: 2896 W: 1369 L: 1325 D: 202
http://www.variantfishtest.org:6543/tests/view/5f51e8c36e23db221d9e9082

3check LTC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 6016 W: 2783 L: 2762 D: 471
http://www.variantfishtest.org:6543/tests/view/5f5724ab6e23db221d9e9104

bench: 4779259

5 years agoIncrease bonus for leapers in hand
Fabian Fichter [Thu, 10 Sep 2020 06:39:27 +0000]
Increase bonus for leapers in hand

shogi STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2062 W: 1091 L: 959 D: 12
http://www.variantfishtest.org:6543/tests/view/5f520b616e23db221d9e90a7

shogi LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2069 W: 1095 L: 963 D: 11
http://www.variantfishtest.org:6543/tests/view/5f563b0e6e23db221d9e90f8

crazyhouse STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 3850 W: 1930 L: 1776 D: 144
http://www.variantfishtest.org:6543/tests/view/5f403e706e23db221d9e903c

crazyhouse LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 6821 W: 3352 L: 3156 D: 313
http://www.variantfishtest.org:6543/tests/view/5f520be76e23db221d9e90a9

5 years agoAdded functionality to ffish.js (closes #177)
QueensGambit [Tue, 8 Sep 2020 21:45:05 +0000]
Added functionality to ffish.js (closes #177)
+ board.fullmoveNumber()
+ board.isCheck()
+ board.isBikjang()
+ board.sanMove(notation)
+ board.variationSan(uciMoves)
+ board.variationSan(uciMoves, notation)
+ board.variationSan(uciMoves, notation, moveNumbers)
+ enum ffish.Notation
+ ffish.setOption()
+ ffish.setOptionInt()
+ ffish.setOptionBool()
+ ES6 module export

5 years agoEvaluate ungatable pieces in Seirawan
alwey [Sat, 5 Sep 2020 07:23:12 +0000]
Evaluate ungatable pieces in Seirawan

5 years agoAlways evaluate space bonus for slow variants
Fabian Fichter [Sun, 6 Sep 2020 09:02:38 +0000]
Always evaluate space bonus for slow variants

makruk STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 908 W: 111 L: 51 D: 746
http://www.variantfishtest.org:6543/tests/view/5f5203ed6e23db221d9e90a2

makruk LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 839 W: 82 L: 25 D: 732
http://www.variantfishtest.org:6543/tests/view/5f5387446e23db221d9e90e6

shatranj STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1180 W: 143 L: 81 D: 956
http://www.variantfishtest.org:6543/tests/view/5f5204066e23db221d9e90a5

shatranj LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 1026 W: 113 L: 53 D: 860
http://www.variantfishtest.org:6543/tests/view/5f53ab6a6e23db221d9e90ea

losalamos STC
LLR: 3.00 (-2.94,2.94) [-10.00,5.00]
Total: 1171 W: 312 L: 272 D: 587
http://www.variantfishtest.org:6543/tests/view/5f5295db6e23db221d9e90bd

5 years agoRevert repetition handling for janggimodern
Fabian Fichter [Sat, 5 Sep 2020 11:15:57 +0000]
Revert repetition handling for janggimodern

For better compatibility with rules in Kakao Janggi,
revert the repetition handling for janggimodern.

This does not affect the other Janggi rulesets.

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 22:32:10 +0000]
Merge official-stockfish/master

bench: 4379669

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 22:15:48 +0000]
Merge official-stockfish/master

bench: 4839910

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 21:55:51 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 21:49:43 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 21:43:11 +0000]
Merge official-stockfish/master

5 years agoMerge official-stockfish/master
Fabian Fichter [Thu, 3 Sep 2020 19:12:25 +0000]
Merge official-stockfish/master

bench: 4777225

5 years agoConsider material density in king safety
Fabian Fichter [Thu, 27 Aug 2020 20:45:45 +0000]
Consider material density in king safety

Scale king danger of drop variants by material density
and thereby remove magic correction factors.

euroshogi STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 2735 W: 1417 L: 1276 D: 42
http://www.variantfishtest.org:6543/tests/view/5f3fd4266e23db221d9e902e

euroshogi LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 1427 W: 760 L: 639 D: 28
http://www.variantfishtest.org:6543/tests/view/5f46e1076e23db221d9e9045

shogi STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 6037 W: 3098 L: 2909 D: 30
http://www.variantfishtest.org:6543/tests/view/5f3fabca6e23db221d9e9013

shogi LTC
LLR: 2.98 (-2.94,2.94) [-10.00,5.00]
Total: 917 W: 487 L: 425 D: 5
http://www.variantfishtest.org:6543/tests/view/5f46b5236e23db221d9e9043

judkins STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 2936 W: 1430 L: 1292 D: 214
http://www.variantfishtest.org:6543/tests/view/5f3fd48d6e23db221d9e9030

5 years agoadded -DLARGEBOARDS support
QueensGambit [Wed, 26 Aug 2020 17:58:52 +0000]
added -DLARGEBOARDS support

5 years agoTweak king proximity
Fabian Fichter [Tue, 25 Aug 2020 21:41:57 +0000]
Tweak king proximity

shogi STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2506 W: 1314 L: 1176 D: 16
http://www.variantfishtest.org:6543/tests/view/5f3fb2cb6e23db221d9e9018

shogi LTC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 976 W: 546 L: 429 D: 1
http://www.variantfishtest.org:6543/tests/view/5f435c1e6e23db221d9e903e

crazyhouse STC
LLR: -2.97 (-2.94,2.94) [0.00,10.00]
Total: 18825 W: 9170 L: 8999 D: 656
http://www.variantfishtest.org:6543/tests/view/5ee348126e23db104fb88ada

crazyhouse LTC
LLR: -2.96 (-2.94,2.94) [0.00,10.00]
Total: 13908 W: 6715 L: 6614 D: 579
http://www.variantfishtest.org:6543/tests/view/5ee68ebb6e23db104fb88bad

5 years agoMerge official-stockfish/master
Fabian Fichter [Tue, 25 Aug 2020 20:53:34 +0000]
Merge official-stockfish/master

5 years agoupdated ffish.js for initial npm version
QueensGambit [Sun, 23 Aug 2020 17:56:19 +0000]
updated ffish.js for initial npm version
+ added ffish.info() with test
+ added ES6 compile instructions to README.md
+ updated package.json

5 years agoFix pieceToCharTable for Janus
Fabian Fichter [Thu, 20 Aug 2020 16:52:35 +0000]
Fix pieceToCharTable for Janus

Thanks to @alwey for reporting.

5 years agoFix undo_move for arrow gating
Fabian Fichter [Sat, 15 Aug 2020 17:11:34 +0000]
Fix undo_move for arrow gating

5 years agoExclude Game of the Amazons by default
Fabian Fichter [Sat, 15 Aug 2020 14:06:57 +0000]
Exclude Game of the Amazons by default

Avoids big stack size for standard builds.

5 years agoSupport Game of the Amazons
Fabian Fichter [Sat, 15 Aug 2020 09:58:26 +0000]
Support Game of the Amazons

https://en.wikipedia.org/wiki/Game_of_the_Amazons

bench: 4413936

5 years agoMerge official-stockfish/master
Fabian Fichter [Fri, 14 Aug 2020 13:55:48 +0000]
Merge official-stockfish/master

bench: 5082623

5 years agoSimplify handling special riders
Fabian Fichter [Fri, 14 Aug 2020 13:45:40 +0000]
Simplify handling special riders

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Fri, 14 Aug 2020 13:15:08 +0000]
Merge official-stockfish/master

No functional change.

5 years agoFix pseudo-legal move validation for Janggi
Fabian Fichter [Wed, 12 Aug 2020 20:31:20 +0000]
Fix pseudo-legal move validation for Janggi

Closes #170.

5 years agoSpeed up perft tests in Travis CI
Fabian Fichter [Tue, 11 Aug 2020 05:49:52 +0000]
Speed up perft tests in Travis CI

5 years agoFix Visual Studio linker error
Fabian Fichter [Tue, 11 Aug 2020 05:38:18 +0000]
Fix Visual Studio linker error

Closes #169.

5 years agoMerge official-stockfish/master
Fabian Fichter [Mon, 10 Aug 2020 20:54:39 +0000]
Merge official-stockfish/master

bench: 4822192

5 years agoMerge official-stockfish/master
Fabian Fichter [Mon, 10 Aug 2020 20:35:47 +0000]
Merge official-stockfish/master

Merge new time management.

5 years agoDisable shallow depth pruning of captures
Fabian Fichter [Mon, 10 Aug 2020 17:14:51 +0000]
Disable shallow depth pruning of captures

giveaway STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 733 W: 315 L: 224 D: 194
http://www.variantfishtest.org:6543/tests/view/5f300b6e6e23db104fb88ea3

giveaway LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 1300 W: 522 L: 424 D: 354
http://www.variantfishtest.org:6543/tests/view/5f3013386e23db104fb88eb2

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 16:00:19 +0000]
Merge official-stockfish/master

bench: 4877370

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 13:41:02 +0000]
Merge official-stockfish/master

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 13:05:49 +0000]
Merge official-stockfish/master

bench: 4988792

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 12:45:16 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 10:35:44 +0000]
Merge official-stockfish/master

bench: 4542650

5 years agoMerge official-stockfish/master
Fabian Fichter [Sun, 9 Aug 2020 10:13:53 +0000]
Merge official-stockfish/master

bench: 5678334

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 8 Aug 2020 21:07:38 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Fri, 7 Aug 2020 16:17:08 +0000]
Merge official-stockfish/master

bench: 4959597

5 years agoMerge official-stockfish/master
Fabian Fichter [Fri, 7 Aug 2020 16:01:07 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Fri, 7 Aug 2020 15:43:26 +0000]
Merge official-stockfish/master

No functional change.

5 years agoTweak LMR for drop variants
Fabian Fichter [Fri, 7 Aug 2020 11:56:18 +0000]
Tweak LMR for drop variants

crazyhouse STC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 27169 W: 13361 L: 12871 D: 937
http://www.variantfishtest.org:6543/tests/view/5f13332a6e23db104fb88e04

crazyhouse LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2197 W: 1118 L: 988 D: 91
http://www.variantfishtest.org:6543/tests/view/5f1415e26e23db104fb88e17

5 years agoUpdate readme
Fabian Fichter [Thu, 6 Aug 2020 21:24:23 +0000]
Update readme

5 years agoSupport Ataxx
Fabian Fichter [Thu, 6 Aug 2020 20:25:52 +0000]
Support Ataxx

https://en.wikipedia.org/wiki/Ataxx

bench: 5499014

5 years agoTweak cutnode reduction
Stefan Geschwentner [Thu, 30 Jul 2020 16:56:11 +0000]
Tweak cutnode reduction

Less reduction for second move at non-check CUT node with depth <= 10.

STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 38680 W: 7490 L: 7245 D: 23945
Ptnml(0-2): 643, 4441, 8967, 4606, 683
https://tests.stockfishchess.org/tests/view/5f21e1782f7e63962b99f451

LTC:
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 71976 W: 9003 L: 8636 D: 54337
Ptnml(0-2): 440, 6414, 21972, 6663, 499
https://tests.stockfishchess.org/tests/view/5f2245762f7e63962b99f4bd

closes https://github.com/official-stockfish/Stockfish/pull/2868

Bench: 4746616

5 years agoImprove handling of queen imbalance
Stéphane Nicolet [Tue, 28 Jul 2020 08:08:09 +0000]
Improve handling of queen imbalance

We double the bonus for potential threats by minors and rooks against
our queen, in case of "queen vs pieces imbalance". Hopefully this will
improve a little bit the evaluation for this well-known Stockfish weakness.

passed STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 72976 W: 14003 L: 13710 D: 45263
Ptnml(0-2): 1218, 8370, 17094, 8513, 1293
https://tests.stockfishchess.org/tests/view/5efa50eb020eec13834a977d

passed LTC:
LLR: 2.93 (-2.94,2.94) {0.25,1.75}
Total: 22232 W: 2779 L: 2560 D: 16893
Ptnml(0-2): 129, 1885, 6896, 2050, 156
https://tests.stockfishchess.org/tests/view/5f1fdd2dc09435d870cb9f13

closes https://github.com/official-stockfish/Stockfish/pull/2864

Bench: 4367349

5 years agoRemove late irreversible move extension
UnaiCorzo [Sat, 25 Jul 2020 20:30:05 +0000]
Remove late irreversible move extension

We simplify away the late irreversible move extension, which
does not seem to be necessary in the current master.

STC
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 38584 W: 7464 L: 7342 D: 23778
Ptnml(0-2): 581, 4328, 9365, 4424, 594
https://tests.stockfishchess.org/tests/view/5f1c9669c09435d870cb9de9

LTC
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 27840 W: 3417 L: 3353 D: 21070
Ptnml(0-2): 120, 2315, 8994, 2363, 128
https://tests.stockfishchess.org/tests/view/5f1d2e22c09435d870cb9e21

closes https://github.com/official-stockfish/Stockfish/pull/2836

bench: 4829420

5 years agoRemove conditional_more_than_two().
protonspring [Sat, 25 Jul 2020 13:32:19 +0000]
Remove conditional_more_than_two().

This is a functional simplification that removes the conditional_more_than_two()
function, which was quite strange and kooky. Note the very minor change to the bench
value.

See this thread for relevant comments on the passing branch:
protonspring/Stockfish@d89730d...ff35b50

STC
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 59760 W: 11411 L: 11311 D: 37038
Ptnml(0-2): 992, 6863, 14044, 7015, 966
https://tests.stockfishchess.org/tests/view/5f179988c09435d870cb9b9a

LTC
LLR: 2.93 (-2.94,2.94) {-1.50,0.50}
Total: 45208 W: 5553 L: 5497 D: 34158
Ptnml(0-2): 315, 4081, 13761, 4127, 320
https://tests.stockfishchess.org/tests/view/5f184847c09435d870cb9bee

closes https://github.com/official-stockfish/Stockfish/pull/2826

Bench: 4578290

5 years agoClear move deque on setboard
Fabian Fichter [Tue, 28 Jul 2020 21:09:33 +0000]
Clear move deque on setboard

Prevent undefined behavior on `undo` in CECP.

Closes #165.

5 years agoDouble mobility bonus for nCheck
Fabian Fichter [Tue, 28 Jul 2020 16:45:19 +0000]
Double mobility bonus for nCheck

3check STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 2999 W: 1487 L: 1347 D: 165
http://www.variantfishtest.org:6543/tests/view/5f1449956e23db104fb88e31

3check LTC
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 3080 W: 1500 L: 1360 D: 220
http://www.variantfishtest.org:6543/tests/view/5f15f4096e23db104fb88e3f

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 13:47:07 +0000]
Merge official-stockfish/master

bench: 4507590

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 13:42:32 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 12:54:43 +0000]
Merge official-stockfish/master

bench: 5255035

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 10:44:36 +0000]
Merge official-stockfish/master

bench: 5126336

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 09:59:11 +0000]
Merge official-stockfish/master

No functional change.

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 08:33:59 +0000]
Merge official-stockfish/master

5 years agoMerge official-stockfish/master
Fabian Fichter [Sat, 18 Jul 2020 08:33:12 +0000]
Merge official-stockfish/master

bench: 5054568

5 years agoDo not overwrite valuable TT data after probcut.
Vizvezdenec [Mon, 13 Jul 2020 17:30:58 +0000]
Do not overwrite valuable TT data after probcut.

This patch allows an engine to write probcut data only in case
the probcut search depth is greater than transposition table depth.

passed STC
https://tests.stockfishchess.org/tests/view/5f0b52e959f6f035328949a6
LLR: 2.97 (-2.94,2.94) {-0.50,1.50}
Total: 52544 W: 10145 L: 9880 D: 32519
Ptnml(0-2): 853, 6097, 12121, 6334, 867

passed LTC
https://tests.stockfishchess.org/tests/view/5f0bd94c59f6f035328949f3
LLR: 2.93 (-2.94,2.94) {0.25,1.75}
Total: 49576 W: 6164 L: 5863 D: 37549
Ptnml(0-2): 297, 4371, 15218, 4538, 364

closes https://github.com/official-stockfish/Stockfish/pull/2815

bench 4578298

5 years agoMultiple lazy stages.
mstembera [Sun, 12 Jul 2020 20:58:00 +0000]
Multiple lazy stages.

An extension of the lazy eval idea: when the score is sufficiently large
we now skip more granular parts of the eval.

Inspired by an original patch by Moez Jellouli
https://tests.stockfishchess.org/tests/view/5f03b2a159f6f03532894529
Credit to him!

STC https://tests.stockfishchess.org/tests/view/5f0a862c59f6f03532894924
LLR: 2.95 (-2.94,2.94) {-0.50,1.50}
Total: 13504 W: 2684 L: 2472 D: 8348
Ptnml(0-2): 229, 1496, 3111, 1666, 250

LTC https://tests.stockfishchess.org/tests/view/5f0ac0e159f6f0353289495b
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 31312 W: 3926 L: 3677 D: 23709
Ptnml(0-2): 185, 2773, 9509, 2986, 203

closes https://github.com/official-stockfish/Stockfish/pull/2814

bench: 4541608

5 years agoUpdate reference bench
Fabian Fichter [Sun, 12 Jul 2020 18:19:40 +0000]
Update reference bench

bench: 4964428

5 years agoTweak futility pruning for extinction variants
Fabian Fichter [Sun, 12 Jul 2020 16:13:40 +0000]
Tweak futility pruning for extinction variants

extinction STC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 312 W: 196 L: 96 D: 20
http://www.variantfishtest.org:6543/tests/view/5f0ac6906e23db104fb88d83

extinction LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 491 W: 258 L: 162 D: 71
http://www.variantfishtest.org:6543/tests/view/5f0af0ff6e23db104fb88d92

threekings STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 250 W: 89 L: 23 D: 138
http://www.variantfishtest.org:6543/tests/view/5f0ac6ac6e23db104fb88d86

threekings LTC
LLR: 2.95 (-2.94,2.94) [0.00,10.00]
Total: 179 W: 71 L: 9 D: 99
http://www.variantfishtest.org:6543/tests/view/5f0af0f46e23db104fb88d90

kinglet STC
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 735 W: 373 L: 271 D: 91
http://www.variantfishtest.org:6543/tests/view/5f0af14f6e23db104fb88d94

5 years agoCorrects a functional change in a cleanup patch.
syzygy1 [Sat, 11 Jul 2020 14:25:34 +0000]
Corrects a functional change in a cleanup patch.

This corrects a functional change in
https://github.com/official-stockfish/Stockfish/commit/ddcbacd04d1c860e808202ce8c1206c8acdca627
changing evaluation of KPPvK. Bench remains unchanged at low depth

With this patch, 8/8/5k1p/8/7p/7K/8/8 b - - 1 11 is again correctly evaluated as a draw.

closes https://github.com/official-stockfish/Stockfish/pull/2807

Bench: 4366686

5 years agoIntroduce bad outpost penalty
SFisGOD [Wed, 8 Jul 2020 02:09:32 +0000]
Introduce bad outpost penalty

In some French games, Stockfish likes to bring the Knight to a bad outpost spot. This is evident in TCEC S18 Superfinal Game 63, where there is a Knight outpost on the queenside but is actually useless. Stockfish is effectively playing a piece down while holding ground against Leela's break on the kingside.

This patch turns the +56 mg bonus for a Knight outpost into a -7 mg penalty if it satisfies the following conditions:

* The outpost square is not on the CenterFiles (i.e. not on files C,D,E and F)
* The knight is not attacking non pawn enemies.
* The side where the outpost is located contains only few enemies, with a particular conditional_more_than_two() implementation

Thank you to apospa...@gmail.com for bringing this to our attention and for providing insights.
See https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/dEXNzSIBgZU
Reference game: https://tcec-chess.com/#div=sf&game=63&season=18

Passed STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 6960 W: 1454 L: 1247 D: 4259
Ptnml(0-2): 115, 739, 1610, 856, 160
https://tests.stockfishchess.org/tests/view/5f08221059f6f0353289477e

Passed LTC:
LLR: 2.98 (-2.94,2.94) {0.25,1.75}
Total: 21440 W: 2767 L: 2543 D: 16130
Ptnml(0-2): 122, 1904, 6462, 2092, 140
https://tests.stockfishchess.org/tests/view/5f0838ed59f6f035328947a2

various related tests show strong test results, but so far no generalizations or simplifications of conditional_more_than_two() are found. See PR for details.

closes https://github.com/official-stockfish/Stockfish/pull/2803

Bench: 4366686

5 years agoMaximize usage of transposition table in probcut
Vizvezdenec [Fri, 10 Jul 2020 21:06:55 +0000]
Maximize usage of transposition table in probcut

Probcut is a heuristic that wasn't changed a lot in past years,
all attempts to change it using information / writing info to transposition table failed.

This patch has a number of differences that can be summarized as follows:

* For TT write/read we use depth - 3. Because probcut search is depth - 4 but we actually do the move prior to it so effectively we do depth - 3 search;
* In any case of depth of eval from transposition table being >= depth - 3 we either produce cutoff or refuse to even do probcut search, this is allowing us to write info of probcut to transposition table because we know that we wouldn't be overwriting some deeper data with our depth - 3 search - this is an important aspect of this patch;
* For some not really known reason this patch completely ignores tte->bound() - which was the case for previous patch that made probcut interact with TT, maybe 2) is the reason, although it's unproven.

A first version of this patch passed STC and LTC

passed STC
https://tests.stockfishchess.org/tests/view/5f05908a59f6f03532894613
LLR: 2.95 (-2.94,2.94) {-0.50,1.50}
Total: 95776 W: 18300 L: 17973 D: 59503
Ptnml(0-2): 1646, 10944, 22377, 11279, 1642

passed LTC
https://tests.stockfishchess.org/tests/view/5f06b54059f6f035328946bb
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 57128 W: 7266 L: 6938 D: 42924
Ptnml(0-2): 372, 5163, 17217, 5389, 423

However, an additional bugfix was needed to avoid checking a condition on ttMove if was not available. This passed non-regression bounds on top of the first version:

at STC
https://tests.stockfishchess.org/tests/view/5f080e5059f6f03532894766
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 14096 W: 2800 L: 2628 D: 8668
Ptnml(0-2): 225, 1620, 3238, 1688, 277

at LTC
https://tests.stockfishchess.org/tests/view/5f0836a559f6f0353289479c
LLR: 2.95 (-2.94,2.94) {-1.50,0.50}
Total: 25352 W: 3228 L: 3139 D: 18985
Ptnml(0-2): 175, 2350, 7549, 2415, 187

closes https://github.com/official-stockfish/Stockfish/pull/2804

Bench 4540940

5 years agoSmall cleanups
Joost VandeVondele [Thu, 9 Jul 2020 20:01:06 +0000]
Small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/2772

No functional change

5 years agoSimplify make_promotions()
mstembera [Sun, 5 Jul 2020 22:17:04 +0000]
Simplify make_promotions()

Remove special case handling of QUIET_CHECKS in make_promotions()

STC https://tests.stockfishchess.org/tests/view/5f055dbb59f6f035328945fb
LLR: 2.98 (-2.94,2.94) {-1.50,0.50}
Total: 42808 W: 8177 L: 8054 D: 26577
Ptnml(0-2): 665, 4890, 10201, 4953, 695

LTC https://tests.stockfishchess.org/tests/view/5f06231a59f6f03532894661
LLR: 2.96 (-2.94,2.94) {-1.50,0.50}
Total: 9616 W: 1214 L: 1111 D: 7291
Ptnml(0-2): 53, 821, 2965, 908, 61

closes https://github.com/official-stockfish/Stockfish/pull/2800

Bench: 4576410

5 years agoConnected / blocked pawns simplification
FauziAkram [Tue, 7 Jul 2020 22:29:03 +0000]
Connected / blocked pawns simplification

There is no need to score blocked pawns at many places.
The idea originated from: Rocky
Tuning and testing by: Fauzi

Passed STC:
https://tests.stockfishchess.org/tests/view/5f04f8fd59f6f035328945d4
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 6352 W: 1299 L: 1118 D: 3935
Ptnml(0-2): 89, 695, 1469, 792, 131

Passed LTC:
https://tests.stockfishchess.org/tests/view/5f0527bd59f6f035328945e3
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 27648 W: 3517 L: 3433 D: 20698
Ptnml(0-2): 177, 2561, 8301, 2571, 214

closes https://github.com/official-stockfish/Stockfish/pull/2799

Bench: 4734746

5 years agoClean-up en passant processing
Alain SAVARD [Tue, 7 Jul 2020 02:43:54 +0000]
Clean-up en passant processing

the goal of this PR is to better document how we process
the ep square (if any) given position fen command, and to
output more meaningful (and consistent) debug fen on the "d"
command. The implementation follows
https://en.wikipedia.org/wiki/X-FEN#Encoding_en-passant
following x-fen, it is "valid" to record ep even if ep would put king en prise.

fixes #2784

closes https://github.com/official-stockfish/Stockfish/pull/2797

No functional change

5 years agoAdd version() to pyffish
Bajusz Tamás [Thu, 9 Jul 2020 15:53:55 +0000]
Add version() to pyffish

5 years agoAdd a rank based bonus for blocked pawns.
Stefan Geschwentner [Mon, 6 Jul 2020 07:30:23 +0000]
Add a rank based bonus for blocked pawns.

Fix for overevaluated blocked pawns on the 5th and 6th rank.
This is a rewrite of the original idea that uses only two parameters.
Thanks to rocky640 for pointing this out.

STC:
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 50800 W: 9707 L: 9446 D: 31647
Ptnml(0-2): 831, 5851, 11822, 6018, 878
https://tests.stockfishchess.org/tests/view/5f00b4f359f6f03532894304

LTC:
LLR: 2.93 (-2.94,2.94) {0.25,1.75}
Total: 52064 W: 6477 L: 6167 D: 39420
Ptnml(0-2): 331, 4628, 15834, 4878, 361
https://tests.stockfishchess.org/tests/view/5f0115fe59f6f03532894345

closes https://github.com/official-stockfish/Stockfish/pull/2794

Bench: 4882833

5 years agodenormalize KRKP.
protonspring [Tue, 30 Jun 2020 16:17:50 +0000]
denormalize KRKP.

a non-functional code style change that denormalizes the KRKP endgame,
making it somewhat easier to read.

closes https://github.com/official-stockfish/Stockfish/pull/2786

No functional change

5 years agoxboard: add engine version to 'myname' feature
Yann Dirson [Sat, 4 Jul 2020 12:36:12 +0000]
xboard: add engine version to 'myname' feature

5 years agoTweak evaluation of stable disks
Fabian Fichter [Sat, 4 Jul 2020 13:22:21 +0000]
Tweak evaluation of stable disks

reversi
LLR: 2.96 (-2.94,2.94) [0.00,10.00]
Total: 624 W: 351 L: 244 D: 29

5 years agoExtend definition of stable disks
Fabian Fichter [Sat, 4 Jul 2020 09:04:52 +0000]
Extend definition of stable disks

reversi
LLR: 2.97 (-2.94,2.94) [0.00,10.00]
Total: 422 W: 255 L: 150 D: 17