Upcoming repetition detection
Posted: Sat Apr 06, 2013 10:50 pm
I wrote down some notes regarding upcoming repetition detection I've been working on recently.
http://marcelk.net/2013-04-06/paper/upcoming-rep-v2.pdf
http://marcelk.net/2013-04-06/paper/upcoming-rep-v2.pdf
Feedback is welcome.Abstract
An algorithm is presented that detects cycles one ply before they appear in the search of a game tree. The algorithm is suitable for use in the leaf nodes of a chess program and can there shift the detection of repetition draws to an earlier iteration. The algorithm is fast because it doesn’t generate or iterate over candidate moves during search. Instead, the Zobrist hashes of potential reversible moves are precalculated and stored in a cuckoo table. Further speed is gained by employing a lightweight measure for the displacement of opponent pieces that is based on the exclusive OR of an even number of hash history items. Measurements are given for tree size, node speed and improved playing strength when applied to a chess program.