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

Re: [pbmserv-dev] Entirely new question from the new guy



And although it doesn't directly relate to a question that's been asked, 
I might as well point out what I spotted in my skim of the C++ code.

On Wed, Jun 29, 2005 at 05:02:21PM -0500, Michael Hammond wrote:
> 	if  ((GetAt(0,0)==GetAt(0,1)==GetAt(0,2)==PlayerPieces(CurrentPlayer())) ||
> 	     (GetAt(1,0)==GetAt(1,1)==GetAt(1,2)==PlayerPieces(CurrentPlayer())) ||
[snip ...]

That (A==B==C==D) thing doesn't do what you want.  == can only test two 
things at a time.

-- schep