Nice research! I would worry that the deadwood call in sim.cpp IS important, since deadwood would occur during some sims. (or maybe those are always doubled, which is the bug itself?) I suppose a counter on the sim.cpp deadwood call and one on the game.cpp deadwood call would quickly tell you if they're always called together.
Is there some state somewhere that could help deadwood() itself refuse to self-duplicate on a single turn? That way, you could call it all day without fear. Seth Lipkin [email protected]
