Page 1 of 2

What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 4:23 pm
by Steve Maughan
Maverick seems to be quite weak at endgames when compared to engines of a similar rating. So I'm going to spend some time giving it Rook and Pawn endgame knowledge.

I'm thinking of implementing Lucena and Philidor position knowledge. Are there any other R & P special positions?

What do people consider the most important heuristics for Rook and Pawn endgames?

Thanks - Steve

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 4:47 pm
by jdart
You will get a lot of mileage over just having a good king position table: it is very important to advance the king in the endgame.

I have bonuses for placing a rook behind a passed pawn or on the 7th rank adjacent to a passed pawn. And I have a penalty for "side-protecting" a pawn with a rook (rook protects pawn but on the file, not the rank). But these are fairly minor.

Knowing the Lucena/Philidor positions might help but tablebases will detect these.

--Jon

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 4:57 pm
by Bloodbane
Hakkapeliitta has zero endgame knowledge (except for detection of draws by insufficient material and king PST centralization bonuses) and it relies completely on Syzygy tablebases for playing a good endgame. I don't see why I should waste my time coding specific endgames into my engine when I can just use tablebases which cover far more cases with less bugs.

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:26 pm
by Henk
Do you already have unstoppable pawn detection ?

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:31 pm
by brtzsnr
jdart wrote: I have bonuses for placing a rook behind a passed pawn or on the 7th rank adjacent to a passed pawn. And I have a penalty for "side-protecting" a pawn with a rook (rook protects pawn but on the file, not the rank). But these are fairly minor.
How much do these bonuses and penalties help? Shouldn't search take care of them especially in endgame where hash-table is very useful (like >90% hit rate)?

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:32 pm
by Steve Maughan
Henk,

I have unstoppable pawn detection only for king and pawn endings.

For rook and pawn it isn't obvious which pawn are unstoppable.

- Steve

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:34 pm
by bob
Steve Maughan wrote:Maverick seems to be quite weak at endgames when compared to engines of a similar rating. So I'm going to spend some time giving it Rook and Pawn endgame knowledge.

I'm thinking of implementing Lucena and Philidor position knowledge. Are there any other R & P special positions?

What do people consider the most important heuristics for Rook and Pawn endgames?

Thanks - Steve
Main point is to know that the farther the losing king is from the queening square, the better for the winning side. That by itself, with a decent search, will play almost all KRPKR endings nearly perfectly, drawing when it is on the weaker side, winning when on the stronger side, when the game is not a forced draw anyway.

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:47 pm
by Steve Maughan
Bob,
bob wrote:Main point is to know that the farther the losing king is from the queening square, the better for the winning side. That by itself, with a decent search, will play almost all KRPKR endings nearly perfectly, drawing when it is on the weaker side, winning when on the stronger side, when the game is not a forced draw anyway.
Awesome!

I'll start by implementing KR vs. KRP. Then I'll try to generalize to more pawns.

Thanks - Steve

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 5:57 pm
by BBauer
And I have a penalty for "side-protecting" a pawn with a rook (rook protects pawn but on the file, not the rank). But these are fairly minor.
This may be plain wrong. Look at Aljechin-Capablanca position which was analyzsed by Awerbach.
BTW, grandmasters do not play the rook endgame correct. Engines are usually worse. Which engine can cope with this position?
Kind regards
Bernhard
[D]5k2/5P1R/8/1p6/8/2K5/1PP3rp/8 w - - 0 1

Re: What's Essential Rook & Pawn Endgame Knowledge?

Posted: Fri Apr 10, 2015 7:57 pm
by Maarten Claessens
BBauer wrote:
And I have a penalty for "side-protecting" a pawn with a rook (rook protects pawn but on the file, not the rank). But these are fairly minor.
This may be plain wrong. Look at Aljechin-Capablanca position which was analyzsed by Awerbach.
BTW, grandmasters do not play the rook endgame correct. Engines are usually worse. Which engine can cope with this position?
Kind regards
Bernhard
[D]5k2/5P1R/8/1p6/8/2K5/1PP3rp/8 w - - 0 1
WaDuuttie calculates:

Code: Select all

  41	38:47	4,181,450,530	1,796,719	+2.85	b2b3 f8e7 c3b4 e7f8 b4b5 g2c2 b3b4 f8e7 b5b6 e7f8 b4b5 c2b2 b6c5 b2c2 c5b4 c2b2 b4c4 b2c2 c4b3 c2f2 b3c3 f8e7 c3b4 f2f7 h7h2 e7d8 b4a5 d8c8 a5a6 f7f8 a6a7 f8f7 a7a8 f7f6 h2h8 c8c7 a8a7 c7d6 h8h7 f6f5 h7h6 d6d7 b5b6 f5a5 a7b8 a5c5
BTW I could not find a game between Alekhine and Capablanca with this position.