Simple triple repetition handler

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
stegemma
Posts: 859
Joined: Mon Aug 10, 2009 10:05 pm
Location: Italy
Full name: Stefano Gemma

Re: Simple triple repetition handler

Post by stegemma »

op12no2 wrote:
bob wrote: Not sure what you mean. Would you not want to choose a draw over being material behind??? If you don't check, you would not know it was possible...
Ah yes I see. Historically my very early Lozzas were walking into rep draws, so in my head the rep test is to avoid rep, but you can also look at it the other way as you say, to try and force one.
If you simply return a value near to zero when you find a repetition, then you can achieve both results. Maybe zero is not always a good value, because this would let the engine to force a repetition even if it is just a few centipawns down. It could be a variable value, from -100cp at start down to zero in the final.
Author of Drago, Raffaela, Freccia, Satana, Sabrina.
http://www.linformatica.com