Computer Chess Club Archives


Search

Terms

Messages

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

Author: Andreas Guettinger

Date: 20:04:34 11/17/02

Go up one level in this thread


On November 17, 2002 at 22:43:45, Bob Durrett wrote:

>On November 17, 2002 at 22:35:08, Andreas Guettinger wrote:
>
>>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.
>>>
>>>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.
>>
>>Depends on how many time you can spend. If you have 1-2 hrs per week like me
>>then it's a life time hobby, yes.
>>If it is your research project and you can spend 30+ hrs a week then 50'000
>>lines of code is not much.
>>
>>Important is to go for small and easy targets at the beginning. Using 0x88 you
>>can easily get a move generator within a week of about 1000 lines of code.
>>
>>regards
>>Andy
>
>Well, I am retired but I still don't have 30+ hours a week to spend if it takes
>several years.  Correct me if I'm wrong, but at my age maybe starting such a
>time consuming and long term project would be unwise, to say the least.
>
>Unless I get feedback here correcting my misconceptions in this matter, maybe
>I'll stick to simpler projects like writing a program to so some simpler task.
>The idea that it takes so long makes me tired already.  : (
>
>Bob D.

Well, a life time project means not that you need a life time to get a decent
engine, but that you will never be satisfied with the playing strength of the
project. ;)
I think in 1-2 years it is possible to get a good chess engine. If you don't
know much about programming, maybe 2-3 years, spending a few hours per week.

I started coding my chess engine this spring, with very basic C knowledge. I'm
no programmer and have a full time job. Until now, I have implemented:

move generator 0x88
alpha-beta
quiescence search
basic eval (piece-square tables, material)
search extensions
SEE
xboard support (very basic)

and my engine already beats me most of the time. I never thought I would get as
far at the beginning. :)

regards
Andy




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.