Rook & Pawn Endgame Database in PGN Format?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Steve Maughan
Posts: 1221
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Rook & Pawn Endgame Database in PGN Format?

Post by Steve Maughan »

Maverick seems to be really weak when it comes to rook and pawn endings :(

Does anyone have a source of starting positions which can be used to test and changes I make? I'm thinking PGN format would be ideal.

- Steve
http://www.chessprogramming.net - Maverick Chess Engine
jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Re: Rook & Pawn Endgame Database in PGN Format?

Post by jwes »

Here are the rook and pawn endings from Basic Chess Endings by Reuben Fine. I only have them in epd. I haven't checked them, likely some of the solutions are wrong.

8/5K2/4R3/6kp/8/8/8/8 w - - bm Re5+; id "No. 283e White wins R-K5ch"
8/8/8/1K6/8/3pk3/8/R7 w - - bm Kc4; id "No. 284a White to play wins; Black to play draws. K-B4"
K7/8/8/4kp2/8/8/8/R7 w - - bm Kb7 Ra5+; id "No. 285b draw K-Kt7"
8/8/8/1K2k3/5p2/8/8/R7 b - - bm Kd4; id "No. 285c Draw K-Q5"
8/8/1KP5/3r4/8/8/8/k7 w - - bm c7; id "No. 286a (from a game Potter-Fenton, 1895. Solution by Lasker) White to play wins P-B7"
r7/5PK1/4k1P1/8/8/8/8/8 b - - bm Ke7; id "No. 289a draw. K-K2"
r7/6PK/5k1P/8/8/8/8/8 b - - bm Kf7 Kg5; id "No. 289b Draw. K-B2"
8/8/8/3K3R/pp6/2k5/8/8 w - - bm Rh3+; id "No. 290a (Kling and Horwitz, 1851) Draw. R-R3ch"
8/8/8/1K1k4/5p2/4p3/2R5/8 w - - bm Rc8 Rc5+; id "No. 290b (Keidanski, 1914) draws. R-B8"
8/8/5K2/7k/8/p7/1p6/1R6 w - - bm Kf5; id "No. 291a (Kling and Horwitz, 1851) draws. K-B5"
8/8/8/8/8/kpK5/p7/5R2 b - - bm b2; id "No. 291b (Freeborough, 1898) Draw. P-Kt7"
8/6p1/3K2k1/8/7p/8/8/5R2 b - - bm Kh5 Kg5; id "No. 292a (Sackmann, 1920) White wins K-R4"
3r4/1P4P1/8/4K3/8/8/8/k7 w - - bm Kf6; id "No. 294a Draw K-B6"
7R/7p/1K1k4/8/5p2/8/8/8 w - - bm Rf8 Kb5; id "No. 294b (Mandelbaum, 1881) White to play and win. R-KB8"
8/8/5pk1/6p1/6Kp/8/8/5R2 w - - bm Rf2 Rf3; id "No. 297a White wins R-B2"
6R1/8/7k/5p2/6pp/8/5K2/8 w - - bm Ke2; id "No. 297b (Berger) White wins K-K2"
8/8/8/8/5pk1/6p1/6Kp/5R2 b - - bm f3+; id "No. 297c Black wins P-B6ch"
8/8/8/8/2p5/kpK5/p7/7R b - - bm b2; id "No. 297d Draw. P-Kt7"
8/3r4/8/3PK1k1/4P3/5P2/8/8 w - - bm Ke6; id "No. 299a, White to play wins. Not! K-K6"
8/2P2k2/8/8/K4PrP/8/8/8 b - - bm Rg8; id "No. 300a (N. N.-Tartakover, Paris, 1933), Black to play wins. R-Kt1"
8/8/8/5k2/8/8/2p1p1p1/2R3K1 w - - bm Kf2; id "No. 300b (Reti 1928) White to play wins K-B2"
4r3/2P5/2P3p1/6P1/2K5/5k2/8/8 w - - bm Kd5; id "No. 302a (Neumann-Steinitz, Baden-Baden, 1870), Draw Not! K-Q5"
1r4k1/8/5PK1/8/8/8/R7/8 b - - bm Rc8; id "No. 304a, White wins. R-QB1"
1r4k1/8/6PK/8/8/8/R7/8 w - - bm Ra7; id "No. 304b, Draw. R-R7"
8/3k4/5R2/3K4/3P4/4r3/8/8 w - - bm Rf7+; id "No. 305c (Salve-Burn, St. Petersburg, 1909), Draw. R-B7ch"
k7/7R/K7/P7/8/8/8/1r6 b - - bm Rb7; id "No. 305d Draw. R-Kt2"
3k4/8/8/1P6/5r2/1K6/2R5/8 w - - bm Ka3 Rc4; id "No. 308b, Draw. K-R3"
8/4K1k1/4PR2/r7/8/8/8/8 w - - bm Rf7+; id "No. 309a, draw: R-B7"
8/8/7k/4P3/r7/4K3/8/6R1 w - - bm Kd3 Rg2; id "No. 309b, White wins. K-Q3"
K7/P3k3/8/8/8/8/1r6/3R4 w - - bm Rh1 Rd4; id "No. 319a, Draw. R-KR1"
8/3rk3/PK6/8/8/8/1R6/8 b - - bm Rd6+; id "No. 321a, White wins. R-Q3ch"
5R2/5K1k/5P2/8/8/8/8/5r2 w - - bm Re8; id "No. 329b, White to play wins. R-K8"
3R4/4K3/3P4/r3k3/8/8/8/8 b - - bm Ra6 Rd8 Kd4; id "No. 335a, White wins. R-R3"
8/4K3/8/2R2P2/5k2/8/8/5r2 b - - bm Kg5; id "No. 336a, White wins Not!. K-Kt4"
8/8/8/8/6K1/6P1/1r3k2/R7 b - - bm Rb8; id "No. 337a, Draw. R-Kt1"
R7/P7/8/8/6K1/8/6k1/r7 w - - bm Kf4; id "No. 339a (Troitzky, 1896), White wins. K-B4"
8/6k1/6PR/7P/6r1/1K6/8/8 w - - bm Rh7+; id "No. 344a, White to play wins. R-R7ch"
8/k1K5/8/PP1R4/8/8/8/1r6 b - - bm Rc1+ Rf1; id "No. 344b (Chess Players' Chronicle, 1872-73), White wins. R-B8ch"
8/6R1/2k5/8/7p/5Kp1/7r/8 w - - bm Rg6+; id "No. 344c (Thomas-Alekhine, Hastings, 1922), Black wins R-Kt6ch"
8/3R4/4Pk2/5P2/r7/5K2/8/8 b - - bm Rf4+; id "No. 349a, Black to play draws. R-B5ch"
8/8/3rk3/8/R2P1P2/3K4/8/8 b - - bm Kf5; id "No. 351a (Ercole Del Rio, 1831), White wins. K-B4"
7k/8/8/5PrP/3R4/5K2/8/8 w - - bm f6; id "No. 352a (Reshevsky-Apscheneek, Kemeri, 1937), White to play wins. P-B6"
8/8/7K/4k2P/P7/3R4/r7/8 w - - bm Rf3; id "No. 352a (Tchigorin-Salve, Carlsbad, 1907) misprint in BCE Draw. R-KB3"
1K6/1P1k4/1P6/8/8/r7/6R1/8 w - - bm Rd2+; id "No. 355a (Duras, 1903) White wins. R-Q2ch"
8/R7/1Pk5/P7/6p1/1r6/6K1/8 w - - bm Rg7+ Kf2; id "No. 356a (Thomas-Alekhine, Hastings, 1922, with colors reversed), White to play wins. K-B2"
r6k/8/6PP/7K/8/8/p7/R7 w - - bm h7; id "No. 356b, Draw. P-R7"
r5k1/8/4PPK1/8/8/8/p7/R7 b - - bm Ra3 Kf8; id "No. 356c White wins. K-B1"
4R3/8/5k2/5p1K/P3p3/5r2/8/8 w - - bm Kh4; id "No. 357a (Janowski-Yates, New York, 1924), Black wins. K-R4"
8/8/8/1R6/8/P3p1k1/1PK5/7r w - - bm Kd3; id "No. 358a (Reshevsky-Capablanca, AVRO, 1938), Draw. K-Q3"
8/P1R2p2/6k1/8/3K2p1/8/8/r7 w - - bm Ke3; id "No. 359a (Alekhine-Euwe, 13th match game, 1935), Draw. K-K3"
8/8/R6P/1p1pk3/1r6/8/8/5K2 b - - bm Rc4 Rf4+; id "No. 360a (Spielmann-Landau, 3rd match game, 1936), Draw. R-B5ch"
8/8/6k1/2R5/3P2p1/2p3r1/4K3/8 w - - bm Kf2; id "No. 360b (Spielmann-Capablanca, Moscow, 1925), Draw. K-B2"
8/5k2/2K5/8/1P1P1r2/8/5p2/5R2 b - - bm Ke8; id "No. 361a (Loewenfisch-Pirc, Moscow, 1935), Black to play draws. K-K1"
R7/6pk/3KP3/5r2/8/p7/8/8 b - - bm Rf6; id "No. 361b (Tarrasch-Schlechter, 8th match game, 1911), White wins. R-B3"
8/8/8/Rp3K1p/7k/Pr6/8/8 w - - bm Kf4; id "No. 362a (Teichmann-v. Bardeleben), Draw. K-B4"
r7/P7/5kp1/8/5K1P/8/8/R7 b - - bm Kf7; id "No. 363b, White wins. K-B2"
8/8/3k4/1p1p4/r7/P1R2K2/8/8 b - - bm Re4; id "No. 363c, Black to play wins R-K5"
8/8/5k1p/4R3/5KP1/r4P2/8/8 w - - bm Re4; id "No. 364a (Reshevsky-Apscheneek, Kemeri, 1937), Draw. R-K4"
8/R4p2/6pk/8/6KP/8/8/5r2 w - - bm Ra8; id "No. 364b (Gruenfeld-Wagner, Breslau, 1925), Draw. R-R8"
1r4k1/R6p/8/5KPP/8/8/8/8 w - - bm h6; id "No. 366a, Draw. P-R6"
R7/6kp/P5p1/5p2/5P2/6PK/r6P/8 w - - bm g4; id "No. 367a, Draw. P-Kt4"
R7/6k1/P3p1pp/8/8/8/r3PKPP/8 w - - bm a7; id "No. 368a, White wins. P-R7"
8/1r5p/6pk/8/1P6/7P/1R4PK/8 w - - bm Kg3; id "No. 370a (Fine-Reinfeld, New York, 1940), White wins. K-Kt3"
8/8/5pk1/1R5p/6p1/6P1/1p1r1P1P/5K2 w - - bm Kg2; id "No. 372a, Black wins. K-Kt2"
2k5/4rp2/6p1/1P5p/1K3P2/6P1/R6P/8 b - - bm Kb7; id "No. 374a, White wins. K-Kt2"
8/p3r1p1/6Rp/8/5k1P/8/5KP1/8 b - - bm Rf7; id "No. 375a (Rabinovitch-Ragosin, Tiflis, 1937), Black wins. R-KB2"
5k2/6p1/6Pp/PR2K3/6P1/8/r7/8 w - - bm Kd6; id "No. 375b (Vidmar-Dus-Chotimirsky, Carlsbad, 1907), White wins. K-Q6"
8/5p2/4k3/p5K1/P2R4/4P2P/5r2/8 w - - bm Re4+; id "No. 376a (Marshall-Capablanca, 9th match game, 1909), White wins R-K4ch"
r7/7R/8/1k3p2/5p2/5K2/P5PP/8 b - - bm Ra3+; id "No. 377a (Lasker-Bogoljuboff, New York, 1924), White wins. R-R6ch"
8/P1R2pkp/6p1/8/r7/7P/8/4K3 w - - bm Kd2; id "No. 377b (13th match game, 1935), Draw. K-Q2"
8/6pk/6p1/R4p2/P7/6KP/1r6/8 w - - bm Ra8; id "No. 377c (Schlechter-Janowski, Ostend, 1907) where the Pawns are doubled, a draw is the normal result. Draw. R-R8"
8/8/1p3kp1/p1p4p/Pr5P/1P2R1PK/8/8 b - - bm Kf5; id "No. 378a (Opocensky-Fahrni, Baden, 1914), Black wins. K-B4"
4r3/1p6/p3pkp1/7p/2P2P2/5KPP/PP6/3R4 b - - bm Re7; id "No. 380a (Reggio-Przepiorka, Barmen, 1905), Draw. R-K2"
8/6p1/4k2p/1p3r2/8/1P1R2P1/P5KP/8 w - - bm a4; id "No. 380b (Fine-Thomas, Nottingham, 1936), White wins. P-QR4"
8/1r1p3p/p2k2p1/2R2p2/8/1P2P1P1/P3KP1P/8 w - - bm Rc8; id "No. 381a (Rubinstein-Duras, Pistyan, 1912), White wins. R-B8"
8/6p1/2kp4/2p1p2p/4P1r1/2P1K3/1P1R2P1/8 w - - bm Kf3; id "No. 381b (Foltys-Fine, Margate, 1937), Black wins. K-B3"
8/7r/pk5p/4R1pP/1P2K3/P5P1/8/8 b - - bm Kc6; id "No. 382a (Flohr-Vidmar, Nottingham, 1936), White wins. K-B3"
2r5/8/5kp1/pp6/5P2/P2RK3/1P5P/8 w - - bm Rd6+; id "No. 382b (Loevenfisch-Botvinnik, 11th match game, 1937), White to play wins R-Q6ch"
8/1p4r1/p1p2pk1/2P1p3/1PP3P1/4K2R/8/8 b - - bm f5; id "No. 385a (Schlechter-Tchigorin, Hastings, 1895), Black wins. P-B4"
8/6kp/p4pp1/4p3/1p6/1P1r1P1P/P5P1/4R2K w - - bm Re2; id "No. 385b (Tartakover-Kashdan, Folkestone, 1933), Black won R-K2"
8/p2r1k1p/2RP2p1/4p3/4P2P/P3K3/6P1/8 b - - bm Ke6; id "No. 386a (Euwe-Bogoljuboff, Zurich, 1934), White wins. K-K3"
8/p5p1/1pr5/2P5/1P2k1KP/8/P1R5/8 w - - bm Rc1; id "No. 388a (MaroczyMarshall, New York, 1924), White won R-QB1"
5r2/pp4pp/2p3k1/3p4/8/P4PP1/1PP5/2K2R2 b - - bm Rf5; id "No. 389a (Schlechter-Teichmann, Vienna, 1904), Black wins. R-B4"
8/pk6/4r3/2p5/1p4R1/1P6/P7/K7 b - - bm Re1+; id "No. 390a (Saemisch-Spielmann, Teplitz-Schoenau, 1922), Draw R-K8ch"
8/r5pp/8/3k4/5PP1/5K2/4R2P/8 b - - bm Rb7; id "No. 390b, White wins. R-Kt2"
8/r7/6p1/3k3p/5P2/4RK2/6PP/8 w - - bm Re5+; id "No. 390c, White wins. R-K5ch"
8/6p1/8/5pk1/R3p3/3r3P/5PK1/8 w - - bm Ra5; id "No. 391a, Black wins. R-R5"
6R1/7p/5p1k/8/4P2K/5P2/4r1P1/8 b - - bm Rf2; id "No. 392a (Reshevsky-Apscheneek, Kemeri, 1937), Draw. R-KB7"
8/8/8/r3kp1R/4p3/6P1/4KP1P/8 b - - bm Ra2+; id "No. 392b (Kashdan-Alekhine, Folkestone, 1933), Black to play draws. R-R7ch"
4rk2/5ppp/R7/8/4P3/5P1P/6P1/6K1 b - - bm Rc8; id "No. 394a (Reshevsky-Apscheneek, Kemeri, 1937), Draw. R-B1"
8/6kp/R4p2/8/P4P2/2P5/4KP1r/8 b - - bm Rh1; id "No. 396a (Reti-Tartakover, Baden, 1914), Draw. R-R8"
8/8/8/p7/Pr6/5P1k/R6P/4K3 w - - bm Kf2; id "No. 396b (Steinitz, 1895), White wins. K-B2"
4r3/p4pkp/1p3p2/2pP4/6P1/5PK1/PP6/3R4 b - - bm f5; id "No. 397a (Belavienetz-Ebralidze, Tiflis, 1937), Black will at least draw and may win P-B4"
6k1/7p/8/1p3RP1/p7/P1K5/1P4P1/4r3 b - - bm Re3+; id "No. 397b (Keres-Capablanca Semmering-Baden, 1937), White wins. R-K6ch"
8/2p2k1p/1p4p1/p1p5/2P5/1P2R2P/P5PK/5r2 b - - bm a4; id "No. 397c (Colle-Alekhine, Scarborough, 1926), Black wins P-R5"
2R5/8/8/8/5P2/1p1k1KPP/r7/8 w - - bm Rb8; id "No. 398a (Bogoljuboff-Alekhine, 1st match game, 1934), White wins. R-QKt8"
5r2/6pk/7p/p4P2/1p2P1PP/8/1P2R1K1/8 b - - bm a4; id "No. 399a (KoehnleinSpielmann, Hamburg, 1910), Black to play draws. P-R5"
7k/1p6/p1p1R3/P1PpP3/1P2p3/4r3/7K/8 b - - bm Rf3; id "No. 399b (Alekhine-Euwe, 5th match game, 1927), Black wins R-KB6"
8/5k2/8/7R/p2P4/3r4/5KPP/8 w - - bm Ra5; id "No. 399c (Reshevsky-Alekhine, AVRO, 1938) White wins. R-R5"
8/8/1pk2p2/p4R2/r7/4PK2/5PPP/8 b - - bm b5; id "No. 399d (Gilg-Mattison, Carlsbad, 1929), draw P-Kt4"
8/2R3p1/1r5p/2k5/1p6/4P1KP/5PP1/8 b - - bm Kd6; id "No. 399e (Capablanca-Thomas, Carlsbad, 1929), Black wins K-Q3"
8/8/1R3kpp/p4p2/r4P2/4K1PP/8/8 b - - bm Kf7; id "No. 400a (Keres-Fine, Semmering-Baden, 1937), draw K-B2"
8/1p4rp/2k2p2/R3pP2/4P3/4K3/1PP4P/8 w - - bm Ra8; id "No. 401a (Alekhine-P. Frydman, Podebrady, 1936), White wins. R-R8"
8/R4pk1/1p3r2/3P1P2/4K1p1/8/8/8 w - - bm Ke5; id "No. 401b (Saemisch-Treybal, Teplitz-Schoenau, 1922), White to play wins. K-K5"
6k1/p1p4p/3p2p1/8/8/2P2P2/P3r1PP/1R4K1 b - - bm Rc2; id "No. 402a (Thorvaldsson-Feigin, Folkestone, 1933), Black to play wins. R-QB7"
8/p7/4pkpp/R7/P7/2K4P/5PP1/r7 b - - bm Ra2; id "No. 403a (Bogoljuboff Maroczy, Carlsbad, 1929), draw R-R7"
4r1k1/p4pp1/1p2p1p1/8/1P6/2P2P2/P4KPP/3R4 w - - bm Rd7; id "No. 403b (Alekhine-Euwe, 27th match game, 1935) is typical. draw ? R-Q7"
8/6Rp/4kp2/r3p3/8/6P1/5P1P/5K2 b - - bm h5; id "No. 404a (Kashdan-Alekhine, Folkestone, 1933), draw P-R4"
8/5R2/2k5/8/4p3/1p2P1P1/2r5/1K6 b - - bm Re2; id "No. 404b (Tchekhover-Romanovsky, Leningrad, 1934), draw R-K7"
8/p1p1rp2/1p1p1pkp/3P4/2P2PP1/2P2K2/P6P/2R5 w - - bm c5 f5+; id "No. 405a (Bogoljuboff-Johner, Carlsbad, 1929), draw P-B5ch"
8/3r1k2/1R3p2/p2p2p1/Pp1P2P1/1P6/3K1P2/8 b - - bm Rc7; id "No. 406a (Tarrasch-Janowski, Ostend, 1907), draw R-B2"
6k1/5p2/p7/4P3/P2r4/6P1/7P/R5K1 w - - bm Rb1; id "No. 406b (Dake-Campolongo, Folkestone, 1933), draw R-Kt1"
8/1p3p2/5kp1/2p5/rP2R2P/6P1/5P2/5K2 w - - bm Rc4 Rf4+; id "No. 406c (Spielmann-Alekhine, New York, 1927), Black wins R-B4ch"
8/6pk/7p/p1P5/3r4/6PP/2R3K1/8 w - - bm c6; id "No. 408a (Kashdan-Steiner, Pasadena, 1932), White to play wins. P-B6"
6k1/p7/2p2r2/6p1/3p4/7R/PPP2P2/6K1 w - - bm Ra3; id "No. 409a (Zukertort-Mason, Vienna, 1882), White to play wins! R-R3"
8/8/8/R6P/1r6/p6K/1k6/8 w - - bm h6; id "No. 410a (Tarrasch-Bluemich, Breslau, 1925), draw P-R6"
2K5/2P4R/8/k7/8/8/2r4p/8 w - - bm Kb7; id "No. 410b (Dr. Lasker, 1890) White to play wins. K-Kt7"
8/8/6P1/8/5p1k/r7/6K1/2R5 w - - bm Rg1; id "No. 410c (Horwitz, 1881) White to play wins R-KKt1"
5r2/3k4/p2p4/2p5/P1P3Pp/2K1RP2/8/8 b - - bm Re8; id "No. 412a (Mattison-Rubinstein, Carlsbad, 1929), Black to play wins. R-K1"
2k5/7R/2K5/8/4p3/p3P3/rp4PP/8 b - - bm Kd8; id "No. 413a (Metger-Caro, Berlin, 1897), Black to play wins. K-Q1"
5k2/8/p7/1p5R/7P/8/r5P1/7K b - - bm b4; id "No. 413c (from Treybal-Reti, Teplitz-Schoenau, 1922), Draw. P-Kt5"
2k5/ppp4p/8/8/2Rp4/8/rPP2PPP/5K2 w - - bm b4; id "No. 414a (Spielmann-Vidmar, Carlsbad, 1907), Draw. P-QKt4"
1r6/p2k4/5p2/1pKP4/1R5p/P1P3pP/6P1/8 b - - bm f5; id "No. 415a (Tartakover-Bogoljuboff, New York, 1924), Draw. P-B4"
8/5kpp/p4p2/1p6/2rP1P2/P3K1P1/1R5P/8 b - - bm Ke6; id "No. 417a (Marshall-Tchigorin, Barmen, 1905), Black wins. K-K3"
8/p2k1ppp/3p4/1rpP4/8/5KP1/PP2RP1P/8 b - - bm Rb4; id "No. 420a (Tchekhover-Budo, Tiflis, 1937), Black to play wins. R-Kt5"
8/p3p3/1p2P3/r4k1p/8/5KP1/P3R2P/8 b - - bm Re5; id "No. 420b (Kostitch-Gruenfeld, TeplitzSchoenau, 1922), Black to play wins R-K4"
8/4k1pp/p7/Ppr1p3/8/2PRK3/1P4PP/8 b - - bm Rc4; id "No. 420c (Rubinstein-Cohn, Carlsbad, 1907), where, despite a bad Pawn on the Q-side Black can draw. Draw. R-B5"
8/1p3p2/p1p2k2/2P5/2P1KP2/P1PR3p/7r/8 b - - bm Re2+; id "No. 422a (Rabinovitch-Kan, Moscow, 1935), Black to play wins R-K7ch"
8/p1p2kpp/1p6/3Pp3/P1P2r2/3K4/2P3PP/1R6 w - - bm a5; id "No. 423a (Spielmann-Reti, Baden, 1914), White to play draws. P-R5"
5k2/3r2p1/1p1PR1Pp/p4p2/P7/1P6/6P1/6K1 b - - bm Rd8; id "No. 425a (VidmarDus-Chotimirsky, Carlsbad, 1907), Black to play R-Q1"
1k6/p1r3pp/2P5/1P1K1p2/4p3/4P3/6PP/R7 w - - bm Rf1; id "No. 426a (Stahlberg-Fine, 2nd match game, 1937), White to play wins R-KB1"
8/p3r2k/1pR4p/1P3p2/P4K2/6P1/7P/8 b - - bm Rf7; id "No. 428a (Loevenfisch-Lissitzin, Moscow, 1935), White wins R-KB2"
3r2k1/R4p1p/1p2p3/8/1P2p3/P3P1K1/3r1PPP/7R b - - bm Ra2; id "No. 429a (Capablanca-Fine, AVRO, 1938), Draw R-R7"
1r4k1/R4pp1/1p2p2p/3r3P/8/1P4R1/P5P1/6K1 w - - bm Rf3; id "No. 429b (Botvinnik-Loevenfisch, 6th match game, 1937), White to play draws. R-KB3"
2kr4/2p4p/2p5/8/1P2R3/Pr6/6PP/R5K1 b - - bm Rd2; id "No. 430a (Nimzovitch-Spielmann, Carlsbad, 1929), White wins R-Q7"
2k4r/8/2K4P/5p2/1r6/3R4/R7/8 w - - bm h7; id "No. 432a (Berger), White to play wins. P-R7"
6k1/4Rp1p/2R3p1/p7/P4P2/6PK/1r4r1/8 b - - bm h5; id "No. 432b (Zukertort-Steinitz, Vienna, 1882), Black to play wins. P-R4"
2k3r1/pp6/2p5/8/6r1/8/PPP3PR/R5K1 b - - bm Re4; id "No. 433a (From Anderssen's games), Black to play draws. R-K5"
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Building a bug-free endgame test suite using automation

Post by sje »

Building a bug-free endgame test suite using automation

Basic Chess Endings was a valuable and unique resource back in its day, but not so much in the days since the tablebases.

Here's my suggestion:

1: Get a chess program which has access to a sufficiently complete set of tablebase files, and which can read FEN/EPD (preferably from a file, not just from interactive input).

2: Write a utility which for any endgame class, can produce N valid positions from that class, each randomly selected, and write these to a file.

3: Run the results from the utility program through the chess program and collect the Ultimate Truth and record this in EPD.

4: Hey presto, Bob's your uncle, you now have a bug-free endgame test suite. Put these on the net to share with others.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Rook & Pawn Endgame Database in PGN Format?

Post by Ferdy »

Steve Maughan wrote:Maverick seems to be really weak when it comes to rook and pawn endings :(

Does anyone have a source of starting positions which can be used to test and changes I make? I'm thinking PGN format would be ideal.

- Steve
Here are 425 rook and pawn start position in pgn format from Frank's tournaments. The games are from sf6, k8, gull3 and fire4.
Extraction criteria:
1. (wp+bp) > 1 and (wp+bp) <= 4 and abs(wp-bp) <= 1
2. wr = 1
3. br = 1
4. evaluation comment in pgn is within +/- 120 cp
5. total pieces = 2, (pawns and kings are excluded)

Position is considered only once per game. Duplicates are already removed.
The game record is cut-off at a point where the conditions are meet. Check your tour manager if it will increase start TC while reading the these moves, then you may adjust your TC.

Download:
http://www.mediafire.com/download/196zt ... ndPawn.rar

Sample:
[pgn]
[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "1"]
[White "?"]
[Black "?"]
[Result "*"]

1. e4 Nf6 2. e5 Nd5 3. d4 d6 4. c4 Nb6 5. exd6 cxd6 6. Nf3 g6 7. Be2 Bg7 8.
O-O O-O 9. h3 Nc6 10. Nc3 Re8 11. Be3 d5 12. c5 Nc4 13. Bxc4 dxc4 14. Qa4
Be6 15. Rad1 Qa5 16. d5 Bxc3 17. Qxa5 Bxa5 18. dxe6 fxe6 19. Rc1 c3 20.
bxc3 Rab8 21. Rc2 Red8 22. Rb1 Rd3 23. Bd4 Bc7 24. Re2 e5 25. Bxe5 Nxe5 26.
Nxe5 Rd5 27. Ng4 Kf8 28. Rbe1 Bd8 29. Re5 Rd2 30. Nh2 Rxa2 31. Nf3 b6 32.
c6 Rc8 33. Nd4 Ra5 34. c7 Bxc7 35. Rxe7 Kg8 36. Nc6 Bd6 37. Nxa5 Bxe7 38.
Rxe7 bxa5 39. Rxa7 Rxc3 40. Rxa5 Rc1+ 41. Kh2 Rc2 42. Kg3 Rc3+ 43. f3 Rc4
44. Ra8+ Kg7 45. Ra7+ Kg8 46. Re7 Rc5 47. Kf4 Rf5+ 48. Ke3 Rb5 49. Rd7 Re5+
50. Kf2 Rb5 51. h4 Rb2+ 52. Kf1 Rb5 53. g3 Rb2 54. Re7 Rb1+ 55. Kf2 h5 56.
Ra7 Rb8 57. Ke3 Rb5 58. Kf4 Rf5+ 59. Ke4 Rc5 60. Rd7 Rb5 61. Rd3 Kg7 62.
Rd5 Rb4+ 63. Ke5 Rb7 64. Rd1 Re7+ 65. Kf4 Rf7+ 66. Ke3 Re7+ 67. Kd2 Kg8 68.
Ra1 Rd7+ 69. Ke2 Re7+ 70. Kf1 Re5 71. Rb1 Kg7 72. Re1 Rd5 73. Re7+ Kf8 74.
Rh7 Kg8 75. Ra7 Re5 76. Rb7 Re3 77. Rb8+ Kh7 78. Kf2 Re5 79. Rb7+ Kg8 80.
Rc7 Rf5 81. Kg2 Ra5 82. Rc1 Ra2+ 83. Kg1 Kg7 84. Rc3 Kh7 85. Rc7+ Kg8 86.
Kf1 Kf8 87. f4 Ra1+ 88. Kg2 Ra2+ 89. Kf3 Kg8 90. Rc4 Kg7 91. Rc1 Ra3+ 92.
Kg2 Ra2+ 93. Kg1 Ra7 94. Rc6 Ra1+ 95. Kf2 Ra2+ 96. Ke1 Ra1+ 97. Ke2 Ra2+
98. Kf3 Ra3+ 99. Kg2 Ra2+ 100. Kh3 Ra1 101. Rc5 Rb1 102. f5 gxf5 *[/pgn]
Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: Rook & Pawn Endgame Database in PGN Format?

Post by Zenmastur »

I have a database with about 80,000 games that have rook and pawn endings. Over 8,000 of these are annotated so that should help you a little. I'm not sure about copyright of the annotated games, but I guess I could strip those games out or remove the annotations.

If you're interested let me know.

Regards,

Zen
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.