Million Mate Madness

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Wed Feb 25, 2015 12:12 pm

bnst wrote:I tried to hint that they are the same :)
I did count the positions without bm, I hope they are the same :).

Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Wed Feb 25, 2015 12:21 pm

Dann Corbit wrote:
Ferdy wrote:I extracted positions with single bm only. Then try to convert the SAN of bm to LAN using python-chess library (PCL) which after some tries have successfully installed only yesterday.

The slight anomally in castling field was because when I run my script the PCL will not process the fen with that kind of castling field. So I create a script to look all those castling field before using the PCL.

Now before I convert the SAN in bm to LAN, I try to check all positions if the moves in bm are legal moves using PCL. The script has halted again because the PCL has found a double digit in the epd, see /16N/

Code: Select all

4r1k1/b1R2ppp/pq6/1p2Q3/1P2n3/16N/1B4BP/7K b - - acn 45; acs 0; bm Qg1+; ce 32764; dm 2; pv Qg1+ Nxg1 Nf2#;
I am only checking the bm legality for all positions with 1 bm that I had extracted.
But the positions that I reported with unnatural castling fields are based on original epd.
That one is fascinating. Since chest processed it without puking, I guess that it considered it as '1', '6' 'N' so 8 characters (7 spaces and a knight).
This PCL also complains about an "ep" in the move. So I am revising this item too by removing the ep, don't care the ep in pv [...] since I am only processing the bm.

Code: Select all

r1b2k1r/p5p1/2p1p1B1/q1bpPp1p/5Q2/2P1B3/P1P2PPP/R4RK1 w - f6 acn 3918079; acs 7; bm exf6ep+; ce 32754; dm 7; pv exf6ep+ d4 fxg7+ Ke7 gxh8=Q Bb7 Qh7+ Kd8 Qxb7 h4 Qxa8+ Kd7 Qe8#;

op12no2
Posts: 349
Joined: Tue Feb 04, 2014 11:25 am
Location: Mumbles, Wales, UK.
Full name: Colin Jenkins
Contact:

Re: Million Mate Madness

Post by op12no2 » Wed Feb 25, 2015 12:32 pm

Hi Dann,

Thanks for this. My engine is client browser based and I have a UI for running EPD files. I've added the 250k ish mate in 1's so far; it's fairly amusing to watch the positions changing... :)

http://op12no2.me/toys/lozzadev/bm.htm

Only tested in Google Chrome. The mate in 1 file is about 20Mb so the initial download slows down the startup a bit; cached thereafter. Eats memory! May not like phones/tablets.

Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Thu Feb 26, 2015 9:59 pm

One more issue, Deuterium crashed in this position so this is how it is found.
rr1P4/1Q6/1nNp4/p7/p3kpP1/p7/1P3K2/R7 w - - acn 46; acs 0; bm Rd1; ce 32764; dm 2; pv Rd1 f3 Rd4#;
[d]rr1P4/1Q6/1nNp4/p7/p3kpP1/p7/1P3K2/R7 w - - 0 1

Dann Corbit
Posts: 10205
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Million Mate Madness

Post by Dann Corbit » Thu Feb 26, 2015 10:16 pm

Not surprising it crashed. Pawn on rank 8 is a naughty no-no.

Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Thu Feb 26, 2015 10:18 pm

I parsed the orig file and I got 1714 positions with pawn in first and last rank.
Sample.

Code: Select all

rr1P4/1Q6/1nNp4/p7/p3kpP1/p7/1P3K2/R7 w - - acn 46; acs 0; bm Rd1; ce 32764; dm 2; pv Rd1 f3 Rd4#; c0 a1d1;
rq2p2p/1r2p3/7Q/3RpR2/nP2k2p/1P1p2PP/8/5K2 w - - acn 104824; acs 0; bm Qe6; ce 32758; dm 5; pv Qe6 Ke3 Rdxe5+ Qxe5 Qxe5+ Kd2 Rf2+ Kd1 Qe1#; c0 h6e6;
rp6/r1p5/2N1pQ2/p1Nk2p1/P7/3p4/4p2K/8 w - - acn 1266; acs 0; bm Ne4; ce 32762; dm 3; pv Ne4 g4 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1QRp1/8/1pP1N3/3rk3/3pPp2/NK6/PPp1q3/3nR3 w - - acn 376; acs 0; bm Nxf4+; ce 32762; dm 3; pv Nxf4+ Kd6 Qe6+ Kc5 Qxd5#; c0 e6f4;
rR6/N7/1pP1pN2/1K2k1P1/n2R2P1/2p1p3/2P5/6P1 w - - acn 22900; acs 0; bm Re4+; ce 32758; dm 5; pv Re4+ Kd6 Nc8+ Kc7 Rxa8 e2 Rd4 e1=Q Ne8#; c0 d4e4;
rQPP4/1n3q2/r4P2/p7/3Pp3/Kpk1N3/3R4/3R4 w - - acn 1181; acs 0; bm Nd5+; ce 32760; dm 4; pv Nd5+ Qxd5 Qg3+ e3 Qxe3+ Kc4 Qxb3#; c0 e3d5;
rP6/3p1N1P/3P1p2/1n6/3p1k1P/p1n2p1K/8/3NRR2 w - - acn 5088; acs 0; bm h8=Q; ce 32760; dm 4; pv h8=Q Ne4 Rxf3+ Kxf3 Qh5+ Kf4 Qg4#; c0 h7h8q;
rNn4P/NQ6/2P5/2Pp3P/8/p3P3/R7/K1k5 w - - acn 1; acs 0; bm Qb1#; ce 32766; dm 1; pv Qb1#; c0 b7b1;
[...]

