Thanks Jarrod.Haikouichthys wrote:It varies. The approximate value of a phalanx as a percentage of the value of a standard connected pawn (so 100% would mean the phalanx bonus was 0):Lyudmil Tsvetkov wrote:So, not to calculate extensively, could you please tell me what fraction of the main connected bonus the phalanx bonus represents?Haikouichthys wrote:Duo, yeah. If C[r] is the base bonus for a connected pawn on rank r (before the MG bonus is multiplied by 3 / 2), a phalanx has an extra bonus on top of that of (C[r+1] - C[r])/2. So, C[r] for a rank 4 pawn is 10, C[r] for a rank 5 pawn is 57, so a rank 4 phalanx pawn has the base value 10 + (57 - 10) / 2 = 10 + 47 / 2 = 10 + 23 (integer division truncates the fractional component) = 33. The MG bonus is multiplied by 3 then divided by 2, so the MG bonus is 49. As such, the full bonus for a rank 4 phalanx pawn is (49, 33). I got to (29, 23) from that by subtracting the (20, 10) unsupported penalty.Lyudmil Tsvetkov wrote:Thanks Jarrod.Haikouichthys wrote:SF does not score d4, f4 and g4 the same way. f4 and g4 have an 'unsupported' penalty and a 'phalanx' bonus. Adding all the bonuses and penalties up, we have:Lyudmil Tsvetkov wrote:Well, a chain pawn is any pawn that is part of a chain, but here we will mainly refer to chain pawns as to defended pawns, as the base/undefended pawn of the chain is much less significant and actually only due a penalty.
Duos are of course, according to Kmoch's definition, 2 own pawns next to each other on the same rank on adjacent files. A duo pawn is one of those pawns.
What concerns connected pawns, here I will refer mainly to SF's definition of connected pawns, however imprecise it might be, that considers both chain/defended pawns and duos as connected pawns, giving the same bonus.
[d]6k1/8/8/8/3P1PP1/2P5/8/6K1 w - - 0 1
above, d4 is a chain/defended pawn
f4 and g4 are a duo as a tandem, and a duo pawn each of them
SF scores both d4, and f4 and g4 in exactly the same way, as connected pawns. In practice, this works fine, as when the pawns move forward, they support each other by alternating more and less advanced duos and chain pawns, so a continuity is ensured.
However, scientifically, there is a distinction in terms of the size of the bonus between the d4 chain/defended pawn and the duo pawns.
The chain/defended pawn on the same square is due around 1/3 higher bonus than the respective duo pawn, so basically the primary concept from where connected pawns derive is the defended/chain pawn, although Mr. Kmoch might think otherwise.
(Middlegame, endgame)
d4 : (15, 10)
f4, g4: (29, 23)
So SF actually scores the duo pawns a lot higher than the chain/defended pawn.
Unsupported is a different thing - c3 is also unsupported.
Could you please remind me what was the precise bonus for phalanx pawns?
Phalanx meaning duo, right?
Rank 2: 167%.
Rank 3: 87%.
Rank 4: 330%.
Rank 5: 116%.
Rank 6: 140%.
Rank 7: 145%.
Man, you can never implement long chains with that - everything will depend on tuning.
My advice for long chains - try to implement some kind of separate bonus for inner chain pawns, or maybe specifically tune the above rank values in the case of inner chain pawns.
Now everything is clear, it was actually clear much much time ago, but this only underscores it - when you have suboptimally tuned values for a specific term, and even badly tuned values in some cases, you could only rely on sheer luck if you want to implement a reasonable related term. Sheer luck, nothing else.
Long chains become gloomier and gloomier for SF, maybe some engines will be more successful.
And I wondered so much why reasonable piece values do not work...