Is there any engine that can recognize the position is draw?

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

Moderators: hgm, Rebel, chrisw

mehmet karaman
Posts: 142
Joined: Tue Jan 28, 2014 8:37 am
Location: TURKEY

Is there any engine that can recognize the position is draw?

Post by mehmet karaman »

FEN: 8/6p1/7k/7B/6PK/2p2P2/8/8/ w

White to play and draw:
1. g5+ Kh7; 2. Bf7 c2; 3. Kh5 c1=Q; 4. g6+ Kh8; 5. Kg4
(G. Zajodiakin, 1929)


FEN: 8/8/8/5Bp1/7k/8/4pPKP/8/ w

White to play and draw:
1. Bg4 e1=Q; 2. h3
(V. Chekhover, 1952 )
retep1
Posts: 44
Joined: Sun Aug 07, 2016 5:24 pm

Re: Is there any engine that can recognize the position is d

Post by retep1 »

First FEN:
Lomonosov tables say mate in 34:

{[#]}{asmFishW_2017-01-09_popcnt: 1)}{Black mates in 34:} 1. g5+ Kh7 {[%t
Long] °} 2. Bf7 {[%t Long] ''} 2... c2 {[%t Long] ''''} 3. Kh5 {[%t Long] ''}
3... c1=Q {[%t Long] '} 4. g6+ {[%t Long] ''} 4... Kh8 5. Kg4 Qe3 6. Kg3 {[%t
Long] ''} 6... Qd4 7. Kg2 Qh4 8. Kf1 Qh2 9. Ke1 Qg2 10. f4 Qc2 11. Kf1 Qe4 12.
f5 Qxf5+ 13. Ke2 Qh3 14. Kd2 Qg3 15. Kc2 Qe3 16. Kb2 Qd3 17. Kc1 Qe2 18. Bb3
Qe1+ 19. Kc2 Qe4+ 20. Kc3 Qxg6 21. Bc2 Qf6+ 22. Kd3 g5 23. Bd1 g4 24. Bxg4
Qg6+ 25. Bf5 Qxf5+ 26. Kc3 Qc5+ 27. Kb3 Kh7 28. Kb2 Kg6 29. Ka2 Qb5 30. Ka1
Kf6 31. Ka2 Ke5 32. Ka1 Kd4 33. Ka2 Kc3 34. Ka1 Qb2# {Lomonosov tables} *
Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Is there any engine that can recognize the position is d

Post by Lyudmil Tsvetkov »

mehmet karaman wrote:FEN: 8/6p1/7k/7B/6PK/2p2P2/8/8/ w

White to play and draw:
1. g5+ Kh7; 2. Bf7 c2; 3. Kh5 c1=Q; 4. g6+ Kh8; 5. Kg4
(G. Zajodiakin, 1929)


FEN: 8/8/8/5Bp1/7k/8/4pPKP/8/ w

White to play and draw:
1. Bg4 e1=Q; 2. h3
(V. Chekhover, 1952 )
are not the amiable users due diagrams?

[d]8/6p1/7k/7B/6PK/2p2P2/8/8/ w

[d]8/8/8/5Bp1/7k/8/4pPKP/8/ w

seemingly fen generator not working here, something missing?
Vinvin
Posts: 5228
Joined: Thu Mar 09, 2006 9:40 am
Full name: Vincent Lejeune

Re: Is there any engine that can recognize the position is d

Post by Vinvin »

Lyudmil Tsvetkov wrote:
mehmet karaman wrote:FEN: 8/6p1/7k/7B/6PK/2p2P2/8/8/ w

White to play and draw:
1. g5+ Kh7; 2. Bf7 c2; 3. Kh5 c1=Q; 4. g6+ Kh8; 5. Kg4
(G. Zajodiakin, 1929)


FEN: 8/8/8/5Bp1/7k/8/4pPKP/8/ w

White to play and draw:
1. Bg4 e1=Q; 2. h3
(V. Chekhover, 1952 )
are not the amiable users due diagrams?



[d]8/6p1/7k/7B/6PK/2p2P2/8/8/ w

[d]8/8/8/5Bp1/7k/8/4pPKP/8/ w

seemingly fen generator not working here, something missing?
FEN syntax is not correct : https://en.wikipedia.org/wiki/Forsyth%E ... n#Examples

[d]8/6p1/7k/7B/6PK/2p2P2/8/8 w - - 0 1
[d]8/8/8/5Bp1/7k/8/4pPKP/8 w - - 0 1
Lyudmil Tsvetkov
Posts: 6052
Joined: Tue Jun 12, 2012 12:41 pm

Re: Is there any engine that can recognize the position is d

Post by Lyudmil Tsvetkov »

Vinvin wrote:
Lyudmil Tsvetkov wrote:
mehmet karaman wrote:FEN: 8/6p1/7k/7B/6PK/2p2P2/8/8/ w

White to play and draw:
1. g5+ Kh7; 2. Bf7 c2; 3. Kh5 c1=Q; 4. g6+ Kh8; 5. Kg4
(G. Zajodiakin, 1929)


FEN: 8/8/8/5Bp1/7k/8/4pPKP/8/ w

White to play and draw:
1. Bg4 e1=Q; 2. h3
(V. Chekhover, 1952 )
are not the amiable users due diagrams?



[d]8/6p1/7k/7B/6PK/2p2P2/8/8/ w

[d]8/8/8/5Bp1/7k/8/4pPKP/8/ w

seemingly fen generator not working here, something missing?
FEN syntax is not correct : https://en.wikipedia.org/wiki/Forsyth%E ... n#Examples

[d]8/6p1/7k/7B/6PK/2p2P2/8/8 w - - 0 1
[d]8/8/8/5Bp1/7k/8/4pPKP/8 w - - 0 1
thanks, Vincent; I guess this should have been done by the OP.

of course, no engine will recognise the draws, writing a general algorithm to recognise such fortresses is not an easy task at all, especially if you want to add less than 100 lines of code.

returning drawscore after 5 or 6 completely identical scores on successive plies having the side to move, though, migth see it.

I remember this idea was discussed here in the past. anyone having experimented with it?
peter
Posts: 3185
Joined: Sat Feb 16, 2008 7:38 am
Full name: Peter Martan

Re: Is there any engine that can recognize the position is d

Post by peter »

That's correct, Peter.

And as for the second one, it's a matter of some Forward- Backward to keep the arising 50 moves boundary in hash: (faster with switched off tbs)

[d]8/8/8/5Bp1/7k/8/4pPKP/8 w - - 0 1

Analysis by pedantFishW_2017-01-09_popcnt:

1.Bg4 e1Q 2.h3 Qa1 3.Kf3 Qf1 4.Ke3 Qc1+ 5.Ke2 Qb1 6.Kf3 Qf1
= (0.00) Depth: 40/13 00:00:23 1488MN

BTW I think I remember Vincent Lejeune having brought this one here already some times ago,
Peter.