Computer Chess Club Archives


Search

Terms

Messages

Subject: In the generate_move function...

Author: TEERAPONG TOVIRAT

Date: 22:39:30 12/17/99


Hi all,
I notice that there are two methods in generating
the piece moves.
First is to generate pseudolegal moves from
every pieces then check their legalities after
making them.
The second , more complicated code, only the
legal moves are generated.
In my opinion, the former method is good in the
early phase of game because both kings are
quite safe and far from attack so there should
be only few illegal moves. But in the late middle
game or endgame the kings are  more exposed
and usually take part in the game. There may be
a lot of illegal squares for the kings.
Is there a conclusion on this topic ?(for array board)
Another question.
Is it a consensus that all captured moves should
be considered  first ? I think  those stupid sacrifice
moves or some piece exchanging moves are not
good enough to be above in the list.
 Do you agree?

Thank for any help,
Teerapong




This page took 0.01 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.