Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: 0x88 fast move generation

Author: Tord Romstad

Date: 10:02:02 01/17/04

Go up one level in this thread


On January 17, 2004 at 07:35:14, Jan wrote:

>Hi, im new to chess programming...i read some posts about 0x88 move generation
>on this forum(by moreland and others) but im not able to make move generation
>considerably fast. Could you give me some suggestions?

Hi Jan,

I haven't read your code very thoroughly, but at first glance it doesn't look
that bad.  I
would expect it to be at least as fast as what I use, probably even faster.
From the
opening position, how many times per second can you call your move generator?
What hardware do you use?

The most important piece of advice I can give you is this:  Don't worry about
the
speed of your move generator, at least not yet.  I think this is the most common
mistake begginning chess programmers make.  Concentrate on making a working
program first, even if it is slow and weak.  The important things is that the
code
is easy to read and modify, and that you don't have any serious bugs.  When you
have reached this stage, you can consider profiling your program and try to
rewrite the most time-consuming parts of the code.  There are good chances that
you will even find that move generation is not among the biggest bottlenecks.

As I wrote above, my move generator is probably slower than yours, but I haven't
bothered to optimize it because it consumes only a tiny fraction of the
processor
time.  Even if I could reduce the time spent on generating moves to exactly zero
(which is of course not possible), I would probably gain less than 5 Elo points.
It's not worth the effort.

Good luck with your engine!

Tord



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.