Computer Chess Club Archives


Search

Terms

Messages

Subject: Another question about crbmg.cpp

Author: Maurizio Di Vitto

Date: 08:26:01 01/29/04


Thanks again for your further help,
I have another doubt just about a part of your crbmg.cpp. It's about the
MakeMove. At the begin of this member function we need to know wich piece has
been moved, and you do it by using the Action() function that shift the m value.
But from the 13th to the 15th bit of m bitfield we can deduce just the piece
moved, but in the MakeMove in the switch selection you also control if the value
is CASTLE, ENPASSANT, TWOFORWARD.... how do you know these state (CASTLE,
ENPASSANT...) if the Action() function shift the m value of 12 units? I mean if
you control from the 13th to the 15th bits you know wich pice has been moved and
not if is a Castle move. What's wrong in this my exposition?
Thanks again for your help.
Maurizio Di Vitto



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.