Basic endgames

Discussion of chess software programming and technical issues.

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Henk
Posts: 5799
Joined: Mon May 27, 2013 8:31 am

Re: Basic endgames

Post by Henk » Wed Sep 18, 2019 1:13 pm

Henk wrote:
Wed Sep 18, 2019 10:59 am
A more difficult one.
Whites king did not move.
Bugs, bugs, bugs.

[d] 1Q6/8/K7/8/8/8/3pk3/8 w -

Code: Select all

Depth  Value   Time           Nodes
   1     908            1             26    b8b2 
   2     908            1            104    b8b2  e2d1 
   3     908            2            408    b8b2  e2d1  b2a1 
   4     908            7           1104    b8b2  e2d1  b2a1  d1c2 
   5     908           20           5311    b8b2  e2d1  b2a1  d1c2  a1a2 
   6     908           51          15048    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1 
   7     908          114          36762    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a1 
   8     908          244          78885    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1 
   9     908          594         203198    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3 
  10     908         1260         433940    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1a1 
  11     908         2779         956879    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1a1  b3c2 
  12     908         5709        1953516    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1c1  b3c3  c1d1 
  13     908        12400        4209141    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1c1  b3c3  c1d1  c3b2 
  14     908        25065        8512702    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1c1  b3c3  c1d1  c3b2  d1e1 
  15     908        52350       17663146    b8b2  e2d1  b2a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1c1  b3c3  c1d1  c3b2  d1e1  b2c3 
  16     908       146226       42176824    b8b2  e2e1  b2c3  e1d1  c3a1  d1c2  a1a2  c2c1  a2a3  c1b1  a3b3  b1c1  b3e3  c1d1  e3g1  d1c2 
  17     908       255977       78640911    b8b2  e2e1  b2c3  e1e2  c3c2  e2e1  c2e4  e1d1  e4b1  d1e2  b1a2  e2d1  a2a1  d1c2  a1a4  c2b1  a4b3 
Analysis stopped
Added distance from king to opponent passed pawn. At least king moves to pawn.

Code: Select all

  16     905       258510       40048505    b8h2  e2e1  h2g3  e1f1  g3d3  f1e1  d3e3  e1d1  a6b5  d1c2  e3e4  c2c1  e4f4  c1d1  b5c4  d1c1 

Henk
Posts: 5799
Joined: Mon May 27, 2013 8:31 am

Re: Basic endgames

Post by Henk » Wed Sep 18, 2019 1:28 pm

This should be a draw:

[d] 1Q6/8/K7/8/8/8/2pk4/8 w - -

Joost Buijs
Posts: 959
Joined: Thu Jul 16, 2009 8:47 am
Location: Almere, The Netherlands

Re: Basic endgames

Post by Joost Buijs » Wed Sep 18, 2019 3:01 pm

Henk wrote:
Wed Sep 18, 2019 1:28 pm
This should be a draw:

[d] 1Q6/8/K7/8/8/8/2pk4/8 w - -
Yes, this is a draw, but without table-bases it is not so easy for an engine to see. The queen can keep on giving checks from many different locations, so it will take quite some time before repetition detection kicks in.

Henk
Posts: 5799
Joined: Mon May 27, 2013 8:31 am

Re: Basic endgames

Post by Henk » Wed Sep 18, 2019 3:14 pm

Joost Buijs wrote:
Wed Sep 18, 2019 3:01 pm
Henk wrote:
Wed Sep 18, 2019 1:28 pm
This should be a draw:

[d] 1Q6/8/K7/8/8/8/2pk4/8 w - -
Yes, this is a draw, but without table-bases it is not so easy for an engine to see. The queen can keep on giving checks from many different locations, so it will take quite some time before repetition detection kicks in.
Stockfish:

Code: Select all

dep	score	nodes	time	(not shown:  tbhits	knps	seldep)
 35	  0.00 	181.3M	0:15.70	Qb2 Kd1 Qd4+ Kc1 Qc3 Kb1 Qb3+ Ka1 Qc4 Kb2 Qe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1 Qe1+ Kb2
  3	+0.22 	774      	0:00.00	Qg3 c1=Q Qf2+ Kd1 Qf3+ Kd2
  2	+0.28 	384      	0:00.00	Qb2 Kd1
  1	+0.28 	135      	0:00.00	Qb2
  0	#
  

Maybe I should add this position to tablebase. But first have to implement tablebase. If I have time.
O wait position of white king also important.

User avatar
hgm
Posts: 23619
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Basic endgames

