Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Comet & batch files

Author: Pete Galati

Date: 18:36:47 01/17/01

Go up one level in this thread


On January 17, 2001 at 16:52:10, Dann Corbit wrote:

>On January 17, 2001 at 16:27:26, Pete Galati wrote:
>[snip]
>>What is OCD?  I know that SAN can spit out EPDs form a PGN file, but I don't
>>know what OCD is.
>
>Object Chess Demonstrator by Steven J. Edwards.
>
>
>>>Batch process the EPD at 12 minutes per record.
>>
>>I think Crafty and Comet can both test positions with a bat file, but I don't
>>know who else can.  I didn't think the comercial programs could do that.
>>Actually, now that I think of it, I think there's actually a version of Nero
>>that's specifically made for that (not that I'm expecting you to use it)
>
>Professional Chess Programs that correctly batch process EPD records:
>HIARCS
>Rebel Century
>Chess Tiger
>(Maybe others but I have not tried them.  These are all used in CAP)
>Crafty does an excellent job of it also.  All the records in the CAP database
>were created by one of the above.  (Well, almost all.  I also use Chest by
>Heiner Marxen for checkmate search and sometimes even ColChess for a good,
>old-fashioned non-null move search of a problematic position.)
>
>
>Professional Chess Programs that can't:
>Anything by Chessbase
>
>Apparently, the new Shredder will also be able to correctly process EPD data.
>[snip]

In as much of an execise in editing as anything, I edited a batch file that came
with an older version of Comet (they don't seem to be distributed with Comet
anymore) to run the EPDs that are in the Tony file.

This is the batch file, I called it "test.bat".  I set it to run Comet at level
12 so that it wouldn't take very long to test this, level 12 is 1 move in 2
minutes, level 13 would have been 1 move in 15 minutes.

When it says "get test 01  sp" it's loading a position from the file "test.epd"
with the id of "01", and the command "sp" tells it to take the side of the side
to move.  "quit" kills Comet when the tests are done.

Here's the test.bat file:

level 12
get test 01  sp
get test 02  sp
get test 03  sp
get test 04  sp
get test 05  sp
get test 06  sp
get test 07  sp
get test 08  sp
get test 09  sp
get test 10  sp
get test 11  sp
get test 12  sp
get test 13  sp
get test 14  sp
get test 15  sp
get test 16  sp
quit

Here's the EPD, "test.epd", I don't know EPD that well, but it's easy to see
that the 01 line is ID'd by adding

"; id "01";" after the EPD, simple enough:

1r2r1k1/1pqbbppp/p2p1n2/4p3/P3PP2/2N1BB2/1PP2QPP/R4R1K b - - 0 1; id "01";
r1bk1bnr/ppp2ppp/8/4n3/2P5/P3B3/1P3PPP/RN2KBNR w KQ - 0 1; id "02";
8/7p/3k2p1/6P1/4KP2/8/7P/8 w - - 0 1; id "03";
r1b1r1k1/1p1n1pbp/2p1n1p1/q1P1p3/4P3/1PN1BNPP/2Q2PB1/1R1R2K1 w - - 0 1; id "04";
1rN1r1k1/1pq2pp1/2p1nn1p/p2p1B2/3P4/4P2P/PPQ1NPP1/2R2RK1 b - - 0 1; id "05";
3r1rk1/p1q2pbp/1np1p1p1/1p2P3/5P2/2N2Q1P/PPP3P1/3RRBK1 b - - 0 1; id "06";
r2r2k1/p3ppbp/1p4p1/3p4/3P4/2P1P2P/P3BPP1/2R2RK1 w - - 0 1; id "07";
2rq3r/pb1pbkpp/1p2pp2/n1P5/2P5/QP2BNPB/P3PP1P/3R1RK1 w - - 0 1; id "08";
1r1q1rk1/pp1bbppp/2n1p1n1/4P3/2BpN3/3P1N2/PP2QPPP/R1B1R1K1 b - - 0 1; id "09";
3r2k1/2p2ppp/1p1br3/pPn5/3PP3/P7/1B1N2PP/R3R1K1 w - - 0 1; id "10";
r4rk1/p2qn1bp/1pnp2p1/2p2p2/4PP1N/2PPB3/PP2QN1P/R4RK1 b - - 0 1; id "11";
r3r1k1/1b1n1p2/1q1p1n1p/2p1p2P/p1P3p1/P1QNPPB1/1P2B1P1/2KR3R w - - 0 1; id "12";
1rb1nrk1/2q1bppp/p1n1p3/2p1P3/2Pp1PP1/3P1NN1/P5BP/R1BQ1RK1 w - - 0 1; id "13";
r3r1k1/ppqbbpp1/2pp1nnp/3Pp3/2P1P3/5N1P/PPBN1PP1/R1BQR1K1 w - - 0 1; id "14";
5r1k/1q2rnpp/p4p2/1pp5/6Q1/1P3P2/PBP3PP/3RR1K1 w - - 0 1; id "15";
2r2k2/5p2/2Bp1b1r/2qPp1pp/PpN1P3/1P2Q3/5PPP/4R1K1 w - - 0 1; id "16";

And Comet prints the results to a file that it opens called "test.out":

Comet V B.28  Stil: selective search      Hash-Tab:51223K
	Datei: test		Wed Jan 17 19:17:52 2001

01:	 score: +0.02 	Nodes/Sec: 118723 [09] 	b8c8 in 0:15 [7]
02:	 score: +0.14 	Nodes/Sec: 149602 [10] 	b1d2 in 0:32 [9]
03:	 score: +2.07 	Nodes/Sec: 308891 [20] 	h2h4 in 0:10 [14]
04:	 score: +0.46 	Nodes/Sec: 123576 [10] 	b3b4 in 0:00 [1]
05:	 score: -0.84 	Nodes/Sec: 127846 [12] 	b8c8 in 0:00 [3]
06:	 score: +0.14 	Nodes/Sec: 131589 [10] 	d8d1 in 1:37 [9]
07:	 score: +0.39 	Nodes/Sec: 133387 [12] 	f2f4 in 1:26 [11]
08:	 score: +0.77 	Nodes/Sec: 145967 [10] 	a3b2 in 0:21 [8]
09:	 score: +0.39 	Nodes/Sec: 133627 [10] 	d8a5 in 1:17 [9]
10:	 score: -1.27 	Nodes/Sec: 182598 [11] 	g2g3 in 0:41 [10]
11:	 score: +0.58 	Nodes/Sec: 110209 [09] 	a8e8 in 1:08 [9]
12:	 score: +0.12 	Nodes/Sec: 115175 [10] 	d3f2 in 0:01 [5]
13:	 score: -0.09 	Nodes/Sec: 112548 [11] 	g4g5 in 0:03 [7]
14:	 score: -0.42 	Nodes/Sec: 108084 [10] 	d2b1 in 1:53 [9]
15:	 score: +0.36 	Nodes/Sec: 190833 [09] 	c2c4 in 0:54 [8]
16:	 score: +2.01 	Nodes/Sec: 163517 [14] 	e3c5 in 0:00 [0]

Comet was using it's "selective search" style, rather default, but it could have
been switched to more of a "brute force" style by using the command "style" and
selecting "0" (zero), and I assume it would have kept that style throught the
test, but don't know for sure.  I'm sure it's better with selective search.

I've never tried doing a batch file/epd search with Crafty, but I assume it's
also not very difficult.  I'll have to look in the doc file.

Pete





This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.