Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: How to compare the current_material with the root_material?

Author: Pallav Nawani

Date: 21:16:39 05/14/05

Go up one level in this thread


Use another variable to store the side to move at root.
side_root = wtm;
score_root = compute_material();
...

>int current_material, root_mat;
>makemove(wtm, ply)
>  current_material=ComputeMaterialScore(); root_mat=root_material;
>  if (wtm == side_root) {current_material=-current_material; root_mat=-root_mat};
>unmakemove(wtm, ply)

etc.

Pallav



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.