bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Re: Naw..panic or teach me what I am doing wrong !!


From: Joseph Heled
Subject: [Bug-gnubg] Re: Naw..panic or teach me what I am doing wrong !!
Date: Fri, 10 Jan 2003 10:06:29 +1300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202


I think I found the bug, but I would like an opinion because I can't believe such a blatant error can exist undetected for so long.

I think wins are logged to the wrong player in the rollout code, when the game is over.

line 747 in rollout.c

      if ( iTurn & 1 ) InvertEvaluationR ( aarOutput[ ici ], pci );

If I change it to

      if ( ! (iTurn & 1) ) InvertEvaluationR ( aarOutput[ ici ], pci );

I start to get exactly my numbers again.

-Joseph





reply via email to

[Prev in Thread] Current Thread [Next in Thread]