--- In [email protected], "Seth Lipkin" <seth.lip...@...> wrote:
>
> 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
> seth.lip...@...
>

I think that it's always doubled, because once the simulator commits a
play in sim.cpp, that whole sequence of functions is called -- to add
a new turn, and that function checks to see whether the game ended and
if so, calls deadwood. I may be wrong but I think the simulator always
has to commit a play or else it doesn't mean anything. deadwood is
only called in sim.cpp when you're simulating to the end of the game,
so that's the only time they'd be called together, but yeah maybe i
should put a counter on both calls and see what's going on...

if only i could get cout working on stupid windows,

cesar

Reply via email to