Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: I don't use illegal moves EVER

Author: Bruce Moreland

Date: 12:01:13 11/24/99

Go up one level in this thread


On November 24, 1999 at 08:30:06, Jari Huikari wrote:

>On November 22, 1999 at 19:05:13, leonid wrote:
>
>>Was puzzled few times by finding that many logics use illegal moves and
>>succesfully. Until now I used this kind of moves only in the ply zero. Expect to
>>rewrite my logic completelly with usage of illegal moves in every ply.
>
>This doesn't answer to your questions, but I decided to mention it anyway.
>Am I alone or does someone else also generate only legal moves?

A large percentage of the time, the first move you examine will cause a
fail-high, and you'll return beta and be done.

So move generation time is wasted in these cases, if you generate all moves
ahead of time.

So all legality checking would also be wasted.  And if this is a significant
expense, it would also be a significant wasted expense in these cases.

I don't see what is wrong with generating everything, and then checking legality
as you actually examine the moves.

bruce



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.