Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Are there any programs that do NOT check for legality after the fact?

Author: KarinsDad

Date: 15:51:05 07/07/00

Go up one level in this thread


On July 07, 2000 at 17:40:47, William H Rogers wrote:

>The only way that I found that this could be avoided is to assign points to the
>King. In that way the alpha/beta routine will reject the move as real bad and if
>not then you are checkmated.
>IHMO
>Bill

I actually have another score related bug in the code that enabled me to see
this bug in the first place (i.e. it allowed the king to move into that square
and thought it was ok). Chances are that if I would not have had the second bug,
this bug would have been hidden for quite a while (i.e. it would have generated
illegal moves which the search engine would have considered bad and rejected). I
am attempting to prevent illegal moves from being generated in the first place
in my move generator so that I will not do any processing on an illegal move (as
opposed to putting in code to verify that my move was actually legal or having
code where a piece takes the king and thinks it is mate for the illegal move).

KarinsDad :)



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.