Dann Corbit
Posts: 10205
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Million Mate Madness

Post by Dann Corbit » Thu Feb 26, 2015 10:20 pm

Ferdy wrote:I parsed the orig file and I got 1714 positions with pawn in first and last rank.
Sample.

Code: Select all

rr1P4/1Q6/1nNp4/p7/p3kpP1/p7/1P3K2/R7 w - - acn 46; acs 0; bm Rd1; ce 32764; dm 2; pv Rd1 f3 Rd4#; c0 a1d1;
rq2p2p/1r2p3/7Q/3RpR2/nP2k2p/1P1p2PP/8/5K2 w - - acn 104824; acs 0; bm Qe6; ce 32758; dm 5; pv Qe6 Ke3 Rdxe5+ Qxe5 Qxe5+ Kd2 Rf2+ Kd1 Qe1#; c0 h6e6;
rp6/r1p5/2N1pQ2/p1Nk2p1/P7/3p4/4p2K/8 w - - ac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 Nb5+ Kb8 Qe7 e3 Qd8#; c0 c4b6;
rnP1QRp1/8/1pP1N3/3rk3/3pPp2/NK6/PPp1q3/3nR3 w - - acn 376; acs 0; bm Nxf4+; ce 32762; dm 3; pv Nxf4+ Kd6 Qe6+ Kc5 Qxd5#; c0 e6f4;
rR6/N7/1pP1pN2/1K2k1P1/n2R2P1/2p1p3/2P5/6P1 w - - acn 22900; acs 0; bm Re4+; ce 32758; dm 5; pv Re4+ Kd6 Nc8+ Kc7 Rxa8 e2 Rd4 e1=Q Ne8#; c0 d4e4;
rQPP4/1n3q2/r4P2/p7/3Pp3/Kpk1N3/3R4/3R4 w - - acn 1181; acs 0; bm Nd5+; ce 32760; dm 4; pv Nd5+ Qxd5 Qg3+ e3 Qxe3+ Kc4 Qxb3#; c0 e3d5;
rP6/3p1N1P/3P1p2/1n6/3p1k1P/p1n2p1K/8/3NRR2 w - - acn 5088; acs 0; bm h8=Q; ce 32760; dm 4; pv h8=Q Ne4 Rxf3+ Kxf3 Qh5+ Kf4 Qg4#; c0 h7h8q;
rNn4P/NQ6/2P5/2Pp3P/8/p3P3/R7/K1k5 w - - acn 1; acs 0; bm Qb1#; ce 32766; dm 1; pv Qb1#; c0 b7b1;
[...]
Can you email the file to dcorbit@connx.com
?

Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Thu Feb 26, 2015 10:23 pm

Dann Corbit wrote:Not surprising it crashed. Pawn on rank 8 is a naughty no-no.
I am almost ready of uploading this single bm positions, but thought of running completely the whole subset in at least one engine and see the results.

Ferdy
Posts: 4113
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: Million Mate Madness

Post by Ferdy » Thu Feb 26, 2015 10:27 pm

Just sent.

There are duplicates in the file I sent, so that is not exactly 1714.

Right I got it, there are duplicates in the file that I sent because, whenever there is pawn in 1st rank, I save the position, then the same position I checked again the pawn in 8th rank, if there is I save again. So the position is saved twice.

bnst
Posts: 58
Joined: Tue Sep 11, 2007 10:16 am

Re: Million Mate Madness

Post by bnst » Fri Feb 27, 2015 9:36 am

I made a simple perl script that check for illegal number of pieces and illegal FEN and illegeal number of pawns and it found 2972 errors.
The most were pawns on the first or last row and the rest 201 errors were more than eight pawns of one colour.
Regards Andreas

Post Reply