Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Starting a new chess program(again), need help

Author: Charles L. Williams

Date: 17:22:04 03/29/99

Go up one level in this thread


On March 29, 1999 at 17:49:31, Derrick Gatewood wrote:

>A couple of months ago I was so intrigued by computer chess programs and having
>a small background with C++ I began to write my own program.  I have to say one
>thing,  my programming skills are comparable to the ability of a dog trying to
>beat crafty...  I am not that great.   I began my program with a 64 array.  and
>had the values of the pieces in the array with 0 representing an empty square..
>So far,  so good.  I then programmed all the legal moves for the pieces.  Then
>here is where my lack of knowledge comes into place...  I made it to where the
>search function is no actually a function,  it is just a bunch of if, then,
>statements...  So it played a random game of chess,  but no real search.  I soon
>became sick of this,  errrr,  program.  I trashed that whole project.  I am now
>starting from scratch.  I was wondering if there are any web pages or books out
>there that will guide you from the beginning to the completion of a program.  I
>dont want to look at any source in fear that I will copy...  I dont want to do
>it this way.  Please,  any responses will be greatly appreciated.
>Thanks all.


There's a couple of websites with pseudocode for an alpha-beta search, and it
works quite well.  Since you're using C++, try to take advantage of classes as
much as possible.  Like you, I don't look at other people's code that much.
Well, maybe a peek now and then. :)


Chuck



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.