Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How Many Lines of Code in Source for Chess Engine?

Author: Uri Blass

Date: 22:26:51 11/17/02

Go up one level in this thread


On November 17, 2002 at 19:30:47, Bob Durrett wrote:

>
>
>
>If it takes one year to write and debug 25,000 lines of code, [in Rookie 2],
>then how much more in modern successful chess engines?  I assume the GUI is not
>so bad.

I think that to save time it is better not to care about gui but only about the
engine(if you have a very good engine you can sell it to Rebel or chessbase and
they are going to give it an interface).

If you cannot generate a program at Fritz's level like most programmers you
still can connect it with winboard or Arena.

>
>If the answer comes out to be 50,000 or 100,000 lines of code, then this may be
>a lifetime project?
>
>What am I missing?
>
>Just Xerox Crafty and rename it?  [ A joke ]
>
>Bob D.

I think that if your target is only to write a good engine then you need less
than 25000 lines of codes.

My code is clearly smaller than 25000 lines.

I have complicated move generator that it took a long time to debug it and if
you generate pseudo legal moves like most programmers you may write a good
program with even less lines.

I believe that less than 10,000 lines of code are enough to get to the top level
if you have the right ideas and less than 5000 lines are needed to be better
than Rookie2.

It does not mean that the task is easy because most of the time is not writing
source code but testing and thinking and correcting bugs and planning what to
write.

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.