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
Post
by PK » Fri Jan 04, 2019 6:50 pm
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.
hgm
Posts: 27808 Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller
Post
by hgm » Fri Jan 04, 2019 7:16 pm
Avoid modulo operations in time-critical code, especialy if the divisor is a variable. It is very slow.