Computer Chess Club Archives


Search

Terms

Messages

Subject: A question in TSCP source code please?

Author: Gopi

Date: 15:38:15 10/19/03


I cant actually follow what its been done in this piece of code which is in
Makemove function. if (m.bits&8) { if(side==LIGHT) ep=m.to+8;
else ep=m.to-8;} So why is that m.bits is bitwise ANDed with 8? Actually for
enpassement its 4 right? So please can anyone explain it.Thanks a lot.



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.