Author: Rafael Andrist
Date: 02:28:15 12/29/01
Go up one level in this thread
On December 28, 2001 at 16:04:46, Uri Blass wrote: >On December 28, 2001 at 15:13:14, Rafael Andrist wrote: > >>On December 28, 2001 at 13:46:32, Uri Blass wrote: >> >>>I have almost no experience with writing into text files in C and this is one of >>>the reason that I did not try to do the relevant program by myself and prefered >>>to concentrate on other things. >> >>its practically the same like writing text to stdout, use fprintf instead of >>printf > >I may try to do it later if I get no help but I think that the program that I >suggest may help many progrmammers because it is not dependent on the structure >of the program and it is very simple to use(only to add few lines in the right >place when the lines are the same for all programmers and to add a file that has >the relevant functions to the project). I think it is more efficient to implement it directly in search. To make a general tool would require another new communication protocol too. >A possible problem is the fact that I need to go back in the text and >I never used to go back when I used printf > >suppose the tree of the chess program includes 1.e2e4 c7c5 takeback c7c5, >takeback e2e4, e2e3 >e2e3 should be written in the text file before c7c5 inspite of the fact >that e2e3 was generated after e2e4. So you want the last investigated variation first? This won't be very useful if you want to improve your move ordering. But if you really want that, write the moves to a string first and store it at end in a file. Use a fixed amount of characters (I suggest 6: 1 piece type, 2 from-square, 2 to-square, 1 space for separation) per move to make it easy to go back. regards Rafael B. Andrist
This page took 0.01 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.