Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: reuse Last Ply Moves In Move Gen ?

Author: Tony Werten

Date: 11:44:36 04/12/02

Go up one level in this thread


On April 12, 2002 at 09:14:22, Oren Avraham wrote:

>I've gone through the archive to look for a simple idea
>but found non:
>Why every ply should i generate the pseudomoves all over again, when i can
>"recycle" the old ones in some way or another.
>If it is done somewhere: how ? (what are the 'thumb rules' to update the old
>moves...")
>
>10x (Thank Tou) in advance Oren. (p.s i'm an 18 years old IDIOT who makes a
>chess program in PROLOG...)

I don't think it's worth the trouble for several reasons

- The board can change a lot in 2 moves. Keeping track or finding the changes
might cost more than just call generate
- 90% of the calls to movegeneration are capture moves only, so not that many
moves to reuse
- Generate moves (either capture or noncapture) should hardly show up with
profiling. If it does you're either generating them wrong, or you don't have an
evaluation function yet.

cheers,

Tony



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.