Marco Costalba
e3af492142
Remove a stale assignment
...
No more used after previous patch.
Spotted by Jekaa .
No functional change.
2016-08-18 10:40:56 +02:00
Stefano80
9585f8ef58
Retire pawn span
...
Retire pawn span and replace with pawn count in evaluate_scale_factor.
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 26482 W: 4929 L: 4818 D: 16735
LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 61938 W: 8400 L: 8335 D: 45203
Bench: 7662861
2016-08-18 10:16:56 +02:00
Marco Costalba
190d2ea4bc
Restore standard passed pawn definition
...
Use the usual and accepted passed pawn semantic
instead of a non-standard one and remove a FIXME.
STC (http://tests.stockfishchess.org/tests/view/576401350ebc5972faa1608d ):
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 29646 W: 5663 L: 5557 D: 18426
LTC (http://tests.stockfishchess.org/tests/view/5764e4e90ebc5972faa160c3 ):
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 40224 W: 5578 L: 5484 D: 29162
bench: 7543902
2016-06-25 11:46:17 +02:00
Stéphane Nicolet
ab0f4c0353
Simplify doubled pawn
...
Only use doubled pawn malus when the doubled pawns are on consecutive squares.
Passed STC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 7678 W: 1469 L: 1325 D: 4884
And LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 26739 W: 3562 L: 3449 D: 19728
Bench: 8211685
2016-05-26 12:33:44 +02:00
Stéphane Nicolet
16c603ce9b
Double pawn simplification
...
Try doubled pawn simplification, with psq
table compensation.
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 36094 W: 6558 L: 6463 D: 23073
LTC:
LLR: 2.94 (-2.94,2.94) [-3.00,1.00]
Total: 102352 W: 13417 L: 13404 D: 75531
Bench: 8716243
2016-05-13 13:01:59 +02:00
Stéphane Nicolet
2694ef23c3
Isolated pawn simplification
...
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 117822 W: 21697 L: 21744 D: 74381
LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 92307 W: 12330 L: 12305 D: 67672
Bench: 8813983
Resolves #659
2016-04-30 22:23:22 +01:00
Alain SAVARD
29b5842da8
Backward simplication
...
On top of the usual conditions
a) some opponent in front (but no lever)
b) some neighbours (in front) (but no neighbour behind or same rank)
c) < rank_5
to find out if a pawn is backward we look at the squares in front of this pawn to reach the same rank as the next neighbour.
In current master, a pawn is backward if any of those squares is controlled by an enemy pawn on an adjacent file
In this version, a pawn is ALSO backward if any of those squares is occupied by an enemy pawn.
STC:
http://tests.stockfishchess.org/tests/view/56fe7efd0ebc59301a3541f1
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 19051 W: 3557 L: 3433 D: 12061
LTC:
http://tests.stockfishchess.org/tests/view/56febc2d0ebc59301a354209
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 40810 W: 5619 L: 5526 D: 29665
Bench: 7525245
Resolves #614
2016-04-08 19:12:55 +01:00
mstembera
8fb45caade
Simplify popcnt
...
Also a speedup(about 1%) on 64-bit w/o hardware popcnt
Retire Max15 and Full template parameters
(Contributed by Marco Costalba)
Now that we have just SW and HW versions, use
template default parameter to get rid of explicit
template parameters.
Retire bitcount.h and move the only defined
function to bitboard.h
No functional change
Resolves #620
2016-04-08 18:52:15 +01:00
fanon
5d1644ba69
Simplify pawns King Safety calculation
...
STC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 130209 W: 23516 L: 23581 D: 83112
LTC
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 33541 W: 4563 L: 4460 D: 24518
Bench: 8644370
Resolves #604
2016-03-27 20:08:56 +01:00
hxim
56dd58e6f9
Remove Weights
...
Removed remaining redundant weights for pawn structure,
passed pawns, space and king safety by redistributing them
into individual evaluation terms.
STC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 15173 W: 2790 L: 2659 D: 9724
LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 43433 W: 5936 L: 5846 D: 31651
Bench: 7156237
Resolves #586
2016-02-07 21:00:24 +00:00
Lyudmil Antonov
89723339d9
Assorted English grammar changes
...
No functional change
Resolves #567
2016-01-16 21:34:29 +00:00
lucasart
aa31f7f096
Retire CenterBind
...
And compensate in the PSQT.
STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 27714 W: 5161 L: 5052 D: 17501
LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 36354 W: 5008 L: 4909 D: 26437
Bench: 8603285
Resolves #556
2016-01-03 17:33:36 +00:00
Alain SAVARD
1de97337c2
Fine tuning of unsupported pawn penalty
...
Adjust the unsupported pawn penalty when the pawn is supporting 2 pawns
(for example g7 in f6-g7-h6)
Passed STC
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 23833 W: 4384 L: 4158 D: 15291
Passed LTC
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 42711 W: 5918 L: 5655 D: 31138
Bench: 8390233
Resolves #549
2016-01-03 14:15:29 +00:00
ppigazzini
d4af15f682
Update AUTHORS and copyright notice
...
No functional change
Resolves #555
2016-01-02 09:43:51 +00:00
Marco Costalba
9742fb10fd
Update Copyright year
...
No functional change.
Resolves #554
2016-01-01 10:17:36 +00:00
Alain SAVARD
6a79d5d10e
Correct Pawn Trace Score + Code Clean up
...
No functional change
Resolves #542
2015-12-30 11:30:28 +00:00
Marco Costalba
52eac1e535
Simplify outpost code
...
Also inline defintions of SpaceMask and CenterBindMask.
Verified from assembly that compiler computes the values
at compile time, so it is also theoretical faster.
While there factor out scale factor evaluation.
No functional change.
2015-12-05 11:16:19 +01:00
Stefan Geschwentner
cccf3c815c
Bonus for reachable outpost
...
Give a bonus for outpost squares which in reach of a bishop or knight.
STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 22725 W: 4570 L: 4339 D: 13816
LTC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 15019 W: 2333 L: 2157 D: 10529
Bench: 8503181
Resolves #495
2015-11-14 06:31:45 -08:00
Alain SAVARD
55758344d3
Simplify threats
...
Using less parameters and code to compute Threats
Includes also a few spacing edits.
Run as a simplification.
Passed STC 10+0.1
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 18879 W: 3725 L: 3600 D: 11554
Passed LTC 60+0.4
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 74116 W: 11001 L: 10958 D: 52157
bench: 8004751
2015-10-24 10:08:26 +02:00
Stéphane Nicolet
7ea5659c5f
Asymmetry bonus for the attacking side
...
Use asymmetry in the position (king separation, pawn structure) to
compute an "initiative bonus" for the attacking side.
Passed STC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 14563 W: 2826 L: 2636 D: 9101
And LTC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 14363 W: 2317 L: 2141 D: 9905
Bench: 8116244
Resolves #462
2015-10-15 21:27:52 -07:00
Marco Costalba
e6310b3469
Rename Position::list
...
Use Position::square and Position::squares instead.
This allow us to remove king_square(), simplify
endgames and to have more naming uniformity.
Moreover, this is a prerequisite step in case
in the future we decide to retire piece lists
altoghter and use pop_lsb() to loop across
pieces and serialize the moves. In this way
we just need to change definition of Position::square
to something like:
template<PieceType Pt> inline
Square Position::square(Color c) const {
return lsb(byColorBB[c]);
}
No functional change.
2015-08-04 09:51:06 +02:00
lucasart
5ebdf2f8c8
Tune pawn shelter/storm
...
STC
LLR: 2.95 (-2.94,2.94) [0.00,4.00]
Total: 31679 W: 6183 L: 5912 D: 19584
LTC
LLR: 2.95 (-2.94,2.94) [0.00,4.00]
Total: 43550 W: 6885 L: 6602 D: 30063
Bench: 9219343
Resolves #360
2015-06-02 12:09:19 -07:00
Stéphane Nicolet
4502a1934f
Tweak backward pawns definition
...
Advanced pawns cannot be backward. Also lower the backward penalty in
endgame.
Passed STC:
LLR: 2.96 (-2.94,2.94) [-1.50,4.50]
Total: 18534 W: 3588 L: 3433 D: 11513
and LTC:
LLR: 2.96 (-2.94,2.94) [0.00,6.00]
Total: 21319 W: 3415 L: 3217 D: 14687
Bench: 7271152
Resolves #359
2015-06-02 12:07:02 -07:00
lucasart
8e95c39bfa
Simplify backward pawn scoring
...
STC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 52322 W: 10011 L: 9945 D: 32366
LTC
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 14143 W: 2334 L: 2203 D: 9606
Bench: 7976423
Resolves #354
2015-05-27 20:05:20 +01:00
Marco Costalba
6c42575208
Assorted code style of latest commits
...
No functional chnage.
2015-03-29 10:16:10 +02:00
Alain SAVARD
8463fa479e
PSV3_1
...
Small speed-up in pawn.cpp
Results for 10 tests for each version:
Base Test Diff
Mean 1435636 1445238 -9602
StDev 22576 23189 1848
p-value: 1
speedup: 0.007
No functional change
Resolves #295
2015-03-29 07:30:46 +08:00
lucasart
d477a0d611
connected should be bool, not Bitboard
...
There's no reason to define it as a Bitboard, so for consistency, use bool.
This is even a speedup on my machine: i7-3770k, using gcc 4.9.1 (linux):
stat test master diff
mean 2,341,338 2,327,998 13,134
stdev 15,765 14,717 5,405
speedup 0.56%
P(speedup>0) 100.0%
No functional change.
Resolves #298
2015-03-18 20:21:41 +00:00
Marco Costalba
be50952533
Sync with master
...
bench: 8285241
2015-03-07 10:56:01 +01:00
hxim
3017e8c604
Transform minKingPawnDistance into a local variable
...
minKingPawnDistance is used only as local variable in one place so we don't need it to be part of "Pawns::Entry" structure.
No functional change.
Resolves #277
2015-03-07 09:03:19 +00:00
Joona Kiiski
856a5f3aaa
Revert C++11 merge
...
Restore the state of repo back to commit 'Simplify pawn code a bit' (1e6d21dbb6 )
No functional change
2015-03-07 07:38:22 +00:00
Marco Costalba
0da7295795
Sync with master
...
bench: 8285241
2015-02-28 20:22:28 +01:00
Stéphane Nicolet
1e6d21dbb6
Simplify pawn code a bit
...
Simplify a bit the number of bitwise operators used to calculate the
pawn evaluation in pawns.cpp
No functional change.
Resolves #269
2015-03-01 01:01:37 +08:00
Marco Costalba
2dbb1adf2a
Sync with master
...
bench: 8069601
2015-02-26 20:50:39 +01:00
Marco Costalba
8a2c4134a6
Normalize twice supported pawns
...
Align codying style to current conventions and move
formula for twice supported pawns to Pawns::init()
where it should be.
No functional change.
2015-02-27 01:56:16 +08:00
Alain SAVARD
fce799294c
Apex Pawns
...
Pawns which are supported already have a bonus. Apex are pawns which are
supported twice.
This patch gives an additional 50% bonus for them.
STC
LLR: 2.96 (-2.94,2.94) [-1.50,4.50]
Total: 6549 W: 1333 L: 1209 D: 4007
LTC
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 18002 W: 3037 L: 2850 D: 12115
Bench: 8069601
Resolves #267
2015-02-27 01:52:23 +08:00
Marco Costalba
153fb216a1
Small tweaks in pawns.cpp
...
No functional change.
2015-02-24 11:45:29 +01:00
snicolet
2f46592736
Mobile phalanxes
...
Try to create mobile phalanxes
STC:
LLR: 2.97 (-2.94,2.94) [-1.50,4.50]
Total: 52393 W: 10912 L: 10656 D: 30825
LTC:
LLR: 2.96 (-2.94,2.94) [0.00,6.00]
Total: 30398 W: 5315 L: 5063 D: 20020
Bench: 8253813
Resolves #261
2015-02-20 19:56:57 +00:00
Joona Kiiski
e118570038
Pawn Center Bind Bonus
...
Bonus for two pawns controlling the same central square
STC:
LLR: 3.14 (-2.94,2.94) [-1.50,4.50]
Total: 15974 W: 3291 L: 3133 D: 9550
LTC:
LLR: 3.24 (-2.94,2.94) [0.00,6.00]
Total: 10449 W: 1837 L: 1674 D: 6938
Idea from Lyudmil Tsvetkov.
Bench: 7699138
Resolves #248
2015-02-08 19:28:01 +00:00
NicklasPersson
ddccb5355c
Improved King Safety values
...
From an SPSA-session on king safety.
STC:
ELO: 3.21 +-2.1 (95%) LOS: 99.8%
Total: 40000 W: 8181 L: 7812 D: 24007
LTC:
LLR: 2.95 (-2.94,2.94) [0.00,4.00]
Total: 47765 W: 8091 L: 7785 D: 31889
Bench: 8589262
Resolves #241
2015-02-03 04:00:52 +08:00
Marco Costalba
a7592e69d7
Fix a MSVC warning
...
warning C4805: '|' : unsafe mix of type 'Bitboard' and type 'bool' in operation
No functional change.
2015-01-31 10:19:00 +01:00
Alain SAVARD
8aa8608c2a
Simplify backward pawn definition
...
Make use of 'lever' attribute
No functional change
Resolves #234
2015-01-28 21:29:04 +00:00
NicklasPersson
7837fb2aca
King safety tuning with values obtained by SPSA.
...
Part I:
LTC:
LLR: 2.96 (-2.94,2.94) [0.00,4.00]
Total: 11529 W: 2075 L: 1882 D: 7572
Part II:
LTC:
ELO: 2.07 +-2.1 (95%) LOS: 97.3%
Total: 34859 W: 5967 L: 5759 D: 23133
Bench: 7374604
Resolves #228
2015-01-28 21:05:21 +00:00
Marco Costalba
42b48b08e8
Update copyright year
...
No functional change.
2015-01-10 11:46:28 +01:00
Marco Costalba
3fda064a66
Retire one implementation of pop_lsb()
...
We have two implementations that are equivalent,
so retire one.
Plus usual tidy up of comments and code reshuffle.
No functional change.
2015-01-03 22:16:30 +01:00
Marco Costalba
91cc82aa25
Let material probing to access per-thread table
...
It is up to material (and pawn) table look up
code to know where the per-thread tables are,
so change API to reflect this.
Also some comment fixing while there
No functional change.
2015-01-02 21:31:02 +01:00
Stefan Geschwentner
25b492ab58
Big King Safety tuning
...
All king safety related terms (shelterweakness, stormdanger,
attackunits, ..) was tuned together. Additionally for attack units a
finer granularity (factor 4) is used.
STC
ELO: 9.22 +-3.1 (95%) LOS: 100.0%
Total: 19514 W: 4340 L: 3822 D: 11352
LTC
LLR: 2.96 (-2.94,2.94) [0.00,6.00]
Total: 6399 W: 1192 L: 1056 D: 4151
Bench: 8224782
Resolves #184
2015-01-03 03:33:02 +08:00
Marco Costalba
6933f05f4b
Use score and value consistently
...
And other assorted small fixing, code style
tweaks and reshuffles in evaluate.cpp
No functional change.
2014-12-28 19:06:56 +01:00
Marco Costalba
296534f234
Prefer names to numbers in storm code
...
Also replaces some tabs with spaces and
change StormDanger order to reflect
ShelterWeakness one.
No functional change.
2014-12-22 08:33:07 +01:00
Stefan Geschwentner
3231038262
Big King Safety tuning
...
ShelterWeakness and Stormdanger array are now indexed additionally by
file pair (a/h,b/g,c/f,d/e). The special case of king blocking a pawn
is incorporated in the StormDanger array. Finally the 93 parameters
are tuned by SPSA on LTC.
STC
ELO: 3.46 +-2.2 (95%) LOS: 99.9%
Total: 40000 W: 8275 L: 7877 D: 23848
LTC
LLR: 2.96 (-2.94,2.94) [0.00,6.00]
Total: 10311 W: 1876 L: 1721 D: 6714
Bench: 9498821
Resolves #163
2014-12-21 01:53:44 +08:00
joergoster
f6d220ab14
Halve StormDanger bonus for blocked pawn on A/H file
...
STC
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 3410 W: 758 L: 641 D: 2011
LTC
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 33225 W: 5708 L: 5445 D: 22072
Bench: 8465811
Resolves #153
2014-12-11 13:08:29 -05:00