Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How long did it take you to write your first chess program ??

Author: Tony Werten

Date: 13:54:55 07/07/01

Go up one level in this thread


On July 06, 2001 at 17:49:28, Uri Blass wrote:

>On July 06, 2001 at 15:04:14, John Wentworth wrote:
>
>>To all the chess developers, how many hours of coding did it take you to write
>>your first program from the ground up? Did you develop your own book?
>
>No,I did not develop my own book and not a GUI or a chess program but only a
>move generator.
>>
>>I am currently working on one now and have only about 9 - 12 hours of coding
>>time spent.  I am at the point where I can play back and forth with the program
>>until it runs out of book (modified Crafty book). I also spent time developing a
>>nice looking GUI that displays the moves made. Just trying to gage the total
>>time it will take me to complete it. Thanks for your input.
>
>I did not count time but my estimate is total time of 500 hours and I only have
>a move generator and not a chess program and even the move generator is not
>perfect and there are some rare cases when I know that it generates illegal move
>or does not generate legal moves(It never generates en passant captures in reply
>to check and it generates illegal en passant captures when there is no check and
>the pawn is not pinned) but my priorities is first to make it faster and only
>later to correct this problem.

Based on experience, I STRONGLY suggest to do it the different way around. First
correct the problem then make it faster.
Even more, fixing problems can make your engine faster. Correct movegeneration
might give you more (correct) cutoffs and slim down your tree.

Making something faster when it's broken is meaningless. It just means it breaks
faster.

cheers,
Tony

>
>I will be happy when it can generate 100 Knodes per second on p800(my nodes are
>only legal moves and I test it by the time it needs to calculate the number of
>games of 5 or 6 plies.
>
>Note that it only needs to make moves for the first 5 plies in order to
>calculate the number of games of 6 plies because it does not need to make the
>last ply in order to know the number of legal moves.
>
>It means that 100 Knodes per second means having similiar speed to Crafty
>in calculating perft.
>
>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.