It works!

This test case takes 11.6 sec. (301 matches).
I'll make it multithreaded, so that on near-future mainstream machines, most searches will take less than a second.
It looks like I succeeded in being 10 times faster than Kombilo, but I'll do a benchmark later. Kombilo, as its main optimization, looks at the final positions whether a match could have happened in the game, and examins only those games further. This algorithm doesn't do that yet, neither has it been optimized for 64-bits, so there is ample room for optimization.
<< Home