gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] Patch: Fix traceback in twogtp.py


From: Inge Wallin
Subject: [gnugo-devel] Patch: Fix traceback in twogtp.py
Date: Wed, 25 Jun 2003 00:06:50 +0200

Here is a patch that fixes the reported traceback in twogtp.py.  The problem
is that Gnu go version 3.2 prints the board to stderr instead of stdout
when given a "showboard" in GTP mode.  So the returned string is
empty and board[0] is not defined.

The current Gnu go prints the board to stdout so this never happens.

Summary:
  - check if board is empty before indexing it.

        -Inge

Attachment: twogtp.py.patch
Description: Text Data


reply via email to

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