starting to build 50 move rule test suite

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

Moderators: hgm, Rebel, chrisw

Joerg Oster
Posts: 937
Joined: Fri Mar 10, 2006 4:29 pm
Location: Germany

Re: starting to build 50 move rule test suite

Post by Joerg Oster »

Hmm, I think Qc6 is the only winning move.
So giving a draw score for it seems wrong.

Code: Select all

uciok
setoption name MultiPV value 3
setoption name SyzygyPath value xxxxx/xxxxx/syzygy-5men
info string Found 145 tablebases
ucinewgame
info string Found 145 tablebases
isready
readyok
position fen 5k2/5r2/4Q3/6K1/8/8/8/8 w - - 65 66
d

 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   | k |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   | r |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   | Q |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   | K |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+

Fen: 5k2/5r2/4Q3/6K1/8/8/8/8 w - - 65 66
PositionKey: 2B4D7CB8F9EF5717
MaterialKey: 9BD2B70BEE2F48E7
PawnKey:     89805F6F8CAC0C3C
Checkers: 
Tablebases WDL:  Win (Success)
Tablebases DTZ:   35 (Success)
go depth 1
info depth 1 seldepth 3 multipv 1 score cp 8998 nodes 27 nps 3000 tbhits 29 time 9 pv e6c6
info depth 1 seldepth 5 multipv 2 score cp 37 nodes 27 nps 3000 tbhits 29 time 9 pv e6c8 f8e7
info depth 1 seldepth 4 multipv 3 score cp 37 nodes 27 nps 3000 tbhits 29 time 9 pv e6e5
Jörg Oster
Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: starting to build 50 move rule test suite

Post by Ras »

Canoike wrote: Sat Oct 26, 2019 7:31 pmWhy "of course" ? ... :mrgreen:
Qxc8 mate
Because Qg8+ would be ply 99, Bc8+ ply 100 - and that's draw before White can do Qxc8 as this would be ply 101.

Btw., that's also interesting as engine test for engines that solve the first one (with 98) correctly: if you replace the 98 by 97, Qxc8 will be ply 100, but checkmate has priority:

k7/8/K7/8/8/7b/Q7/n7 w - - 97 1
bm Qg8+
Rasmus Althoff
https://www.ct800.net
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: starting to build 50 move rule test suite

Post by MikeB »

Joerg Oster wrote: Sat Oct 26, 2019 11:08 pm Hmm, I think Qc6 is the only winning move.
So giving a draw score for it seems wrong.

Code: Select all

uciok
setoption name MultiPV value 3
setoption name SyzygyPath value xxxxx/xxxxx/syzygy-5men
info string Found 145 tablebases
ucinewgame
info string Found 145 tablebases
isready
readyok
position fen 5k2/5r2/4Q3/6K1/8/8/8/8 w - - 65 66
d

 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   | k |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   | r |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   | Q |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   | K |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+
 |   |   |   |   |   |   |   |   |
 +---+---+---+---+---+---+---+---+

Fen: 5k2/5r2/4Q3/6K1/8/8/8/8 w - - 65 66
PositionKey: 2B4D7CB8F9EF5717
MaterialKey: 9BD2B70BEE2F48E7
PawnKey:     89805F6F8CAC0C3C
Checkers: 
Tablebases WDL:  Win (Success)
Tablebases DTZ:   35 (Success)
go depth 1
info depth 1 seldepth 3 multipv 1 score cp 8998 nodes 27 nps 3000 tbhits 29 time 9 pv e6c6
info depth 1 seldepth 5 multipv 2 score cp 37 nodes 27 nps 3000 tbhits 29 time 9 pv e6c8 f8e7
info depth 1 seldepth 4 multipv 3 score cp 37 nodes 27 nps 3000 tbhits 29 time 9 pv e6e5
You are correct , re-wrote the code with mpv set to max ( not sure what happened there in the previous example):

Code: Select all

dep	score	nodes	time	(not shown:  tbhits	knps	seldep)
 20	+100.00 	165.7M	0:05.05	Qc6 Rg7+ Kh6 Re7 Qc5 Kf7 Kg5 Re6 Qc7+ Ke8 Kf4 Re2 Qc4 Rd2 Kf5 Rd6 Qc8+ Ke7 Qc7+ Rd7 Qe5+ Kd8 Qb8+ Ke7 Ke5 Kf7 Qa8 Re7+ Kf5 Rd7 Qe4 
 20	+0.33 	169.4M	0:05.16	Qc8+ Ke7 Qb7+ Ke8 Qa8+ Ke7 Qd5 Ke8 Qe6+ Kf8 Qc6 Rg7+ Kh6 Re7 Qc5 Ke8 Qc8+ Kf7 Kg5 Re5+ Kf4 Re6 Qc7+ Kg6 Qd7 Kf6 Qd8+ Re7 Qd5 Kg6 Qg8+ Rg7 Qe6+ Kh7 
 20	+0.33 	166.7M	0:05.08	Qe5 Rg7+ Kh6 Re7 Qc5 Ke8 Qc8+ Kf7 Kg5 Re5+ Kf4 Re6 Qd8 Re2 Qc7+ Ke8 Qc8+ Ke7 Qc5+ Kd8 Qd5+ Ke7 Kf5 Rf2+ Kg5 Rf7 Qa5 Kd6 
 20	+0.32 	552.1M	0:16.77	Qa2 Rc7 Kf5 Rc5+ Ke4 Rc7 Qd5 Ke8 Qb5+ Ke7 Ke5 Rd7 Qc5+ Kf7 Qc8 Ke7 Qh8 Rc7 Qg7+ Kd8 Qf8+ Kd7 Qb4 Rc6 Qb7+ Rc7 Qd5+ Kc8 Qg8+ Kb7 Qb3+ Ka8 
 20	+0.32 	332.3M	0:10.01	Qa6 Rd7 Kf6 Rf7+ Ke6 Re7+ Kd6 Rf7 Qc8+ Kg7 Q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