Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: One mate to solve.

Author: leonid

Date: 13:02:04 10/05/01

Go up one level in this thread


On October 05, 2001 at 15:25:39, Paul wrote:

>On October 05, 2001 at 10:08:44, leonid wrote:
>
>>On October 04, 2001 at 20:49:59, Paul wrote:
>>
>>>On October 04, 2001 at 19:01:32, leonid wrote:
>>>
>>>>Paul and Heiner! It will be nice if somebody between you, from time to time (at
>>>>least once in a two months) will come here and give some concrete example of how
>>>>Chest must be put into work. For Windows and Linux. At least, as long as not
>>>>graphics oriented version will be on the Web.
>>>
>>>The simple way (what I've done up until now) is this:
>>>
>>>1. create a new text file in the folder where you've got your chest319.exe
>>>2. double click on it (this should open notepad)
>>>3. copy the following line into the file:
>>>   for %%i in (3 4 5 6 7 8 9 10 11 12 13) do chest319 -Z%%i -b t.txt
>>>4. save the file as 'b.bat' and close notepad
>>>
>>>5. create a new text file in the folder where you've got your chest319.exe
>>>6. double click on it (this should open notepad)
>>>7. copy the epd of your problem into the text file, for example:
>>>   r4rk1/ppRn1p2/6pb/1P2pq1p/3N4/P1QPn1Pb/1B1NPP1P/4R1KB b - -
>>>8. save the file as 't.txt' and close notepad
>>>
>>>After this you can double click on the 'b.bat' file. You'll see a DOS window
>>>appear, and in it Chest will first try to find a mate in 3, then 4, then 5, etc.
>>>In this case it will find a mate in 7 in a minute or so.
>>>
>>>Chest presents the solution in an EPD string. The most important parts are:
>>>
>>>dm 7; (it's a mate in 7)
>>>bm Qxf2+; (best move is Qxf2+)
>>>pv Qxf2+ Kxf2 Ng4+ Kf3 e4+ Kxe4 Ngf6+ Kf3 Ne5+ Kf2 Nfg4+ Kg1 Be3#; (a solution)
>>>
>>>Sometimes there is more than one best move, you'll see that in the 'bm' section.
>>>
>>>If your Chest exe file is called differently, you'll have to edit that in the
>>>batch file above. And if you want to use Chest on another problem later, just
>>>edit the t.txt file in notepad, replace the problem-string, save it, and run
>>>b.bat again.
>>>
>>>Oh, and if you don't want to wait for the batch file to finish, you can stop it
>>>by opening the system menu of the DOS window (top left icon), chosing 'Close'
>>>and clicking 'Yes'.
>>
>>
>>Paul, you are Great! Your explanation was what it should to be and worked
>>instantly for me. I tried on the spot one position that I created yesterday.
>>Response was wonderful. Now few positions that are just too slow without hash,
>>or good branching factor, now have their second chance to know their minimal
>>solution. Thanks very much!!!!!!!!!!!!!!!
>
>Glad I made you happy!
>
>>Paul, if you know how to ask for indication for the time during the solution, it
>>will be good. But this is only if you know this by heart.
>
>The number that follows 'acs' in the output line is the time taken for finding
>the solution, and the number after 'acn' is the number of nodes visited during
>the search. Heiner will correct me if I'm wrong.
>
>There is also a way to output the solution to a file instead of to the screen.
>Just make another batch file like in steps 1 to 4 above, only copy this line
>into it:
>
>for %%i in (3 4 5 6 7 8 9 10 11 12 13) do chest319 -Z%%i -b t.txt >> output.txt
>
>and save it to 'bo.bat' for example.
>
>When you double click on this 'bo.bat' however, you'll only see Chest iterating
>on screen in the DOS box, but no solution. For the solution you will have to
>periodically check the file 'output.txt' in the same folder, for example every
>time after you see a line being added on screen. Only when Chest finds the
>solution, a string will be printed into the output file.
>
>You can get even more statistical information by making yet another batch file
>with this line in it:
>
>for %%i in (3 4 5 6 7 8 9 10 11 12 13) do chest319 -Z%%i -s -b t.txt >>
>output.txt
>
>Here also, you will have to periodically check the file 'output.txt'.
>
>Every output of Chest will be added to this output file, so you will have to
>empty, delete or rename it (if you want to keep the analysis) yourself before
>you start a new analysis.
>
>This last batch file really gives a wealth of information, you will have a ball
>reading that! It also gives the time for each iteration, not just the time to
>the solution. And also a lot of other info for each iteration.
>
>Hope this is clear ... but if not, just ask!

Its a great thing to have a friend on Web! Will print all your explanation and
will try it immediately.

Big thanks!
Leonid.

>Groetjes,
>Paul



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.