Author: Alvaro Jose Povoa Cardoso
Date: 00:34:11 05/15/05
Go up one level in this thread
On May 15, 2005 at 00:16:39, Pallav Nawani wrote:
>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
Thanks, Pallav
but shouldn't it be:
if (wtm != side_root) {current_material=-current_material;
root_mat=-root_mat};
Or am I wrong?
Alvaro
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.