Search found 2 matches

by szacun
Fri Jan 10, 2014 1:16 am
Forum: Programming and Technical Discussions
Topic: Threefold repetition and transposition table
Replies: 3
Views: 3555

Re: Threefold repetition and transposition table

I am checking for repetitions before looking into hash table, but if the same situations happens for a second time, there is no repetition and program returns what is in ttable. Do you mean to use ttable only is such a situation on board has never occured before, and otherwise just evalute position ...
by szacun
Thu Jan 09, 2014 9:52 pm
Forum: Programming and Technical Discussions
Topic: Threefold repetition and transposition table
Replies: 3
Views: 3555

Threefold repetition and transposition table

Hi! I am writing my own engine, and i have just implemented transposition table, and now i have a problem with threefold repetion.

This is a snippet from my alphabeta function:

if (CountRepetitions(currentBoardHash) >= 3) // threefold repetition
return DRAW;

int tableScore = transpositionTable ...