Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Comment on solving illegal moves, plz!

Author: leonid

Date: 16:14:25 02/11/01

Go up one level in this thread


On February 11, 2001 at 18:20:57, Pham Minh Tri wrote:

>Hi,
>I know there are three ways to deal with illegal moves (side to move is in check
>after taking those moves):
>1) Generate legal moves only.
>2) Check and cut off illegal moves before taking a move.
>3) Take a move without checking it and let program captures the king in the next
>ply (if it is an illegal move).
>
>I am wondering which one is better (faster). Is there any other way?
>Any comments would be appreciated.


Big mystery for me and I wait for responses!

My program use mainly moves verified for legality before using them. They are
even put in special order already in move generator.

After verification, other way (usage of illegal moves) gave lost in speed in
around 30%. I found that usually (by talking here) that mainly programs don't do
this and have great speed their own way.

Leonid.

>Pham



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.