Do you understand the reason for the following code in Toga
Posted: 08 Aug 2005, 11:28
code in Toge1.0 beta2:
if (op[colour] >= -22) // Thomas king safe?
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256;
else
op[colour] -= ((attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256) * 1;
It seems to me that
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256; from fruit's code has the same effect and I do not understand the reason for the change from fruit's code.
Uri
if (op[colour] >= -22) // Thomas king safe?
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256;
else
op[colour] -= ((attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256) * 1;
It seems to me that
op[colour] -= (attack_tot * KingAttackOpening * KingAttackWeight[piece_nb]) / 256; from fruit's code has the same effect and I do not understand the reason for the change from fruit's code.
Uri