I've found what I believe is a bug in GNU Go's twogtp.py script, which allows two GTP programs to play against each other. Please correct me if I'm wrong. If someone here is involved in the GNU Go project, and I'm right, please fix the bug for the next release.

The problem is in the play() method of the GTP_game class. When it's black's turn, we see this:

                    self.moves.append(move)
                    if string.lower(move[:4]) == "pass":
                        passes = passes + 1
                        if verbose >= 1:
                            print "White passes"
                    else:
                        passes = 0
                        self.whiteplayer.black(move)
                        if verbose >= 1:
                            print "Black plays " + move

Shouldn't that be "Black passes" instead of "White passes"? There's a similar inversion for white's turn. This causes some very strange reporting, where it looks like one player gets several moves in a row.

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/




_______________________________________________
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/

Reply via email to