Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty question

Author: Robert Hyatt

Date: 06:14:46 03/22/01

Go up one level in this thread


On March 22, 2001 at 08:28:54, David Rasmussen wrote:

>In ValidMove(), the first thing that is checked is
>
>if (PcOnSq(From(move)) != Piece(move)) return(0);
>
>then, why is this checked again for each piece? That is just a waste of time.

It is called so infrequently it doesn't really matter.  I will look at it,
but it won't make any difference in the speed.



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.