Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty 17.13 - re-importing FEN files?

Author: Robert Hyatt

Date: 07:32:15 11/07/00

Go up one level in this thread


On November 07, 2000 at 06:53:36, Wieland Belka wrote:

>On November 05, 2000 at 09:39:41, Robert Hyatt wrote:
>
>>On November 05, 2000 at 06:10:17, Wieland Belka wrote:
>>
>>>On November 04, 2000 at 22:02:01, Robert Hyatt wrote:
>>>
>>>>On November 04, 2000 at 12:58:44, Wieland Belka wrote:
>>>>
>>>>>On November 03, 2000 at 18:16:44, Wieland Belka wrote: >On November 02, 2000 at
>>>>>14:30:31, Robert Hyatt wrote:
>>>>>>>
>>>>>>>>On November 02, 2000 at 13:21:21, Wieland Belka wrote:
>>>>>>>>
>>>>>>>>>Hello Crafty friends,
>>>>>>>>>
>>>>>>>>>I set a position with command "setboard", let analyze it by Crafty, forced a
>>>>>>>>>move and saved this position with command "savepos", without file ending "fen".
>>>>>>>>>But it was not possible to re-import it again: no "read", no "in" command ...
>>>>>>>>>
>>>>>>>>>Would anybody help?
>>>>>>>>>
>>>>>>>>>Thanks Wieland
>>>>>>>>
>>>>>>>>>
>>>>>>>>You should be able to say "input <file>" and have it set the position up.
>>>>>>>>I do this all the time.  (in works for input of course, as would inp, and
>>>>>>>>inpu).
>>>>>>>
>>>>>>>Thanks for reply!
>>>>>>>
>>>>>>>In your Crafty command list v. 17.XX the command "input" was only explained for
>>>>>>>import of command files?! No other commands importing game files?!
>>>>>>>
>>>>>>>Okay, I tried to do like you told, with fen and pgn files - only failures by
>>>>>>>Crafty!? Crafty was crashing down ...
>>>>>>>
>>>>>>>regards Wieland
>>>>>
>>>>>>I am not sure what you are trying to do. "savepos <xxx>" saves a FEN position in file "xxx".
>>>>>
>>>>>That is clear, of course. And I was doing so ...
>>>>>
>>>>>>You can later type "in xxx" and the position will restore to exactly what you saved.
>>>>>
>>>>>No! I tried that on this way: At first I imported a PGN file with command
>>>>>"read", then I exported again as a FEN file with command "savepos" and
>>>>>re-imported with comand "in". That's okay. But: Another FEN file produced by a
>>>>>third software I could not import with "in" - Crafty was crashing down! But this
>>>>>same FEN file I could read by Winboard exactly?! What are you telling now?
>>>>>
>>>>> "in" inputs >and executes commands from a file...  it won't suck in pgn games
>>>>>>or anything else.  To get a PGN game into crafty to fiddle with (ie to reset
>>>>>>to a particular position or whatever) type "read <filename>" where <filename>
>>>>>>is a file in PGN format.  You can only work with one PGN game at a time inside
>>>>>>crafty, so this doesn't sound like what you are asking.
>>>>>
>>>>>Bob, the point is: I read your command list v. 17.XX again and again. And I
>>>>>could not find these explanations to command "input" given here?!
>>>>>
>>>>>Am I right saying your command list is not completely? I'm missing commands like
>>>>>benchmark, freq, cab ... or using CPU time?! Your explanations to command
>>>>>"input" by command list are not well. What can I do? I can only read your
>>>>>command list, not more ... ;-)
>>>>>
>>>>>regards Wieland
>>>>
>>>>
>>>>If you "in" a file, it must have an "exit" on the end.  I can't use an
>>>>end-of-file test, because the code that handles "in" is the same code that
>>>>reads from stdin, and an eof from stdin _must_ cause the program to
>>>>terminate, else it will loop forever.
>>>>
>>>>look at the file after a 'savepos'.  it has an exit added automatically.
>>>>
>>>>Note that the "setboard" command is not needed, crafty will detect that it
>>>>has read a FEN string and set the position correctly.
>>>
>>>Thanks, Bob. But I believe we are turning in a cycle (Can I say so??  ;-) )!
>>>At first, please, look above! I told of my experiences importing PGN, exporting
>>>as FEN and re-importing it again ... This FEN file of a third software contained
>>>an "exit" command?!
>>>
>>>And the second: What do you tell to this point your command list v. 17.XX would
>>>not be completely?
>>>
>>>regards Wieland
>>
>>
>>All that I can say is that to the best of my knowledge, crafty.doc gives all
>>commands.  I will check again, but I am not aware of anything missing.
>
>
>Bob, I'm sorry! But that is not right. I'm missing commands like benchmark,
>to frequence, to cab ... or using CPU time?!
>Explanations i.e. for "input" are not completely. *Only examples* ...
>
>And the other point: I told of my experiences importing PGN, exporting as FEN
>and
>re-importing it again ... This FEN file of a third software contained an "exit"
>command! And even so Crafty did not import this FEN file rightly, was crashing
>down?!
>But Winboard could read this FEN file correctly ...


Please post the FEN file here.  I will look at it to see what is wrong.



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.