Don Dailey you need to teach underpromotion to Komodo!

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by MM »

rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#

Hello mr Vida, sorry if i reply but the underpromotion to rook is the right solution. Of course black can avoid to manouevre keep on checking but in that way this position would be lost anyway driving in a easy endgame Rook vs Queen.

In other words, black tries to give always check to white king speculating that white king cannot go the the ''c'' file cause Rook d1! and draw but after all the checkes, white king goes to c2 and the only move for black is Rook d4 (idea c8= Q, Rook d4 +, Queen x d4 stalemate!)

Of course black can change this variation but in this study black is lost anyway.

Best Regards and wishes for your engine
MM
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by zullil »

[d]8/2P5/8/8/8/3r4/2K5/k7 b - - 0 1

This position is lost for Black, but the "best" move here (i.e., the one that lets Black last longest is Rf3, not Rd4.

After Rd4, the position is

[d] 8/2P5/8/8/3r4/8/2K5/k7 w - - 0 1

and White mates in seven, starting with c8(R).

In this position

[d]8/2P5/8/3r4/1K6/8/8/k7 b - - 0 1

the best move is Kb2, not Rd4.

Unless the tablebases are wrong, the "famous Saavedra ending study" must be in error.
User avatar
rvida
Posts: 481
Joined: Thu Apr 16, 2009 12:00 pm
Location: Slovakia, EU

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by rvida »

MM wrote:
rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#

Hello mr Vida, sorry if i reply but the underpromotion to rook is the right solution. Of course black can avoid to manouevre keep on checking but in that way this position would be lost anyway driving in a easy endgame Rook vs Queen.

In other words, black tries to give always check to white king speculating that white king cannot go the the ''c'' file cause Rook d1! and draw but after all the checkes, white king goes to c2 and the only move for black is Rook d4 (idea c8= Q, Rook d4 +, Queen x d4 stalemate!)

Of course black can change this variation but in this study black is lost anyway.

Best Regards and wishes for your engine
Yes, I understand, but most engines discard black's stalemate plan because it leads to an even faster mate if white underpromotes. That is why c8=R does not show up in PV.

Komodo is an exception because it thinks black can force a draw.
pichy
Posts: 2564
Joined: Thu Mar 09, 2006 3:04 am

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by pichy »

rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I played it out versus Komodo, letting komodo search up to depth 32 in each move and look at the result:




[Event " Rook vs Pawn-Ending"]
[Site "?"]
[Date "2012.03.29"]
[Round "?"]
[White "Pichy"]
[Black "Komodo3-64"]
[Result "1-0"]
[BlackElo "3000"]
[WhiteElo "2200"]
[SetUp "1"]
[FEN "8/8/1KP5/3r4/8/8/8/k7 w - - 0 1"]
[WhiteType "human"]
[BlackType "program"]

1. c7 Rd6+ 2. Kb5 Rd5+ 3. Kb4 Rd4+ 4. Kb3 Rd3+ 5. Kc2 Rd4 6. c8=R Rd2+ 7.
Kxd2 Kb2 8. Rc3 Kb1 9. Rb3+ Ka1 10. Kc3 Ka2 {Black resigns} 11. Kc2 Ka1
{Black resigns} 12. Ra3# *


And you can also see the Saavedra study lesson on Youtube.com

Last edited by pichy on Fri Mar 30, 2012 11:17 pm, edited 4 times in total.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by zullil »

pichy wrote:
rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I played it out versus Komodo. letting komodo search up to depth 32 in each move and look at the result



[Event " Rook vs Pawn-Ending"]
[Site "?"]
[Date "2012.03.29"]
[Round "?"]
[White "Pichy"]
[Black "Komodo3-64"]
[Result "1-0"]
[BlackElo "3000"]
[WhiteElo "2200"]
[SetUp "1"]
[FEN "8/8/1KP5/3r4/8/8/8/k7 w - - 0 1"]
[WhiteType "human"]
[BlackType "program"]

1. c7 Rd6+ 2. Kb5 Rd5+ 3. Kb4 Rd4+ 4. Kb3 Rd3+ 5. Kc2 Rd4 6. c8=R Rd2+ 7.
Kxd2 Kb2 8. Rc3 Kb1 9. Rb3+ Ka1 10. Kc3 Ka2 {Black resigns} 11. Kc2 Ka1
{Black resigns} 12. Ra3# *
Black's third move is not best. Nor is Black's fifth move. Please consult table bases.
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by MM »

rvida wrote:
MM wrote:
rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#

Hello mr Vida, sorry if i reply but the underpromotion to rook is the right solution. Of course black can avoid to manouevre keep on checking but in that way this position would be lost anyway driving in a easy endgame Rook vs Queen.

In other words, black tries to give always check to white king speculating that white king cannot go the the ''c'' file cause Rook d1! and draw but after all the checkes, white king goes to c2 and the only move for black is Rook d4 (idea c8= Q, Rook d4 +, Queen x d4 stalemate!)

Of course black can change this variation but in this study black is lost anyway.

Best Regards and wishes for your engine
Yes, I understand, but most engines discard black's stalemate plan because it leads to an even faster mate if white underpromotes. That is why c8=R does not show up in PV.

Komodo is an exception because it thinks black can force a draw.
You are right, it was more or less what i tried to mean but you were more clear than me.
As regards Komodo, sadly i think their programmers underestimate too much the underpromotion (in general) although it happens not so rarely even in real games (especially to knight).

Best Regards
MM
pichy
Posts: 2564
Joined: Thu Mar 09, 2006 3:04 am

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by pichy »

rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#
I don't think that the tablebase will show that the first move for Black is Rd3? since the correct move is Rd6+ and continue checking etc... watch the video on youtube :roll:
User avatar
rvida
Posts: 481
Joined: Thu Apr 16, 2009 12:00 pm
Location: Slovakia, EU

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by rvida »

pichy wrote:I don't think that the tablebase will show that the first move for Black is Rd3? since the correct move is Rd6+ and continue checking etc... watch the video on youtube :roll:

Code: Select all

Rd6+    = -M25
Rd3     = -M25
Kb2     = -M25
Rd2     = -M23
Ka2     = -M23
Kb1     = -M23
Rd1     = -M22
Rd7     = -M20
Rf5     = -M20
Rd4     = -M20
Rh5     = -M19
Rg5     = -M18
Re5     = -M12
Rc5     = -M7
Rb5+    = -M7
Ra5     = -M7
Rd8     = -M6
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by MM »

pichy wrote:
rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#
I don't think that the tablebase will show that the first move for Black is Rd3? since the correct move is Rd6+ and continue checking etc... watch the video on youtube :roll:
Richard Vida is right....the continuos checking leads to a quick checkmate; for an engines it's better to go in a slow lost endgame queen against rook.

Best Regards
MM
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Don Dailey you need to teach underpromotion to Komodo!

Post by zullil »

MM wrote:
pichy wrote:
rvida wrote:
pichy wrote:I also tested Critter 1.4, Houdini, Spark, Spike 1.4 and none of those underpromote to Rook in the given position of the Saavedra study( Rook versus pawn). I believe that the main reason is that the author of those programs thought that the Queen covers all the moves that the rook covers plus the diagonals, but for this case promoting to a Queen only get the engine to draw (stalemate) instead of winning :shock:

[d]8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
Are you sure that underpromotion is the right move? The line from tablebase shows a queen promotion.

Code: Select all

position fen 8/8/1KP5/3r4/8/8/8/k7 w - - 0 1
go
1/ 1  00:00         0       0   +M26 c7 Rd3 c8=Q Kb2 Qc4 Rd8 Qe4 Kc1 Qf4+ Kd1 Kb5 Ke2 Qh2+ Kd1 Qh5+ Kc1 Kc4 Rd2 Qg6 Kb2 Qf5 Rc2+ Kd3 Rc3+ Kd2 Rb3 Qf6+ Kb1 Qe5 Rb6 Qe4+ Ka2 Qc4+ Kb1 Kc3 Rb2 Qa4 Rb8 Qd1+ Ka2 Qd5+ Ka1 Qh1+ Ka2 Qh2+ Kb1 Qxb8+ Kc1 Qb2+ Kd1 Qd2#
I don't think that the tablebase will show that the first move for Black is Rd3? since the correct move is Rd6+ and continue checking etc... watch the video on youtube :roll:
Richard Vida is right....the continuos checking leads to a quick checkmate; for an engines it's better to go in a slow lost endgame queen against rook.

Best Regards
Continuous checking leads to a quick checkmate only if Black makes several inferior moves. Like many studies, this one needs to be revisited now that tablebases exist.