Post by hgm » Wed Sep 18, 2019 3:23 pm

There are two ways to handle this. You can program the knowledge into the evaluation, detecting the KQKP case with a 7th-rank a-, c-, f- or h-Pawn, and scoring it as drawish when the King supporting the Pawn is next to the promotion square, and the other far-enough away from it.

A more general way would be to recognize that progress against a 7th-rank Pawn with an insufficiently protected (empty) promotion square can only be made by approaching a second piece, and maintain a counter similar to the reversible move counter that resets only when you switch to moving another piece. And then score a position as very drawish when the value of this counter rises to, say, 5 or higher. This would even work with, f.e., an extra far-away Knight (KQNKP). Moving K or N would then allow black to convert to KQNKQ (which should be recognized as drawish), while sticking to Queen moves to check or attack an unprotected promotion square would drive up the counter to a drawish value. The only short-term escape would be to drive the black King to the promotion square (or capture the Pawn), and then reset the counter with a King or Knight move. You could even refine it by only resetting the counter for moves towards the promotion square.

bob
Posts: 20478
Joined: Mon Feb 27, 2006 6:30 pm
Location: Birmingham, AL

Re: Basic endgames

Post by bob » Wed Sep 18, 2019 7:41 pm

Henk wrote:
Mon Sep 16, 2019 2:48 pm
Pfft. It shouldn't get more complicated. Already took too much time.
Only counts distance from corner and distance between kings.
Maybe hash table needs to be rewritten for it does not take symmetry into account?

O wait I see I introduced a bug. To be provided.


[d] 4k3/8/8/R7/4K3/8/8/8 w - -

Code: Select all

Depth  Value   Time           Nodes
   1  261642   00:00:00            22    e4d3 
   2  261642   00:00:00            70    e4d3  e8d7 
   3  261642   00:00:00           600    e4d3  e8d7  d3c2 
   4  261642   00:00:10          1876    e4d3  e8d7  d3c2  d7c6 
   5  261642   00:00:22          7896    e4d3  e8d7  d3c2  d7c6  c2b1 
   6  261642   00:00:50         22369    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6 
   7  261642   00:01:43         62033    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1 
   8  261642   00:05:10        138574    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
   9  261642   00:10:34        323429    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
  10  261642   00:16:04        632175    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
  11  261642   00:15:26       1299875    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
  12  261642   00:12:37       2128347    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
  13  261642   00:27:42       3436668    e4d3  e8d7  d3c2  d7c6  c2b1  c6b6  b1a1  b6a5 
  14      M7   01:19:40       5891050    a5a7  e8d8  e4d5  d8c8  d5d6  c8b8  a7c7  b8a8  d6c5  a8b8  c5b6  b8a8  c7c8 
Analysis stopped

Do this in phases. (1) drive opposing king to edge of the board. You can use a PSQ table that has more negative numbers as the losing king gets closer to the edge. (2) get your king close to the opposing king, but honoring the PST so that it avoids the edge. Once you optimize that you ought to see a mate instantly.

User avatar
hgm
Posts: 23619
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Basic endgames

Post by hgm » Thu Sep 19, 2019 7:54 am

Fairy-Max 5 uses a special PST for bare Kings, which increases the centralization bonus by a factor up to 11 compared to that of the opponent pieces. This was needed to make it win end-games where many weak pieces (all drawing to the center) have to cooperate in order to drive the bare King into a corner. (Which usually requires them to leave the center.) It turned out to be better to not apply the maximum factor immediately as the King gets bared, but switch it on graduately with the increase of the 50-move counter. That way the winning side will first focus on good positioning of his own pieces before starting the drive. Which is usually the way such end-games have to be played.

JohnWoe
Posts: 92
Joined: Sat Mar 02, 2013 10:31 pm

Re: Basic endgames

Post by JohnWoe » Sat Sep 21, 2019 8:16 am

Only "simple" endgame Sapeli usually have difficulties is KQkr.
It happens quite often.
I think having some special case code for these kind of endgames could be fruitful.

Here Sapeli 1.46 barely managed to find the win.


User avatar
Guenther
Posts: 3015
Joined: Wed Oct 01, 2008 4:33 am
Location: Regensburg, Germany
Full name: Guenther Simon
Contact:

Re: Basic endgames

Post by Guenther » Sat Sep 21, 2019 8:29 am

flok wrote:
Mon Sep 16, 2019 6:29 pm
Micah, depth 18, 3548ms for mate score on an i7-8750H @ 2.2GHz

Code: Select all

