Computer Chess Club Archives


Search

Terms

Messages

Subject: attacks_from[] and attacks_to[] info

Author: Nagendra Singh Tomar

Date: 22:01:44 10/20/02


Hi All,
       I would like to know whether updating attacks_from/attacks_to arrays in
make/unmake move is efficient or calculating this info whenver needed is
efficient. In my last chess program I found out that over a longer program run
both turn out to be equally efficient. I mean the fact that updating
attacks_from/attacks_to for all squares (some of which might not be used at all)
turns out to be equally bad/good as compared to calculating it from scratch
every time I need it (mostly in eval or check detection);
What is your opinion ?

regards
tomar




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.