[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] twogtp.py
From: |
pogonyshev |
Subject: |
[gnugo-devel] twogtp.py |
Date: |
Mon, 24 Feb 2003 01:37:48 +0100 (MET) |
- twogtp.py revised to support game resignations and endgame contests
this patch includes changes from Arend's twogtp-endgame.py and my own
experiments with python to make the script understand resignations. i
noticed that perl script handles resignations in a very strange way:
it prints something like "white plays resign" and continues the game
till two passes appear (if ever), as usually. patched python script
stops the game after resignation, as it should (i found python easier
to read than perl, so i haven't fixed perl script).
there is still a problem about endgame contests: it generate unreadable
files. that is, it can place one stone over another in ko, etc. such
files can be read as intended with cgoban only, because it doesn't
follow FF[4] sgf specification (well, gnu go doesn't either).
i have three ideas of how to fix this: we can use output of `showboard'
and add stones in sgf file only where they really are (that is, where
they haven't been captured). or we can make a private extension command
which say prints the current position in sgf format to stdout and use
it from script. or, finally, we can make the script actually play the
game to find which stones are captured in process.
btw, i made endgame contests always run with random seed set to zero.
Paul
p.s. how do you code logical operators like `&&' and `||' in python?
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
patch.gz
Description: GNU Zip compressed data
- [gnugo-devel] twogtp.py,
pogonyshev <=