2 cores: 2325 ms
3 cores: 2094 ms
4 cores: 1604 ms
5 cores: 1638 ms
6 cores: 955ms

Code: Select all

folkert@msi:~/Projects/git/Micah$ ./Micah 
position fen 4k3/8/8/R7/4K3/8/8/8 w - -
go depth 50
# took 0ms
# TB_RESULT_FAILED
info depth 1 score cp 0 nodes 27 time 0 nps 391253 pv a5a8
info depth 2 score cp 0 nodes 100 time 0 nps 839081 pv a5a8 e8d7 a8h8
info depth 3 score cp 0 nodes 322 time 0 nps 1395867 pv a5a8 e8d7 a8h8 d7c6
info depth 4 score cp 0 nodes 1289 time 0 nps 2101809 pv a5a8 e8d7 a8h8 d7c6 e4d3
info depth 5 score cp 0 nodes 3061 time 1 nps 2323651 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5
info depth 6 score cp 0 nodes 6395 time 2 nps 2273369 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2
info depth 7 score cp 0 nodes 12811 time 5 nps 2484447 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4
info depth 8 score cp 0 nodes 21415 time 8 nps 2543329 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1
info depth 9 score cp 0 nodes 34234 time 13 nps 2461084 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3
info depth 10 score cp 0 nodes 54732 time 22 nps 2477201 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1
info depth 11 score cp 0 nodes 89872 time 36 nps 2441362 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4
info depth 12 score cp 0 nodes 143662 time 60 nps 2381004 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5
info depth 13 score cp 0 nodes 233902 time 98 nps 2378033 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8
info depth 14 score cp 0 nodes 417378 time 176 nps 2368492 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8 c5d6
info depth 15 score cp 0 nodes 714090 time 302 nps 2363819 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8 c5d6 h8a8 d6e7
info depth 16 score cp 0 nodes 1281045 time 549 nps 2332151 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8 c5d6 h8a8 d6e7
info depth 17 score cp 0 nodes 3117427 time 1326 nps 2349866 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8 c5d6 h8a8 d6e7 a8h8 e7d6 h8a8 d6e7 a8h8 e7d6 h8a8 d6e7 a8h8 e7d6
info depth 18 score cp 9978 nodes 8182666 time 3548 nps 2305941 pv a5a7 e8f8 e4d5 f8e8 d5e6 e8f8 a7e7 f8g8 e7f7 g8h8 e6f6 h8g8 f6g6 g8h8 f7e7 h8g8 e7e8
Giving a score of 0.00 until resolving the mate is strange.
Current foe list count : [93]
http://rwbc-chess.de/chronology.htm

User avatar
flok
Posts: 174
Joined: Tue Jul 03, 2018 8:19 am
Full name: Folkert van Heusden
Contact:

Re: Basic endgames

Post by flok » Sat Sep 21, 2019 4:57 pm

Guenther wrote:
Sat Sep 21, 2019 8:29 am
flok wrote:
Mon Sep 16, 2019 6:29 pm
Micah, depth 18, 3548ms for mate score on an i7-8750H @ 2.2GHz

Code: Select all

2 cores: 2325 ms
3 cores: 2094 ms
4 cores: 1604 ms
5 cores: 1638 ms
6 cores: 955ms

Code: Select all

folkert@msi:~/Projects/git/Micah$ ./Micah 
position fen 4k3/8/8/R7/4K3/8/8/8 w - -
go depth 50
# took 0ms
# TB_RESULT_FAILED
info depth 1 score cp 0 nodes 27 time 0 nps 391253 pv a5a8
...
info depth 17 score cp 0 nodes 3117427 time 1326 nps 2349866 pv a5a8 e8d7 a8h8 d7c6 e4d3 c6b5 d3c2 b5a4 c2b1 a4a3 b1a1 a3b4 h8a8 b4c5 a8h8 c5d6 h8a8 d6e7 a8h8 e7d6 h8a8 d6e7 a8h8 e7d6 h8a8 d6e7 a8h8 e7d6
info depth 18 score cp 9978 nodes 8182666 time 3548 nps 2305941 pv a5a7 e8f8 e4d5 f8e8 d5e6 e8f8 a7e7 f8g8 e7f7 g8h8 e6f6 h8g8 f6g6 g8h8 f7e7 h8g8 e7e8
Giving a score of 0.00 until resolving the mate is strange.
Any suggestions for rules that could "hit" this?
www.vanheusden.com: Micah / Embla / PuppetMaster / DeepBrutePos / Pos / Feeks

Post Reply