Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: New chess programer ask you HELP:

Author: Ricardo Gibert

Date: 14:51:39 08/31/99

Go up one level in this thread


On August 31, 1999 at 16:28:15, Nicolas Carrasco wrote:

>On August 31, 1999 at 13:41:31, Ricardo Gibert wrote:
>
>>On August 30, 1999 at 18:51:07, Nicolas Carrasco wrote:
>>
>>         <snip>
>>
>>>
>>>/* Posciciones iniciales
>>>*************************************************************/
>>>char init_color[64]= {
>>>	1, 1, 1, 1, 1, 1, 1, 1,
>>>	1, 1, 1, 1, 1, 1, 1, 1,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	0, 0, 0, 0, 0, 0, 0, 0,
>>>	0, 0, 0, 0, 0, 0, 0, 0
>>>};
>>>
>>>char init_piece[64]= {
>>>	3, 1, 2, 4, 5, 2, 1, 3,
>>>	0, 0, 0, 0, 0, 0, 0, 0,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	6, 0, 6, 6, 6, 6, 6, 6,
>>           ^should be a 6, yes? You've probably already fixed it, but just in
>>case, I thought I'd point it out. Buena Suerte!
>>
>>>	6, 6, 6, 6, 6, 6, 6, 6,
>>>	0, 0, 0, 0, 0, 0, 0, 0,
>>>	3, 1, 2, 4, 5, 2, 1, 3
>>
>>             <snip>
>
>I had that bug, because I was testing my move_generator.
>Can you send me a move_generator, using these ideas?

I'm new to the subject of writing a chess playing program too. I'm still in the
stage of accumulating algorithms. As far as move generation is concerned, I've
decided to go with a method known as 0x88 that has the reputation of being a
relatively easy approach that is competive in performance to other methods. An
other popular way that is more difficult to do is known as rotated bitboards.
There is a lot more information on the latter method on the internet. Move
generation is not a trivial program to write well if you have not done it
before, so do not get discouraged. The best way is open to debate.

You might try simply copying the code from one of many program sources available
on the internet. TSCP is one you have already. I'm not sure, but I believe it
uses rotated bitboards. SCP is another program that I think uses a different
method. You should have someone with much more experience to help you further.
Sorry. Good luck!



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.