Author: Uri Blass
Date: 10:13:46 12/25/02
Go up one level in this thread
On December 25, 2002 at 12:27:47, Jeremiah Penery wrote: >On December 25, 2002 at 11:18:54, Uri Blass wrote: > >>I guess that releasing 2 exe file when one file is not supposed to be used for >>playing is the most simple solution (using #define game c when c is from a text >>file is better but I do not know if it is possible). >> >>Uri > >#define shouldn't work in that way, because it is only used in the compiler >preprocessor > >I think the easiest way would be to just copy your functions (gen, makemove, >undomove - whichever calculates the stuff that perft doesn't need) and remove >the extra stuff. So you have gen(), perft_gen(), makemove(), perft_makemove(), >etc. Then when you do perft, just call the appropriate one. I am afraid that doing the code longer may cause the program to be slower. I think that I will have simply 2 exe file If I tell the computer #define game 0 and do #if game==1...#endif then I get annoying warning from the compiler but perft is done faster. Another way is Dieter's suggestion but it means that I need to add some .h files for every function that I need to do fast code in part of the cases. Uri
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.