SchaakMachine: Clear win

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

PK
Posts: 893
Joined: Mon Jan 15, 2007 11:23 am
Location: Warsza

Re: SchaakMachine: Clear win

Post by PK »

I add noise in eval, pseudocode follows:

Code: Select all

((position->hashKey ^ randomValueObtainedAtGameStart) % noiseValue) - noiseValue / 2
This way random component of evaluation is always the same for the position, centered around zero, different in each game and does not pollute search code.
User avatar
hgm
Posts: 27808
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: SchaakMachine: Clear win

Post by hgm »

Avoid modulo operations in time-critical code, especialy if the divisor is a variable. It is very slow.