trivial question about double pawns

Discussion of chess software programming and technical issues.

Moderator: Ras

giggetto71
Posts: 3
Joined: Tue Aug 31, 2021 8:33 am
Full name: Pierluigi Meloni

trivial question about double pawns

Post by giggetto71 »

Hi,
I have a super trivial question about how to count doubled pawns. In this position [fen]8/p5k1/1pp1pp1p/2p2P1p/3P4/P1P5/P1P2PKP/8 w - - 0 1[/fen]
What is the number I should consider for white doubled pawns? Is it 3 or 6? I would be inclined to consider 6 but I just wanted to be sure.
thanks!
JVMerlino
Posts: 1404
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: trivial question about double pawns

Post by JVMerlino »

Myrddin would evaluate six of the pawns as doubled.
Joost Buijs
Posts: 1646
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: trivial question about double pawns

Post by Joost Buijs »

It doesn't matter whether you count 3 or 6 doubled pawns, it solely depends upon the penalty you give for a doubled pawn.
ernesto
Posts: 24
Joined: Fri Oct 20, 2017 5:54 pm

Re: trivial question about double pawns

Post by ernesto »

In Nawito, the isolated and doubled pawn they are penalized twice if they can be stopped by a single pawn, like the doubled pawn on H of your picture
BeyondCritics
Posts: 414
Joined: Sat May 05, 2012 2:48 pm
Full name: Oliver Roese

Re: trivial question about double pawns

Post by BeyondCritics »

giggetto71 wrote: Mon Oct 11, 2021 10:43 am Hi,
I have a super trivial question about how to count doubled pawns. In this position [fen]8/p5k1/1pp1pp1p/2p2P1p/3P4/P1P5/P1P2PKP/8 w - - 0 1[/fen]
What is the number I should consider for white doubled pawns? Is it 3 or 6? I would be inclined to consider 6 but I just wanted to be sure.
thanks!
A doubled pawn is some kind of aggregate, consisting of exactly 2 pawns on the same file.
Why do I know that? Because of my experience with chess literature. Generally there is nobody who has the authority to define chess concepts. Most chess book authors don't bother to define even the simplest one. Hence every once in a while, some new chess programmer posts a question here about some human chess concept, for which he could not find a clean definition and usually he is helped here...
ernesto
Posts: 24
Joined: Fri Oct 20, 2017 5:54 pm

Re: trivial question about double pawns

Post by ernesto »

I take as doubled the pawn that has another of the same side behind. So it would be 3 in your case. I do not like to consider the 2 in the same column as doubled, since if 1 is removed the other will stop being doubled
User avatar
Bo Persson
Posts: 261
Joined: Sat Mar 11, 2006 8:31 am
Location: Malmö, Sweden
Full name: Bo Persson

Re: trivial question about double pawns

Post by Bo Persson »

ernesto wrote: Tue Oct 12, 2021 10:36 pm I take as doubled the pawn that has another of the same side behind. So it would be 3 in your case. I do not like to consider the 2 in the same column as doubled, since if 1 is removed the other will stop being doubled
But you get the same result if you give the first pawn a 20 point penalty, or penalize them both with 10 points each.
ernesto
Posts: 24
Joined: Fri Oct 20, 2017 5:54 pm

Re: trivial question about double pawns

Post by ernesto »

Bo Persson wrote: Wed Oct 13, 2021 9:28 am
ernesto wrote: Tue Oct 12, 2021 10:36 pm I take as doubled the pawn that has another of the same side behind. So it would be 3 in your case. I do not like to consider the 2 in the same column as doubled, since if 1 is removed the other will stop being doubled
But you get the same result if you give the first pawn a 20 point penalty, or penalize them both with 10 points each.

Yes, it's true. I think it is more of a philosophical question, since in practice any of the 2 is valid
JVMerlino
Posts: 1404
Joined: Wed Mar 08, 2006 10:15 pm
Location: San Francisco, California

Re: trivial question about double pawns

Post by JVMerlino »

Myrddin gives the doubled pawn penalty to both pawns. If there is an opposing pawn blocking the doubled pawns, then both the doubled pawns get the blocked penalty as well.

Code: Select all

#define DOUBLED_PAWN_MG		2	// penalty for doubled/tripled pawns
#define DOUBLED_PAWN_EG		19
#define BLOCKED_DOT_PAWN_MG 	3   	// penalty for doubled/tripled pawns that are also blocked
#define BLOCKED_DOT_PAWN_EG 	0
Ferdy
Posts: 4851
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: trivial question about double pawns

Post by Ferdy »

giggetto71 wrote: Mon Oct 11, 2021 10:43 am Hi,
I have a super trivial question about how to count doubled pawns. In this position [fen]8/p5k1/1pp1pp1p/2p2P1p/3P4/P1P5/P1P2PKP/8 w - - 0 1[/fen]
What is the number I should consider for white doubled pawns? Is it 3 or 6? I would be inclined to consider 6 but I just wanted to be sure.
thanks!
I consider a2, c2 and f2 as doubled pawns for white.
Its penalty is higher at lower ranks.