It does not help that Hamsters thinks that both c2 and e5 are backward pawns, so white gets no penalty in fact.
Even tuning the passer bonus up does not help much, and I could never find a good formula for outside passers or even pawn races (I think most implementations are approximated anyway, but can lead to blunders sometimes even if they work well in the majority of cases).
So... for now it's one more entry in the list of unsolved positions...
bob wrote:I ran this with crafty... it finds this move at depth=11, .1 seconds, on my core2 duo laptop. by depth=18, .5 seconds, the score is in black's favor by 1/2 pawn.... by depth 21, it is 1.5 pawns in blacks favor, taking about 2 seconds...
Hamsters misses but it's all in the evaluation... I followed Crafty's PV up to the last pawn capture and king move:
[d]8/6p1/8/4p2k/3pP3/3P2K1/2P5/8 b - - 1 1
and here Crafty sees an advantage for black while Hamsters thinks this is even slightly better for white!
How do you score the passed pawn g7 in this case?
It is winning. black advances the pawn and white has to take the time to capture it. Black abandons it at the right point and penetrates to eat the white pawn chain.
The method you describe is usually how to win with a passed pawn, and would of course also work here. However in this case an even faster and easier winning method is to advance the g pawn, supported by your king, until White's king would be stalemated (if he didn't have a pawn move). Then White is forced to advance his pawn, Black captures it and advances this second pawn to promote on c1 with mate.
bob wrote:I'm not sure why your program would like white better. Black has a passed pawn. White has a weak pawn that can't move (backward). Black's king is in position to support its passer. Etc...
You are right... evaluation of this part sucks, but I've never been good in scoring passed pawns.
The tables below do not even award a bonus for a passer on its home square, and the max bonus for a pawn in 7th rank is 40 to 65... maybe a bit too conservative eh?
(1) passed pawn scoring. A passer on its home square is not very strong, but it should get some sort of bonus to avoid overlooking how important it might become.
(2) outside passed pawn. In Crafty, this is a bonus that is independent of the square the pawn stands on. It is a nearly winning advantage in most positions, and that's what is making Crafty find this so quickly...
these two terms are independently calculated and awarded in Crafty. And both are "scaled" upward as material comes off the board as well...
bob wrote:I ran this with crafty... it finds this move at depth=11, .1 seconds, on my core2 duo laptop. by depth=18, .5 seconds, the score is in black's favor by 1/2 pawn.... by depth 21, it is 1.5 pawns in blacks favor, taking about 2 seconds...
Hamsters misses but it's all in the evaluation... I followed Crafty's PV up to the last pawn capture and king move:
[d]8/6p1/8/4p2k/3pP3/3P2K1/2P5/8 b - - 1 1
and here Crafty sees an advantage for black while Hamsters thinks this is even slightly better for white!
How do you score the passed pawn g7 in this case?
It is winning. black advances the pawn and white has to take the time to capture it. Black abandons it at the right point and penetrates to eat the white pawn chain.
The method you describe is usually how to win with a passed pawn, and would of course also work here. However in this case an even faster and easier winning method is to advance the g pawn, supported by your king, until White's king would be stalemated (if he didn't have a pawn move). Then White is forced to advance his pawn, Black captures it and advances this second pawn to promote on c1 with mate.
That won't quite work as described. If white is stalemated except for the pawn push, he pushes the pawn and now black can't take it or this is a repeat where now white has to push the other pawn, and if that one is taken, the game is drawn...
but here, g5 wins as easily as the king move, just to me the king move follows a known strategy for winning these, where if you remove the other pawns, g5 would turn this into an instant draw.
an outside passer is far safer to reward than things like a rook on the 7th, yet everyone does the latter, but not the former. outside passed pawns are a very common theme in endings. distant majorities are more difficult, but also need to be recognized for the very same reason. It is stupid to find a way to win a pawn but leave your opponent with a distant passer or distant candidate passer, which loses the game once the program searches deep enough to realize what it has done.
bob wrote:an outside passer is far safer to reward than things like a rook on the 7th, yet everyone does the latter, but not the former. outside passed pawns are a very common theme in endings. distant majorities are more difficult, but also need to be recognized for the very same reason. It is stupid to find a way to win a pawn but leave your opponent with a distant passer or distant candidate passer, which loses the game once the program searches deep enough to realize what it has done.
Are you talking about players or programs?
Somtimes you need a rook on the seventh to get the latter, or a quick mate!
bob wrote:I ran this with crafty... it finds this move at depth=11, .1 seconds, on my core2 duo laptop. by depth=18, .5 seconds, the score is in black's favor by 1/2 pawn.... by depth 21, it is 1.5 pawns in blacks favor, taking about 2 seconds...
Hamsters misses but it's all in the evaluation... I followed Crafty's PV up to the last pawn capture and king move:
[d]8/6p1/8/4p2k/3pP3/3P2K1/2P5/8 b - - 1 1
and here Crafty sees an advantage for black while Hamsters thinks this is even slightly better for white!
How do you score the passed pawn g7 in this case?
It is winning. black advances the pawn and white has to take the time to capture it. Black abandons it at the right point and penetrates to eat the white pawn chain.
The method you describe is usually how to win with a passed pawn, and would of course also work here. However in this case an even faster and easier winning method is to advance the g pawn, supported by your king, until White's king would be stalemated (if he didn't have a pawn move). Then White is forced to advance his pawn, Black captures it and advances this second pawn to promote on c1 with mate.
That won't quite work as described. If white is stalemated except for the pawn push, he pushes the pawn and now black can't take it or this is a repeat where now white has to push the other pawn, and if that one is taken, the game is drawn...
but here, g5 wins as easily as the king move, just to me the king move follows a known strategy for winning these, where if you remove the other pawns, g5 would turn this into an instant draw.
It works exactly as I described. After Black captures the first pawn (c-pawn) now White can push the d-pawn so it is still not stalemate. Black does not capture after White pushes the d-pawn ... he just runs the c-pawn down for mate.
bob wrote:I ran this with crafty... it finds this move at depth=11, .1 seconds, on my core2 duo laptop. by depth=18, .5 seconds, the score is in black's favor by 1/2 pawn.... by depth 21, it is 1.5 pawns in blacks favor, taking about 2 seconds...
Hamsters misses but it's all in the evaluation... I followed Crafty's PV up to the last pawn capture and king move:
[d]8/6p1/8/4p2k/3pP3/3P2K1/2P5/8 b - - 1 1
and here Crafty sees an advantage for black while Hamsters thinks this is even slightly better for white!
How do you score the passed pawn g7 in this case?
It is winning. black advances the pawn and white has to take the time to capture it. Black abandons it at the right point and penetrates to eat the white pawn chain.
The method you describe is usually how to win with a passed pawn, and would of course also work here. However in this case an even faster and easier winning method is to advance the g pawn, supported by your king, until White's king would be stalemated (if he didn't have a pawn move). Then White is forced to advance his pawn, Black captures it and advances this second pawn to promote on c1 with mate.
That won't quite work as described. If white is stalemated except for the pawn push, he pushes the pawn and now black can't take it or this is a repeat where now white has to push the other pawn, and if that one is taken, the game is drawn...
but here, g5 wins as easily as the king move, just to me the king move follows a known strategy for winning these, where if you remove the other pawns, g5 would turn this into an instant draw.
It works exactly as I described. After Black captures the first pawn (c-pawn) now White can push the d-pawn so it is still not stalemate. Black does not capture after White pushes the d-pawn ... he just runs the c-pawn down for mate.