goban-1.1.orig/0000755000175000017500000000000010271274052011152 5ustar alalgoban-1.1.orig/Makefile.in0000644000175000017500000004447410271270606013235 0ustar alal# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/configure.h.in \ $(srcdir)/goban.spec.in $(top_srcdir)/configure COPYING TODO \ compile install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = configure.h CONFIG_CLEAN_FILES = goban.spec depcomp = am__depfiles_maybe = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ GNOME_DATADIR = @GNOME_DATADIR@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign no-dependencies SUBDIRS = src SCREENSAVER_DATADIR = $(GNOME_DATADIR)/control-center/screensavers EXTRA_DIST = games goban.xml goban.spec.in src/*.h README.screensaver all: configure.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) configure.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/configure.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status configure.h $(srcdir)/configure.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f configure.h stamp-h1 goban.spec: $(top_builddir)/config.status $(srcdir)/goban.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) configure.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) configure.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) configure.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) configure.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/src @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile configure.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ dist-tarZ dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-recursive distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-data-local install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am install-data-local: test -e $(SCREENSAVER_DATADIR) && $(INSTALL) goban.xml $(SCREENSAVER_DATADIR) $(INSTALL) -d $(pkgdatadir) $(INSTALL) games/* $(pkgdatadir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: goban-1.1.orig/README0000644000175000017500000001562106436130660012043 0ustar alalREADME for cgoban 1.9.2 23 November 1997 ---------------------------------------- Cgoban (Complete Goban) is for Unix systems with X11. It has the ability to be a computerized go board, view and edit smart-go files, and connect to go servers on the Internet. I'm keeping a mailing list of people interested in cgoban. I will keep the traffic very low. All I send out are announcements when new versions are ready, along with a description of what is new/fixed in the new version. If you want these announcements, then please send me mail at "wms@hevanet.com". HOW TO BUILD ------------ Cgoban uses the Gnu autoconf utility. To build and run it, follow these steps: 1) Unpack it. You must have done this already to read this file. Make sure that you "cd" into the cgoban directory (the directory that has this README in it). 2) Type "./configure". 3) Type "make". 4) Type "cgoban". If all went well you should be running cgoban. Directions on using cgoban are all available through the "help" buttons. For a list of command line switches available, try "cgoban -help". INSTALLING ---------- cgoban's build directories (that is, the directory that has this README in it and all the subdirectories) take up a lot of disk space. After you build it, you need nothing but the binary. You can install it by running "make install" in the build directory; if you want to put it somewhere besides "/usr/games/bin", then you should edit the Makefile, set "PREFIX" to the place to put cgoban, then run "make install". After you've installed the binary, feel free to delete everything but the binary. IF YOU HAVE TROUBLE ------------------- The section below this lists some systems that are known to have trouble building. Check there to see if your system is on the list. The most common problem is systems that need special switches to run "cc". Your C compiler MUST be an ansi-compatible c compiler. If you have trouble with "./configure" or if you have trouble compiling, try setting your environment variable "CC" to be how to run your C compiler. For example, on some HP/UX systems "make" will break unless you set "CC" to be "cc -Aa -D_HPUX_SOURCE". On a csh-based system, you set this with: $ setenv CC "cc -Aa -D_HPUX_SOURCE" and on an sh-based system you need to type two lines: $ CC="cc -Aa -D_HPUX_SOURCE" $ export CC After setting CC, run "./configure" again and then "make" again to see if it works better. Another problem is finding the X11 includes and/or libraries. If they aren't founds when you are compiling, try running configure again, but this time try "./configure --x-includes= --x-libraries=" to tell configure where your X includes and X libraries are. KNOWN PROBLEM SYSTEMS --------------------- HP/UX Needs CC set as above, and sometimes needs the X directory set by hand (also as shown above). Linux Elf Old Linux Elf libcs have a bug in sscanf that prevents cgoban from working correctly. If you can see the "games" window in client mode, then everything is fine. If you get an error window when you press the "games" button on the client main window, then you need to get a newer version of libc and recompile. I've heard that libc 5.3.12 works, so if you get that version or later you should be OK. VAX/Ultrix Some systems have broken long longs. If you get an error referring to "__ll_lshift" when you try to build, then edit obj-*/configure.h to change "SIZEOF_LONG_LONG" to 0, then do a "make clean" then a "make". AIX There seems to be some broken AIX compilers out there (or it may be a bug in Cgoban that only shows up on AIX). If your AIX system doesn't work correctly try editing the Makefile and changing the CFLAGS line to have no "-O" switch. Then do a "make clean" then "make" and see if it works better. SPARC There are some Sparc X systems that have a bug. When you start up cgoban, your whole X server crashes. If this happens to you, get an upgrade from Sun (they do have a bug fix out that will fix this). FIREWALLS --------- See the help for the "setup" window. NOTE ---- Everybody complains that you can't resize the boards. Well, I'm working on it. In the meantime, PLEASE see the man page about the "cgoban -fontHeight" switch. With this you _can_ change the size of the board, but just not "on the fly". For example, "cgoban -fontHeight 14" will make the boards a little bit bigger (12 is the default); "cgoban -fontHeight 10" will make the boards a little bit smaller. ARENA MODE ---------- This is just for testing out go modem protocol programs. Run it like: $ cgoban -arena.games 4 -arena.size 9 -arena.komi 5.5 -arena.prog1 "myprog-new" -arena.prog2 "myprog-old" This will play myprog-new against myprog-old for four games, alternating who plays white and who plays black. The output will look like: 0 12.5 1 0.5 0 30.5 0 3.5 Which means that myprog-new won the first, third, and fourth games by 12.5, 30.5, and 3.5 points, while myprog-old won the second game by 0.5 points. Note that myprog-new and myprog-old *MUST* play until all dead stones are removed from the game, since the scoring function does *NOT* remove dead stones in arena mode. Scoring is done with Chinese rules so playing until all the dead stones are gone won't count against your score. Arena mode is kind of hacked in mostly for my benefit, so sorry but it isn't real user-friendly. THE grab_cgoban SHELL SCRIPT ---------------------------- If you use cgoban with a 12 point font, then the grab_cgoban shell script will nicely take a snapshot of a cgoban board and save it as a .gif file. For this script to work, you must have either the "imagemagick" or "pbmplus" packages installed. REVISION HISTORY ---------------- If the patchlevel changes, then it's just bug fixes. So for example 1.4.2 is just like 1.4.0 but some things that were broken are fixed. 0.0.0 Alpha version. Not all features are present. 0.1.0 First beta version. All features for the 1.0.0 release are present, but there are still some blatant bugs. 1.0.0 First full release. 1.1.0 Lots-O-bug fixes! Tons of them! Added support for "look" client command. Added a prompt for the client. Added ability to shift-click on a client game to move easily to a specific move number. Added "Say/Both/Kibitz" radio button. Improved games list window to show flags, be more resizable, and not crush columns together. 1.2.0 Spiffed up the configure window and added connect-with-telnet support for the firewalled folks out there. 1.3.0 Added the ability to try out variations on server games that you are observing or playing in. 1.4.0 Added file selector window, game info window, "Edit Game" buttons, and keeping server game info around after the game ends. 1.5.2 Added support for more than two servers, arena mode, and the anti-slip option. Also made it automatically run with no color if it can't get enough instead of just whining about it. 1.6.3 Added server "match" GUI. goban-1.1.orig/missing0000755000175000017500000002453310267761603012570 0ustar alal#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2004-09-07.08 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit 0 ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit 0 ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: goban-1.1.orig/Makefile.am0000644000175000017500000000054710271270417013215 0ustar alalAUTOMAKE_OPTIONS = foreign no-dependencies SUBDIRS = src SCREENSAVER_DATADIR = $(GNOME_DATADIR)/control-center/screensavers install-data-local: test -e $(SCREENSAVER_DATADIR) && $(INSTALL) goban.xml $(SCREENSAVER_DATADIR) $(INSTALL) -d $(pkgdatadir) $(INSTALL) games/* $(pkgdatadir) EXTRA_DIST = games goban.xml goban.spec.in src/*.h README.screensaver goban-1.1.orig/src/0000755000175000017500000000000010271274053011742 5ustar alalgoban-1.1.orig/src/clp-x.h0000644000175000017500000000105406143253010013127 0ustar alal/* * wmslib/src/wms/clp.h, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. * * Command Line Parse. */ #ifndef _WMS_CLP_X_H_ #define _WMS_CLP_X_H_ 1 #ifndef _WMS_CLP_H_ #include #endif /********************************************************************** * Functions **********************************************************************/ extern void clp_rXDefaults(Clp *cltab, Display *dpy, const char *name); #endif /* _WMS_CLP_X_H_ */ goban-1.1.orig/src/rcur.h0000644000175000017500000000335010267775261013103 0ustar alal/* * wmslib/include/but/rcur.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for remote cursors. */ #ifndef _BUTRCUR_H_ #define _BUTRCUR_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define BUTCUR_NUM 10 /********************************************************************** * Types **********************************************************************/ /* * Do not use butCur_bogus. It is a bogus cursor, _NOT_ a bogus-looking * cursor. */ typedef enum { butCur_idle, butCur_text, butCur_twitch, butCur_right, butCur_left, butCur_up, butCur_down, butCur_lr, butCur_ud, butCur_grab, butCur_bogus} ButCur; typedef struct ButRcur_struct { ButEnv *env; int winId, rx,ry, rw,rh; int lx,ly; ButCur type; bool drawn; Pixmap under; MAGIC_STRUCT } ButRcur; /********************************************************************** * Functions **********************************************************************/ /* Public. */ extern void butEnv_rcInit(ButEnv *env); extern void butRcur_create(ButRcur *rc, ButEnv *env); #define butRcur_destroy(rc) butRcur_move(-2, 0,0, 0,0); extern void butRcur_move(ButRcur *rc, int winId, int rx,int ry, int rw,int rh, ButCur type); extern void butRcur_redraw(ButEnv *env, int winId, int x,int y, int w,int h); /* The type of cursor has changed. */ extern void butEnv_setCursor(ButEnv *env, But *but, ButCur newCursor); /* Set up any cursor changes that may have occurred. */ extern void butEnv_rcActivate(ButEnv *env); #endif /* _BUTRCUR_H_ */ goban-1.1.orig/src/msg.c0000644000175000017500000004503310270056445012703 0ustar alal/* * src/msg.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include "cgbuts.h" /* Included for CGBUTS_WSTONECHAR and CGBUTS_BSTONECHAR */ #ifdef _MSG_H_ Levelization Error. #endif #include "msg.h" /********************************************************************** * Globals **********************************************************************/ const char msg_mFonts[] = "-adobe-utopia-medium-r-normal--%d-*-*-*-*-*-*-*/" "-adobe-times-medium-r-normal--%d-*-*-*-*-*-*-*/" "-bitstream-charter-medium-r-normal--%d-*-*-*-*-*-*-*"; const char msg_labelFonts[] = "-adobe-helvetica-bold-r-normal--%d-*-*-*-*-*-*-*"; const char msg_bFonts[] = "-adobe-utopia-bold-r-normal--%d-*-*-*-*-*-*-*/" "-adobe-times-bold-r-normal--%d-*-*-*-*-*-*-*/" "-bitstream-charter-black-r-normal--%d-*-*-*-*-*-*-*"; /* * From crwin.c */ const char msg_byBillShubert[] = "Copyright \251 1995-1996 William Shubert"; const char msg_noWarranty[] = "Cgoban comes with ABSOLUTELY NO WARRANTY " "and is free software."; const char msg_seeHelp[] = "Please see the file \"COPYING\" for more " "details."; /* From "cgoban.c" */ const char msg_path[] = "Path:"; const char msg_file[] = "File:"; const char msg_mask[] = "Mask:"; const char msg_dirs[] = "Directories"; const char msg_files[] = "Files"; const char msg_dirErr[] = "Error \"%s\" occurred while trying to read directory \"%s\"."; const char msg_notEnoughColors[] = " Cgoban can't get enough colors. You probably have programs running " "that use a lot of colors, like Netscape or image viewers. Cgoban will " "run in black and white mode; if you want to run cgoban in color, then " "you must exit from the problem applications and run cgoban again."; /* * From control.c */ const char msg_newGame[] = "New Game"; const char msg_loadGame[] = "Load Game"; const char msg_editSGF[] = "Edit SGF File"; const char msg_goModem[] = "Go Modem"; const char msg_quit[] = "Quit"; const char msg_setup[] = "Setup"; const char msg_loadGameName[] = "Select the file to load:"; const char msg_editGameName[] = "Select the file to edit:"; /* * Buttons from gameSetup.c */ const char msg_gSetup[] = "Game Setup"; const char msg_wName[] = CGBUTS_WSTONECHAR " White:"; const char msg_bName[] = CGBUTS_BSTONECHAR " Black:"; const char msg_ruleSet[] = "Rules Set"; const char *msg_ruleNames[] = {"Chinese", "Japanese", "Ing", "AGA", "New Zealand", "Tibetan", BUTMENU_OLEND}; const char msg_boardSize[] = "Board Size"; const char msg_handicap[] = "Handicap"; const char msg_komi[] = "Komi"; const char msg_ok[] = "OK"; const char msg_cancel[] = "Cancel"; const char msg_timeSystem[] = "Time System"; const char *msg_timeSystems[] = {"None", "Absolute", "Japanese", "Canadian", "Ing", BUTMENU_OLEND}; const char msg_primaryTime[] = "Main Time"; const char msg_byoYomi[] = "Byo-Yomi Time"; const char msg_byoYomiStones[] = "Stones per Byo-Yomi"; const char msg_byoYomiCount[] = "Byo-Yomi Periods"; const char msg_badSize[] = "\"%s\" is an invalid size. The size should be " "a number from 2 through %d."; const char msg_badHcap[] = "\"%s\" is an invalid handicap. The handicap " "should be zero or a number from 2 through %d."; const char msg_badKomi[] = "\"%s\" is an invalid komi. The komi should be " "be a number, possibly with 0.5 (one-half) added."; const char msg_localTitle[] = "%s (W) vs. %s (B)"; const char msg_noTitle[] = "No Title"; const char msg_badTime[] = "\"%s\" is not a legal time. Use either " "just minutes, \"mm:ss\", or \"hh:mm:ss\" " "formats."; const char msg_badBYStones[] = "\"%s\" is not a legal byo-yomi stone " "count. Use any positive number."; const char msg_badBYCount[] = "\"%s\" is not a legal value for the " "number of byo-yomi periods. Use a " "positive whole number."; /* * Text from local.c */ const char msg_notCgobanFile[] = "\"%s\" is not a Cgoban save game. You may " "edit this SGF file, but you can not continue the game."; const char msg_gameInfo[] = "Game Info"; const char msg_help[] = "Help"; const char msg_pass[] = "Pass"; const char msg_done[] = "Done"; const char msg_resume[] = "Resume"; const char msg_dispute[] = "Dispute"; const char msg_saveGame[] = "Save Game"; const char msg_editGame[] = "Edit Game"; const char msg_score[] = "Score:"; const char msg_time[] = "Time: "; const char msg_localChiRemDead[] = "Now you must remove all dead stones. " "Click on a group to mark them as dead. " "Press \"Done\" when all dead groups are " "removed. Press \"Resume\" or \"" CGBUTS_BACKCHAR "\" if you want to go " "back to the game."; const char msg_localJapRemDead[] = "Now you must remove all dead stones. " "Click on a group to mark them as dead. " "Press \"Done\" when all dead groups are " "removed. Press \"Dispute\" if the " "players cannot agree which stones are " "dead. Press \"" CGBUTS_BACKCHAR "\" to continue the game."; const char msg_selectDisputedMsg[] = "Click on the stones that are disputed, then play to determine whether " "the stones are alive or dead. Pass when you are satisfied with the fate " "of the stones."; const char *msg_stoneNames[] = {"White", "Black", "Empty"}; const char msg_gameStartDesc[] = "Game Start: "; const char msg_move1Desc[] = "Move 1 (%c %s): "; const char msg_move1OfDesc[] = "Move 1 (%c %s) of %d: "; const char msg_moveNDesc[] = "Moves 1 to %d (%c %s): "; const char msg_moveNOfDesc[] = "Moves 1 to %d (%c %s) of %d: "; const char msg_toPlay[] = " to play"; const char msg_selectDead[] = "Select Dead Stones"; const char msg_selectDisputed[] = "Select Disputed Stones"; const char msg_whiteWon[] = "Game Over: White Won"; const char msg_blackWon[] = "Game Over: Black Won"; const char msg_jigo[] = "Game Over: Jigo (Tie Game)"; const char msg_timeLossInfo[] = "Game Over: %s has run out of time"; const char msg_disputeAnnounce[] = "Dispute (%s): %s to play"; const char msg_alive[] = "Alive"; const char msg_dead[] = "Dead"; const char msg_disputeOverAlive[] = "At least one disputed stone is still alive, so they will all stay on " "the board. You may now select more dead stones, or press \"Done\"."; const char msg_disputeOverDead[] = "All disputed stones are dead, so they will be removed from the board. " "You may now select more dead stones, or press \"Done\"."; const char msg_scoreKillsComment[] = "The game is over. Final score:\n" " White = %d territory + %d captures + %g komi%s = %g\n" " Black = %d territory + %d captures%s = %g\n"; const char msg_scoreNoKillsComment[] = "The game is over. Final score:\n" " White = %d territory + %d living stones + %g dame + %g komi%s = %g\n" " Black = %d territory + %d living stones + %g dame%s = %g\n"; const char msg_ingPenaltyComment[] = " - %d Ing Time Penalty"; const char msg_winnerComment[] = "%s wins by %g."; const char msg_jigoComment[] = "Jigo (Tie game)."; const char msg_gameIsOver[] = "The game is over. %s"; const char msg_saveGameName[] = "Enter the file name for the game:"; const char msg_timeLoss[] = "%s has run out of time. %s wins."; const char msg_reallyQuitGame[] = "You have changed this game since you last saved it. Are you sure that " "you want to quit without saving?"; /* From "goban.c" */ const char msg_say[] = "Say"; const char msg_both[] = "Both"; const char msg_kib[] = "Kib"; /* From movechain.c */ const char msg_mcReadErr[] = "System error \"%s\" occurred while trying to read " " file \"%s\"."; const char msg_badSGFFile[] = "File \"%s\" has %s on line %d. It " "cannot be read in."; const char msg_sgfBadToken[] = "a bad token"; const char msg_sgfEarlyEOF[] = "an unexpected EOF"; const char msg_sgfBadLoc[] = "a bad board position"; const char msg_sgfBadArg[] = "a bad argument"; /* From editBoard.c */ const char msg_printGame[] = "Print Game"; const char msg_noSuchGame[] = "Sorry, file \"%s\" cannot be found. To create a new smart-go file, " "use \"New Game\" from the control panel, then press \"Edit Game\" " "once the game has started."; const char msg_reallyQuit[] = "File \"%s\" has been changed since you last saved it. Are you sure that " "you want to quit and lose your changes?"; const char msg_noCancel[] = "No, Cancel"; const char msg_yesQuit[] = "Yes, Quit"; const char msg_changeNodeWhileScoring[] = "You cannot change nodes while " "you are scoring a game. Please change to a different tool."; /* From editTools.c */ const char *msg_toolNames[] = { "Play Game", "Edit Board", "Compute Score", "Add Triangle", "Add Square", "Add Circle", "Add Letter", "Number Stones"}; const char *msg_toolDesc1[] = { "Click to play a stone", "Click to add/remove white stones", "Click to mark stones as dead", "Click to add/remove triangle marks", "Click to add/remove square marks", "Click to add/remove circle marks", "Click to add/remove letters", "Click to add/remove numbers starting at 1"}; const char *msg_toolDesc2[] = { "Shift-click to go to when a move was made", "Shift-click to add/remove black stones", "Press \"Done\" to record score", "Shift-click to mark groups of stones", "Shift-click to mark groups of stones", "Shift-click to mark groups of stones", "", "Shift-click to add/remove move numbers"}; const char msg_killNode[] = "Delete Moves"; const char msg_moveNode[] = "Reorder Moves"; /* From "editInfo.c" */ const char msg_editInfoTitle[] = "SGF Game Info"; const char msg_copyrightC[] = "Copyright:"; const char msg_gameTitle[] = "Title:"; const char msg_result[] = "Result:"; const char msg_wStoneName[] = CGBUTS_WSTONECHAR " Name:"; const char msg_bStoneName[] = CGBUTS_BSTONECHAR " Name:"; const char msg_wRank[] = CGBUTS_WSTONECHAR " Rank:"; const char msg_bRank[] = CGBUTS_BSTONECHAR " Rank:"; const char msg_handicapC[] = "Handicap:"; const char msg_komiC[] = "Komi:"; const char msg_date[] = "Date:"; const char msg_place[] = "Place:"; const char msg_event[] = "Event:"; const char msg_source[] = "Source:"; /* From gmpSetup.c */ const char msg_gmpSetup[] = "Go Modem Protocol Setup"; const char *msg_gmpPlayers[] = {CGBUTS_WSTONECHAR " White Player", CGBUTS_BSTONECHAR " Black Player"}; const char *msg_gmpTypes[] = {"Program", "Device", "Human", "NNGS", "IGS", "Local Port", "Remote Port", BUTMENU_OLEND}; const char msg_program[] = "Program"; const char msg_device[] = "Device"; const char msg_machineName[] = "Machine Name"; const char msg_port[] = "Port"; const char msg_username[] = "Username"; const char msg_password[] = "Password"; const char msg_waitingForGame[] = "Waiting for go modem handshaking to complete."; const char msg_noUndoFromGmpToClient[] = "A request to undo the last move came from the go modem protocol " "connection. This is not supported when you are playing on a go server. " "The undo request will be ignored."; const char msg_badPortNum[] = "\"%s\" is not a valid port. Your ports should be a value from 1 through " "65535. \"26276\" is the default port."; const char msg_progRunErr[] = "System error \"%s\" occurred while trying to run program \"%s\"."; const char msg_devOpenErr[] = "System error \"%s\" occurred while trying to open device program \"%s\"."; const char msg_gmpTooBig[] = "The go modem protocol does not permit games to be played on a board " "larger than 22x22."; /* From gmpPlay.c */ const char msg_gmpMoveOutsideGame[] = "A move was received from the go modem protocol when the game was not " "in progress!"; const char msg_gmpBadMove[] = "An illegal move at location %s was received from the go modem protocol."; const char msg_undoRequested[] = "Player %s requested to undo %d moves."; const char msg_badNewGameReq[] = "Player %s wants to start a new game. You may restart a new game " "manually if you wish."; const char msg_gmpCouldntStart[] = "Command line \"%s\" could not be executed. Please make sure that you have " "completely specified the programs path."; const char msg_gmpProgDied[] = "Program \"%s\" exitted unexpectedly with status %d."; const char msg_gmpProgKilled[] = "Program \"%s\" was unexpectedly killed by signal %d."; const char msg_gmpProgWhyDead[] = "Program \"%s\" is dead, but I can't figure out why."; /* From gmp.c */ const char msg_gmpDead[] = "System error \"%s\" occurred over the go modem protocol link."; const char msg_gmpTimeout[] = "The go modem protocol connection has timed out."; const char msg_gmpSendBufFull[] = "The go modem protocol is out of send buffer space."; /* From cliLogin.c */ const char *msg_loginDesc[] = { "Please enter your NNGS username and password here. If you do not yet " "have an account, just leave the password blank and you will be logged in " "as an unregistered user.", "Please enter your IGS username and password here. If you do not yet " "have an account, fill in \"guest\" for your username."}; const char msg_usernameColon[] = "Username:"; const char msg_passwordColon[] = "Password:"; const char msg_cliOpenSocket[] = "Error \"%s\" while trying to open a socket to contact %s."; const char msg_cliLookup[] = "The machine \"%s\" couldn't be found in host lookup tables. Either " "this machine does not exist or there is something wrong with your " "name server."; const char msg_cliConnect[] = "Error \"%s\" occurred while trying to connect to %s."; const char msg_cliHangup[] = "Your connection to server %s was lost due to \"%s\"."; const char msg_notAGuest[] = "Sorry, the username \"%s\" seems to be " "taken already! You must either supply a password or choose another name " "to use while you are a guest."; const char msg_guest[] = "You have logged in as a guest. You may use " "the \"register\" command to get a full account."; const char msg_loginFailed[] = "Sorry, your password seems to be wrong " "for the account name you gave. Please try another password or another " "account."; const char msg_login[] = "The connection to %s has been established. " "Login is in progress."; /* From client/board.c */ const char msg_cliGameName[] = "Game %d: %s %s (W) vs. %s %s (B)"; const char msg_close[] = "Close"; const char msg_adjourn[] = "Adjourn"; const char msg_resign[] = "Resign"; const char msg_yesResign[] = "Yes, Resign"; const char msg_reallyResign[] = "You have pressed \"Resign\" which will " "end the game and give your opponent victory. Are you sure that you " "want to do this?"; const char msg_cliGameBadMove[] = "Move \"%s\" in game %d came from the " "server. This does not seem to be a legal move. Sorry, I'm not sure what " "to do now."; /* From client/conn.c */ const char msg_commandError[] = "The command \"%s\" exited with error " "return code %d."; /* From client/look.c */ const char msg_cliLookName[] = "%s %s (W) vs. %s %s (B)"; const char msg_cliLookInfo[] = "Static Game Board"; /* From client/main.c */ const char msg_log[] = "Log"; const char msg_players[] = "Players"; const char msg_games[] = "Games"; /* From client/game.c */ const char msg_gameGoneResign[] = "The game has ended; %s has resigned. Press the \"Close\" button to " "remove this board."; const char msg_gameResultResign[] = "Move %d: %s resigns"; const char msg_gameGoneAdjourn[] = "The game has been adjourned. Press the \"Close\" button to remove this " "board."; const char msg_gameResultAdjourn[] = "Move %d: Game adjourned"; const char msg_gameGoneTime[] = "The game has ended; %s ran out of time and lost. Press the \"Close\" " "button to remove this board."; const char msg_gameResultTime[] = "Move %d: %s runs out of time"; const char msg_gameGoneScore[] = "The game has ended. The final score is White %g points, Black %g " "points. %s wins."; const char msg_gameResultScore[] = "Move %d: %s wins, %g to %g"; const char msg_gameGone[] = "This game has ended on the server. You can " "continue to look at the game, but your kibitzes, etc. will not be seen " "by other players."; const char msg_gameListDesc[] = "\t#\tWhite\t\tBlack\tMv\tSz\tH\tKm\tFl\tOb"; const char msg_gameBadElf[] = " Cgoban is having trouble interpreting data from the server. This " "probably means that this cgoban binary was built on an old Linux Elf " "system. Older Linux Elf systems have a bug in sscanf that prevents " "cgoban from functioning properly. Please see the cgoban README for more " "information."; /* From client/player.c */ const char msg_name[] = "Name"; const char msg_braceRank[] = "[Rank]"; const char msg_state[] = "State"; const char msg_playerListDesc[] = "\tIdle\tGm"; /* From setup.c */ const char msg_selServer[] = "Server to Edit"; const char msg_setupTitle[] = "Cgoban Setup"; const char msg_gsCompName[] = "Machine Name:"; const char msg_gsPortNum[] = "Port Number:"; const char msg_clientBadPortNum[] = "\"%s\" is not a valid port. Your ports should be a value from 1 through " "65535. The default ports are 9696 for NNGS servers and 6969 for " "IGS servers."; const char msg_srvConfig[] = "Connecting To Server"; const char msg_directConn[] = "Connect Directly To Server"; const char msg_connCmdLabel[] = "Connecting Command:"; const char msg_miscellaneous[] = "Miscellaneous"; const char msg_showCoordinates[] = "Show Coordinates Around Boards"; const char msg_numberKibitzes[] = "Number Kibitzes"; const char msg_hiContrast[] = "High Contrast Stones"; const char msg_noTypo[] = "Anti-Slip Moving"; const char msg_setupSrvName[] = "Server Name:"; const char msg_setupProtocol[] = "Server Protocol:"; /* From client/match.c */ const char msg_swapColors[] = "Swap Colors"; const char msg_cliGameSetup[] = "Server Game Setup"; const char msg_cliGameSetupSent[] = "Server Game Setup - Challenge Sent"; const char msg_cliGameSetupRej[] = "Server Game Setup - Challenge Rejected"; const char msg_cliGameSetupRecvd[] = "Server Game Setup - Challenge Received"; const char msg_freeGame[] = "Free (Unrated) Game"; const char msg_youDontExist[] = "Sorry, an error has happened. Somehow " "you don't seem to be in the player list, so I can't start up the " "challenge! You might want to try pressing " "the \"reload\" button on the player list to see if that helps. This may " "also mean that you are a guest on IGS."; /* From "sgfPlay.c" */ const char msg_badMoveInSgf[] = "The SGF file has \"%s\" as move " "number %d. This is not a legal move, so it will not be placed on the " "board"; goban-1.1.orig/src/menu.h0000644000175000017500000000361206156372606013073 0ustar alal/* * wmslib/src/but/menu.h, part of wmslib (Library functions) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for menu.c */ #ifndef _BUT_MENU_H_ #define _BUT_MENU_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define BUTMENU_OLEND NULL #define BUTMENU_OLBREAK (&butMenu_dummy) #define BUTMENU_DISABLED 1 /* Flags. */ #define BUTMENU_END 2 /* Private. */ #define BUTMENU_BREAK 4 /* Private. */ /********************************************************************** * Global variables **********************************************************************/ /* Private. */ extern char butMenu_dummy; /********************************************************************** * Functions **********************************************************************/ extern But *butMenu_upCreate(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt); extern But *butMenu_downCreate(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt); extern void butMenu_set(But *but, int new_opt); extern int butMenu_get(But *but); extern void butMenu_setColor(But *but, int fg, int bg); /* If newcval is -1, then it will be left unchanged. */ extern void butMenu_setText(But *but, const char *title, const char *optlist[], int newcval); extern void butMenu_setOptionName(But *but, const char *new, int entryNum); /* * flags should be from the BUTMENU_DISABLED list above. */ extern void butMenu_setFlags(But *but, int optnum, uint flags); #endif /* _BUT_MENU_H_ */ goban-1.1.orig/src/Makefile.in0000644000175000017500000014034510271264567014027 0ustar alal# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ SOURCES = $(goban_SOURCES) srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = goban$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/configure.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_goban_OBJECTS = goban-abut.$(OBJEXT) goban-abut_help.$(OBJEXT) \ goban-abut_msg.$(OBJEXT) goban-arena.$(OBJEXT) \ goban-board.$(OBJEXT) goban-box.$(OBJEXT) goban-but.$(OBJEXT) \ goban-canvas.$(OBJEXT) goban-cgbuts.$(OBJEXT) \ goban-cgoban.$(OBJEXT) goban-checkbox.$(OBJEXT) \ goban-client.$(OBJEXT) goban-client_main.$(OBJEXT) \ goban-client_setup.$(OBJEXT) goban-clp.$(OBJEXT) \ goban-clp-x.$(OBJEXT) goban-cm2pm.$(OBJEXT) \ goban-conn.$(OBJEXT) goban-control.$(OBJEXT) \ goban-crwin.$(OBJEXT) goban-ctext.$(OBJEXT) \ goban-data.$(OBJEXT) goban-drawStone.$(OBJEXT) \ goban-editBoard.$(OBJEXT) goban-editInfo.$(OBJEXT) \ goban-editTool.$(OBJEXT) goban-engine.$(OBJEXT) \ goban-fsel.$(OBJEXT) goban-game.$(OBJEXT) \ goban-gameSetup.$(OBJEXT) goban-goban.$(OBJEXT) \ goban-goBoard.$(OBJEXT) goban-goGame.$(OBJEXT) \ goban-goHash.$(OBJEXT) goban-goPic.$(OBJEXT) \ goban-goScore.$(OBJEXT) goban-goTime.$(OBJEXT) \ goban-help.$(OBJEXT) goban-i_finder.$(OBJEXT) \ goban-i_general.$(OBJEXT) goban-i_snd.$(OBJEXT) \ goban-i_win.$(OBJEXT) goban-list.$(OBJEXT) \ goban-local.$(OBJEXT) goban-login.$(OBJEXT) \ goban-look.$(OBJEXT) goban-lsetup.$(OBJEXT) \ goban-main.$(OBJEXT) goban-match.$(OBJEXT) \ goban-menu.$(OBJEXT) goban-menu_snd.$(OBJEXT) \ goban-msg.$(OBJEXT) goban-net.$(OBJEXT) goban-plain.$(OBJEXT) \ goban-plasma.$(OBJEXT) goban-play.$(OBJEXT) \ goban-player.$(OBJEXT) goban-radio.$(OBJEXT) \ goban-rcur.$(OBJEXT) goban-rnd.$(OBJEXT) \ goban-screensaver.$(OBJEXT) goban-server.$(OBJEXT) \ goban-setup.$(OBJEXT) goban-sgf.$(OBJEXT) \ goban-sgfIn.$(OBJEXT) goban-sgfMap.$(OBJEXT) \ goban-sgfOut.$(OBJEXT) goban-sgfPlay.$(OBJEXT) \ goban-slide.$(OBJEXT) goban-snd.$(OBJEXT) goban-str.$(OBJEXT) \ goban-swin.$(OBJEXT) goban-tbin.$(OBJEXT) \ goban-tblock.$(OBJEXT) goban-term.$(OBJEXT) \ goban-text.$(OBJEXT) goban-textin.$(OBJEXT) \ goban-timer.$(OBJEXT) goban-wms.$(OBJEXT) \ goban-write.$(OBJEXT) goban_OBJECTS = $(am_goban_OBJECTS) goban_DEPENDENCIES = DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(goban_SOURCES) DIST_SOURCES = $(goban_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EXEEXT = @EXEEXT@ GNOME_DATADIR = @GNOME_DATADIR@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign no-dependencies AM_CFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" goban_SOURCES = abut.c abut_help.c abut_msg.c arena.c board.c box.c but.c canvas.c cgbuts.c cgoban.c checkbox.c client.c client_main.c client_setup.c clp.c clp-x.c cm2pm.c conn.c control.c crwin.c ctext.c data.c drawStone.c editBoard.c editInfo.c editTool.c engine.c fsel.c game.c gameSetup.c goban.c goBoard.c goGame.c goHash.c goPic.c goScore.c goTime.c help.c i_finder.c i_general.c i_snd.c i_win.c list.c local.c login.c look.c lsetup.c main.c match.c menu.c menu_snd.c msg.c net.c plain.c plasma.c play.c player.c radio.c rcur.c rnd.c screensaver.c server.c setup.c sgf.c sgfIn.c sgfMap.c sgfOut.c sgfPlay.c slide.c snd.c str.c swin.c tbin.c tblock.c term.c text.c textin.c timer.c wms.c write.c goban_CFLAGS = @X_CFLAGS@ $(AM_CFLAGS) goban_LDADD = @X_LIBS@ -lX11 @X_EXTRA_LIBS@ -lm all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) goban$(EXEEXT): $(goban_OBJECTS) $(goban_DEPENDENCIES) @rm -f goban$(EXEEXT) $(LINK) $(goban_LDFLAGS) $(goban_OBJECTS) $(goban_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c .c.o: $(COMPILE) -c $< .c.obj: $(COMPILE) -c `$(CYGPATH_W) '$<'` goban-abut.o: abut.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut.o `test -f 'abut.c' || echo '$(srcdir)/'`abut.c goban-abut.obj: abut.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut.obj `if test -f 'abut.c'; then $(CYGPATH_W) 'abut.c'; else $(CYGPATH_W) '$(srcdir)/abut.c'; fi` goban-abut_help.o: abut_help.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut_help.o `test -f 'abut_help.c' || echo '$(srcdir)/'`abut_help.c goban-abut_help.obj: abut_help.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut_help.obj `if test -f 'abut_help.c'; then $(CYGPATH_W) 'abut_help.c'; else $(CYGPATH_W) '$(srcdir)/abut_help.c'; fi` goban-abut_msg.o: abut_msg.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut_msg.o `test -f 'abut_msg.c' || echo '$(srcdir)/'`abut_msg.c goban-abut_msg.obj: abut_msg.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-abut_msg.obj `if test -f 'abut_msg.c'; then $(CYGPATH_W) 'abut_msg.c'; else $(CYGPATH_W) '$(srcdir)/abut_msg.c'; fi` goban-arena.o: arena.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-arena.o `test -f 'arena.c' || echo '$(srcdir)/'`arena.c goban-arena.obj: arena.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-arena.obj `if test -f 'arena.c'; then $(CYGPATH_W) 'arena.c'; else $(CYGPATH_W) '$(srcdir)/arena.c'; fi` goban-board.o: board.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-board.o `test -f 'board.c' || echo '$(srcdir)/'`board.c goban-board.obj: board.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-board.obj `if test -f 'board.c'; then $(CYGPATH_W) 'board.c'; else $(CYGPATH_W) '$(srcdir)/board.c'; fi` goban-box.o: box.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-box.o `test -f 'box.c' || echo '$(srcdir)/'`box.c goban-box.obj: box.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-box.obj `if test -f 'box.c'; then $(CYGPATH_W) 'box.c'; else $(CYGPATH_W) '$(srcdir)/box.c'; fi` goban-but.o: but.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-but.o `test -f 'but.c' || echo '$(srcdir)/'`but.c goban-but.obj: but.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-but.obj `if test -f 'but.c'; then $(CYGPATH_W) 'but.c'; else $(CYGPATH_W) '$(srcdir)/but.c'; fi` goban-canvas.o: canvas.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-canvas.o `test -f 'canvas.c' || echo '$(srcdir)/'`canvas.c goban-canvas.obj: canvas.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-canvas.obj `if test -f 'canvas.c'; then $(CYGPATH_W) 'canvas.c'; else $(CYGPATH_W) '$(srcdir)/canvas.c'; fi` goban-cgbuts.o: cgbuts.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cgbuts.o `test -f 'cgbuts.c' || echo '$(srcdir)/'`cgbuts.c goban-cgbuts.obj: cgbuts.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cgbuts.obj `if test -f 'cgbuts.c'; then $(CYGPATH_W) 'cgbuts.c'; else $(CYGPATH_W) '$(srcdir)/cgbuts.c'; fi` goban-cgoban.o: cgoban.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cgoban.o `test -f 'cgoban.c' || echo '$(srcdir)/'`cgoban.c goban-cgoban.obj: cgoban.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cgoban.obj `if test -f 'cgoban.c'; then $(CYGPATH_W) 'cgoban.c'; else $(CYGPATH_W) '$(srcdir)/cgoban.c'; fi` goban-checkbox.o: checkbox.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-checkbox.o `test -f 'checkbox.c' || echo '$(srcdir)/'`checkbox.c goban-checkbox.obj: checkbox.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-checkbox.obj `if test -f 'checkbox.c'; then $(CYGPATH_W) 'checkbox.c'; else $(CYGPATH_W) '$(srcdir)/checkbox.c'; fi` goban-client.o: client.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client.o `test -f 'client.c' || echo '$(srcdir)/'`client.c goban-client.obj: client.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client.obj `if test -f 'client.c'; then $(CYGPATH_W) 'client.c'; else $(CYGPATH_W) '$(srcdir)/client.c'; fi` goban-client_main.o: client_main.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client_main.o `test -f 'client_main.c' || echo '$(srcdir)/'`client_main.c goban-client_main.obj: client_main.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client_main.obj `if test -f 'client_main.c'; then $(CYGPATH_W) 'client_main.c'; else $(CYGPATH_W) '$(srcdir)/client_main.c'; fi` goban-client_setup.o: client_setup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client_setup.o `test -f 'client_setup.c' || echo '$(srcdir)/'`client_setup.c goban-client_setup.obj: client_setup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-client_setup.obj `if test -f 'client_setup.c'; then $(CYGPATH_W) 'client_setup.c'; else $(CYGPATH_W) '$(srcdir)/client_setup.c'; fi` goban-clp.o: clp.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-clp.o `test -f 'clp.c' || echo '$(srcdir)/'`clp.c goban-clp.obj: clp.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-clp.obj `if test -f 'clp.c'; then $(CYGPATH_W) 'clp.c'; else $(CYGPATH_W) '$(srcdir)/clp.c'; fi` goban-clp-x.o: clp-x.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-clp-x.o `test -f 'clp-x.c' || echo '$(srcdir)/'`clp-x.c goban-clp-x.obj: clp-x.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-clp-x.obj `if test -f 'clp-x.c'; then $(CYGPATH_W) 'clp-x.c'; else $(CYGPATH_W) '$(srcdir)/clp-x.c'; fi` goban-cm2pm.o: cm2pm.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cm2pm.o `test -f 'cm2pm.c' || echo '$(srcdir)/'`cm2pm.c goban-cm2pm.obj: cm2pm.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-cm2pm.obj `if test -f 'cm2pm.c'; then $(CYGPATH_W) 'cm2pm.c'; else $(CYGPATH_W) '$(srcdir)/cm2pm.c'; fi` goban-conn.o: conn.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-conn.o `test -f 'conn.c' || echo '$(srcdir)/'`conn.c goban-conn.obj: conn.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-conn.obj `if test -f 'conn.c'; then $(CYGPATH_W) 'conn.c'; else $(CYGPATH_W) '$(srcdir)/conn.c'; fi` goban-control.o: control.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-control.o `test -f 'control.c' || echo '$(srcdir)/'`control.c goban-control.obj: control.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-control.obj `if test -f 'control.c'; then $(CYGPATH_W) 'control.c'; else $(CYGPATH_W) '$(srcdir)/control.c'; fi` goban-crwin.o: crwin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-crwin.o `test -f 'crwin.c' || echo '$(srcdir)/'`crwin.c goban-crwin.obj: crwin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-crwin.obj `if test -f 'crwin.c'; then $(CYGPATH_W) 'crwin.c'; else $(CYGPATH_W) '$(srcdir)/crwin.c'; fi` goban-ctext.o: ctext.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-ctext.o `test -f 'ctext.c' || echo '$(srcdir)/'`ctext.c goban-ctext.obj: ctext.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-ctext.obj `if test -f 'ctext.c'; then $(CYGPATH_W) 'ctext.c'; else $(CYGPATH_W) '$(srcdir)/ctext.c'; fi` goban-data.o: data.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-data.o `test -f 'data.c' || echo '$(srcdir)/'`data.c goban-data.obj: data.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-data.obj `if test -f 'data.c'; then $(CYGPATH_W) 'data.c'; else $(CYGPATH_W) '$(srcdir)/data.c'; fi` goban-drawStone.o: drawStone.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-drawStone.o `test -f 'drawStone.c' || echo '$(srcdir)/'`drawStone.c goban-drawStone.obj: drawStone.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-drawStone.obj `if test -f 'drawStone.c'; then $(CYGPATH_W) 'drawStone.c'; else $(CYGPATH_W) '$(srcdir)/drawStone.c'; fi` goban-editBoard.o: editBoard.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editBoard.o `test -f 'editBoard.c' || echo '$(srcdir)/'`editBoard.c goban-editBoard.obj: editBoard.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editBoard.obj `if test -f 'editBoard.c'; then $(CYGPATH_W) 'editBoard.c'; else $(CYGPATH_W) '$(srcdir)/editBoard.c'; fi` goban-editInfo.o: editInfo.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editInfo.o `test -f 'editInfo.c' || echo '$(srcdir)/'`editInfo.c goban-editInfo.obj: editInfo.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editInfo.obj `if test -f 'editInfo.c'; then $(CYGPATH_W) 'editInfo.c'; else $(CYGPATH_W) '$(srcdir)/editInfo.c'; fi` goban-editTool.o: editTool.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editTool.o `test -f 'editTool.c' || echo '$(srcdir)/'`editTool.c goban-editTool.obj: editTool.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-editTool.obj `if test -f 'editTool.c'; then $(CYGPATH_W) 'editTool.c'; else $(CYGPATH_W) '$(srcdir)/editTool.c'; fi` goban-engine.o: engine.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c goban-engine.obj: engine.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi` goban-fsel.o: fsel.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-fsel.o `test -f 'fsel.c' || echo '$(srcdir)/'`fsel.c goban-fsel.obj: fsel.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-fsel.obj `if test -f 'fsel.c'; then $(CYGPATH_W) 'fsel.c'; else $(CYGPATH_W) '$(srcdir)/fsel.c'; fi` goban-game.o: game.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-game.o `test -f 'game.c' || echo '$(srcdir)/'`game.c goban-game.obj: game.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-game.obj `if test -f 'game.c'; then $(CYGPATH_W) 'game.c'; else $(CYGPATH_W) '$(srcdir)/game.c'; fi` goban-gameSetup.o: gameSetup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-gameSetup.o `test -f 'gameSetup.c' || echo '$(srcdir)/'`gameSetup.c goban-gameSetup.obj: gameSetup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-gameSetup.obj `if test -f 'gameSetup.c'; then $(CYGPATH_W) 'gameSetup.c'; else $(CYGPATH_W) '$(srcdir)/gameSetup.c'; fi` goban-goban.o: goban.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goban.o `test -f 'goban.c' || echo '$(srcdir)/'`goban.c goban-goban.obj: goban.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goban.obj `if test -f 'goban.c'; then $(CYGPATH_W) 'goban.c'; else $(CYGPATH_W) '$(srcdir)/goban.c'; fi` goban-goBoard.o: goBoard.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goBoard.o `test -f 'goBoard.c' || echo '$(srcdir)/'`goBoard.c goban-goBoard.obj: goBoard.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goBoard.obj `if test -f 'goBoard.c'; then $(CYGPATH_W) 'goBoard.c'; else $(CYGPATH_W) '$(srcdir)/goBoard.c'; fi` goban-goGame.o: goGame.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goGame.o `test -f 'goGame.c' || echo '$(srcdir)/'`goGame.c goban-goGame.obj: goGame.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goGame.obj `if test -f 'goGame.c'; then $(CYGPATH_W) 'goGame.c'; else $(CYGPATH_W) '$(srcdir)/goGame.c'; fi` goban-goHash.o: goHash.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goHash.o `test -f 'goHash.c' || echo '$(srcdir)/'`goHash.c goban-goHash.obj: goHash.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goHash.obj `if test -f 'goHash.c'; then $(CYGPATH_W) 'goHash.c'; else $(CYGPATH_W) '$(srcdir)/goHash.c'; fi` goban-goPic.o: goPic.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goPic.o `test -f 'goPic.c' || echo '$(srcdir)/'`goPic.c goban-goPic.obj: goPic.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goPic.obj `if test -f 'goPic.c'; then $(CYGPATH_W) 'goPic.c'; else $(CYGPATH_W) '$(srcdir)/goPic.c'; fi` goban-goScore.o: goScore.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goScore.o `test -f 'goScore.c' || echo '$(srcdir)/'`goScore.c goban-goScore.obj: goScore.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goScore.obj `if test -f 'goScore.c'; then $(CYGPATH_W) 'goScore.c'; else $(CYGPATH_W) '$(srcdir)/goScore.c'; fi` goban-goTime.o: goTime.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goTime.o `test -f 'goTime.c' || echo '$(srcdir)/'`goTime.c goban-goTime.obj: goTime.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-goTime.obj `if test -f 'goTime.c'; then $(CYGPATH_W) 'goTime.c'; else $(CYGPATH_W) '$(srcdir)/goTime.c'; fi` goban-help.o: help.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-help.o `test -f 'help.c' || echo '$(srcdir)/'`help.c goban-help.obj: help.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-help.obj `if test -f 'help.c'; then $(CYGPATH_W) 'help.c'; else $(CYGPATH_W) '$(srcdir)/help.c'; fi` goban-i_finder.o: i_finder.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_finder.o `test -f 'i_finder.c' || echo '$(srcdir)/'`i_finder.c goban-i_finder.obj: i_finder.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_finder.obj `if test -f 'i_finder.c'; then $(CYGPATH_W) 'i_finder.c'; else $(CYGPATH_W) '$(srcdir)/i_finder.c'; fi` goban-i_general.o: i_general.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_general.o `test -f 'i_general.c' || echo '$(srcdir)/'`i_general.c goban-i_general.obj: i_general.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_general.obj `if test -f 'i_general.c'; then $(CYGPATH_W) 'i_general.c'; else $(CYGPATH_W) '$(srcdir)/i_general.c'; fi` goban-i_snd.o: i_snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_snd.o `test -f 'i_snd.c' || echo '$(srcdir)/'`i_snd.c goban-i_snd.obj: i_snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_snd.obj `if test -f 'i_snd.c'; then $(CYGPATH_W) 'i_snd.c'; else $(CYGPATH_W) '$(srcdir)/i_snd.c'; fi` goban-i_win.o: i_win.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_win.o `test -f 'i_win.c' || echo '$(srcdir)/'`i_win.c goban-i_win.obj: i_win.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-i_win.obj `if test -f 'i_win.c'; then $(CYGPATH_W) 'i_win.c'; else $(CYGPATH_W) '$(srcdir)/i_win.c'; fi` goban-list.o: list.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-list.o `test -f 'list.c' || echo '$(srcdir)/'`list.c goban-list.obj: list.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-list.obj `if test -f 'list.c'; then $(CYGPATH_W) 'list.c'; else $(CYGPATH_W) '$(srcdir)/list.c'; fi` goban-local.o: local.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-local.o `test -f 'local.c' || echo '$(srcdir)/'`local.c goban-local.obj: local.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-local.obj `if test -f 'local.c'; then $(CYGPATH_W) 'local.c'; else $(CYGPATH_W) '$(srcdir)/local.c'; fi` goban-login.o: login.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-login.o `test -f 'login.c' || echo '$(srcdir)/'`login.c goban-login.obj: login.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-login.obj `if test -f 'login.c'; then $(CYGPATH_W) 'login.c'; else $(CYGPATH_W) '$(srcdir)/login.c'; fi` goban-look.o: look.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-look.o `test -f 'look.c' || echo '$(srcdir)/'`look.c goban-look.obj: look.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-look.obj `if test -f 'look.c'; then $(CYGPATH_W) 'look.c'; else $(CYGPATH_W) '$(srcdir)/look.c'; fi` goban-lsetup.o: lsetup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-lsetup.o `test -f 'lsetup.c' || echo '$(srcdir)/'`lsetup.c goban-lsetup.obj: lsetup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-lsetup.obj `if test -f 'lsetup.c'; then $(CYGPATH_W) 'lsetup.c'; else $(CYGPATH_W) '$(srcdir)/lsetup.c'; fi` goban-main.o: main.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c goban-main.obj: main.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` goban-match.o: match.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-match.o `test -f 'match.c' || echo '$(srcdir)/'`match.c goban-match.obj: match.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-match.obj `if test -f 'match.c'; then $(CYGPATH_W) 'match.c'; else $(CYGPATH_W) '$(srcdir)/match.c'; fi` goban-menu.o: menu.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-menu.o `test -f 'menu.c' || echo '$(srcdir)/'`menu.c goban-menu.obj: menu.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-menu.obj `if test -f 'menu.c'; then $(CYGPATH_W) 'menu.c'; else $(CYGPATH_W) '$(srcdir)/menu.c'; fi` goban-menu_snd.o: menu_snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-menu_snd.o `test -f 'menu_snd.c' || echo '$(srcdir)/'`menu_snd.c goban-menu_snd.obj: menu_snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-menu_snd.obj `if test -f 'menu_snd.c'; then $(CYGPATH_W) 'menu_snd.c'; else $(CYGPATH_W) '$(srcdir)/menu_snd.c'; fi` goban-msg.o: msg.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-msg.o `test -f 'msg.c' || echo '$(srcdir)/'`msg.c goban-msg.obj: msg.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-msg.obj `if test -f 'msg.c'; then $(CYGPATH_W) 'msg.c'; else $(CYGPATH_W) '$(srcdir)/msg.c'; fi` goban-net.o: net.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-net.o `test -f 'net.c' || echo '$(srcdir)/'`net.c goban-net.obj: net.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-net.obj `if test -f 'net.c'; then $(CYGPATH_W) 'net.c'; else $(CYGPATH_W) '$(srcdir)/net.c'; fi` goban-plain.o: plain.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-plain.o `test -f 'plain.c' || echo '$(srcdir)/'`plain.c goban-plain.obj: plain.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-plain.obj `if test -f 'plain.c'; then $(CYGPATH_W) 'plain.c'; else $(CYGPATH_W) '$(srcdir)/plain.c'; fi` goban-plasma.o: plasma.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-plasma.o `test -f 'plasma.c' || echo '$(srcdir)/'`plasma.c goban-plasma.obj: plasma.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-plasma.obj `if test -f 'plasma.c'; then $(CYGPATH_W) 'plasma.c'; else $(CYGPATH_W) '$(srcdir)/plasma.c'; fi` goban-play.o: play.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-play.o `test -f 'play.c' || echo '$(srcdir)/'`play.c goban-play.obj: play.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-play.obj `if test -f 'play.c'; then $(CYGPATH_W) 'play.c'; else $(CYGPATH_W) '$(srcdir)/play.c'; fi` goban-player.o: player.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-player.o `test -f 'player.c' || echo '$(srcdir)/'`player.c goban-player.obj: player.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-player.obj `if test -f 'player.c'; then $(CYGPATH_W) 'player.c'; else $(CYGPATH_W) '$(srcdir)/player.c'; fi` goban-radio.o: radio.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-radio.o `test -f 'radio.c' || echo '$(srcdir)/'`radio.c goban-radio.obj: radio.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-radio.obj `if test -f 'radio.c'; then $(CYGPATH_W) 'radio.c'; else $(CYGPATH_W) '$(srcdir)/radio.c'; fi` goban-rcur.o: rcur.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-rcur.o `test -f 'rcur.c' || echo '$(srcdir)/'`rcur.c goban-rcur.obj: rcur.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-rcur.obj `if test -f 'rcur.c'; then $(CYGPATH_W) 'rcur.c'; else $(CYGPATH_W) '$(srcdir)/rcur.c'; fi` goban-rnd.o: rnd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-rnd.o `test -f 'rnd.c' || echo '$(srcdir)/'`rnd.c goban-rnd.obj: rnd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-rnd.obj `if test -f 'rnd.c'; then $(CYGPATH_W) 'rnd.c'; else $(CYGPATH_W) '$(srcdir)/rnd.c'; fi` goban-screensaver.o: screensaver.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-screensaver.o `test -f 'screensaver.c' || echo '$(srcdir)/'`screensaver.c goban-screensaver.obj: screensaver.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-screensaver.obj `if test -f 'screensaver.c'; then $(CYGPATH_W) 'screensaver.c'; else $(CYGPATH_W) '$(srcdir)/screensaver.c'; fi` goban-server.o: server.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-server.o `test -f 'server.c' || echo '$(srcdir)/'`server.c goban-server.obj: server.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-server.obj `if test -f 'server.c'; then $(CYGPATH_W) 'server.c'; else $(CYGPATH_W) '$(srcdir)/server.c'; fi` goban-setup.o: setup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-setup.o `test -f 'setup.c' || echo '$(srcdir)/'`setup.c goban-setup.obj: setup.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-setup.obj `if test -f 'setup.c'; then $(CYGPATH_W) 'setup.c'; else $(CYGPATH_W) '$(srcdir)/setup.c'; fi` goban-sgf.o: sgf.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgf.o `test -f 'sgf.c' || echo '$(srcdir)/'`sgf.c goban-sgf.obj: sgf.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgf.obj `if test -f 'sgf.c'; then $(CYGPATH_W) 'sgf.c'; else $(CYGPATH_W) '$(srcdir)/sgf.c'; fi` goban-sgfIn.o: sgfIn.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfIn.o `test -f 'sgfIn.c' || echo '$(srcdir)/'`sgfIn.c goban-sgfIn.obj: sgfIn.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfIn.obj `if test -f 'sgfIn.c'; then $(CYGPATH_W) 'sgfIn.c'; else $(CYGPATH_W) '$(srcdir)/sgfIn.c'; fi` goban-sgfMap.o: sgfMap.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfMap.o `test -f 'sgfMap.c' || echo '$(srcdir)/'`sgfMap.c goban-sgfMap.obj: sgfMap.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfMap.obj `if test -f 'sgfMap.c'; then $(CYGPATH_W) 'sgfMap.c'; else $(CYGPATH_W) '$(srcdir)/sgfMap.c'; fi` goban-sgfOut.o: sgfOut.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfOut.o `test -f 'sgfOut.c' || echo '$(srcdir)/'`sgfOut.c goban-sgfOut.obj: sgfOut.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfOut.obj `if test -f 'sgfOut.c'; then $(CYGPATH_W) 'sgfOut.c'; else $(CYGPATH_W) '$(srcdir)/sgfOut.c'; fi` goban-sgfPlay.o: sgfPlay.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfPlay.o `test -f 'sgfPlay.c' || echo '$(srcdir)/'`sgfPlay.c goban-sgfPlay.obj: sgfPlay.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-sgfPlay.obj `if test -f 'sgfPlay.c'; then $(CYGPATH_W) 'sgfPlay.c'; else $(CYGPATH_W) '$(srcdir)/sgfPlay.c'; fi` goban-slide.o: slide.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-slide.o `test -f 'slide.c' || echo '$(srcdir)/'`slide.c goban-slide.obj: slide.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-slide.obj `if test -f 'slide.c'; then $(CYGPATH_W) 'slide.c'; else $(CYGPATH_W) '$(srcdir)/slide.c'; fi` goban-snd.o: snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-snd.o `test -f 'snd.c' || echo '$(srcdir)/'`snd.c goban-snd.obj: snd.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-snd.obj `if test -f 'snd.c'; then $(CYGPATH_W) 'snd.c'; else $(CYGPATH_W) '$(srcdir)/snd.c'; fi` goban-str.o: str.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-str.o `test -f 'str.c' || echo '$(srcdir)/'`str.c goban-str.obj: str.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-str.obj `if test -f 'str.c'; then $(CYGPATH_W) 'str.c'; else $(CYGPATH_W) '$(srcdir)/str.c'; fi` goban-swin.o: swin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-swin.o `test -f 'swin.c' || echo '$(srcdir)/'`swin.c goban-swin.obj: swin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-swin.obj `if test -f 'swin.c'; then $(CYGPATH_W) 'swin.c'; else $(CYGPATH_W) '$(srcdir)/swin.c'; fi` goban-tbin.o: tbin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-tbin.o `test -f 'tbin.c' || echo '$(srcdir)/'`tbin.c goban-tbin.obj: tbin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-tbin.obj `if test -f 'tbin.c'; then $(CYGPATH_W) 'tbin.c'; else $(CYGPATH_W) '$(srcdir)/tbin.c'; fi` goban-tblock.o: tblock.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-tblock.o `test -f 'tblock.c' || echo '$(srcdir)/'`tblock.c goban-tblock.obj: tblock.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-tblock.obj `if test -f 'tblock.c'; then $(CYGPATH_W) 'tblock.c'; else $(CYGPATH_W) '$(srcdir)/tblock.c'; fi` goban-term.o: term.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-term.o `test -f 'term.c' || echo '$(srcdir)/'`term.c goban-term.obj: term.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-term.obj `if test -f 'term.c'; then $(CYGPATH_W) 'term.c'; else $(CYGPATH_W) '$(srcdir)/term.c'; fi` goban-text.o: text.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c goban-text.obj: text.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi` goban-textin.o: textin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-textin.o `test -f 'textin.c' || echo '$(srcdir)/'`textin.c goban-textin.obj: textin.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-textin.obj `if test -f 'textin.c'; then $(CYGPATH_W) 'textin.c'; else $(CYGPATH_W) '$(srcdir)/textin.c'; fi` goban-timer.o: timer.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-timer.o `test -f 'timer.c' || echo '$(srcdir)/'`timer.c goban-timer.obj: timer.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-timer.obj `if test -f 'timer.c'; then $(CYGPATH_W) 'timer.c'; else $(CYGPATH_W) '$(srcdir)/timer.c'; fi` goban-wms.o: wms.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-wms.o `test -f 'wms.c' || echo '$(srcdir)/'`wms.c goban-wms.obj: wms.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-wms.obj `if test -f 'wms.c'; then $(CYGPATH_W) 'wms.c'; else $(CYGPATH_W) '$(srcdir)/wms.c'; fi` goban-write.o: write.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-write.o `test -f 'write.c' || echo '$(srcdir)/'`write.c goban-write.obj: write.c $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(goban_CFLAGS) $(CFLAGS) -c -o goban-write.obj `if test -f 'write.c'; then $(CYGPATH_W) 'write.c'; else $(CYGPATH_W) '$(srcdir)/write.c'; fi` uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: goban-1.1.orig/src/goHash.h0000644000175000017500000000311210267776232013334 0ustar alal/* * src/gohash.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOHASH_H_ #define _GOHASH_H_ 1 #ifndef _WMS_RND_H_ #include #endif /********************************************************************** * Data types **********************************************************************/ #if SIZEOF_LONG >= 8 #define GoHash_isScalar 1 typedef ulong GoHash; #elif SIZEOF_LONG_LONG >= 8 #define GoHash_isScalar 1 typedef unsigned long long GoHash; #else #define GoHash_isScalar 0 typedef struct { uint32 lo, hi; } GoHash; #endif /********************************************************************** * Global variables **********************************************************************/ extern const GoHash goHash_zero; extern const GoHash goHash_pass; /********************************************************************** * Functions **********************************************************************/ /* In all of these functions, passing zero as the "loc" means a pass. */ GoHash goHash_init(Rnd *r); #if GoHash_isScalar #define goHash_xor(v1, v2) ((v1) ^ (v2)) #define goHash_eq(v1, v2) ((v1) == (v2)) #define goHash_loBits(v, m) ((v) & (m)) #define goHash_print(v) printf("0x%x%08x",(int)(v>>32),(int)v) #else extern GoHash goHash_xor(GoHash v1, GoHash v2); #define goHash_eq(v1, v2) (((v1).lo == (v2).lo) && ((v1).hi == (v2).hi)) #define goHash_loBits(v, m) ((v).lo & (m)) #endif /* GoHash_isScalar */ #endif /* _GOHASH_H_ */ goban-1.1.orig/src/screensaver.c0000644000175000017500000001474310271260632014435 0ustar alal/* * src/screensaver.c, part of Complete Goban (game program) * Copyright (C) 1998 Scott Draves * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "goban.h" #include "msg.h" #include "goGame.h" #include "goPic.h" #include "cgbuts.h" #include "sgf.h" #include "sgfIn.h" #include "sgfOut.h" #include "sgfPlay.h" #include "editBoard.h" #include #include #ifdef _LOCAL_H_ Levelization Error. #endif #include "screensaver.h" #include "local.h" static bool fwdOk(void *packet) { return TRUE; } #if 0 #define none2 NULL #define none1 NULL #define nonev1 NULL #else GobanOut none2(void *packet, int loc) { return 0; } GobanOut none1(void *packet) { return gobanOut_draw; } void nonev1(void *packet) { } #endif static const GobanActions local_actions = { none2, none1, none1, none1, none1, none1, none1, none1, none1, none1, none1, none1, NULL, nonev1, fwdOk, fwdOk, fwdOk, fwdOk}; static void set_time(struct timeval *s, double secs) { s->tv_usec = (int)(secs * 1e6) % (1000*1000); s->tv_sec = secs; } static double get_time(struct timeval *s) { return s->tv_sec + s->tv_usec * 1e-6; } static const char * gameTitle(Sgf *mc) { SgfElem *me = sgf_findFirstType(mc, sgfType_title); if (me) { return str_chars(me->sVal); } else if ((me = sgf_findFirstType(mc, sgfType_playerName))) { char buf[1000]; SgfElem *you = sgfElem_findFirstType(me, sgfType_playerName); const char *n1 = str_chars(me->sVal); const char *n2 = you ? str_chars(you->sVal) : "?"; if (me->gVal != goStone_white) { const char *t = n1; n1 = n2; n2 = t; } sprintf(buf, "%s - %s", n1, n2); return strdup(buf); /* leaks */ } return msg_noTitle; } void screensaver_setSgf(Screensaver *l, Sgf *mc) { GoRules rules; int size, hcap; float komi; GoTime time; SgfElem *me; l->moves = mc; l->move = 0; me = sgf_findType(mc, sgfType_rules); if (me) { rules = (GoRules)me->iVal; } else rules = goRules_japanese; me = sgf_findType(mc, sgfType_size); if (me) { size = me->iVal; } else { size = 19; } me = sgf_findType(mc, sgfType_handicap); if (me) { hcap = me->iVal; } else { hcap = 0; } me = sgf_findType(mc, sgfType_komi); if (me) { komi = (float)me->iVal / 2.0; } else { komi = 0.0; } me = sgf_findFirstType(mc, sgfType_playerName); while (me) { me = sgfElem_findFirstType(me, sgfType_playerName); } me = sgf_findFirstType(mc, sgfType_time); if (me) { goTime_parseDescribeChars(&time, str_chars(me->sVal)); } else { time.type = goTime_none; } if (l->game) goGame_destroy(l->game); // should be passive ? XXX l->game = goGame_create(size, rules, hcap, komi, &time, TRUE); sgf_play(mc, l->game, NULL, -1, NULL); if (l->goban) butText_set(l->goban->labelText, gameTitle(mc)); goGame_moveTo(l->game, 0); } char * screensaver_randomSgf(char *dir) { char *namelist[8096]; struct dirent *dirp; DIR *dp; int i, n = 0; char *sgf; if((dp=opendir(dir)) == NULL ) { fprintf(stderr, "could not read %s\n", dir); exit(1); } while ((dirp = readdir(dp)) != NULL) { if (dirp->d_name[0] == '.')continue; namelist[n++]=strdup(dirp->d_name); } { char buf[1000]; sprintf(buf, "%s/%s", dir, namelist[random() % n]); sgf = strdup(buf); } for (i = 0; i < n; i++) free(namelist[i]); closedir(dp); return sgf; } Sgf * set_game(Screensaver *l) { Sgf *mc; const char *err; while (1) { char *fname = screensaver_randomSgf(l->game_dir); mc = sgf_createFile(l->cg, fname, &err, NULL); if (mc) { /* printf("playing %s\n", fname); */ return mc; } fprintf(stderr, "error in %s\n", err); } } static ButOut next_move(ButTimer *timer) { Screensaver *l = butTimer_packet(timer); { double p = get_time(&timer->period); p *= l->acceleration; if (p < l->mintime) p = l->mintime; set_time(&timer->period, p); } if (l->game->moveNum == l->game->maxMoves) { Sgf *mc; sleep(l->gametime); mc = set_game(l); screensaver_setSgf(l, mc); set_time(&l->timer->period, l->stonetime); butTimer_reset(l->timer); } else { goGame_moveTo(l->game, l->game->moveNum + 1); } goban_update(l->goban); return 0; } Screensaver * screensaver_create(Cgoban *cg) { Sgf *mc; Screensaver *l; const char *title; srandom(time(0)); cg->env->minWindows = 1; cg->screensaver = 1; cg->showCoords = 0; assert(MAGIC(cg)); l = wms_malloc(sizeof(Screensaver)); MAGIC_SET(l); l->cg = cg; l->game = NULL; l->goban = NULL; { char *gd = clp_getStr(cg->clp, "game-dir"); l->game_dir = strdup((gd && gd[0]) ? gd : PACKAGE_DATA_DIR); } mc = set_game(l); screensaver_setSgf(l, mc); title = gameTitle(mc); l->goban = goban_create(cg, &local_actions, l, l->game, "local", title); l->goban->iDec1 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec1, goStone_white, FALSE); l->goban->iDec2 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec2, goStone_black, FALSE); { double x = clp_getDouble(cg->clp, "gametime"); if (x < 0.0) { fprintf(stderr, "gametime cannot be negative, %g is.\n", x); x = 0.0; } x *= 1e-3; l->gametime = x; } { double x = clp_getDouble(cg->clp, "acceleration"); /* command line option is normally 0 - 100. 150 is max possible, negative values are fine */ x = 1.0 - pow(10.0, -(1.0 + (100.0-x) * 0.02)); if (x < 0.0) x = 0.0; l->acceleration = x; } { double x = clp_getDouble(cg->clp, "minstonetime"); if (x <= 1) { fprintf(stderr, "minstonetime is too small (%g).\n", x); x = 1; } x *= 1e-3; l->mintime = x; } { struct timeval period; double secs = clp_getDouble(cg->clp, "stonetime"); if (secs <= 0.0) { fprintf(stderr, "stonetime must be positive, %g is not.\n", secs); secs = 1e-4; } else secs *= 1e-3; l->stonetime = secs; set_time(&period, secs); l->timer = butTimer_create(l, NULL, period, period, 0, next_move); } return(l); } goban-1.1.orig/src/lsetup.c0000644000175000017500000004154310270064734013433 0ustar alal/* * src/lsetup.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cm2pm.h" #include "msg.h" #include "plasma.h" #ifdef _SETUP_H_ Levelization ERror #endif #include "lsetup.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut subwinResize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut newComp(But *but, const char *val); static ButOut newPort(But *but, const char *val); static ButOut newConnCmd(But *but, const char *val); static ButOut newDirect(But *but, bool value); static ButOut newCoord(But *but, bool value); static ButOut newNumKibs(But *but, bool value); static ButOut newNoTypo(But *but, bool value); static ButOut ok(But *but); static ButOut newSrvNum(But *but, int value); static ButOut newName(But *but, const char *newVal); static ButOut newProto(But *but, int newVal); static ButOut newHiContrast(But *but, bool value); /********************************************************************** * Functions **********************************************************************/ #define boxHeight(lines, fh, bw) ((lines) * (2 * (fh) + (bw)) + 3 * (bw)) #define textOff(line, fh, bw) ((line) * (2 * (fh) + (bw)) + 2 * (bw)) Setup *setup_create(Cgoban *cg, void (*destroyCallback)(Setup *setup, void *packet), void (*newServerCallback)(Setup *setup, void *packet), void *packet) { Setup *setup; bool isDirect; bool err; int i; int h, minH, bw; ButWin *subwin; const char *menuOpts[SETUP_MAXSERVERS + 1]; assert(MAGIC(cg)); setup = wms_malloc(sizeof(Setup)); MAGIC_SET(setup); setup->cg = cg; setup->destroyCallback = destroyCallback; setup->newServerCallback = newServerCallback; setup->packet = packet; bw = butEnv_stdBw(cg->env); minH = cg->fontH * 12 + bw * 16; h = (int)(minH * 2 * clp_getDouble(cg->clp, "config.h") + 0.5); setup->win = butWin_create(setup, cg->env, "Cgoban Setup", minH * 2, h, unmap, map, resize, destroy); butWin_setMinH(setup->win, minH); butWin_setMaxH(setup->win, cg->fontH * 4 + bw * 8 + boxHeight(8, cg->fontH, bw) + cg->fontH * 2 + boxHeight(4, cg->fontH, bw)); i = clp_iGetInt(cg->clp, "config.x", &err); if (!err) butWin_setX(setup->win, i); i = clp_iGetInt(cg->clp, "config.y", &err); if (!err) butWin_setY(setup->win, i); butWin_activate(setup->win); setup->bg = butBoxFilled_create(setup->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(setup->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); setup->title = butText_create(setup->win, 1, BUT_DRAWABLE, msg_setupTitle, butText_center); butText_setFont(setup->title, 2); setup->swin = abutSwin_create(setup, setup->win, 1, ABUTSWIN_LSLIDE, subwinResize); subwin = setup->swin->win; setup->srvBox = butBoxFilled_create(subwin, 0, BUT_DRAWABLE); setup->srvTitle = butText_create(subwin, 1, BUT_DRAWABLE, msg_srvConfig, butText_center); butText_setFont(setup->srvTitle, 2); setup->srvNum = 0; for (i = 0; i < SETUP_MAXSERVERS; ++i) { menuOpts[i] = clp_getStrNum(cg->clp, "client.server", i); } menuOpts[i] = BUTMENU_OLEND; setup->srvMenu = butMenu_downCreate(newSrvNum, setup, subwin, 2, 3, BUT_DRAWABLE|BUT_PRESSABLE, msg_selServer, menuOpts, 0); setup->srvName = butTextin_create(newName, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getStrNum(cg->clp, "client.server", setup->srvNum), 100); setup->srvNameLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_setupSrvName, butText_left); setup->srvProto = butRadio_create(newProto, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, (clp_getStrNum(cg->clp, "client.protocol", setup->srvNum)[0] == 'n'), 2); setup->srvProtoLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_setupProtocol, butText_left); setup->igsLabel = butText_create(subwin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, "IGS", butText_center); setup->nngsLabel = butText_create(subwin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, "NNGS", butText_center); isDirect = (clp_getStrNum(cg->clp, "client.direct", setup->srvNum)[0] == 't'); setup->srvDirectLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_directConn, butText_left); setup->srvDirect = butCb_create(newDirect, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, isDirect); setup->srvComp = butText_create(subwin, 1, BUT_DRAWABLE, msg_gsCompName, butText_left); setup->srvCompIn = butTextin_create(newComp, setup, subwin, 1, BUT_DRAWABLE, clp_getStrNum(cg->clp, "client.address", setup->srvNum), 100); setup->srvPort = butText_create(subwin, 1, BUT_DRAWABLE, msg_gsPortNum, butText_left); setup->srvPortIn = butTextin_create(newPort, setup, subwin, 1, BUT_DRAWABLE, clp_getStrNum(cg->clp, "client.port", setup->srvNum), 20); setup->srvCmdLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_connCmdLabel, butText_left); setup->srvCmd = butTextin_create(newConnCmd, setup, subwin, 1, BUT_DRAWABLE, clp_getStrNum(cg->clp, "client.connCmd", setup->srvNum), 100); newDirect(setup->srvDirect, isDirect); setup->miscBox = butBoxFilled_create(subwin, 0, BUT_DRAWABLE); setup->miscTitle = butText_create(subwin, 1, BUT_DRAWABLE, msg_miscellaneous, butText_center); butText_setFont(setup->miscTitle, 2); setup->coordLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_showCoordinates, butText_left); setup->coord = butCb_create(newCoord, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getBool(cg->clp, "board.showCoords")); setup->hiLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_hiContrast, butText_left); setup->hi = butCb_create(newHiContrast, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getBool(cg->clp, "hiContrast")); setup->numKibsLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_numberKibitzes, butText_left); setup->numKibs = butCb_create(newNumKibs, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getBool(cg->clp, "client.numberKibitz")); setup->noTypoLabel = butText_create(subwin, 1, BUT_DRAWABLE, msg_noTypo, butText_left); setup->noTypo = butCb_create(newNoTypo, setup, subwin, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getBool(cg->clp, "client.noTypo")); setup->help = butCt_create(cgoban_createHelpWindow, &help_configure, setup->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); setup->ok = butCt_create(ok, setup, setup->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_ok); return(setup); } void setup_destroy(Setup *setup, bool propagate) { assert(MAGIC(setup)); if (propagate) setup->destroyCallback(setup, setup->packet); if (setup->win) butWin_destroy(setup->win); MAGIC_UNSET(setup); wms_free(setup); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { ButEnv *env = butWin_env(win); Setup *setup = butWin_packet(win); int y, w, h; int fontH, bw; assert(MAGIC(setup)); w = butWin_w(win); h = butWin_h(win); fontH = setup->cg->fontH; bw = butEnv_stdBw(env); but_resize(setup->bg, 0, y = 0, w, h); but_resize(setup->title, bw*2, y += bw*2, w - bw*4, fontH * 2); abutSwin_resize(setup->swin, bw*2, y += fontH * 2 + bw, w - bw*4, h - fontH * 4 - bw * 6, (butEnv_fontH(env, 0) * 3) / 2, butEnv_fontH(env, 0)); but_resize(setup->help, bw * 2, h - (fontH * 2 + bw * 2), (w - bw * 5) / 2, fontH * 2); but_resize(setup->ok, (w + bw) / 2, h - (fontH * 2 + bw * 2), w - bw*2 - (w + bw) / 2, fontH * 2); return(0); } static ButOut subwinResize(ButWin *win) { AbutSwin *swin; ButEnv *env = butWin_env(win); Setup *setup; int y, w; int fontH, bw; swin = butWin_packet(win); assert(MAGIC(swin)); setup = swin->packet; assert(MAGIC(setup)); w = butWin_w(win); fontH = setup->cg->fontH; bw = butEnv_stdBw(env); y = 0; but_resize(setup->srvBox, 0, y, w, boxHeight(8, fontH, bw) + fontH*2); but_resize(setup->srvTitle, bw*2, y + textOff(0, fontH, bw), w - bw*4, fontH * 2); but_resize(setup->srvMenu, bw * 2, y + textOff(1, fontH, bw), w - bw * 4, fontH * 4); but_resize(setup->srvNameLabel, bw * 2, y + textOff(2, fontH, bw) + fontH * 2, w/2 - bw*2, fontH * 2); but_resize(setup->srvName, w/2, y + textOff(2, fontH, bw) + fontH * 2, w - (w/2 + bw*2), fontH * 2); but_resize(setup->srvProtoLabel, bw * 2, y + textOff(3, fontH, bw) + fontH * 2, w/2 - bw*2, fontH * 2); but_resize(setup->srvProto, w/2, y + textOff(3, fontH, bw) + fontH * 2, w - (w/2 + bw*2), fontH * 2); butText_resize(setup->igsLabel, w/2 + (w - (w/2 + bw*2))/4, y + textOff(3, fontH, bw) + fontH * 2, fontH * 2); butText_resize(setup->nngsLabel, w/2 + (w - (w/2 + bw*2)) - (w - (w/2 + bw*2))/4, y + textOff(3, fontH, bw) + fontH * 2, fontH * 2); but_resize(setup->srvDirectLabel, bw * 2, y + textOff(4, fontH, bw) + fontH*2, w - (bw * 4 + fontH * 2), fontH * 2); but_resize(setup->srvDirect, w - (bw*2 + fontH * 2), y + textOff(4, fontH, bw) + fontH * 2, fontH * 2, fontH * 2); but_resize(setup->srvComp, bw * 2, y + textOff(5, fontH, bw) + fontH * 2, w/2 - bw*2, fontH * 2); but_resize(setup->srvCompIn, w/2, y + textOff(5, fontH, bw) + fontH * 2, w - (w/2 + bw*2), fontH * 2); but_resize(setup->srvPort, bw * 2, y + textOff(6, fontH, bw) + fontH * 2, w/2 - bw*2, fontH * 2); but_resize(setup->srvPortIn, w/2, y + textOff(6, fontH, bw) + fontH * 2, w - (w/2 + bw*2), fontH * 2); but_resize(setup->srvCmdLabel, bw * 2, y + textOff(7, fontH, bw) + fontH * 2, w/2 - bw*2, fontH * 2); but_resize(setup->srvCmd, w/2, y + textOff(7, fontH, bw) + fontH * 2, w - (w/2 + bw*2), fontH * 2); y += boxHeight(8, fontH, bw) + fontH * 2; but_resize(setup->miscBox, 0, y, w, boxHeight(5, fontH, bw)); but_resize(setup->miscTitle, bw*2, y + textOff(0, fontH, bw), w - bw*4, fontH * 2); but_resize(setup->coordLabel, bw * 2, y + textOff(1, fontH, bw), w - (bw * 4 + fontH * 2), fontH * 2); but_resize(setup->coord, w - (bw*2 + fontH * 2), y + textOff(1, fontH, bw), fontH * 2, fontH * 2); but_resize(setup->hiLabel, bw * 2, y + textOff(2, fontH, bw), w - (bw * 4 + fontH * 2), fontH * 2); but_resize(setup->hi, w - (bw*2 + fontH * 2), y + textOff(2, fontH, bw), fontH * 2, fontH * 2); but_resize(setup->numKibsLabel, bw * 2, y + textOff(3, fontH, bw), w - (bw * 4 + fontH * 2), fontH * 2); but_resize(setup->numKibs, w - (bw*2 + fontH * 2), y + textOff(3, fontH, bw), fontH * 2, fontH * 2); but_resize(setup->noTypoLabel, bw * 2, y + textOff(4, fontH, bw), w - (bw * 4 + fontH * 2), fontH * 2); but_resize(setup->noTypo, w - (bw*2 + fontH * 2), y + textOff(4, fontH, bw), fontH * 2, fontH * 2); y += boxHeight(5, fontH, bw); if (y != butWin_h(win)) { butCan_resizeWin(win, butWin_w(win), y, TRUE); } return(0); } static ButOut destroy(ButWin *win) { Setup *setup = butWin_packet(win); assert(MAGIC(setup)); clp_setInt(setup->cg->clp, "config.x", butWin_x(win)); clp_setInt(setup->cg->clp, "config.y", butWin_y(win)); clp_setDouble(setup->cg->clp, "config.h", (double)butWin_h(win) / (double)butWin_w(win)); setup->win = NULL; /* It's dead already. */ setup_destroy(setup, TRUE); return(0); } static ButOut newComp(But *but, const char *val) { Setup *setup = but_packet(but); assert(MAGIC(setup)); clp_setStrNum(setup->cg->clp, "client.address", val, setup->srvNum); but_setFlags(but, BUT_NOKEY); return(0); } static ButOut newPort(But *but, const char *val) { Setup *setup = but_packet(but); ButOut result = 0; Str errorMsg; int test; bool err; assert(MAGIC(setup)); err = FALSE; test = wms_atoi(val, &err); if ((test < 0) || (test > 65535) || err) { str_init(&errorMsg); str_print(&errorMsg, msg_clientBadPortNum, val); cgoban_createMsgWindow(setup->cg, "Cgoban Error", str_chars(&errorMsg)); str_deinit(&errorMsg); result = BUTOUT_ERR; } else clp_setStrNum(setup->cg->clp, "client.port", val, setup->srvNum); but_setFlags(but, BUT_NOKEY); return(result); } static ButOut ok(But *but) { Setup *setup = but_packet(but); ButOut result = 0; assert(MAGIC(setup)); result |= newComp(setup->srvCompIn, butTextin_get(setup->srvCompIn)); result |= newPort(setup->srvPortIn, butTextin_get(setup->srvPortIn)); result |= newConnCmd(setup->srvCmd, butTextin_get(setup->srvCmd)); result |= newName(setup->srvName, butTextin_get(setup->srvName)); if (!(result & BUTOUT_ERR)) { butWin_destroy(but_win(but)); } return(result); } static ButOut newConnCmd(But *but, const char *val) { Setup *setup = but_packet(but); assert(MAGIC(setup)); but_setFlags(but, BUT_NOKEY); clp_setStrNum(setup->cg->clp, "client.connCmd", val, setup->srvNum); return(0); } static ButOut newDirect(But *but, bool value) { Setup *setup = but_packet(but); uint directFlags; assert(MAGIC(setup)); if (value) directFlags = BUT_DRAWABLE | BUT_PRESSABLE; else directFlags = BUT_DRAWABLE | BUT_NOPRESS | BUT_NOKEY; clp_setStrNum(setup->cg->clp, "client.direct", (value ? "t" : "f"), setup->srvNum); butText_setColor(setup->srvComp, BUT_FG, !value); but_setFlags(setup->srvCompIn, directFlags); butText_setColor(setup->srvPort, BUT_FG, !value); but_setFlags(setup->srvPortIn, directFlags); butText_setColor(setup->srvCmdLabel, BUT_FG, value); but_setFlags(setup->srvCmd, directFlags ^ (BUT_PRESSABLE|BUT_NOPRESS|BUT_NOKEY)); return(0); } static ButOut newCoord(But *but, bool value) { Setup *setup = but_packet(but); assert(MAGIC(setup)); clp_setBool(setup->cg->clp, "board.showCoords", value); setup->cg->showCoords = value; butEnv_resizeAll(butWin_env(but_win(but))); return(0); } static ButOut newHiContrast(But *but, bool value) { Setup *setup = but_packet(but); assert(MAGIC(setup)); clp_setBool(setup->cg->clp, "hiContrast", value); setup->cg->cgbuts.hiContrast = value; cm2OldPm(setup->cg->env, plasma(), PLASMA_SIZE,PLASMA_SIZE, CGBUTS_COLORBOARD(0), 256, setup->cg->boardPixmap, value); cgbuts_redraw(&setup->cg->cgbuts); return(0); } static ButOut newNumKibs(But *but, bool value) { Setup *setup = but_packet(but); assert(MAGIC(setup)); clp_setBool(setup->cg->clp, "client.numberKibitz", value); return(0); } static ButOut newNoTypo(But *but, bool value) { Setup *setup = but_packet(but); assert(MAGIC(setup)); clp_setBool(setup->cg->clp, "client.noTypo", value); setup->cg->cgbuts.holdEnabled = value; return(0); } static ButOut newProto(But *but, int newVal) { Setup *setup = but_packet(but); static const char *protos[] = {"i", "n"}; assert(MAGIC(setup)); clp_setStrNum(setup->cg->clp, "client.protocol", protos[newVal], setup->srvNum); return(0); } static ButOut newName(But *but, const char *newVal) { Setup *setup = but_packet(but); assert(MAGIC(setup)); but_setFlags(but, BUT_NOKEY); clp_setStrNum(setup->cg->clp, "client.server", newVal, setup->srvNum); butMenu_setOptionName(setup->srvMenu, newVal, setup->srvNum); setup->newServerCallback(setup, setup->packet); return(0); } static ButOut newSrvNum(But *but, int value) { Setup *setup = but_packet(but); ButOut result = 0; Clp *clp = setup->cg->clp; result |= newComp(setup->srvCompIn, butTextin_get(setup->srvCompIn)); result |= newPort(setup->srvPortIn, butTextin_get(setup->srvPortIn)); result |= newConnCmd(setup->srvCmd, butTextin_get(setup->srvCmd)); result |= newName(setup->srvName, butTextin_get(setup->srvName)); setup->srvNum = value; butTextin_set(setup->srvName, clp_getStrNum(clp, "client.server", value), FALSE); butRadio_set(setup->srvProto, (clp_getStrNum(clp, "client.protocol", value)[0] == 'n'), FALSE); butCb_set(setup->srvDirect, (clp_getStrNum(clp, "client.direct", value)[0] == 't'), TRUE); butTextin_set(setup->srvCompIn, clp_getStrNum(clp, "client.address", value), FALSE); butTextin_set(setup->srvPortIn, clp_getStrNum(clp, "client.port", value), FALSE); butTextin_set(setup->srvCmd, clp_getStrNum(clp, "client.connCmd", value), FALSE); return(result); } goban-1.1.orig/src/rcur.c0000644000175000017500000002427710270072263013073 0ustar alal/* * wmslib/src/but/rcur.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include typedef struct Curs_struct { int fontcurnum; int hotX, hotY, w, h; char *pic, *mask; } Curs; #define ntm_width 16 #define ntm_height 16 #define ntm_bits ((char *)ntm_ubits) static uchar ntm_ubits[] = { 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00, 0x7f, 0x00, 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0xff, 0x03, 0x7f, 0x00, 0xf7, 0x00, 0xf3, 0x00, 0xe0, 0x01, 0xe0, 0x01, 0xc0, 0x01}; #define ntp_width 16 #define ntp_height 16 #define ntp_bits ((char *)ntp_ubits) static uchar ntp_ubits[] = { 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0xfe, 0x00, 0xfe, 0x01, 0x3e, 0x00, 0x36, 0x00, 0x62, 0x00, 0x60, 0x00, 0xc0, 0x00, 0xc0, 0x00, 0x00, 0x00}; #define tm_width 16 #define tm_height 16 #define tm_bits ((char *)tm_ubits) static uchar tm_ubits[] = { 0x00, 0xe0, 0x00, 0xf8, 0x00, 0xfe, 0x80, 0x7f, 0xe0, 0x7f, 0xf8, 0x3f, 0xfc, 0x3f, 0xf8, 0x1f, 0xe0, 0x1f, 0xf0, 0x0f, 0xf8, 0x0f, 0x7c, 0x07, 0x3e, 0x07, 0x1f, 0x02, 0x0e, 0x00, 0x04, 0x00}; #define tp_width 16 #define tp_height 16 #define tp_bits ((char *)tp_ubits) static uchar tp_ubits[] = { 0x00, 0x00, 0x00, 0x60, 0x00, 0x78, 0x00, 0x3e, 0x80, 0x3f, 0xe0, 0x1f, 0xf8, 0x1f, 0x80, 0x0f, 0xc0, 0x0f, 0xe0, 0x06, 0x70, 0x06, 0x38, 0x02, 0x1c, 0x02, 0x0e, 0x00, 0x04, 0x00, 0x00, 0x00}; #define txtp_width 16 #define txtp_height 16 #define txtp_bits ((char *)txtp_ubits) static uchar txtp_ubits[] = { 0x00, 0x00, 0xee, 0x00, 0x38, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00, 0x38, 0x00, 0xee, 0x00, 0x00, 0x00}; #define txtm_width 16 #define txtm_height 16 #define txtm_bits ((char *)txtm_ubits) static uchar txtm_ubits[] = { 0xef, 0x01, 0xff, 0x01, 0xff, 0x01, 0x7c, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xff, 0x01, 0xff, 0x01, 0xef, 0x01}; static Curs cursors[BUTCUR_NUM]; static void draw(ButRcur *rc); static void erase(ButRcur *rc); static void butRcur_hideForRedraw(ButRcur *rc, int winId, int x,int y, int w,int h); void butEnv_rcInit(ButEnv *env) { Drawable d = RootWindow(env->dpy, DefaultScreen(env->dpy)); static bool first_time = TRUE; ButCur i; int dataWidth, j, k; if (first_time) { first_time = FALSE; for (i = butCur_idle; i < butCur_bogus; ++i) cursors[i].pic = NULL; cursors[butCur_idle].fontcurnum = XC_left_ptr; cursors[butCur_idle].hotX = 1; cursors[butCur_idle].hotY = 1; cursors[butCur_idle].w = 16; cursors[butCur_idle].h = 16; cursors[butCur_idle].pic = ntp_bits; cursors[butCur_idle].mask = ntm_bits; cursors[butCur_twitch].fontcurnum = XC_arrow; cursors[butCur_twitch].hotX = 14; cursors[butCur_twitch].hotY = 1; cursors[butCur_twitch].w = 16; cursors[butCur_twitch].h = 16; cursors[butCur_twitch].pic = tp_bits; cursors[butCur_twitch].mask = tm_bits; cursors[butCur_text].fontcurnum = XC_xterm; cursors[butCur_text].hotX = 4; cursors[butCur_text].hotY = 8; cursors[butCur_text].w = 16; cursors[butCur_text].h = 16; cursors[butCur_text].pic = txtp_bits; cursors[butCur_text].mask = txtm_bits; cursors[butCur_up].fontcurnum = XC_sb_up_arrow; cursors[butCur_up].hotX = 14; cursors[butCur_up].hotY = 14; cursors[butCur_up].w = 16; cursors[butCur_up].h = 16; cursors[butCur_up].pic = ntp_bits; cursors[butCur_up].mask = ntm_bits; cursors[butCur_down].fontcurnum = XC_sb_down_arrow; cursors[butCur_down].hotX = 14; cursors[butCur_down].hotY = 14; cursors[butCur_down].w = 16; cursors[butCur_down].h = 16; cursors[butCur_down].pic = ntp_bits; cursors[butCur_down].mask = ntm_bits; cursors[butCur_left].fontcurnum = XC_sb_left_arrow; cursors[butCur_left].hotX = 14; cursors[butCur_left].hotY = 14; cursors[butCur_left].w = 16; cursors[butCur_left].h = 16; cursors[butCur_left].pic = ntp_bits; cursors[butCur_left].mask = ntm_bits; cursors[butCur_right].fontcurnum = XC_sb_right_arrow; cursors[butCur_right].hotX = 14; cursors[butCur_right].hotY = 14; cursors[butCur_right].w = 16; cursors[butCur_right].h = 16; cursors[butCur_right].pic = ntp_bits; cursors[butCur_right].mask = ntm_bits; cursors[butCur_lr].fontcurnum = XC_sb_h_double_arrow; cursors[butCur_lr].hotX = 14; cursors[butCur_lr].hotY = 14; cursors[butCur_lr].w = 16; cursors[butCur_lr].h = 16; cursors[butCur_lr].pic = ntp_bits; cursors[butCur_lr].mask = ntm_bits; cursors[butCur_ud].fontcurnum = XC_sb_v_double_arrow; cursors[butCur_ud].hotX = 14; cursors[butCur_ud].hotY = 14; cursors[butCur_ud].w = 16; cursors[butCur_ud].h = 16; cursors[butCur_ud].pic = ntp_bits; cursors[butCur_ud].mask = ntm_bits; cursors[butCur_grab].fontcurnum = XC_fleur; cursors[butCur_grab].hotX = 14; cursors[butCur_grab].hotY = 14; cursors[butCur_grab].w = 16; cursors[butCur_grab].h = 16; cursors[butCur_grab].pic = ntp_bits; cursors[butCur_grab].mask = ntm_bits; } for (i = butCur_idle; i < butCur_bogus; ++i) { /* "Grey out" the remote cursors. */ dataWidth = (cursors[i].w + 7) / 8; for (j = 0; j < cursors[i].h; j += 2) { for (k = 0; k < dataWidth; ++k) { cursors[i].mask[j*dataWidth + k] &= 0x55; if (j+1 < cursors[i].h) { cursors[i].mask[(j+1)*dataWidth + k] &= 0xaa; } } } env->cursors[i] = XCreateFontCursor(env->dpy, cursors[i].fontcurnum); env->cpic[i] = XCreateBitmapFromData(env->dpy, d, cursors[i].pic, cursors[i].w, cursors[i].h); env->cmask[i] = XCreateBitmapFromData(env->dpy, d, cursors[i].mask, cursors[i].w, cursors[i].h); } env->curnum = butCur_idle; env->curwin = None; env->curhold = NULL; env->curlast = butCur_bogus; } /* Erase the cursor if it is in the area specified. */ void butRcur_create(ButRcur *rc, ButEnv *env) { MAGIC_SET(rc); rc->env = env; rc->winId = -2; rc->drawn = FALSE; rc->under = XCreatePixmap(env->dpy, DefaultRootWindow(env->dpy), 16,16, env->depth); } void butRcur_move(ButRcur *rc, int winId, int rx,int ry, int rw,int rh, ButCur type) { ButEnv *env = rc->env; assert(MAGIC(rc)); if ((winId < 0) || (winId >= env->maxWinIds)) winId = -2; else if (env->id2Win[winId] == NULL) winId = -2; if ((winId == rc->winId) && (rx == rc->rx) && (ry == rc->ry) && (rw == rc->rw) && (rh == rc->rh) && (type == rc->type)) return; if (rc->drawn) erase(rc); rc->winId = winId; rc->rx = rx; rc->ry = ry; rc->rw = rw; rc->rh = rh; rc->type = type; if (winId != -2) { rc->lx = (rx * env->id2Win[winId]->w + rw/2) / rw - cursors[type].hotX; rc->ly = (ry * env->id2Win[winId]->h + rh/2) / rh - cursors[type].hotY; draw(rc); } } void butRcur_redraw(ButEnv *env, int winId, int x,int y, int w,int h) { int i; if (winId == -2) return; for (i = 0; i < env->numPartners; ++i) { if (env->partners[i]) { if (butRnet_valid(env->partners[i]) && (winId == env->partners[i]->rc.winId)) butRcur_hideForRedraw(&env->partners[i]->rc, winId, x,y, w,h); } } } static void butRcur_hideForRedraw(ButRcur *rc, int winId, int x,int y, int w,int h) { assert(MAGIC(rc)); if (rc->drawn && (rc->winId == winId) && (x < rc->lx+16) && (y < rc->ly+16) && (x+w > rc->lx) && (y+h > rc->ly)) { /* We need to erase it. Will the redraw erase it for us? */ if ((x <= rc->lx) && (y <= rc->ly) && (x+w >= rc->lx+16) && (y+h >= rc->ly+16)) { rc->drawn = FALSE; } else erase(rc); } } /* xio is the I/O context that the move got reported in. */ static void draw(ButRcur *rc) { ButEnv *env = rc->env; assert(!rc->drawn); assert(MAGIC(rc)); XCopyArea(env->dpy, env->id2Win[rc->winId]->win, rc->under, env->gc2, rc->lx,rc->ly, 16,16, 0,0); if (!env->colorp) XSetFillStyle(env->dpy, env->gc2, FillSolid); XSetClipMask(env->dpy, env->gc2, env->cmask[rc->type]); XSetClipOrigin(env->dpy, env->gc2, rc->lx,rc->ly); XSetForeground(env->dpy, env->gc2, env->colors[BUT_FG]); XSetBackground(env->dpy, env->gc2, env->colors[BUT_LIT]); XCopyPlane(env->dpy, env->cpic[rc->type],env->id2Win[rc->winId]->win, env->gc2, 0,0, 16,16, rc->lx,rc->ly, 1L); XSetClipMask(env->dpy, env->gc2, None); if (!env->colorp) XSetFillStyle(env->dpy, env->gc2, FillTiled); rc->drawn = TRUE; } static void erase(ButRcur *rc) { ButEnv *env = rc->env; assert(MAGIC(rc)); assert(rc->drawn); XCopyArea(env->dpy, rc->under, env->id2Win[rc->winId]->win, env->gc2, 0,0, 16,16, rc->lx,rc->ly); rc->drawn = FALSE; } /* Change the cursor to make it twitched or not twitched. */ void butEnv_setCursor(ButEnv *env, But *but, ButCur newcursor) { if (newcursor == butCur_idle) { if (but == env->curhold) { env->curnum = newcursor; env->curhold = NULL; } } else { env->curnum = newcursor; env->curhold = but; } env->curwin = but->win->physWin; } /* Set up any cursor changes that may have occurred. */ void butEnv_rcActivate(ButEnv *env) { int i; if ((env->curlast != env->curnum) && (env->curwin != None)) { assert(env->curnum < butCur_bogus); env->curlast = env->curnum; XDefineCursor(env->dpy, env->curwin, env->cursors[env->curlast]); butRnet_mMove(env, -1, -1,-1, -1,-1, env->curnum); } for (i = 0; i < env->numPartners; ++i) { if (env->partners[i]) { if (butRnet_valid(env->partners[i]) && (env->partners[i]->rc.winId >= 0) && !env->partners[i]->rc.drawn) draw(&env->partners[i]->rc); } } } #endif goban-1.1.orig/src/net.h0000644000175000017500000001142110267776722012717 0ustar alal/* * wmslib/include/but/net.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for button networking. */ #ifndef _BUTNET_H_ #define _BUTNET_H_ 1 #include /********************************************************************** * Constants **********************************************************************/ /* Public. */ #define BUTNET_MAXCMD (16*1024) /* Max length of 1 net command. */ /* Private. */ /* * These really should be an enum, but then I'd be treating the enum like an * int when I do int_stdInt32() to it, so I may as well just leave it as * an int. */ #define BUTNET_PROTOWHO 0 #define BUTNET_CLOSE 1 #define BUTNET_USERDATA 2 #define BUTNET_MOUSE 3 #define BUTNET_MOUSEACK 4 #define BUTNET_NEWFLAGS 5 #define BUTNET_BUTSPEC 6 /********************************************************************** * Types **********************************************************************/ /* Private. */ struct ButLnet_struct { struct ButEnv_struct *env; void *packet; bool valid, error; int errNum; char *protocol; ButOut (*ocallback)(struct ButRnet_struct *net); ButOut (*callback)(struct ButRnet_struct *net, void *cmd, int cmdLen); ButOut (*ccallback)(struct ButRnet_struct *net, const char *reason); int fd; MAGIC_STRUCT }; /* ButLnet typedef in but.h */ typedef enum { butRnetState_pwWait, butRnetState_pwAccWait, butRnetState_accWait, butRnetState_open, butRnetState_closing, butRnetState_closed } ButRnetState; typedef struct ButNetMsg_struct { StdInt32 length; StdInt32 type; union { struct { StdInt32 context; /* This is the client's new context. */ char proto[100]; char who[100]; } protoWho; char close[BUTNET_MAXCMD]; char userData[BUTNET_MAXCMD]; struct { StdInt32 context, win, type, x,y, w,h; } mouse; /* mouseAck needs no data. */ struct { StdInt32 butId; StdInt32 newFlags; } newFlags; struct { StdInt32 butId; char butData[BUTNET_MAXCMD - sizeof(StdInt32)]; } butSpec; } perType; } ButNetMsg; struct ButRnet_struct { struct ButEnv_struct *env; int partner, rmtPartner; void *packet; ButRnetState state; bool error, lookupError, butNetError; int errNum; const char *who, *protocol; ButOut (*ocallback)(struct ButRnet_struct *net); ButOut (*callback)(struct ButRnet_struct *net, void *cmd, int cmdLen); ButOut (*ccallback)(struct ButRnet_struct *net, const char *reason); int wBufSize, wBufStart, wBufLen; char *wBuffer; int rBufAmt; /* How much stuff in the rBuffer? */ int rBufLen; int rBufMsgLen; struct ButNetMsg_struct rBuffer; int fd; int lWinId, lx,ly, lw,lh, lType; int lPress, lTwitch; ButRcur rc; bool ackNeeded, mouseMove; MAGIC_STRUCT }; /* ButLnet typedef in but.h */ /********************************************************************** * Functions **********************************************************************/ /* Public. */ #define butRnet_valid(net) ((net)->state == butRnetState_open) #define butRnet_error(net) ((net)->error) #define butRnet_lookupError(net) ((net)->lookupError) #define butRnet_specialError(net) ((net)->specialError) #define butRnet_errNum(net) ((net)->errNum) #define butRnet_packet(net) ((net)->packet) #define butRnet_who(net) ((net)->who) #define butRnet_protocol(net) ((net)->protocol) #define butLnet_valid(net) ((net)->valid) #define butLnet_error(net) ((net)->error) #define butLnet_errNum(net) ((net)->errNum) #define butLnet_packet(net) ((net)->packet) /* * butLnet_create and butRnet_create will return NULL if the system was * compiled without sockets available. */ extern ButLnet *butLnet_create(ButEnv *env, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)); extern void butLnet_destroy(ButLnet *net); extern ButRnet *butRnet_create(ButEnv *env, const char *address, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)); extern void butRnet_accept(ButRnet *net); extern void butRnet_send(ButRnet *net, void *buffer, int len); extern void butRnet_destroy(ButRnet *net, const char *reason); /* Private. */ extern void butRnet_mMove(ButEnv *env, int winId, int lx, int ly, int lw, int lh, ButCur type); extern void butRnet_butSpecSend(But *but, void *buffer, int len); extern void butRnet_newFlags(ButEnv *env, int butId, uint newFlags); #endif /* _BUTNET_H_ */ goban-1.1.orig/src/sgfPlay.c0000644000175000017500000001766410270074300013521 0ustar alal/* * src/sgfPlay.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include "cgoban.h" #include "goPic.h" #include "sgf.h" #include "sgfPlay.h" #include "abut_msg.h" /********************************************************************** * Forward declarations **********************************************************************/ static void processMoves(SgfElem *me, GoGame *game, int *handicap, bool *handicapPlayed, Cgoban *cg); static void processNodeMarks(SgfElem *me, GoGame *game, GoPic *pic, bool *changed); static void eraseObsoleteMarks(GoPic *pic, GoGame *game, bool *changed); /********************************************************************** * Functions **********************************************************************/ int sgf_play(Sgf *mc, GoGame *game, GoPic *pic, int numNodes, SgfElem *terminator) { int handicap = 0, i, currentNode = 0; SgfElem *me; bool handicapPlayed = FALSE; SgfElem *nodeStart = mc->top.activeChild; bool *changed; goGame_moveTo(game, 0); if (numNodes >= 0) ++numNodes; if (terminator != NULL) { terminator = terminator->activeChild; } for (me = mc->top.activeChild; (me != terminator) && numNodes; me = me->activeChild) { assert(MAGIC(me)); mc->active = me; if (me->type == sgfType_node) { assert((me->childH == NULL) || (me->childH != me->childT) || (me->activeChild == me->childH)); --numNodes; ++currentNode; if (numNodes) { nodeStart = me->activeChild; /* * We take out the last move at each node to make sure that * you don't see that silly ring forever. If there's another * move coming then this will get undone when we move. */ goGame_noLastMove(game); } else { mc->active = me->parent; } } else { assert(me->parent->childH == me->parent->childT); assert(me->parent->activeChild == me->parent->childH); if (pic == NULL) processMoves(me, game, &handicap, &handicapPlayed, NULL); else processMoves(me, game, &handicap, &handicapPlayed, pic->cg); } } /* * Now set the clock to match the time that we had left. for (i = game->moveNum - 1; i >= 0; --i) { if (game->moves[i].color == goStone_white) game->timers[goStone_white] = game->moves[i].time; } for (i = game->moveNum - 1; i >= 0; --i) { if (game->moves[i].color == goStone_black) game->timers[goStone_black] = game->moves[i].time; } */ /* * If there are handicap stones that were added automatically and aren't * in the movechain, then add them now. * This is really stupid. There is no way that adding handicap stones * should be in the sgf play code! :-( */ if (!handicapPlayed && handicap && !game->passive) { for (i = 0; i < goBoard_area(game->board); ++i) { if (goBoard_stone(game->board, i) == goStone_black) sgf_addStone(mc, goStone_black, goBoard_loc2Sgf(game->board, i)); } } /* * If we were given a GoPic, then add marks to it now. */ if (pic) { changed = wms_malloc(goBoard_area(game->board) * sizeof(bool)); memset(changed, 0, goBoard_area(game->board) * sizeof(bool)); while (nodeStart) { if (nodeStart->type == sgfType_node) break; processNodeMarks(nodeStart, game, pic, changed); nodeStart = nodeStart->activeChild; } eraseObsoleteMarks(pic, game, changed); wms_free(changed); } if (me) --currentNode; return(currentNode); } static void processMoves(SgfElem *me, GoGame *game, int *handicap, bool *handicapPlayed, Cgoban *cg) { int i; switch(me->type) { case sgfType_node: assert(0); break; case sgfType_handicap: *handicap = me->iVal; break; case sgfType_whoseMove: game->setWhoseMoveNum = game->moveNum; game->setWhoseMoveColor = me->gVal; game->whoseMove = me->gVal; break; case sgfType_move: *handicapPlayed = TRUE; i = goBoard_sgf2Loc(game->board, me->lVal); if (!*handicap || (goBoard_stone(game->board, i) != goStone_black)) { assert(game->passive || (me->gVal == game->whoseMove)); if (!goGame_isLegal(game, me->gVal, i)) { Str errmsg; char moveStr[5]; str_init(&errmsg); goBoard_loc2Str(game->board, i, moveStr), str_print(&errmsg, msg_badMoveInSgf, moveStr, game->moveNum); if (cg != NULL) cgoban_createMsgWindow(cg, "CGoban: Error in SGF file", str_chars(&errmsg)); str_deinit(&errmsg); } else { goGame_move(game, me->gVal, i, NULL); } } if (*handicap) --*handicap; break; case sgfType_pass: if (game->state != goGameState_selectDead) { /* * IGS sends out games with more than two passes at the end of the * game. If you've already gone to non-play state and you get * passes, then ignore them. */ goGame_pass(game, me->gVal, NULL); } break; case sgfType_setBoard: i = goBoard_sgf2Loc(game->board, me->lVal); if ((me->gVal == goStone_empty) && ((game->state == goGameState_selectDead) || game->forcePlay)) { if (!(game->flags[i] & GOGAMEFLAGS_MARKDEAD)) { goGame_markDead(game, i); } } else { if (goBoard_stone(game->board, i) != me->gVal) { goGame_setBoard(game, me->gVal, i); } assert(goBoard_stone(game->board, i) == me->gVal); } break; case sgfType_timeLeft: if (me->iVal < 0) { /* * This is marking a time loss. Fake up the game structure to * make it clear that this is what happened. */ game->maxMoves = ++game->moveNum; } game->moves[game->moveNum - 1].time.timeLeft = me->iVal; break; case sgfType_stonesLeft: game->moves[game->moveNum - 1].time.aux = me->iVal; break; default: break; } } static void processNodeMarks(SgfElem *me, GoGame *game, GoPic *pic, bool *changed) { int loc, i; GoMarkType mark; bool err; assert(MAGIC(me)); switch(me->type) { case sgfType_territory: loc = goBoard_sgf2Loc(game->board, me->lVal); changed[loc] = TRUE; mark = goMarkType_stone2sm(me->gVal); if (goStone_isStone(goBoard_stone(game->board, loc))) { if (!grid_grey(pic->boardButs[loc])) { grid_setStone(pic->boardButs[loc], goBoard_stone(game->board, loc), TRUE); } } if (grid_markType(pic->boardButs[loc]) != mark) { grid_setMark(pic->boardButs[loc], mark, 0); } break; case sgfType_triangle: case sgfType_circle: case sgfType_square: if (me->type == sgfType_triangle) mark = goMark_triangle; else if (me->type == sgfType_circle) mark = goMark_circle; else /* me->type == sgfType_square */ mark = goMark_square; loc = goBoard_sgf2Loc(game->board, me->lVal); changed[loc] = TRUE; if (grid_grey(pic->boardButs[loc])) { grid_setStone(pic->boardButs[loc], goBoard_stone(game->board, loc), FALSE); } if (grid_markType(pic->boardButs[loc]) != mark) { grid_setMark(pic->boardButs[loc], mark, 0); } break; case sgfType_label: loc = goBoard_sgf2Loc(game->board, me->lVal); changed[loc] = TRUE; /* See if it is a numeric label. */ i = wms_atoi(str_chars(me->sVal), &err); if (err) grid_setMark(pic->boardButs[loc], goMark_letter, str_chars(me->sVal)[0]); else grid_setMark(pic->boardButs[loc], goMark_number, i); break; default: break; } } static void eraseObsoleteMarks(GoPic *pic, GoGame *game, bool *changed) { int loc; for (loc = 0; loc < goBoard_area(game->board); ++loc) { if (!changed[loc] && pic->boardButs[loc]) { if (grid_grey(pic->boardButs[loc]) || (grid_markType(pic->boardButs[loc]) != goMark_none)) { grid_setStone(pic->boardButs[loc], goBoard_stone(game->board, loc), FALSE); grid_setMark(pic->boardButs[loc], goMark_none, 0); } } } } goban-1.1.orig/src/drawStone.c0000644000175000017500000005532710270000000014042 0ustar alal/* * src/drawStone.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. * * This code extends the wmslib/but library to add special buttons needed * for cgoban. * * The globe data was extracted from the CIA World Data Bank II map database. * */ #include #include #include #include #include #include #include "goBoard.h" #ifdef _DRAWSTONE_H_ Levelization Error. #endif #include "drawStone.h" /********************************************************************** * Data Types **********************************************************************/ typedef struct WhiteDesc_struct { float cosTheta, sinTheta; float stripeWidth, xAdd; float stripeMul, zMul; } WhiteDesc; /********************************************************************** * Forward Declarations **********************************************************************/ static void decideAppearance(WhiteDesc *desc, int size, Rnd *rnd); static float calcCosAngleReflection2View(int x, int y, int r, float *lambertian, float *z); static void drawNngs(Display *dpy, GC gc, Pixmap pic, int xOff, int size); static void drawIgs(Display *dpy, GC gc, Pixmap pic, int xOff, int size); static void drawWorld(Display *dpy, GC gc, Pixmap pic, int xOff, int size, const XPoint data[]); static int yinYangX(int size, int y); /********************************************************************** * Global Variables **********************************************************************/ void drawStone_newPics(ButEnv *env, Rnd *rnd, int baseColor, Pixmap *stonePixmap, Pixmap *maskBitmap, int size, bool color) { XImage *stones; GC gc1; Display *dpy = env->dpy; uchar *maskData; int maxRadius; int maskW; int x, y, i, wBright, bBright, yyx; XGCValues values; float bright, lambertian, z; float wStripeLoc, wStripeColor; WhiteDesc white[DRAWSTONE_NUMWHITE]; int sizeLimit; stones = butEnv_imageCreate(env, size * (DRAWSTONE_NUMWHITE + 1), size); maskW = (size * 6 + 7) >> 3; maskData = wms_malloc(maskW * size); memset(maskData, 0, maskW * size); for (i = 0; i < DRAWSTONE_NUMWHITE; ++i) { decideAppearance(&white[i], size, rnd); } maxRadius = size * size; sizeLimit = (int)((size - butEnv_fontH(env, 0) * 0.14) * (size - butEnv_fontH(env, 0) * 0.14)); if (sizeLimit > ((size - 1) * (size - 1))) sizeLimit = (size - 1) * (size - 1); for (y = 0; y < size; ++y) { yyx = yinYangX(size, y); for (x = 0; x < size; ++x) { /* * Here we build the masks. We need three basic masks; the solid * circular mask, and two dithered masks used for semitransparent * stones. * Then after that we have the yin yang mask. We have the world masks * too, but we make those in a separate function. */ if (((size - 1) - (x+x)) * ((size - 1) - (x+x)) + ((size - 1) - (y+y)) * ((size - 1) - (y+y)) <= maxRadius) { maskData[(x >> 3) + (y * maskW)] |= (1 << (x & 7)); x += size; if ((x & 1) == (y & 1)) maskData[(x >> 3) + (y * maskW)] |= (1 << (x & 7)); x += size; if ((x & 1) == (y & 1)) maskData[(x >> 3) + (y * maskW)] |= (1 << (x & 7)); x += size; if (x - size*3 < yyx) maskData[(x >> 3) + (y * maskW)] |= (1 << (x & 7)); x -= size*3; /* * Now we do the actual stone. If it's a greyscale/b&w display, it's * easy because there is no rendering going on. */ if (!color) { XPutPixel(stones, x, y, butEnv_color(env, BUT_BLACK)); if (((size - 1) - (x+x)) * ((size - 1) - (x+x)) + ((size - 1) - (y+y)) * ((size - 1) - (y+y)) < sizeLimit) { for (i = 0; i < DRAWSTONE_NUMWHITE; ++i) { XPutPixel(stones, x+size*(i+1), y, butEnv_color(env, BUT_WHITE)); } } else { for (i = 0; i < DRAWSTONE_NUMWHITE; ++i) { XPutPixel(stones, x+size*(i+1), y, butEnv_color(env, BUT_BLACK)); } } } else { /* * All right, time to add some color. First we calculate the * cosine of the angle of reflection to the angle of the viewer. * This is the basic quantity used to calculate the amount of * light seen in phong shading. You raise this value to a * power; the higher the power, the "shinier" the object you are * rendering. For the black stones, which aren't very shiny, * I use bright^4. For the white stones, which are very shiny, * I use bright^32. Then you multiply this value by the * intensity of the object at the point of rendering, add a * little bit of lambertian reflection and a tiny bit of ambient * light, and you're done! */ bright = calcCosAngleReflection2View((size - 1) - (x+x), (size - 1) - (y + y), size+size, &lambertian, &z); bright *= bright; bright *= bright; bBright = bright*165.0 + lambertian*10.0 - 5.0; bright *= bright; bright *= bright; bright *= bright; if (bBright > 255) bBright = 255; if (bBright < 0) bBright = 0; XPutPixel(stones, x, y, butEnv_color(env, baseColor + bBright)); /* * OK, the black stones are done. Now for the white stones. * Here we have to add the stripes. The algorithm for stripe * intensity is just something I made up. I kept tweaking * parameters and screwing around with it until it looked sort * of like my stones. The stripes are too regular, some day I * may go back and change that, but for now it is acceptable * looking IMHO. */ for (i = 0; i < DRAWSTONE_NUMWHITE; ++i) { wStripeLoc = (x*white[i].cosTheta - y*white[i].sinTheta) + white[i].xAdd; wStripeLoc += cos(wStripeLoc/4); wStripeColor = fmod(wStripeLoc + (z * z * z * white[i].zMul) * white[i].stripeWidth, white[i].stripeWidth) / white[i].stripeWidth; wStripeColor = wStripeColor * white[i].stripeMul - 0.5; if (wStripeColor < 0.0) wStripeColor = -2.0 * wStripeColor; if (wStripeColor > 1.0) wStripeColor = 1.0; wStripeColor = wStripeColor * 0.15 + 0.85; wBright = bright*70.0 + wStripeColor * (lambertian*120.0 + 110.0); if (wBright > 255) wBright = 255; if (wBright < 0) wBright = 0; XPutPixel(stones, x+(i+1)*size, y, butEnv_color(env, baseColor + wBright)); } } } } } *stonePixmap = XCreatePixmap(dpy, RootWindow(dpy, DefaultScreen(dpy)), size * (DRAWSTONE_NUMWHITE + 1), size, DefaultDepth(dpy, DefaultScreen(dpy))); XPutImage(dpy, *stonePixmap, env->gc2, stones, 0,0, 0,0, size * (DRAWSTONE_NUMWHITE + 1), size); butEnv_imageDestroy(stones); *maskBitmap = XCreateBitmapFromData(dpy, RootWindow(dpy, DefaultScreen(dpy)), (void *)maskData, maskW<<3, size); /* * The "void *" above is because maskData should be a uchar, but the * function prototype specifies a char. */ wms_free(maskData); values.graphics_exposures = False; gc1 = XCreateGC(dpy, *maskBitmap, GCGraphicsExposures, &values); /* Do that whole world thing, you know, the world thing. */ XSetForeground(dpy, gc1, 1); drawNngs(dpy, gc1, *maskBitmap, size*4, size); drawIgs(dpy, gc1, *maskBitmap, size*5, size); XSetFunction(dpy, gc1, GXand); XCopyArea(dpy, *maskBitmap, *maskBitmap, gc1, 0,0, size,size, size*4,0); XCopyArea(dpy, *maskBitmap, *maskBitmap, gc1, 0,0, size,size, size*5,0); } /* * Viewing vector is simply "z". * I model the stones as the top part of the sphere with the viewer looking * straight down on them. lx*i+ly*j+lz*k is the angle of incident light. * If you draw out the vectors and work out the equation, you'll notice that * it very nicely simplifies down to what you get here. The lambertian * intensity (lambertian) and the z magnitude of the surface normal (z) * aren't really related to the cosine being calculated, but they share * many operations with it so it saves CPU time to calculate them at the * same time. */ static float calcCosAngleReflection2View(int x, int y, int r, float *lambertian, float *z) { const float lx = 0.35355339, ly = 0.35355339, lz = 0.8660254; float nx, ny, nz, rz; float nDotL; nz = sqrt((double)(r * r - x * x - y * y)); *z = 1.0 - (nz / r); nx = (float)x; ny = (float)y; nDotL = (nx*lx + ny*ly + nz*lz) / r; rz = (2.0 * nz * nDotL) / r - lz; *lambertian = nDotL; return(rz); } /* * drawNngs and drawIgs are a list of vectors to draw to outline the world. * I took GIFs produced by XGlobe, which got it's data from the * CIA World Data Bank II map database. Then I wrote a program that * traced the outlines of the continents of those gifs, clipped out * unnecessare points, and saved the results as these list of points for * the polygons. Pretty cool, huh? */ static void drawNngs(Display *dpy, GC gc, Pixmap pic, int xOff, int size) { static const XPoint nngsData[] = { {120,0},{145,0},{147,2},{153,2},{155,4},{157,4},{159,6},{161,6},{161,9}, {159,11},{159,17},{158,17},{156,15},{152,15},{148,11},{146,11},{140,5}, {138,5},{136,3},{130,3},{129,2},{128,2},{126,4},{126,5},{127,6},{131,6}, {133,8},{135,8},{137,10},{137,13},{135,15},{134,15},{132,13},{128,13}, {126,11},{124,11},{124,9},{123,8},{122,8},{119,11},{119,13},{116,13}, {116,7},{115,6},{114,6},{113,7},{113,13},{109,13},{105,17},{105,18}, {107,20},{111,20},{113,22},{117,22},{117,26},{118,27},{119,27},{120,26}, {120,22},{122,22},{123,21},{123,20},{122,19},{122,14},{125,14},{127,16}, {131,16},{133,18},{136,18},{138,16},{139,16},{145,22},{147,22},{149,24}, {151,24},{151,28},{153,30},{157,30},{157,33},{150,33},{150,29},{149,28}, {148,28},{147,29},{145,29},{142,32},{142,33},{143,34},{147,34},{147,37}, {145,37},{143,39},{140,39},{138,37},{137,37},{133,41},{133,43},{131,43}, {123,51},{123,53},{119,57},{117,57},{113,61},{113,66},{115,68},{115,71}, {113,73},{112,73},{110,71},{110,67},{106,63},{99,63},{97,65},{87,65}, {85,67},{83,67},{81,69},{81,75},{79,77},{79,82},{84,87},{85,87},{86,86}, {90,86},{92,84},{92,82},{94,80},{99,80},{99,85},{97,87},{97,90},{99,92}, {105,92},{107,94},{107,99},{105,101},{105,102},{110,107},{111,107}, {112,106},{117,106},{119,108},{120,108},{122,106},{122,104},{124,102}, {128,102},{130,100},{133,100},{135,102},{139,102},{141,104},{155,104}, {155,106},{159,110},{161,110},{165,114},{171,114},{173,116},{175,116}, {177,118},{177,122},{179,124},{179,126},{181,128},{185,128},{187,130}, {189,130},{191,132},{193,132},{195,134},{199,134},{203,138},{205,138}, {207,140},{207,147},{205,149},{205,151},{199,157},{199,161},{197,163}, {197,167},{195,169},{195,171},{191,175},{191,177},{187,177},{185,179}, {183,179},{181,181},{179,181},{177,183},{177,185},{175,187},{175,189}, {163,201},{159,201},{157,203},{157,205},{155,207},{153,207},{151,209}, {149,209},{138,220},{138,221},{139,222},{139,223},{135,227},{135,230}, {137,232},{137,233},{132,233},{130,231},{128,231},{128,229},{126,227}, {126,220},{128,218},{128,217},{126,215},{126,212},{128,210},{128,204}, {130,202},{130,198},{132,196},{132,186},{134,184},{134,169},{128,163}, {126,163},{124,161},{122,161},{122,157},{118,153},{118,151},{116,149}, {116,147},{110,141},{110,136},{112,134},{112,126},{114,126},{116,124}, {116,122},{119,119},{119,118},{118,117},{118,111},{115,108},{114,108}, {113,109},{113,111},{110,111},{108,109},{106,109},{102,105},{100,105}, {100,103},{96,99},{94,99},{92,97},{88,97},{83,92},{82,92},{81,93}, {76,93},{74,91},{72,91},{70,89},{68,89},{64,85},{64,77},{60,73},{60,65}, {57,62},{56,62},{55,63},{55,64},{57,66},{57,74},{59,76},{59,77},{56,77}, {56,73},{52,69},{52,68},{54,66},{54,65},{52,63},{52,57},{50,55},{50,48}, {52,46},{52,44},{54,42},{54,40},{60,34},{60,32},{62,30},{62,28},{63,27}, {63,26},{62,25},{62,24},{67,19},{67,18},{66,17},{62,17},{62,16},{64,16}, {66,14},{68,14},{70,12},{72,12},{74,10},{76,10},{78,8},{82,8},{84,6}, {87,6},{88,7},{89,7},{90,6},{91,6},{93,8},{94,8},{98,4},{104,4},{106,2}, {107,2},{107,6},{108,7},{109,7},{110,6},{110,2},{111,2},{111,4},{112,5}, {113,5},{114,4},{114,2},{118,2},{119,1},{-1,-1},{168,10},{173,10}, {175,12},{175,13},{172,13},{170,11},{168,11},{-1,-1},{186,14},{189,14}, {197,22},{199,22},{201,24},{205,24},{213,32},{215,32},{219,36},{219,38}, {221,40},{221,44},{225,48},{225,50},{226,51},{227,51},{228,50},{229,50}, {235,56},{235,58},{239,62},{239,64},{241,66},{241,68},{243,70},{243,72}, {245,74},{245,76},{247,78},{247,82},{249,84},{249,88},{251,90},{251,94}, {253,96},{253,104},{255,106},{255,137},{254,137},{254,119},{251,116}, {250,116},{249,117},{248,117},{247,116},{246,116},{245,117},{242,117}, {242,115},{238,111},{238,107},{232,101},{232,97},{230,95},{230,87}, {228,85},{228,83},{226,81},{226,66},{227,65},{227,64},{226,63},{226,61}, {224,59},{224,53},{222,51},{220,51},{216,47},{216,45},{212,41},{212,38}, {213,37},{213,36},{212,35},{210,35},{202,27},{198,27},{190,19},{190,17}, {188,15},{186,15},{-1,-1},{110,76},{113,76},{115,78},{117,78},{119,80}, {121,80},{123,82},{125,82},{125,83},{123,83},{120,86},{120,87},{121,88}, {121,89},{118,89},{118,86},{119,85},{119,84},{116,81},{114,81},{112,79}, {106,79},{106,78},{108,78},{109,77},{-1,-1},{128,84},{135,84},{137,86}, {139,86},{139,87},{135,87},{133,89},{132,89},{130,87},{126,87},{126,86}, {127,85},{-1,-1},{142,86},{143,86},{143,89},{142,89},{142,87},{-1,-1}, {88,128},{89,128},{89,129},{88,129},{-1,-1},{254,142},{255,142}, {255,143},{254,143},{-1,-1},{250,162},{251,162},{251,165},{250,165}, {250,163},{-1,-1},{146,228},{149,228},{149,229},{146,229},{-1,-1}, {140,242},{143,242},{143,243},{141,243},{139,245},{137,245},{136,246}, {136,247},{137,248},{137,249},{135,251},{133,251},{132,252},{132,253}, {133,254},{136,254},{138,252},{139,252},{141,254},{142,254},{144,252}, {154,252},{156,250},{162,250},{164,248},{167,248},{167,249},{165,251}, {161,251},{159,253},{151,253},{149,255},{106,255},{104,253},{98,253}, {98,250},{107,250},{108,251},{109,251},{110,250},{124,250},{126,248}, {130,248},{134,244},{138,244},{139,243},{-2,-2}}; drawWorld(dpy, gc, pic, xOff, size, nngsData); } static void drawIgs(Display *dpy, GC gc, Pixmap pic, int xOff, int size) { static const XPoint igsData[] = { {106,2},{115,2},{117,4},{121,4},{123,6},{126,6},{128,4},{128,2},{131,2}, {135,6},{143,6},{145,8},{163,8},{164,9},{165,9},{166,8},{166,6},{171,6}, {173,8},{177,8},{179,10},{181,10},{183,12},{185,12},{187,14},{189,14}, {191,16},{191,23},{190,23},{190,21},{186,17},{180,17},{174,11},{167,11}, {165,13},{165,15},{163,15},{161,17},{159,17},{157,19},{157,23},{155,25}, {155,27},{152,27},{150,25},{150,18},{151,17},{151,16},{150,15},{149,15}, {147,17},{133,17},{128,22},{128,23},{129,24},{135,24},{135,28},{137,30}, {137,31},{135,33},{134,33},{134,29},{133,28},{132,28},{131,29},{131,33}, {127,37},{125,37},{121,41},{117,41},{111,47},{111,48},{113,50},{113,53}, {111,55},{106,55},{106,51},{104,49},{104,48},{105,47},{105,46},{104,45}, {103,45},{101,47},{100,47},{98,45},{97,45},{95,47},{95,48},{97,50}, {101,50},{101,51},{97,51},{95,53},{95,56},{97,58},{97,65},{91,71}, {91,72},{92,73},{93,73},{94,72},{95,72},{95,77},{93,79},{92,79},{92,75}, {91,74},{90,74},{89,75},{87,75},{85,77},{83,77},{81,79},{77,79},{73,83}, {73,85},{71,87},{68,87},{68,84},{69,83},{69,82},{68,81},{67,81},{63,85}, {63,88},{67,92},{67,103},{65,103},{59,109},{58,109},{58,105},{53,100}, {52,100},{49,103},{49,108},{55,114},{55,128},{59,132},{61,132},{63,134}, {63,135},{61,135},{59,137},{59,138},{61,140},{63,140},{65,142},{75,142}, {79,146},{93,146},{93,147},{91,147},{89,149},{89,151},{88,151},{88,149}, {86,147},{70,147},{68,145},{62,145},{56,139},{54,139},{52,137},{52,135}, {50,133},{50,131},{49,130},{48,130},{47,131},{46,131},{46,130},{47,129}, {47,128},{44,125},{44,121},{40,117},{40,116},{45,116},{48,119},{49,119}, {50,118},{50,115},{48,113},{48,111},{46,109},{46,106},{48,104},{48,93}, {47,92},{46,92},{45,93},{44,93},{42,91},{42,90},{44,88},{44,87},{42,85}, {42,81},{40,79},{39,79},{23,95},{23,99},{21,101},{21,108},{23,110}, {23,111},{21,113},{21,115},{20,115},{20,109},{19,108},{18,108},{17,109}, {16,109},{16,88},{18,86},{18,83},{16,81},{16,78},{18,76},{18,75},{16,73}, {15,73},{13,75},{13,77},{11,79},{11,81},{9,83},{9,85},{7,87},{7,89}, {5,91},{4,91},{4,90},{6,88},{6,84},{8,82},{8,78},{10,76},{10,74},{14,70}, {14,66},{16,64},{16,62},{20,58},{20,56},{24,52},{24,50},{34,40},{34,38}, {36,36},{38,36},{40,34},{40,32},{42,32},{50,24},{52,24},{56,20},{58,20}, {62,16},{64,16},{66,14},{68,14},{70,12},{72,12},{74,10},{76,10},{78,8}, {84,8},{86,6},{90,6},{92,4},{93,4},{94,5},{95,5},{96,4},{104,4},{105,3}, {-1,-1},{134,36},{135,36},{137,38},{139,38},{139,41},{135,41},{133,43}, {133,44},{135,46},{135,47},{133,49},{133,53},{131,53},{129,55},{127,55}, {125,57},{117,57},{115,59},{115,61},{112,61},{112,58},{118,52},{124,52}, {130,46},{130,44},{131,43},{131,42},{130,41},{130,40},{132,40},{134,38}, {134,37},{-1,-1},{92,86},{93,86},{95,88},{95,91},{93,93},{93,94},{95,96}, {97,96},{97,98},{99,100},{101,100},{101,103},{98,106},{98,107},{99,108}, {103,108},{103,111},{101,113},{101,115},{98,115},{95,112},{94,112}, {93,113},{92,113},{92,110},{94,108},{94,105},{92,103},{92,102},{93,102}, {95,104},{96,104},{97,103},{97,102},{96,101},{96,99},{95,98},{94,98}, {93,99},{90,99},{90,95},{88,93},{88,92},{90,90},{90,88},{91,87},{-1,-1}, {80,112},{83,112},{87,116},{87,117},{85,117},{83,119},{83,122},{85,124}, {85,125},{83,127},{83,129},{81,131},{81,135},{79,137},{76,137},{74,135}, {68,135},{68,131},{66,129},{66,124},{68,124},{76,116},{78,116},{80,114}, {80,113},{-1,-1},{90,124},{93,124},{95,126},{96,126},{98,124},{99,124}, {99,125},{97,127},{91,127},{90,128},{90,129},{91,130},{95,130},{95,131}, {93,131},{92,132},{92,133},{93,134},{93,136},{95,138},{95,139},{92,139}, {91,138},{90,138},{89,139},{89,141},{88,141},{86,139},{86,130},{88,128}, {88,126},{89,125},{-1,-1},{104,124},{107,124},{107,127},{105,129}, {105,131},{104,131},{104,125},{-1,-1},{114,128},{117,128},{119,130}, {119,132},{121,134},{122,134},{123,133},{123,132},{122,131},{122,130}, {123,130},{124,131},{125,131},{126,130},{127,130},{129,132},{133,132}, {135,134},{139,134},{141,136},{143,136},{147,140},{149,140},{149,144}, {155,150},{155,151},{150,151},{144,145},{141,145},{137,149},{134,149}, {131,146},{130,146},{129,147},{128,147},{128,141},{126,139},{124,139}, {122,137},{116,137},{114,135},{114,133},{112,131},{112,130},{113,129}, {-1,-1},{100,132},{101,132},{103,134},{103,137},{102,137},{102,135}, {100,133},{-1,-1},{106,134},{111,134},{111,135},{106,135},{-1,-1}, {158,136},{161,136},{161,137},{157,141},{152,141},{152,140},{154,140}, {157,137},{-1,-1},{98,146},{103,146},{103,147},{101,149},{99,149}, {97,151},{96,151},{96,148},{97,147},{-1,-1},{174,148},{177,148}, {179,150},{179,151},{178,151},{176,149},{174,149},{-1,-1},{110,152}, {113,152},{114,153},{115,153},{116,152},{117,152},{119,154},{125,154}, {125,159},{124,160},{124,161},{127,164},{129,164},{131,166},{132,166}, {134,164},{134,158},{136,156},{136,152},{139,152},{139,156},{143,160}, {143,162},{145,164},{145,168},{147,170},{149,170},{151,172},{151,174}, {157,180},{157,193},{155,195},{155,197},{149,203},{149,205},{147,207}, {132,207},{128,203},{126,203},{126,201},{125,200},{124,200},{123,201}, {122,201},{122,199},{118,195},{109,195},{107,197},{103,197},{101,199}, {95,199},{93,201},{88,201},{86,199},{86,195},{84,193},{84,191},{80,187}, {80,183},{78,181},{78,176},{80,176},{84,172},{88,172},{90,170},{92,170}, {94,168},{94,164},{96,164},{102,158},{105,158},{107,160},{108,160}, {110,158},{110,156},{111,155},{111,154},{110,153},{-1,-1},{208,164}, {209,164},{209,165},{207,167},{204,167},{204,166},{206,166},{207,165}, {-1,-1},{180,172},{183,172},{185,174},{185,177},{184,177},{180,173}, {-1,-1},{188,202},{189,202},{193,206},{193,207},{187,213},{186,213}, {186,208},{188,206},{188,203},{-1,-1},{144,210},{145,210},{145,213}, {143,215},{140,215},{138,213},{138,212},{142,212},{143,211},{-1,-1}, {180,212},{183,212},{183,215},{181,215},{175,221},{170,221},{170,218}, {172,218},{174,216},{176,216},{179,213},{-1,-1},{90,244},{101,244}, {102,245},{103,245},{104,244},{109,244},{111,246},{112,246},{114,244}, {117,244},{118,245},{119,245},{120,244},{129,244},{131,246},{141,246}, {143,248},{149,248},{149,249},{147,251},{143,251},{141,253},{139,253}, {137,255},{106,255},{104,253},{96,253},{94,251},{90,251},{88,249}, {84,249},{82,247},{78,247},{78,246},{88,246},{89,245},{-1,-1},{152,252}, {155,252},{155,253},{152,253},{-2,-2}}; drawWorld(dpy, gc, pic, xOff, size, igsData); } /* * Here we take the world polygon point list and trace it out into a bitmap. */ static void drawWorld(Display *dpy, GC gc, Pixmap pic, int xOff, int size, const XPoint data[]) { XPoint temp[344]; int i, numPoints; numPoints = 0; for (i = 0;; ++i) { if (data[i].x < 0) { if (numPoints > 2) { XFillPolygon(dpy, pic, gc, temp, numPoints, Complex, CoordModeOrigin); } numPoints = 0; if (data[i].x == -2) return; } else { temp[numPoints].x = ((data[i].x * (size + 1)) >> 8) + xOff; temp[numPoints].y = ((data[i].y * (size + 1)) >> 8); if ((numPoints == 0) || (temp[numPoints - 1].x != temp[numPoints].x) || (temp[numPoints - 1].y != temp[numPoints].y)) { ++numPoints; assert(numPoints <= 344); } } } } /* * Returns the answer: * Where is the x coordinate of the "seam" in the yin yang symbol for this * particular y value? */ static int yinYangX(int size, int y) { float center; float fy = y + 0.5; if (y < size / 2) { center = (float)size * 0.25; return((int)((float)size * 0.5 + sqrt(center * center - (fy - center) * (fy - center)) + 0.5)); } else { center = (float)size * 0.75; return((int)((float)size * 0.5 - sqrt((float)(size * size) * 0.0625 - (fy - center) * (fy - center)) + 0.5)); } } static void decideAppearance(WhiteDesc *desc, int size, Rnd *rnd) { double minStripeW, maxStripeW, theta; minStripeW = (float)size / 20.0; if (minStripeW < 2.5) minStripeW = 2.5; maxStripeW = (float)size / 5.0; if (maxStripeW < 4.0) maxStripeW = 4.0; theta = rnd_float(rnd) * 2.0 * M_PI; desc->cosTheta = cos(theta); desc->sinTheta = sin(theta); desc->stripeWidth = minStripeW + (rnd_float(rnd) * (maxStripeW - minStripeW)); desc->xAdd = rnd_float(rnd) * desc->stripeWidth + (float)size * 3; /* Make sure that all x's are positive! */ desc->stripeMul = rnd_float(rnd) * 4.0 + 1.5; desc->zMul = rnd_float(rnd) * 650.0 + 70.0; } goban-1.1.orig/src/editBoard.c0000644000175000017500000010052310270000050013763 0ustar alal/* * src/editBoard.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "sgf.h" #include "sgfIn.h" #include "sgfPlay.h" #include "sgfOut.h" #include "goban.h" #include "msg.h" #include "sgfMap.h" #ifdef _EDITBOARD_H_ #error Levelization Error. #endif #include "editBoard.h" /********************************************************************** * Data types **********************************************************************/ typedef enum { setMark_toggle, setMark_forceOn, setMark_forceOff } SetMarkAction; /********************************************************************** * Forward declarations **********************************************************************/ static void toolsQuit(void *packet); static GobanOut gridPressed(void *packet, int loc); static GobanOut quitPressed(void *packet); static GobanOut passPressed(void *packet); static GobanOut rewPressed(void *packet); static GobanOut backPressed(void *packet); static GobanOut fwdPressed(void *packet); static GobanOut ffPressed(void *packet); static GobanOut donePressed(void *packet); static GobanOut disputePressed(void *packet); static GobanOut savePressed(void *packet); static GobanOut gameInfoPressed(void *packet); static void writeGobanComments(EditBoard *e), readGobanComments(EditBoard *e); static void clearComments(EditBoard *eb); static bool backOk(void *packet); static bool fwdOk(void *packet); static void saveFile(AbutFsel *fsel, void *packet, const char *fname); static void gobanDestroyed(void *packet); static GobanOut jumpToLoc(EditBoard *eb, int loc); static void addPattern(EditBoard *eb, GoStone color, int loc); static void setMark(EditBoard *eb, SgfType sType, int loc, SetMarkAction action); static void addLetter(EditBoard *eb, int loc); static bool addNumber(EditBoard *eb, int loc, bool moveNum); static bool markGroup(EditBoard *eb, SgfType type, int loc); static ButOut newTool(void *packet); static ButOut shiftPressed(But *but, bool press); static ButOut newActiveSgfNode(void *packet, int nodeNum); static void changeWhoseMove(EditBoard *eb); static ButOut reallyQuit(But *but); static ButOut dontQuit(But *but); static ButOut quitWinDead(void *packet); static EditBoard *createSgf(Cgoban *cg, Sgf *sgf, const char *fName); static void infoDead(EditInfo *info, void *packet); /********************************************************************** * Global variables **********************************************************************/ static const GobanActions editBoard_actions = { gridPressed, quitPressed, passPressed, rewPressed, backPressed, fwdPressed, ffPressed, donePressed, disputePressed, savePressed, NULL, /* editPressed / printPressed */ gameInfoPressed, &help_editBoard, gobanDestroyed, backOk, backOk, fwdOk, fwdOk}; /********************************************************************** * Functions **********************************************************************/ EditBoard *editBoard_create(Cgoban *cg, const char *fName) { Sgf *sgf; const char *err; Str *tmpTitle; bool noFile = FALSE; sgf = sgf_createFile(cg, fName, &err, &noFile); if (sgf == NULL) { if (noFile) { tmpTitle = str_create(); str_print(tmpTitle, msg_noSuchGame, fName); abutMsg_winCreate(cg->abut, "Cgoban Error", str_chars(tmpTitle)); str_destroy(tmpTitle); } else { abutMsg_winCreate(cg->abut, "Cgoban Error", err); } return(FALSE); } return(createSgf(cg, sgf, fName)); } EditBoard *editBoard_createSgf(Cgoban *cg, const Sgf *sgf) { EditBoard *eb; eb = createSgf(cg, sgf_copy(sgf), NULL); if (eb != NULL) { ffPressed(eb); goban_update(eb->goban); } return(eb); } static EditBoard *createSgf(Cgoban *cg, Sgf *sgf, const char *fName) { EditBoard *eb; SgfElem *me; const char *white = NULL, *black = NULL, *title; GoRules rules; int size; int hcap; float komi; GoTime time; static const ButKey shiftKeys[] = {{XK_Shift_L, 0,0}, {XK_Shift_R,0,0}, {0,0,0}}; static const ButKey shiftUpKeys[] = {{XK_Up, ShiftMask, ShiftMask}, {0,0,0}}; static const ButKey shiftDownKeys[] = {{XK_Down, ShiftMask, ShiftMask}, {0,0,0}}; Str *tmpTitle = NULL; sgf->mode = sgfInsert_variant; eb = wms_malloc(sizeof(EditBoard)); MAGIC_SET(eb); eb->cg = cg; eb->fsel = NULL; eb->reallyQuit = NULL; eb->sgf = sgf; me = sgf_findType(sgf, sgfType_rules); if (me) { rules = (GoRules)me->iVal; } else rules = goRules_japanese; me = sgf_findType(sgf, sgfType_size); if (me) { size = me->iVal; } else { size = 19; } me = sgf_findType(sgf, sgfType_handicap); if (me) { hcap = me->iVal; } else { hcap = 0; } me = sgf_findType(sgf, sgfType_komi); if (me) { komi = (float)me->iVal / 2.0; } else { komi = 0.0; } me = sgf_findFirstType(sgf, sgfType_playerName); while (me) { if (me->gVal == goStone_white) white = str_chars(me->sVal); else { assert(me->gVal == goStone_black); black = str_chars(me->sVal); } me = sgfElem_findFirstType(me, sgfType_playerName); } str_init(&eb->fName); if (fName != NULL) { str_copyChars(&eb->fName, fName); } else if (white && black) { str_print(&eb->fName, "%s-%s.sgf", white, black); } else { str_copyChars(&eb->fName, "game.sgf"); } me = sgf_findFirstType(sgf, sgfType_time); if (me) { goTime_parseDescribeChars(&time, str_chars(me->sVal)); } else { time.type = goTime_none; } eb->game = goGame_create(size, rules, hcap, komi, &time, TRUE); sgf_play(sgf, eb->game, NULL, eb->currentNodeNum = 0, NULL); ++eb->game->maxMoves; me = sgf_findFirstType(sgf, sgfType_title); if (me) { title = str_chars(me->sVal); } else { if (white && black) { tmpTitle = str_create(); str_print(tmpTitle, msg_localTitle, white, black); title = str_chars(tmpTitle); } else title = msg_noTitle; } eb->goban = goban_create(cg, &editBoard_actions, eb, eb->game, "edit", title); if (tmpTitle) str_destroy(tmpTitle); eb->goban->iDec1 = stoneGroup_create(&cg->cgbuts, eb->goban->iWin, 2, BUT_DRAWABLE); assert((hcap == 0) || ((hcap >= 2) && (hcap <= 27))); butCt_setText(eb->goban->edit, msg_printGame); eb->lastComment = NULL; editToolWin_init(&eb->tools, cg, eb->sgf, toolsQuit, newTool, newActiveSgfNode, eb); eb->oldTool = editTool_changeBoard; eb->shiftKeytrap = butKeytrap_create(shiftPressed, eb, eb->goban->win, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(eb->shiftKeytrap, shiftKeys); eb->prevVar = butKeytrap_create(editToolWin_shiftUpPressed, &eb->tools, eb->goban->win, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(eb->prevVar, shiftUpKeys); eb->nextVar = butKeytrap_create(editToolWin_shiftDownPressed, &eb->tools, eb->goban->win, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(eb->nextVar, shiftDownKeys); eb->invertShift = FALSE; butKeytrap_setHold(eb->shiftKeytrap, FALSE); writeGobanComments(eb); newTool(eb); eb->info = NULL; return(eb); } void editBoard_destroy(EditBoard *eb) { assert(MAGIC(eb)); str_deinit(&eb->fName); if (eb->reallyQuit) { abutMsg_destroy(eb->reallyQuit, FALSE); eb->reallyQuit = NULL; } if (eb->sgf) sgf_destroy(eb->sgf); if (eb->goban) goban_destroy(eb->goban, FALSE); if (eb->game) goGame_destroy(eb->game); editToolWin_deinit(&eb->tools); if (eb->info) { editInfo_destroy(eb->info, FALSE); eb->info = NULL; } MAGIC_UNSET(eb); wms_free(eb); } static void toolsQuit(void *packet) { quitPressed(packet); } static GobanOut gridPressed(void *packet, int loc) { EditBoard *eb = packet; ButEnv *env; GobanOut result = gobanOut_draw; assert(MAGIC(eb)); assert(eb->sgf->active != NULL); env = eb->cg->env; switch(eb->tools.tool) { case editTool_play: if (butEnv_keyModifiers(env) & ShiftMask) { result = jumpToLoc(eb, loc); } else { if (goBoard_stone(eb->game->board, loc) != goStone_empty) { result = gobanOut_err; } else { eb->tools.modified = TRUE; readGobanComments(eb); sgf_addNode(eb->sgf); assert(eb->sgf->active->mapX < 1000); editToolWin_nodeAdded(&eb->tools, eb->sgf->active); sgf_move(eb->sgf, goGame_whoseMove(eb->game), goBoard_loc2Sgf(eb->game->board, loc)); sgf_play(eb->sgf, eb->game, eb->goban->pic, ++eb->currentNodeNum, NULL); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); } } break; case editTool_changeBoard: eb->tools.modified = TRUE; if (goStone_isStone(goBoard_stone(eb->game->board, loc))) addPattern(eb, goStone_empty, loc); else if (butEnv_keyModifiers(env) & ShiftMask) addPattern(eb, goStone_black, loc); else addPattern(eb, goStone_white, loc); break; case editTool_score: if (goStone_isStone(goBoard_stone(eb->game->board, loc))) goGame_markDead(eb->game, loc); else result = gobanOut_err; break; case editTool_triangle: if (butEnv_keyModifiers(env) & ShiftMask) { if (!markGroup(eb, sgfType_triangle, loc)) result = gobanOut_err; else { eb->tools.modified = TRUE; } } else { eb->tools.modified = TRUE; setMark(eb, sgfType_triangle, loc, setMark_toggle); } break; case editTool_square: if (butEnv_keyModifiers(env) & ShiftMask) { if (!markGroup(eb, sgfType_square, loc)) result = gobanOut_err; else { eb->tools.modified = TRUE; } } else { eb->tools.modified = TRUE; setMark(eb, sgfType_square, loc, setMark_toggle); } break; case editTool_circle: if (butEnv_keyModifiers(env) & ShiftMask) { if (!markGroup(eb, sgfType_circle, loc)) result = gobanOut_err; else { eb->tools.modified = TRUE; } } else { eb->tools.modified = TRUE; setMark(eb, sgfType_circle, loc, setMark_toggle); } break; case editTool_letter: eb->tools.modified = TRUE; addLetter(eb, loc); break; case editTool_number: if (addNumber(eb, loc, butEnv_keyModifiers(env) & ShiftMask)) { eb->tools.modified = TRUE; } else result = gobanOut_err; break; } editToolWin_newColor(&eb->tools, goGame_whoseMove(eb->game)); assert(eb->sgf->active != NULL); sgfMap_changeNode(eb->tools.sgfMap, eb->sgf->active); return(result); } static GobanOut jumpToLoc(EditBoard *eb, int loc) { char moveTo[5]; int newNode, i; strcpy(moveTo, goBoard_loc2Sgf(eb->game->board, loc)); newNode = -1; if (goBoard_stone(eb->game->board, loc) == goStone_empty) { i = sgfElem_findMove(eb->sgf->active, moveTo, 1); if (i >= 0) { newNode = eb->currentNodeNum + i; } else { i = sgfElem_findMove(eb->sgf->active, moveTo, -1); if (i >= 0) newNode = eb->currentNodeNum - i; } } else { i = sgfElem_findMove(eb->sgf->active, moveTo, -1); assert(i >= 0); newNode = eb->currentNodeNum - i; } if (newNode > 0) { readGobanComments(eb); sgf_play(eb->sgf, eb->game, eb->goban->pic, eb->currentNodeNum = newNode, NULL); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); return(gobanOut_draw); } else return(gobanOut_err); } static GobanOut quitPressed(void *packet) { EditBoard *eb = packet; AbutMsgOpt buttons[2]; Str saveMessage; assert(MAGIC(eb)); readGobanComments(eb); if (eb->tools.modified) { buttons[0].name = msg_noCancel; buttons[0].callback = dontQuit; buttons[0].packet = eb; buttons[0].keyEq = NULL; buttons[1].name = msg_yesQuit; buttons[1].callback = reallyQuit; buttons[1].packet = eb; buttons[1].keyEq = NULL; str_init(&saveMessage); str_print(&saveMessage, msg_reallyQuit, str_chars(&eb->fName)); if (eb->reallyQuit) abutMsg_destroy(eb->reallyQuit, FALSE); eb->reallyQuit = abutMsg_winOptCreate(eb->cg->abut, "Cgoban Warning", str_chars(&saveMessage), quitWinDead, eb, 2, buttons); str_deinit(&saveMessage); } else editBoard_destroy(packet); return(gobanOut_noDraw); } static GobanOut passPressed(void *packet) { EditBoard *eb = packet; assert(MAGIC(eb)); switch(eb->tools.tool) { case editTool_play: readGobanComments(eb); sgf_addNode(eb->sgf); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); editToolWin_nodeAdded(&eb->tools, eb->sgf->active); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); readGobanComments(eb); assert(eb->sgf->active->type == sgfType_node); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); assert((eb->sgf->active->parent->childH != eb->sgf->active->parent->childT) || (eb->sgf->active->parent->activeChild == eb->sgf->active->parent->childH)); sgf_pass(eb->sgf, goGame_whoseMove(eb->game)); assert(eb->sgf->active->type == sgfType_pass); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); assert(eb->sgf->active->parent->activeChild == eb->sgf->active->parent->childH); assert(eb->sgf->active->parent->activeChild == eb->sgf->active->parent->childT); assert((eb->sgf->active->parent->parent->childH != eb->sgf->active->parent->parent->childT) || (eb->sgf->active->parent->parent->activeChild == eb->sgf->active->parent->parent->childH)); sgf_play(eb->sgf, eb->game, eb->goban->pic, ++eb->currentNodeNum, NULL); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); break; case editTool_changeBoard: readGobanComments(eb); sgf_addNode(eb->sgf); clearComments(eb); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); break; default: break; } editToolWin_newColor(&eb->tools, goGame_whoseMove(eb->game)); sgfMap_changeNode(eb->tools.sgfMap, eb->sgf->active); return(gobanOut_draw); } static GobanOut rewPressed(void *packet) { EditBoard *e = packet; assert(MAGIC(e)); readGobanComments(e); sgf_play(e->sgf, e->game, e->goban->pic, e->currentNodeNum = 0, NULL); editToolWin_newActiveNode(&e->tools, e->sgf->active); writeGobanComments(e); editToolWin_newColor(&e->tools, goGame_whoseMove(e->game)); return(gobanOut_draw); } static GobanOut backPressed(void *packet) { EditBoard *eb = packet; SgfElem *active; int backCount = 1; assert(MAGIC(eb)); readGobanComments(eb); if (butEnv_keyModifiers(eb->cg->env) & ShiftMask) { /* * Jump to next node with comments or a variation. */ backCount = 0; active = eb->sgf->active; while (active) { if (active->type == sgfType_node) { ++backCount; } else if ((active->type >= sgfType_setBoard) && (active->type <= sgfType_comment) && backCount) break; if ((backCount > 0) && (active->childH != active->childT)) break; active = active->parent; } } sgf_play(eb->sgf, eb->game, eb->goban->pic, eb->currentNodeNum -= backCount, NULL); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); editToolWin_newColor(&eb->tools, goGame_whoseMove(eb->game)); return(gobanOut_draw); } static GobanOut fwdPressed(void *packet) { EditBoard *eb = packet; SgfElem *active; int fwdCount = 1; assert(MAGIC(eb)); readGobanComments(eb); if (butEnv_keyModifiers(eb->cg->env) & ShiftMask) { /* * Jump to next node with comments or a variation. */ active = eb->sgf->active->activeChild->activeChild; while (active) { if (active->type == sgfType_node) { ++fwdCount; } else if ((active->type >= sgfType_setBoard) && (active->type <= sgfType_comment)) break; if (active->childH != active->childT) break; active = active->activeChild; } } sgf_play(eb->sgf, eb->game, eb->goban->pic, eb->currentNodeNum += fwdCount, NULL); editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); editToolWin_newColor(&eb->tools, goGame_whoseMove(eb->game)); return(gobanOut_draw); } static GobanOut ffPressed(void *packet) { EditBoard *e = packet; assert(MAGIC(e)); readGobanComments(e); e->currentNodeNum = sgf_play(e->sgf, e->game, e->goban->pic, -1, NULL); editToolWin_newActiveNode(&e->tools, e->sgf->active); writeGobanComments(e); editToolWin_newColor(&e->tools, goGame_whoseMove(e->game)); return(gobanOut_draw); } static GobanOut donePressed(void *packet) { SgfElem *otherTerrMarks; int i; EditBoard *eb = packet; Str *scoreComment; assert(MAGIC(eb)); readGobanComments(eb); while ((otherTerrMarks = sgfElem_findTypeInNode(eb->sgf->active, sgfType_territory))) { sgfElem_snip(otherTerrMarks, eb->sgf); } for (i = 0; i < goBoard_area(eb->game->board); ++i) { if (((eb->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEWHITE) && ((goBoard_stone(eb->game->board, i) == goStone_empty) || (eb->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(eb->sgf, goStone_white, goBoard_loc2Sgf(eb->game->board, i)); } for (i = 0; i < goBoard_area(eb->game->board); ++i) { if (((eb->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEBLACK) && ((goBoard_stone(eb->game->board, i) == goStone_empty) || (eb->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(eb->sgf, goStone_black, goBoard_loc2Sgf(eb->game->board, i)); } scoreComment = goScore_str(&eb->goban->score, eb->game, &eb->game->time, eb->goban->timers); sgf_catComment(eb->sgf, str_chars(scoreComment)); sgfMap_changeNode(eb->tools.sgfMap, eb->sgf->active); str_destroy(scoreComment); editToolWin_newTool(&eb->tools, editTool_play, TRUE); writeGobanComments(eb); sgfMap_changeNode(eb->tools.sgfMap, eb->sgf->active); return(gobanOut_noDraw); } static GobanOut disputePressed(void *packet) { return(gobanOut_noDraw); } static GobanOut savePressed(void *packet) { EditBoard *e = packet; assert(MAGIC(e)); if (e->fsel) abutFsel_destroy(e->fsel, FALSE); e->fsel = abutFsel_create(e->cg->abut, saveFile, e, "CGoban", msg_saveGameName, str_chars(&e->fName)); return(gobanOut_noDraw); } static void saveFile(AbutFsel *fsel, void *packet, const char *fname) { EditBoard *e = packet; assert(MAGIC(e)); str_copy(&e->cg->lastDirAccessed, &fsel->pathVal); if (fname != NULL) { str_copyChars(&e->fName, fname); clp_setStr(e->cg->clp, "edit.sgfName", butTextin_get(fsel->in)); readGobanComments(e); e->tools.modified = FALSE; if (e->info) editInfo_updateSgf(e->info); sgf_writeFile(e->sgf, fname, NULL); } e->fsel = NULL; } static void clearComments(EditBoard *eb) { assert(MAGIC(eb)); goban_setComments(eb->goban, ""); } /* * This transfers comments from the SGF move chain to the goban. */ static void writeGobanComments(EditBoard *e) { SgfElem *comElem; assert(MAGIC(e)); comElem = sgfElem_findTypeInNode(e->sgf->active, sgfType_comment); if (comElem) { if (strcmp(str_chars(comElem->sVal), goban_getComments(e->goban))) goban_setComments(e->goban, str_chars(comElem->sVal)); } else { if (e->lastComment) goban_setComments(e->goban, ""); } e->lastComment = comElem; } /* * This transfers comments from the goban to the SGF move chain. */ static void readGobanComments(EditBoard *eb) { const char *comm; int cmpLen; assert(MAGIC(eb)); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); comm = goban_getComments(eb->goban); if (comm[0]) { if (eb->lastComment) { cmpLen = str_len(eb->lastComment->sVal); if (str_chars(eb->lastComment->sVal)[cmpLen - 1] != '\n') { /* A "\n" was added. */ if ((strlen(comm) == cmpLen + 1) && !strncmp(comm, str_chars(eb->lastComment->sVal), cmpLen)) return; } else { if (!strcmp(comm, str_chars(eb->lastComment->sVal))) return; } } eb->tools.modified = TRUE; eb->sgf->mode = sgfInsert_inline; sgf_comment(eb->sgf, comm); eb->sgf->mode = sgfInsert_variant; eb->lastComment = sgfElem_findTypeInNode(eb->sgf->active, sgfType_comment); assert(eb->lastComment != NULL); assert(eb->sgf->active->parent->activeChild == eb->sgf->active); } else if (eb->lastComment) { eb->tools.modified = TRUE; sgfElem_snip(eb->lastComment, eb->sgf); eb->lastComment = NULL; assert(eb->sgf->active->parent->activeChild == eb->sgf->active); } sgfMap_setMapPointer(eb->tools.sgfMap, eb->sgf->active); } static bool backOk(void *packet) { EditBoard *e = packet; assert(MAGIC(e)); return((e->game->state == goGameState_play) && (e->currentNodeNum > 0)); } static bool fwdOk(void *packet) { EditBoard *e = packet; assert(MAGIC(e)); return((e->game->state == goGameState_play) && (e->sgf->active->activeChild != NULL)); } static void gobanDestroyed(void *packet) { EditBoard *eb = packet; assert(MAGIC(eb)); eb->goban = NULL; editBoard_destroy(eb); } static void addPattern(EditBoard *eb, GoStone color, int loc) { SgfElem *otherEdits, *oldActive; GoBoard *newBoard, *tmp; int i; otherEdits = sgfElem_findTypeInNode(eb->sgf->active, sgfType_setBoard); if (otherEdits == NULL) { /* * We always add a node if there are no other edits, 'cause they * shouldn't be in the same node as moves. */ readGobanComments(eb); sgf_addNode(eb->sgf); editToolWin_nodeAdded(&eb->tools, eb->sgf->active); ++eb->currentNodeNum; editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); } /* * What we do is add the stone, copy the board, then recreate the game * just before this group of stones. Then we scan through the two boards, * looking for differences, and recording them in the sgf file. This * is very time consuming, but it's the easient way to do things so for * now I'll leave it as is. */ newBoard = goBoard_create(eb->game->size); goGame_setBoard(eb->game, color, loc); goBoard_copy(eb->game->board, newBoard); if (eb->currentNodeNum == 0) { /* We must start from a fresh board! */ goGame_moveTo(eb->game, 0); } else { /* We want to preserve the active node across this call to "play()". */ oldActive = eb->sgf->active; sgf_play(eb->sgf, eb->game, NULL, eb->currentNodeNum - 1, NULL); eb->sgf->active = oldActive; } eb->sgf->mode = sgfInsert_inline; /* * Now we have to snip out all previous edits. */ while ((otherEdits = sgfElem_findTypeInNode(eb->sgf->active, sgfType_setBoard))) { sgfElem_snip(otherEdits, eb->sgf); } /* First add all the empties... */ for (i = 0; i < goBoard_area(newBoard); ++i) { if ((goBoard_stone(newBoard, i) == goStone_empty) && (goBoard_stone(eb->game->board, i) != goStone_empty)) sgf_addStone(eb->sgf, goStone_empty, goBoard_loc2Sgf(newBoard, i)); } /* Now the white stones... */ for (i = 0; i < goBoard_area(newBoard); ++i) { if ((goBoard_stone(newBoard, i) == goStone_white) && (goBoard_stone(eb->game->board, i) != goStone_white)) sgf_addStone(eb->sgf, goStone_white, goBoard_loc2Sgf(newBoard, i)); } /* And finally the black stones. */ for (i = 0; i < goBoard_area(newBoard); ++i) { if ((goBoard_stone(newBoard, i) == goStone_black) && (goBoard_stone(eb->game->board, i) != goStone_black)) sgf_addStone(eb->sgf, goStone_black, goBoard_loc2Sgf(newBoard, i)); } /* Now put the board back the way that it should be. */ tmp = eb->game->board; eb->game->board = newBoard; eb->sgf->mode = sgfInsert_variant; goBoard_destroy(tmp); } static void setMark(EditBoard *eb, SgfType sType, int loc, SetMarkAction action) { SgfElem *search; bool remove; GoMarkType markAdded; for (search = eb->sgf->active; search && (search->type != sgfType_node); search = search->parent) { if (((search->type == sgfType_triangle) || (search->type == sgfType_circle) || (search->type == sgfType_square)) && (goBoard_sgf2Loc(eb->game->board, search->lVal) == loc)) { remove = (((search->type == sType) && (action == setMark_toggle)) || (action == setMark_forceOff)); sgfElem_snip(search, eb->sgf); if (remove) { grid_setMark(eb->goban->pic->boardButs[loc], goMark_none, 0); return; } break; } } search = sgfElem_findTypeInNode(eb->sgf->active, sType); if (search) eb->sgf->active = search; eb->sgf->mode = sgfInsert_inline; sgf_addLElem(eb->sgf, sType, goBoard_loc2Sgf(eb->game->board, loc)); eb->sgf->mode = sgfInsert_variant; if (sType == sgfType_triangle) { markAdded = goMark_triangle; } else if (sType == sgfType_square) { markAdded = goMark_square; } else { assert(sType == sgfType_circle); markAdded = goMark_circle; } grid_setMark(eb->goban->pic->boardButs[loc], markAdded, 0); } static void addLetter(EditBoard *eb, int loc) { SgfElem *search; int i; char letter[2]; for (search = eb->sgf->active; search && (search->type != sgfType_node); search = search->parent) { if ((search->type == sgfType_label) && (goBoard_sgf2Loc(eb->game->board, search->lVal) == loc)) { if (eb->sgf->active == search) eb->sgf->active = search->parent; sgfElem_snip(search, eb->sgf); grid_setMark(eb->goban->pic->boardButs[loc], goMark_none, 0); return; } } letter[0] = 'A'; letter[1] = '\0'; for (i = 0; i < goBoard_area(eb->game->board); ++i) { if (eb->goban->pic->boardButs[i]) { if ((grid_markType(eb->goban->pic->boardButs[i]) == goMark_letter) && (grid_markAux(eb->goban->pic->boardButs[i]) >= letter[0])) letter[0] = grid_markAux(eb->goban->pic->boardButs[i]) + 1; } } if (letter[0] == 'Z' + 1) letter[0] = 'a'; else if (letter[0] > 'z') letter[0] = 'z'; eb->sgf->mode = sgfInsert_inline; sgf_label(eb->sgf, goBoard_loc2Sgf(eb->game->board, loc), letter); eb->sgf->mode = sgfInsert_variant; grid_setMark(eb->goban->pic->boardButs[loc], goMark_letter, letter[0]); } static bool addNumber(EditBoard *eb, int loc, bool moveNum) { SgfElem *search; int i, val; char labelStr[4]; const char *sgfLoc; for (search = eb->sgf->active; search && (search->type != sgfType_node); search = search->parent) { if ((search->type == sgfType_label) && (goBoard_sgf2Loc(eb->game->board, search->lVal) == loc)) { if (eb->sgf->active == search) eb->sgf->active = search->parent; sgfElem_snip(search, eb->sgf); grid_setMark(eb->goban->pic->boardButs[loc], goMark_none, 0); return(TRUE); } } if (moveNum) { for (val = eb->game->moveNum - 1; val >= 0; --val) { if (eb->game->moves[val].move == loc) break; } if (val < 0) return(FALSE); else ++val; } else { val = 1; for (i = 0; i < goBoard_area(eb->game->board); ++i) { if (eb->goban->pic->boardButs[i]) { if ((grid_markType(eb->goban->pic->boardButs[i]) == goMark_number) && (grid_markAux(eb->goban->pic->boardButs[i]) >= val)) val = grid_markAux(eb->goban->pic->boardButs[i]) + 1; } } } if (val > 999) val = 999; sprintf(labelStr, "%d", val); eb->sgf->mode = sgfInsert_inline; sgfLoc = goBoard_loc2Sgf(eb->game->board, loc); sgf_label(eb->sgf, sgfLoc, labelStr); eb->sgf->mode = sgfInsert_variant; grid_setMark(eb->goban->pic->boardButs[loc], goMark_number, val); return(TRUE); } static bool markGroup(EditBoard *eb, SgfType type, int loc) { GoMarkType oldMark; SetMarkAction action; GoBoardGroupIter i; if (!goStone_isStone(goBoard_stone(eb->game->board, loc))) return(FALSE); oldMark = grid_markType(eb->goban->pic->boardButs[loc]); if ((oldMark == goMark_triangle) || (oldMark == goMark_square) || (oldMark == goMark_circle)) action = setMark_forceOff; else action = setMark_forceOn; goBoardGroupIter(i, eb->game->board, loc) { setMark(eb, type, goBoardGroupIter_loc(i, eb->game->board), action); } return(TRUE); } static ButOut shiftPressed(But *but, bool press) { EditBoard *eb = but_packet(but); ButOut result; assert(MAGIC(eb)); /* * Alas, the modifier flags don't change until AFTER the press, so we * have to invert the shift here. */ eb->invertShift = TRUE; /* * Change the oldTool thingy so we don't change color if we're on the * play tool. */ eb->oldTool = editTool_changeBoard; result = newTool(but_packet(but)); eb->invertShift = FALSE; return(result); } static ButOut newTool(void *packet) { EditBoard *eb = packet; bool shiftPressed, updateGoban = FALSE; uint pressAllowed = goPicMove_empty | goPicMove_stone; GoGameState gameState = goGameState_play; assert(MAGIC(eb)); shiftPressed = butEnv_keyModifiers(eb->cg->env) & ShiftMask; if (eb->invertShift) shiftPressed = !shiftPressed; switch(eb->tools.tool) { case editTool_play: if (!shiftPressed) pressAllowed = goPicMove_legal; if (eb->oldTool == editTool_play) { /* * Change whose turn it is. */ changeWhoseMove(eb); updateGoban = TRUE; } break; case editTool_changeBoard: if (!shiftPressed) pressAllowed |= goPicMove_forceWhite; else pressAllowed |= goPicMove_forceBlack; break; case editTool_score: pressAllowed = goPicMove_stone | goPicMove_noPass; gameState = goGameState_selectDead; break; case editTool_triangle: case editTool_square: case editTool_circle: case editTool_number: pressAllowed |= goPicMove_noPass; if (shiftPressed) pressAllowed = goPicMove_stone; break; case editTool_letter: pressAllowed |= goPicMove_noPass; break; } eb->oldTool = eb->tools.tool; if (pressAllowed != eb->goban->pic->allowedMoves) { eb->goban->pic->allowedMoves = pressAllowed; updateGoban = TRUE; } if (gameState != eb->game->state) { eb->game->state = gameState; if (eb->game->state == goGameState_play) { /* * Replay the game to get rid of all those nasty territory markers. */ sgf_play(eb->sgf, eb->game, eb->goban->pic, eb->currentNodeNum, NULL); } updateGoban = TRUE; } if (updateGoban) goban_update(eb->goban); return(0); } static ButOut newActiveSgfNode(void *packet, int nodeNum) { EditBoard *eb = packet; assert(MAGIC(eb)); if (eb->game->state == goGameState_selectDead) { abutMsg_winCreate(eb->cg->abut, "Cgoban Error", msg_changeNodeWhileScoring); return(BUTOUT_ERR); } else { readGobanComments(eb); sgf_play(eb->sgf, eb->game, eb->goban->pic, nodeNum, NULL); eb->currentNodeNum = nodeNum; editToolWin_newActiveNode(&eb->tools, eb->sgf->active); writeGobanComments(eb); editToolWin_newColor(&eb->tools, goGame_whoseMove(eb->game)); goban_update(eb->goban); return(0); } } static void changeWhoseMove(EditBoard *eb) { SgfElem *oldSetTurn; GoStone newColor; newColor = goStone_opponent(eb->game->whoseMove); oldSetTurn = sgfElem_findTypeInNode(eb->sgf->active, sgfType_whoseMove); if (oldSetTurn) { assert(oldSetTurn->gVal != newColor); oldSetTurn->gVal = newColor; } else { eb->sgf->mode = sgfInsert_inline; sgf_setWhoseMove(eb->sgf, newColor); eb->sgf->mode = sgfInsert_variant; } eb->game->setWhoseMoveNum = eb->game->moveNum; eb->game->whoseMove = eb->game->setWhoseMoveColor = newColor; editToolWin_newColor(&eb->tools, newColor); but_draw(eb->tools.selDesc[editTool_play]); } static ButOut reallyQuit(But *but) { editBoard_destroy(but_packet(but)); return(0); } static ButOut dontQuit(But *but) { EditBoard *eb = but_packet(but); assert(MAGIC(eb)); abutMsg_destroy(eb->reallyQuit, FALSE); eb->reallyQuit = NULL; return(0); } static ButOut quitWinDead(void *packet) { EditBoard *eb = packet; assert(MAGIC(eb)); eb->reallyQuit = NULL; return(0); } static GobanOut gameInfoPressed(void *packet) { EditBoard *eb = packet; assert(MAGIC(eb)); if (eb->info) { XRaiseWindow(butEnv_dpy(eb->cg->env), butWin_xwin(eb->info->win)); } else { eb->info = editInfo_create(eb->cg, eb->goban, eb->sgf, infoDead, eb); } return(gobanOut_noDraw); } static void infoDead(EditInfo *info, void *packet) { EditBoard *eb = packet; assert(MAGIC(eb)); assert(eb->info == info); eb->info = NULL; } goban-1.1.orig/src/goScore.h0000644000175000017500000000164606201012446013515 0ustar alal/* * src/goScore.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOSCORE_H_ #define _GOSCORE_H_ 1 #ifndef _GOGAME_H_ #include "goGame.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef struct GoScore_struct { int territories[2], livingStones[2], deadStones[2], dame; float scores[2]; } GoScore; /********************************************************************** * Functions **********************************************************************/ extern void goScore_compute(GoScore *score, GoGame *game); extern void goScore_zero(GoScore *score); extern Str *goScore_str(GoScore *score, GoGame *game, const GoTime *time, const GoTimer *timers); #endif /* _GOSCORE_H_ */ goban-1.1.orig/src/local.c0000644000175000017500000004654510270001413013201 0ustar alal/* * src/local.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "goban.h" #include "msg.h" #include "goGame.h" #include "goPic.h" #include "cgbuts.h" #include "sgf.h" #include "sgfIn.h" #include "sgfOut.h" #include "sgfPlay.h" #include "editBoard.h" #ifdef _LOCAL_H_ Levelization Error. #endif #include "local.h" /********************************************************************** * Forward references **********************************************************************/ static GobanOut gridPressed(void *packet, int loc); static GobanOut quitPressed(void *packet); static GobanOut passPressed(void *packet); static GobanOut rewPressed(void *packet); static GobanOut backPressed(void *packet); static GobanOut fwdPressed(void *packet); static GobanOut ffPressed(void *packet); static GobanOut donePressed(void *packet); static GobanOut disputePressed(void *packet); static GobanOut savePressed(void *packet); static GobanOut editPressed(void *packet); static void saveFile(AbutFsel *fsel, void *packet, const char *fname); static void writeGobanComments(Local *l), readGobanComments(Local *l); static void addDisputedTriangles(GoGame *game, Sgf *sgf); static void addTimeInfoToSgf(Local *l, GoStone color); static void recordTimeLoss(Local *l); static bool rewOk(void *packet), backOk(void *packet), fwdOk(void *packet); static void gobanDestroyed(void *packet); static ButOut reallyQuit(But *but); static ButOut dontQuit(But *but); static ButOut quitWinDead(void *packet); static void setTimers(Local *l); /********************************************************************** * Global variables **********************************************************************/ static const GobanActions local_actions = { gridPressed, quitPressed, passPressed, rewPressed, backPressed, fwdPressed, ffPressed, donePressed, disputePressed, savePressed, editPressed, NULL /* gameInfo */, &help_localBoard, gobanDestroyed, rewOk, backOk, fwdOk, fwdOk}; /********************************************************************** * Functions **********************************************************************/ Local *local_create(Cgoban *cg, GoRules rules, int size, int hcap, float komi, const char *white, const char *black, GoTimeType timeType, int mainTime, int byTime, int auxTime) { Sgf *mc; Str tmp; GoTime time; mc = sgf_create(); str_init(&tmp); sgf_setRules(mc, rules); sgf_setSize(mc, size); sgf_setHandicap(mc, hcap); sgf_setKomi(mc, komi); sgf_setPlayerName(mc, goStone_white, white); sgf_setPlayerName(mc, goStone_black, black); str_print(&tmp, msg_localTitle, white, black); sgf_setTitle(mc, str_chars(&tmp)); sgf_setDate(mc); sgf_style(mc, "Cgoban " VERSION); time.type = timeType; time.main = mainTime; time.by = byTime; time.aux = auxTime; goTime_describeStr(&time, &tmp); sgf_setTimeFormat(mc, str_chars(&tmp)); str_deinit(&tmp); return(local_createSgf(cg, mc)); } Local *local_createFile(Cgoban *cg, const char *fname) { Str badFile; Sgf *mc; SgfElem *style; const char *err; mc = sgf_createFile(cg, fname, &err, NULL); if (mc == NULL) { abutMsg_winCreate(cg->abut, "Cgoban Error", err); return(NULL); } style = sgf_findType(mc, sgfType_style); if (!style || strncmp(str_chars(style->sVal), "Cgoban", 6)) { str_init(&badFile); str_print(&badFile, msg_notCgobanFile, fname); abutMsg_winCreate(cg->abut, "Cgoban Error", str_chars(&badFile)); str_deinit(&badFile); sgf_destroy(mc); return(NULL); } return(local_createSgf(cg, mc)); } Local *local_createSgf(Cgoban *cg, Sgf *mc) { Local *l; SgfElem *me; GoRules rules; int size, hcap; float komi; GoTime time; const char *title; assert(MAGIC(cg)); l = wms_malloc(sizeof(Local)); MAGIC_SET(l); l->cg = cg; l->moves = mc; l->endGame = NULL; me = sgf_findType(mc, sgfType_rules); if (me) { rules = (GoRules)me->iVal; } else rules = goRules_japanese; me = sgf_findType(mc, sgfType_size); if (me) { size = me->iVal; } else { size = 19; } me = sgf_findType(mc, sgfType_handicap); if (me) { hcap = me->iVal; } else { hcap = 0; } me = sgf_findType(mc, sgfType_komi); if (me) { komi = (float)me->iVal / 2.0; } else { komi = 0.0; } me = sgf_findFirstType(mc, sgfType_playerName); while (me) { me = sgfElem_findFirstType(me, sgfType_playerName); } me = sgf_findFirstType(mc, sgfType_time); if (me) { goTime_parseDescribeChars(&time, str_chars(me->sVal)); } else { time.type = goTime_none; } l->game = goGame_create(size, rules, hcap, komi, &time, FALSE); sgf_play(mc, l->game, NULL, -1, NULL); l->modified = FALSE; me = sgf_findFirstType(mc, sgfType_title); if (me) { title = str_chars(me->sVal); } else { title = msg_noTitle; } l->goban = goban_create(cg, &local_actions, l, l->game, "local", title); l->goban->iDec1 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec1, goStone_white, FALSE); l->goban->iDec2 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec2, goStone_black, FALSE); setTimers(l); l->lastComment = NULL; assert((hcap == 0) || ((hcap >= 2) && (hcap <= 27))); l->fsel = NULL; l->reallyQuit = NULL; return(l); } void local_destroy(Local *l) { assert(MAGIC(l)); if (l->goban) goban_destroy(l->goban, FALSE); if (l->game) goGame_destroy(l->game); if (l->fsel) abutFsel_destroy(l->fsel, FALSE); if (l->reallyQuit) abutMsg_destroy(l->reallyQuit, FALSE); MAGIC_UNSET(l); wms_free(l); } static GobanOut gridPressed(void *packet, int loc) { Local *l = packet; GoStone moveColor; bool timeLeft; assert(MAGIC(l)); l->modified = TRUE; moveColor = goGame_whoseMove(l->game); if (l->game->state <= goGameState_dispute) { readGobanComments(l); sgf_addNode(l->moves); if (l->game->state == goGameState_dispute) { addDisputedTriangles(l->game, l->moves); } timeLeft = goban_stopTimer(l->goban); if (!timeLeft) { l->game->state = goGameState_done; recordTimeLoss(l); } else { sgf_move(l->moves, moveColor, goBoard_loc2Sgf(l->game->board, loc)); goGame_move(l->game, moveColor, loc, &l->goban->timers[moveColor]); addTimeInfoToSgf(l, moveColor); goban_startTimer(l->goban, goStone_opponent(moveColor)); } } else if (l->game->state == goGameState_selectDead) { goGame_markDead(l->game, loc); } else if (l->game->state == goGameState_selectDisputed) { l->endGame = l->moves->active; goGame_dispute(l->game, loc); /* * We briefly change to "variant" insert mode so that multiple disputes * will be seen in the order they were made. Then we switch back to * "main" insert mode so that undos and ends of disputes will be * the main variation. */ l->moves->mode = sgfInsert_variant; sgf_addNode(l->moves); addDisputedTriangles(l->game, l->moves); sgf_setWhoseMove(l->moves, l->game->setWhoseMoveColor); l->moves->mode = sgfInsert_main; } writeGobanComments(l); return(gobanOut_draw); } /* * This transfers comments from the SGF move chain to the goban. */ static void writeGobanComments(Local *l) { SgfElem *comElem; assert(MAGIC(l)); comElem = sgfElem_findTypeInNode(l->moves->active, sgfType_comment); if (comElem) { if (strcmp(str_chars(comElem->sVal), goban_getComments(l->goban))) goban_setComments(l->goban, str_chars(comElem->sVal)); } else { if (l->lastComment) goban_setComments(l->goban, ""); } l->lastComment = comElem; } /* * This transfers comments from the goban to the SGF move chain. */ static void readGobanComments(Local *l) { const char *comm; comm = goban_getComments(l->goban); if (comm[0]) { if (l->lastComment) { if (!strcmp(comm, str_chars(l->lastComment->sVal))) return; } l->modified = TRUE; l->moves->mode = sgfInsert_inline; sgf_comment(l->moves, comm); l->moves->mode = sgfInsert_main; l->lastComment = l->moves->active; } else if (l->lastComment) { l->modified = TRUE; sgfElem_snip(l->lastComment, l->moves); l->lastComment = NULL; } } static GobanOut quitPressed(void *packet) { Local *l = packet; AbutMsgOpt buttons[2]; assert(MAGIC(l)); if (l->modified) { buttons[0].name = msg_noCancel; buttons[0].callback = dontQuit; buttons[0].packet = l; buttons[0].keyEq = NULL; buttons[1].name = msg_yesQuit; buttons[1].callback = reallyQuit; buttons[1].packet = l; buttons[1].keyEq = NULL; if (l->reallyQuit) abutMsg_destroy(l->reallyQuit, FALSE); l->reallyQuit = abutMsg_winOptCreate(l->cg->abut, "Cgoban Warning", msg_reallyQuitGame, quitWinDead, l, 2, buttons); } else local_destroy(l); return(gobanOut_noDraw); } static GobanOut passPressed(void *packet) { Local *l = packet; GoGameState oldState = l->game->state; SgfElem *startActive; GoStone moveColor; bool timeLeft; assert(MAGIC(l)); readGobanComments(l); moveColor = goGame_whoseMove(l->game); sgf_addNode(l->moves); startActive = l->moves->active; if (oldState == goGameState_dispute) addDisputedTriangles(l->game, l->moves); sgf_pass(l->moves, moveColor); addTimeInfoToSgf(l, moveColor); timeLeft = goban_stopTimer(l->goban); if (!timeLeft) { l->game->state = goGameState_done; recordTimeLoss(l); } else if (goGame_pass(l->game, moveColor, &l->goban->timers[moveColor])) { /* * The game state has changed. */ if (oldState == goGameState_dispute) { assert(MAGIC(l->endGame)); l->moves->active = l->endGame; l->endGame = NULL; if (l->game->disputeAlive) goban_message(l->goban, msg_disputeOverAlive); else goban_message(l->goban, msg_disputeOverDead); } else { assert(oldState == goGameState_play); if ((l->game->rules == goRules_japanese) || (l->game->rules == goRules_tibetan)) goban_message(l->goban, msg_localJapRemDead); else goban_message(l->goban, msg_localChiRemDead); } } else { goban_startTimer(l->goban, goStone_opponent(moveColor)); } writeGobanComments(l); return(gobanOut_draw); } static GobanOut rewPressed(void *packet) { Local *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goban_stopTimer(l->goban); if (l->game->state == goGameState_dispute) goGame_moveTo(l->game, l->game->setWhoseMoveNum); else goGame_moveTo(l->game, 0); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); setTimers(l); writeGobanComments(l); return(gobanOut_draw); } static GobanOut backPressed(void *packet) { Local *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goban_stopTimer(l->goban); if (l->game->state != goGameState_selectDead) { goGame_moveTo(l->game, l->game->moveNum - 1); } else { /* We must be in the endgame. Let's continue the game now instead! */ goGame_resume(l->game); } sgf_setActiveNodeNumber(l->moves, l->game->moveNum); setTimers(l); writeGobanComments(l); return(gobanOut_draw); } static GobanOut fwdPressed(void *packet) { Local *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goban_stopTimer(l->goban); goGame_moveTo(l->game, l->game->moveNum + 1); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); setTimers(l); writeGobanComments(l); return(gobanOut_draw); } static GobanOut ffPressed(void *packet) { Local *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goban_stopTimer(l->goban); goGame_moveTo(l->game, l->game->maxMoves); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); setTimers(l); writeGobanComments(l); return(gobanOut_draw); } static GobanOut donePressed(void *packet) { Local *l = packet; int i; Str *scoreComment, winner, doneMessage, result; float wScore, bScore; SgfElem *resultElem; assert(MAGIC(l)); assert(l->game->state == goGameState_selectDead); readGobanComments(l); goban_stopTimer(l->goban); str_init(&winner); str_init(&doneMessage); str_init(&result); goban_noMessage(l->goban); goGame_done(l->game); sgf_addNode(l->moves); /* * Add a territory list. */ for (i = 0; i < goBoard_area(l->game->board); ++i) { if (((l->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEWHITE) && ((goBoard_stone(l->game->board, i) == goStone_empty) || (l->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(l->moves, goStone_white, goBoard_loc2Sgf(l->game->board, i)); } for (i = 0; i < goBoard_area(l->game->board); ++i) { if (((l->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEBLACK) && ((goBoard_stone(l->game->board, i) == goStone_empty) || (l->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(l->moves, goStone_black, goBoard_loc2Sgf(l->game->board, i)); } wScore = goban_score(l->goban, goStone_white); bScore = goban_score(l->goban, goStone_black); if (wScore > bScore) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_white], wScore - bScore); str_print(&result, "W+%g", wScore - bScore); } else if ((bScore > wScore) || (l->game->rules == goRules_ing)) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_black], bScore - wScore); str_print(&result, "B+%g", bScore - wScore); } else { str_print(&winner, msg_jigoComment); str_copyChar(&result, '0'); } str_print(&doneMessage, msg_gameIsOver, winner); goban_message(l->goban, str_chars(&doneMessage)); scoreComment = goScore_str(&l->goban->score, l->game, &l->game->time, l->goban->timers); sgf_catComment(l->moves, str_chars(scoreComment)); str_destroy(scoreComment); resultElem = sgf_findType(l->moves, sgfType_result); if (resultElem) { sgfElem_newString(resultElem, str_chars(&result)); } else { sgf_setActiveNodeNumber(l->moves, 0); l->moves->mode = sgfInsert_inline; sgf_result(l->moves, str_chars(&result)); l->moves->mode = sgfInsert_main; sgf_setActiveToEnd(l->moves); } str_deinit(&winner); str_deinit(&doneMessage); str_deinit(&result); writeGobanComments(l); return(gobanOut_draw); } static GobanOut disputePressed(void *packet) { Local *l = packet; assert(MAGIC(l)); goGame_selectDisputed(l->game); goban_message(l->goban, msg_selectDisputedMsg); return(gobanOut_draw); } static GobanOut savePressed(void *packet) { Local *l = packet; assert(MAGIC(l)); if (l->fsel) abutFsel_destroy(l->fsel, FALSE); l->fsel = abutFsel_create(l->cg->abut, saveFile, l, "CGoban", msg_saveGameName, clp_getStr(l->cg->clp, "local.sgfName")); return(gobanOut_noDraw); } static GobanOut editPressed(void *packet) { Local *l = packet; assert(MAGIC(l)); editBoard_createSgf(l->cg, l->moves); return(gobanOut_noDraw); } static void saveFile(AbutFsel *fsel, void *packet, const char *fname) { Local *l = packet; assert(MAGIC(l)); str_copy(&l->cg->lastDirAccessed, &fsel->pathVal); if (fname != NULL) { readGobanComments(l); l->modified = FALSE; clp_setStr(l->cg->clp, "local.sgfName", butTextin_get(fsel->in)); sgf_writeFile(l->moves, fname, NULL); } l->fsel = NULL; } static void addDisputedTriangles(GoGame *game, Sgf *sgf) { int i; for (i = 0; i < goBoard_area(game->board); ++i) { if (game->flags[i] & GOGAMEFLAGS_DISPUTED) sgf_addTriangle(sgf, goBoard_loc2Sgf(game->board, i)); } } static void addTimeInfoToSgf(Local *l, GoStone who) { if (l->game->time.type != goTime_none) { sgf_timeLeft(l->moves, who, l->goban->timers[who].timeLeft + (l->goban->timers[who].usLeft > 0)); if ((l->game->time.type == goTime_ing) || ((l->game->time.type == goTime_canadian) && l->goban->timers[who].aux)) { sgf_stonesLeft(l->moves, who, l->goban->timers[who].aux); } } } static void recordTimeLoss(Local *l) { Str timeMsg; GoStone loser = l->game->whoseMove; /* I don't think that this code is needed any more. * sgf_timeLeft(l->moves, l->game->timeLoss, -1); * if ((l->game->time.type == goTime_ing) || * ((l->game->time.type == goTime_canadian) && * l->goban->timers[loser].aux)) { * sgf_stonesLeft(l->moves, loser, * l->goban->timers[loser].aux + * (l->game->time.type == goTime_canadian)); * } */ str_init(&timeMsg); str_print(&timeMsg, msg_timeLoss, msg_stoneNames[loser], msg_stoneNames[goStone_opponent(loser)]); goban_message(l->goban, str_chars(&timeMsg)); str_catChar(&timeMsg, '\n'); sgf_catComment(l->moves, str_chars(&timeMsg)); str_print(&timeMsg, "%c+T", (int)goStone_char(goStone_opponent(loser))); sgf_setActiveNodeNumber(l->moves, 0); l->moves->mode = sgfInsert_inline; sgf_result(l->moves, str_chars(&timeMsg)); l->moves->mode = sgfInsert_main; sgf_setActiveToEnd(l->moves); str_deinit(&timeMsg); } static bool rewOk(void *packet) { Local *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): case(goGameState_selectDisputed): return(FALSE); break; case(goGameState_dispute): return(game->moveNum > game->setWhoseMoveNum); break; default: return(game->moveNum > 0); break; } } static bool backOk(void *packet) { Local *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): return(TRUE); break; case(goGameState_selectDisputed): return(FALSE); break; case(goGameState_dispute): return(game->moveNum > game->setWhoseMoveNum); break; default: return(game->moveNum > 0); break; } } static bool fwdOk(void *packet) { Local *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): case(goGameState_selectDisputed): return(FALSE); break; default: return(game->moveNum < game->maxMoves); break; } } static void gobanDestroyed(void *packet) { Local *l = packet; assert(MAGIC(l)); l->goban = NULL; local_destroy(l); } static ButOut reallyQuit(But *but) { local_destroy(but_packet(but)); return(0); } static ButOut dontQuit(But *but) { Local *l = but_packet(but); assert(MAGIC(l)); abutMsg_destroy(l->reallyQuit, FALSE); l->reallyQuit = NULL; return(0); } static ButOut quitWinDead(void *packet) { Local *l = packet; assert(MAGIC(l)); l->reallyQuit = NULL; return(0); } static void setTimers(Local *l) { GoStone stone; const GoTimer *timer; assert(MAGIC(l)); goStoneIter(stone) { timer = goGame_getTimer(l->game, stone); if (timer == NULL) goTimer_init(&l->goban->timers[stone], &l->game->time); else l->goban->timers[stone] = *timer; } goban_updateTimeReadouts(l->goban); goban_startTimer(l->goban, goGame_whoseMove(l->game)); } goban-1.1.orig/src/tblock.c0000644000175000017500000002426310270060051013361 0ustar alal/* * wmslib/src/but/tblock.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include /********************************************************************** * Data Types **********************************************************************/ typedef struct Word_struct { int start, len, xoff, yoff, w; } Word; typedef struct { char *str; int nwords; Word *words; ButTextAlign align; int font; int setup_w; } Tb; /********************************************************************** * Forward Declarations **********************************************************************/ static void draw(But *but, int x,int y, int w,int h); static ButOut destroy(But *but); /********************************************************************** * Globals **********************************************************************/ static const ButAction action = { NULL,NULL,NULL,NULL, NULL,NULL, draw, destroy, but_flags, NULL}; /********************************************************************** * Functions **********************************************************************/ But *butTblock_create(ButWin *win, int layer, int flags, const char *text, ButTextAlign align) { But *but; Tb *tb; assert(MAGIC(win)); assert(MAGIC(&win->butsNoDraw)); tb = wms_malloc(sizeof(Tb)); but = but_create(win, tb, &action); but->layer = layer; but->flags = flags; tb->str = NULL; tb->nwords = 0; tb->words = NULL; tb->align = align; tb->font = 0; tb->setup_w = 0; but_init(but); if (text != NULL) butTblock_setText(but, text); return(but); } void butTblock_setFont(But *but, int fontnum) { Tb *tb = but->iPacket; assert(but->action == &action); tb->font = fontnum; but_draw(but); } int butTblock_getH(But *but) { Tb *tb = but->iPacket; int fonth; assert(but->action == &action); fonth = but->win->env->fonts[tb->font]->ascent + but->win->env->fonts[tb->font]->descent; if (tb->nwords == 0) return(fonth); else return(tb->words[tb->nwords - 1].yoff + fonth); } const char *butTblock_getText(But *but) { Tb *tb; assert(but->action == &action); tb = but->iPacket; return(tb->str); } void butTblock_setText(But *but, const char *text) { Tb *tb = but->iPacket; ButEnv *env = but->win->env; int w = tb->setup_w = but->w, txtH; int len, numLines, wordNum, totalWidth, i, j; int lastSpaceSeen, spacesAtLastSpace, spacesThisLine; int widthAtLastSpace, widthNonSpace, widthOfCurrentChar; int widthNonSpaceAtLastSpace; bool nonSpaceSeen, prevCharWasSpace; Word *words; int *widths; int wordWMax, wordWMin; assert(but->action == &action); txtH = env->fonts[tb->font]->ascent + env->fonts[tb->font]->descent; if (text != NULL) { len = strlen(text); if (tb->str != NULL) wms_free(tb->str); tb->str = wms_malloc((len + 1) * sizeof(char)); strcpy(tb->str, text); } if (w == 0) return; text = tb->str; len = strlen(text); if (tb->words != NULL) wms_free(tb->words); if (text == NULL) { tb->words = NULL; return; } tb->nwords = strlen(tb->str); if (tb->nwords == 0) return; tb->words = words = wms_malloc(tb->nwords * sizeof(Word)); widths = wms_malloc(len * sizeof(int)); words[0].start = 0; words[0].xoff = 0; words[0].yoff = 0; words[0].w = 0; wordNum = totalWidth = widthNonSpace = 0; widthAtLastSpace = 0; spacesAtLastSpace = 0; widthNonSpaceAtLastSpace = 0; wordWMax = wordWMin = 0; numLines = 1; spacesThisLine = lastSpaceSeen = 0; nonSpaceSeen = prevCharWasSpace = FALSE; for (i = 0; i < len; ++i) { widthOfCurrentChar = butEnv_charWidth(env, tb->str+i, tb->font); assert(widthOfCurrentChar > 0); widths[i] = widthOfCurrentChar; if (tb->str[i] == ' ') { if (!prevCharWasSpace) { lastSpaceSeen = i; widthAtLastSpace = totalWidth; widthNonSpaceAtLastSpace = widthNonSpace; spacesAtLastSpace = spacesThisLine; } if (nonSpaceSeen) ++spacesThisLine; else widthNonSpace += widthOfCurrentChar; prevCharWasSpace = TRUE; } else { if ((uchar)tb->str[i] < BUTWRITE_MINPRINT) { ++i; widths[i] = 0; } nonSpaceSeen = TRUE; prevCharWasSpace = FALSE; widthNonSpace += widthOfCurrentChar; } totalWidth += widthOfCurrentChar; if (totalWidth > w) { if (lastSpaceSeen != words[wordNum].start) i = lastSpaceSeen; words[wordNum].len = i - words[wordNum].start; switch(tb->align) { case butText_center: words[wordNum].xoff += (w - widthAtLastSpace) / 2; words[wordNum].w = widthAtLastSpace; break; case butText_right: words[wordNum].xoff += (w - widthAtLastSpace); words[wordNum].w = widthAtLastSpace; break; case butText_just: widthNonSpace = widthNonSpaceAtLastSpace; totalWidth = 0; j = words[wordNum].start; nonSpaceSeen = FALSE; while (spacesAtLastSpace > 0) { assert(j <= i); if ((tb->str[j] == ' ') && nonSpaceSeen) { widthOfCurrentChar = (w - widthNonSpace + spacesAtLastSpace/2) / spacesAtLastSpace; --spacesAtLastSpace; widthNonSpace += widthOfCurrentChar; totalWidth += widthOfCurrentChar; if (tb->str[j - 1] != ' ') { words[wordNum].len = j - words[wordNum].start; assert(words[wordNum].w > 0); assert(words[wordNum].w < w); ++wordNum; } if (tb->str[j + 1] != ' ') { assert(totalWidth < w); words[wordNum].start = j + 1; words[wordNum].xoff = totalWidth; words[wordNum].yoff = txtH * (numLines - 1); words[wordNum].w = 0; } } else { if (tb->str[j] != ' ') nonSpaceSeen = TRUE; totalWidth += widths[j]; words[wordNum].w += widths[j]; if ((uchar)tb->str[j] < BUTWRITE_MINPRINT) ++j; } ++j; } words[wordNum].len = i - tb->words[wordNum].start; while ((tb->str[j] != ' ') && (tb->str[j] != '\0')) words[wordNum].w += widths[j++]; break; case butText_left: words[wordNum].w = widthAtLastSpace; break; } ++wordNum; while (tb->str[i] == ' ') { ++i; widths[i] = butEnv_charWidth(env, tb->str+i, tb->font); } lastSpaceSeen = i; widthNonSpace = totalWidth = widths[i]; spacesThisLine = 0; nonSpaceSeen = TRUE; prevCharWasSpace = FALSE; words[wordNum].start = i; words[wordNum].xoff = 0; words[wordNum].yoff = txtH * numLines; words[wordNum].w = 0; ++numLines; /* * If this was a special character then step over it's second byte. */ if ((uchar)tb->str[i] < BUTWRITE_MINPRINT) { ++i; widths[i] = 0; } } } words[wordNum].len = i - words[wordNum].start; if (tb->align == butText_center) words[wordNum].xoff += (w - totalWidth) / 2; else if (tb->align == butText_right) words[wordNum].xoff += (w - totalWidth); words[wordNum].w = totalWidth; tb->nwords = wordNum + 1; /* We probably allocated way too many words, so allocate a new block * of exactly the right size and move to it. */ words = wms_malloc(tb->nwords * sizeof(Word)); memcpy(words, tb->words, tb->nwords * sizeof(Word)); for (i = 0; i < tb->nwords; ++i) { words[i].w = 0; for (j = words[i].start; j < words[i].start+words[i].len; ++j) words[i].w += widths[j]; } wms_free(widths); wms_free(tb->words); tb->words = words; } /* Returns the height of the text block after being resized. */ int butTblock_resize(But *but, int x, int y, int w) { int old_w = but->w, h; assert(MAGIC(but)); assert(but->action == &action); but->w = w; butTblock_setText(but, NULL); but->w = old_w; but_resize(but, x, y, w, h = butTblock_getH(but)); return(h); } static ButOut destroy(But *but) { Tb *tb = but->iPacket; if (tb->str != NULL) wms_free(tb->str); if (tb->words != NULL) wms_free(tb->words); wms_free(tb); return(0); } static void draw(But *but, int dx, int dy, int dw, int dh) { Tb *tb = but->iPacket; ButEnv *env = but->win->env; int i, x, y; char temp; int fonth; if (but->w != tb->setup_w) butTblock_setText(but, NULL); fonth = env->fonts[tb->font]->ascent + env->fonts[tb->font]->descent; butEnv_setXFg(env, BUT_FG); x = but->x; y = but->y; for (i = 0; i < tb->nwords; ++i) { assert((tb->words[i].xoff >= 0) && (tb->words[i].xoff < but->w) && (tb->words[i].yoff >= 0) && (tb->words[i].yoff < but->h)); assert((tb->words[i].w > 0) && (tb->words[i].w <= but->w)); if ((x+tb->words[i].xoff < dx+dw) && (y+tb->words[i].yoff < dy+dh) && (x+tb->words[i].xoff + tb->words[i].w >= dx) && (y+tb->words[i].yoff + fonth >= dy)) { temp = tb->str[tb->words[i].start + tb->words[i].len]; tb->str[tb->words[i].start + tb->words[i].len] = '\0'; butWin_write(but->win, x+tb->words[i].xoff, y+tb->words[i].yoff, tb->str+tb->words[i].start, tb->font); tb->str[tb->words[i].start + tb->words[i].len] = temp; } } } int butTblock_guessH(ButEnv *env, const char *text, int w, int fontNum) { int curW = 0, curH; int wLastSpace = 0; int fontH; int i; fontH = butEnv_fontH(env, fontNum); curH = fontH; for (i = 0; text[i]; ++i) { if (text[i] == ' ') { curW += butEnv_charWidth(env, text+i, fontNum); wLastSpace = curW; if (curW >= w) { while (i+1 == ' ') ++i; curH += fontH; wLastSpace = curW = 0; } } else { curW += butEnv_charWidth(env, text+i, fontNum); if (text[i] <= '\2') ++i; if (curW > w) { curH += fontH; if (wLastSpace) { curW -= wLastSpace; wLastSpace = 0; } else { /* No spaces, break the word in half. */ curW = butEnv_charWidth(env, text+i, fontNum); } } } } return(curH); } #endif goban-1.1.orig/src/editInfo.h0000644000175000017500000000330710270000205013640 0ustar alal /* * src/editInfo.h, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _EDITINFO_H_ #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _ABUT_TERM_H_ #include #endif #ifndef _GOBAN_H_ #include "goban.h" #endif #ifdef _EDITINFO_H_ Levelization Error. #endif #define _EDITINFO_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef enum { editInfo_gameTitle, editInfo_copyright, editInfo_wName, editInfo_bName, editInfo_wRank, editInfo_bRank, editInfo_handicap, editInfo_komi, editInfo_time, editInfo_result, editInfo_date, editInfo_place, editInfo_event, editInfo_source, editInfo_count } EditInfoVal; typedef struct EditInfo_struct { Cgoban *cg; Goban *goban; ButWin *win; But *bg; Sgf *sgf; But *winTitle; struct { But *name, *in; } infos[editInfo_count]; AbutTerm *gameComment; void (*destroy)(struct EditInfo_struct *info, void *packet); void *packet; MAGIC_STRUCT } EditInfo; /********************************************************************** * Functions **********************************************************************/ #define editInfoVal_iter(v) \ for ((v) = editInfo_gameTitle; (v) < editInfo_count; ++(v)) extern EditInfo *editInfo_create(Cgoban *cg, Goban *goban, Sgf *sgf, void (*dCallback)(EditInfo *info, void *packet), void *packet); extern void editInfo_destroy(EditInfo *info, bool propagate); extern void editInfo_updateSgf(EditInfo *info); #endif goban-1.1.orig/src/textin.c0000644000175000017500000007255610270063321013431 0ustar alal/* * wmslib/src/but/textin.c, part of wmslib (Library functions) * Copyright (C) 1994-1997 William Shubert. * See "configure.h.in" for more copyright information. */ /* * I don't really like this button. * It is slower than it has to be (this may or may not matter). */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include /********************************************************************** * Data Types **********************************************************************/ typedef struct SpecKey_struct { struct SpecKey_struct *next; KeySym keysym; uint keyModifiers, modMask; ButOut (*callback)(But *but, KeySym keysym, uint keyModifiers, void *context); void *context; MAGIC_STRUCT } SpecKey; typedef struct Txtin_struct { ButOut (*callback)(But *but, const char *value); bool hidden; char *str, *dispStr; /* dispStr is only used if hidden is TRUE. */ int maxlen, len, loc, cutend; int mousePress, origMousePress, clicks; int xoffset; Pixmap pm; int pm_w, pm_h, slideDir, slideFreq; int but3StartMouse, but3StartXoff; bool mouseInBut, cursorVisible; ButTimer *cTimer, *sTimer; SpecKey *specKeys; MAGIC_STRUCT } Txtin; /********************************************************************** * Forward Declarations **********************************************************************/ static int locateMouse(XFontStruct *fs, char *text, int len, int x, bool *rightSide); static void ti_cursor(But *but); static void ti_redrawCursor(But *but); static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static ButOut kpress(But *but, const char *keystr, KeySym sym); static void draw(But *but, int x,int y, int w,int h); static ButOut destroy(But *but); static bool insert(ButEnv *env, const char *src, Txtin *but); static void cut(ButEnv *env, char *cutstr, int cutlen, But *but); static void paste(ButEnv *env, But *but); static void enableCTimer(But *but); static void disableCTimer(But *but); static void curInView(But *but); static void textInView(But *but, bool maxInView); static bool sreq(ButEnv *env, XSelectionRequestEvent *xsre); static int sclear(ButEnv *env); static int snotify(ButEnv *env, XSelectionEvent *xsre); static void flags(But *but, uint flags); static void wordsel_adjust(Txtin *but); static void startSlide(But *but, int dir, bool fast); static ButOut slide(ButTimer *timer); /********************************************************************** * Globals **********************************************************************/ static int cutstr_maxlen = 0, cutstr_len; static char *cutdata = NULL; static But *cut_butnum = NULL; static But *paste_butnum = NULL; static const ButAction action = { mmove, mleave, mpress, mrelease, kpress, NULL, draw, destroy, flags, NULL}; /********************************************************************** * Functions **********************************************************************/ But *butTextin_create(ButOut (*callback)(But *but, const char *value), void *packet, ButWin *win, int layer, int flags, const char *text, int maxlen) { But *but; Txtin *ti; ti = wms_malloc(sizeof(Txtin)); MAGIC_SET(ti); but = but_create(win, ti, &action); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; if (text == NULL) text = ""; ti->callback = callback; ti->hidden = FALSE; ti->maxlen = maxlen; ti->str = (char *)wms_malloc(ti->maxlen + 1); ti->dispStr = ti->str; ti->xoffset = 0; ti->pm_w = ti->pm_h = 0; ti->pm = None; ti->mousePress = -1; ti->mouseInBut = FALSE; strcpy(ti->str, text); ti->len = ti->loc = ti->cutend = strlen(text); ti->cTimer = NULL; if (flags & BUT_KEYED) { ti->cursorVisible = TRUE; } else ti->cursorVisible = FALSE; ti->sTimer = NULL; ti->but3StartXoff = -1; ti->specKeys = NULL; but_init(but); return(but); } const char *butTextin_get(But *but) { Txtin *ti = but->iPacket; assert(but->action == &action); assert(MAGIC(ti)); return(ti->str); } static ButOut destroy(But *but) { Txtin *ti = but->iPacket; ButEnv *env = but->win->env; SpecKey *spec, *nextSpec; assert(but->action == &action); assert(MAGIC(ti)); spec = ti->specKeys; while (spec != NULL) { assert(MAGIC(spec)); nextSpec = spec->next; MAGIC_UNSET(spec); wms_free(spec); spec = nextSpec; } if (cut_butnum == but) { if (env->sClear == sclear) env->sClear = NULL; if (env->sReq == sreq) env->sReq = NULL; cut_butnum = NULL; } if (paste_butnum == but) { if (env->sNotify == snotify) env->sNotify = NULL; paste_butnum = NULL; } if (ti->pm != None) XFreePixmap(but->win->env->dpy, ti->pm); wms_free(ti->str); if (ti->hidden) wms_free(ti->dispStr); else { assert(ti->dispStr == ti->str); } MAGIC_UNSET(ti); wms_free(ti); return(0); } static void draw(But *but, int x,int y, int w,int h) { ButWin *win = but->win; ButEnv *env = win->env; Txtin *ti = but->iPacket; int txtw; int butbw = env->stdButBw; XFontStruct *fs = env->fonts[0]; assert(but->action == &action); assert(MAGIC(ti)); XSetFont(env->dpy, env->gc2, env->fonts[0]->fid); if ((ti->pm_w != but->w - 2*butbw) || (ti->pm_h != but->h - 2*butbw)) { if (ti->pm != None) XFreePixmap(env->dpy, ti->pm); ti->pm = XCreatePixmap(env->dpy, win->win, ti->pm_w = but->w - 2*butbw, ti->pm_h = but->h - 2*butbw, DefaultDepth(env->dpy, DefaultScreen(env->dpy))); } but_drawBox(win, but->x,but->y, but->w,but->h, 1, butbw, BUT_SRIGHT|BUT_SLEFT, BUT_LIT, BUT_SHAD, None, None); txtw = XTextWidth(fs, ti->dispStr, ti->loc); butEnv_setXFg2(env, BUT_HIBG); XFillRectangle(env->dpy, ti->pm, env->gc2, 0,0, ti->pm_w,ti->pm_h); if (but->flags & BUT_PRESSABLE) butEnv_setXFg2(env, BUT_FG); else { XSetFillStyle(env->dpy, env->gc2, FillStippled); XSetForeground(env->dpy, env->gc2, env->colors[BUT_FG]); } if (ti->loc == ti->cutend) { XDrawString(env->dpy, ti->pm, env->gc2, x = butbw - ti->xoffset, y = (fs->ascent + ti->pm_h - fs->descent) / 2, ti->dispStr, ti->len); } else { int tw1, tw2; int cl1, cl2; if (ti->cutend >= ti->loc) { cl1 = ti->loc; cl2 = ti->cutend; } else { cl1 = ti->cutend; cl2 = ti->loc; } XDrawString(env->dpy, ti->pm, env->gc2, x = butbw - ti->xoffset, y = (fs->ascent + ti->pm_h - fs->descent) / 2, ti->dispStr, cl1); tw1 = XTextWidth(fs, ti->dispStr, cl1); tw2 = XTextWidth(fs, ti->dispStr + cl1, cl2 - cl1); x += tw1 + tw2; XDrawString(env->dpy, ti->pm, env->gc2, x,y, ti->dispStr + cl2, ti->len - cl2); x -= tw2; XSetBackground(env->dpy, env->gc2, env->colors[BUT_SELBG]); if (!env->colorp) { XSetTile(env->dpy, env->gc2, env->colorPmaps[BUT_WHITE]); XSetForeground(env->dpy, env->gc2, env->colors[BUT_WHITE]); } XDrawImageString(env->dpy, ti->pm, env->gc2, x,y, ti->dispStr + cl1, cl2 - cl1); } if (!(but->flags & BUT_PRESSABLE)) { butEnv_stdFill2(env); } XCopyArea(env->dpy, ti->pm, win->win, env->gc, 0,0, ti->pm_w,ti->pm_h, but->x + butbw - win->xOff, but->y + butbw - win->yOff); if ((ti->loc == ti->cutend) && ti->cursorVisible && (but->flags & BUT_PRESSABLE)) ti_cursor(but); } static ButOut mmove(But *but, int x, int y) { Txtin *ti = but->iPacket; ButWin *win = but->win; ButEnv *env = win->env; int newMousePress; bool rightSide; if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if (!ti->mouseInBut) { ti->mouseInBut = TRUE; butEnv_setCursor(env, but, butCur_text); } if (ti->mousePress != -1) { if (ti->clicks < 2) { if (x < but->x) { startSlide(but, -1, (x < but->x - but->h + env->stdButBw*2)); newMousePress = 0; } else if (x > but->x + but->w) { startSlide(but, 1, (x > but->x + but->w + but->h - env->stdButBw*2)); newMousePress = ti->len; } else { if (ti->sTimer != NULL) { butTimer_destroy(ti->sTimer); ti->sTimer = NULL; } if (y < but->y + env->stdButBw*2) newMousePress = 0; else if (y > but->y+but->h - env->stdButBw*2) newMousePress = ti->len; else newMousePress = locateMouse(env->fonts[0], ti->dispStr, ti->len, x - (but->x + 2*env->stdButBw - ti->xoffset), &rightSide); } if (ti->clicks == 1) { if (rightSide && (newMousePress >= ti->origMousePress) && (newMousePress < ti->len)) ++newMousePress; else if (!rightSide && (newMousePress <= ti->origMousePress) && (newMousePress > 0)) --newMousePress; } if (newMousePress != ti->mousePress) { ti->mousePress = ti->loc = newMousePress; if (ti->clicks == 1) { ti->cutend = ti->origMousePress; wordsel_adjust(ti); } but_draw(but); } } } if (ti->but3StartXoff != -1) { int oldXoff = ti->xoffset; ti->xoffset = ti->but3StartXoff - 10*(x - ti->but3StartMouse); textInView(but, FALSE); if (oldXoff != ti->xoffset) but_draw(but); } return(BUTOUT_CAUGHT); } static ButOut mleave(But *but) { Txtin *ti = but->iPacket; if (ti->mouseInBut) { ti->mouseInBut = FALSE; butEnv_setCursor(but->win->env, but, butCur_idle); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { Txtin *ti = but->iPacket; ButEnv *env = but->win->env; static Time lastPressTime = -1; static int lastPressNum = -2; int rightSide; if (ti->cTimer) { butTimer_reset(ti->cTimer); ti->cursorVisible = TRUE; } switch (butnum) { case 1: /* Button 1 selects, drags, etc. */ if (ti->but3StartXoff != -1) return(BUTOUT_ERR); if (!(but->flags & BUT_KEYED)) but_newFlags(but, but->flags | BUT_KEYED); but_newFlags(but, but->flags | BUT_LOCKED); ti->mousePress = locateMouse(env->fonts[0], ti->dispStr, ti->len, x - (but->x + 2*env->stdButBw - ti->xoffset), &rightSide); ti->loc = ti->cutend = ti->origMousePress = ti->mousePress; if ((lastPressTime + BUT_DCLICK > env->eventTime) && (lastPressNum + 1 == env->eventNum)) { if (ti->clicks == 0) { /* It's a double click! */ ++ti->clicks; if (rightSide) ++ti->loc; else --ti->loc; wordsel_adjust(ti); } else if (ti->clicks == 1) { /* It's a triple click! */ ++ti->clicks; ti->loc = 0; ti->cutend = ti->len; } else { /* Quadruple click! Restart! */ ti->clicks = 0; } } else ti->clicks = 0; lastPressTime = env->eventTime; lastPressNum = env->eventNum; but_draw(but); break; case 2: /* Paste! */ ti->cutend = ti->loc = locateMouse(env->fonts[0], ti->dispStr, ti->len, x - (but->x + 2*env->stdButBw - ti->xoffset), NULL); paste(env, but); break; case 3: /* * Button 3 scrolls as if this input window was a mini-canvas. I'm not * sure how useful this is but I'm doing it anyway just to make my * interface more consistent. */ if (ti->mousePress != -1) return(BUTOUT_ERR); but_newFlags(but, but->flags | BUT_LOCKED); butEnv_setCursor(env, but, butCur_lr); ti->but3StartMouse = x; ti->but3StartXoff = ti->xoffset; break; default: /* * Weird. I don't know what to do with mice with more than 3 buttons * so I guess I might as well beep. I like beeping. */ return(BUTOUT_ERR); break; } return(BUTOUT_CAUGHT); } static ButOut mrelease(But *but, int butnum, int x, int y) { Txtin *ti = but->iPacket; char *cutstr; int cutlen; if (ti->cTimer) { butTimer_reset(ti->cTimer); ti->cursorVisible = TRUE; } if ((butnum == 1) && (ti->mousePress != -1)) { if (ti->sTimer != NULL) { butTimer_destroy(ti->sTimer); ti->sTimer = NULL; } if (ti->loc != ti->cutend) { if (ti->loc < ti->cutend) { cutstr = ti->str + ti->loc; cutlen = ti->cutend - ti->loc; } else { cutstr = ti->str + ti->cutend; cutlen = ti->loc - ti->cutend; } cut(but->win->env, cutstr, cutlen, but); } ti->mousePress = -1; but_newFlags(but, but->flags & ~BUT_LOCKED); } else if ((butnum == 3) && (ti->but3StartXoff != -1)) { butEnv_setCursor(but->win->env, but, butCur_text); ti->but3StartXoff = -1; but_newFlags(but, but->flags & ~BUT_LOCKED); } return(BUTOUT_CAUGHT); } static ButOut kpress(But *but, const char *newtext, KeySym keysym) { Txtin *ti = but->iPacket; ButEnv *env = but->win->env; bool need_draw = FALSE, needCallback = FALSE; int i; ButOut result = 0; SpecKey *spec; butTimer_reset(ti->cTimer); ti->cursorVisible = TRUE; for (spec = ti->specKeys; spec != NULL; spec = spec->next) { if ((keysym == spec->keysym) && ((env->keyModifiers & spec->modMask) == spec->keyModifiers)) { return(spec->callback(but, keysym, env->keyModifiers, spec->context) | BUTOUT_CAUGHT); } } if (((keysym >= XK_KP_Space) && (keysym <= XK_KP_9)) || ((keysym >= XK_space) && (keysym <= XK_ydiaeresis))) { need_draw = TRUE; switch(newtext[0]) { case '\001': /* Ctrl-A: Beginning of line. */ case '\020': /* Ctrl-P: Up a line. */ ti->loc = ti->cutend = 0; break; case '\002': /* Ctrl-B: Back a character. */ if (ti->loc != ti->cutend) { ti->cutend = ti->loc; } else if (ti->loc) { ti->cutend = --ti->loc; } else { need_draw = FALSE; result |= BUTOUT_ERR | BUTOUT_CAUGHT; } break; case '\004': /* Ctrl-D: Delete right. */ if (ti->loc != ti->cutend) need_draw = insert(env, "", ti); else if (ti->loc < ti->len) { for (i = ti->loc; ti->str[i]; ++i) ti->str[i] = ti->str[i+1]; --ti->len; need_draw = TRUE; } else result |= BUTOUT_ERR | BUTOUT_CAUGHT; break; case '\005': /* Ctrl-E: End of line. */ case '\016': /* Ctrl-N: Down a line. */ ti->loc = ti->cutend = ti->len; break; case '\006': /* Ctrl-F: Forward a character. */ if (ti->loc != ti->cutend) { ti->loc = ti->cutend; } else if (ti->loc < ti->len) { ti->cutend = ++ti->loc; } else { result |= BUTOUT_ERR | BUTOUT_CAUGHT; need_draw = FALSE; } break; case '\013': /* Ctrl-K: Kill to end of line. */ ti->str[ti->len = ti->loc = ti->cutend] = '\0'; break; case '\025': /* Ctrl-U: Kill from beginning of line. */ for (i = ti->loc; i < ti->len; ++i) ti->str[i - ti->loc] = ti->str[i]; ti->str[ti->len -= ti->loc] = '\0'; ti->loc = ti->cutend = 0; break; default: if (!(need_draw = insert(env, newtext, ti))) result |= BUTOUT_ERR | BUTOUT_CAUGHT; break; } } else if ((keysym >= XK_Shift_L) && (keysym <= XK_Hyper_R)) { } else if ((keysym >= XK_F1) && (keysym <= XK_F35)) { if (!(need_draw = insert(env, newtext, ti))) result |= BUTOUT_ERR | BUTOUT_CAUGHT; } else if ((keysym == XK_BackSpace) || (keysym == XK_Delete)) { if (ti->loc != ti->cutend) need_draw = insert(env, "", ti); else if (ti->loc > 0) { for (i = ti->cutend = --ti->loc; ti->str[i]; ++i) ti->str[i] = ti->str[i+1]; --ti->len; need_draw = TRUE; } else result |= BUTOUT_ERR | BUTOUT_CAUGHT; #if 0 /* People don't like it when delete works the way I like it. :-( */ } else if (keysym == XK_Delete) { if (ti->loc != ti->cutend) need_draw = insert(env, "", ti); else if (ti->loc < ti->len) { for (i = ti->loc; ti->str[i]; ++i) ti->str[i] = ti->str[i+1]; --ti->len; need_draw = TRUE; } else result |= BUTOUT_ERR | BUTOUT_CAUGHT; #endif } else if (keysym == XK_Left) { if (ti->loc != ti->cutend) { if (ti->loc < ti->cutend) ti->cutend = ti->loc; else ti->loc = ti->cutend; need_draw = TRUE; } else if (ti->loc) { ti->cutend = --ti->loc; need_draw = TRUE; } else result |= BUTOUT_ERR | BUTOUT_CAUGHT; } else if (keysym == XK_Right) { if (ti->loc != ti->cutend) { if (ti->loc > ti->cutend) ti->cutend = ti->loc; else ti->loc = ti->cutend; need_draw = TRUE; } else if (ti->loc < ti->len) { ti->cutend = ++ti->loc; need_draw = TRUE; } else result |= BUTOUT_ERR | BUTOUT_CAUGHT; } else if (keysym == XK_Up) { ti->loc = ti->cutend = 0; need_draw = TRUE; } else if (keysym == XK_Down) { ti->loc = ti->cutend = ti->len; need_draw = TRUE; } else if ((keysym == XK_Return) || (keysym == XK_Linefeed) || (keysym == XK_KP_Enter)) { result |= BUTOUT_CAUGHT; if (ti->callback == NULL) { but_setFlags(but, BUT_NOKEY); } else { needCallback = TRUE; } } /* Void all mouse movement until it is pressed again. */ if (ti->mousePress != -1) { ti->mousePress = -1; if (but->flags & BUT_LOCKED) but_newFlags(but, but->flags & ~BUT_LOCKED); } if (need_draw) { result |= BUTOUT_CAUGHT; curInView(but); but_draw(but); } if (needCallback) result |= ti->callback(but, ti->str); return(result); } static bool insert(ButEnv *env, const char *src, Txtin *ti) { int i, j, ntLen, cl1, cl2; XFontStruct *fs = env->fonts[0]; if (src == NULL) { return(FALSE); } if (ti->loc <= ti->cutend) { cl1 = ti->loc; cl2 = ti->cutend; } else { cl1 = ti->cutend; cl2 = ti->loc; } for (i = 0, ntLen = 0; src[i]; ++i) { if ((((uchar)src[i] >= fs->min_char_or_byte2) && ((uchar)src[i] <= fs->max_char_or_byte2)) || (fs->all_chars_exist && fs->per_char[(uchar)src[i] - fs->min_char_or_byte2].width)) ++ntLen; } if ((ntLen == 0) && src[0]) return(FALSE); if (ntLen + ti->len + cl1 - cl2 > ti->maxlen) { return(FALSE); } if (cl1 != cl2) { for (i = cl1; i < ti->len; ++i) ti->str[i] = ti->str[i + cl2 - cl1]; } for (i = ti->len + ntLen; i >= cl1 + ntLen; --i) ti->str[i] = ti->str[i - ntLen]; for (i = 0, j = cl1; src[i]; ++i) { if ((((uchar)src[i] >= fs->min_char_or_byte2) && ((uchar)src[i] <= fs->max_char_or_byte2)) || (fs->all_chars_exist && fs->per_char[(uchar)src[i] - fs->min_char_or_byte2].width)) { ti->str[j++] = src[i]; } } ti->len += cl1 - cl2 + ntLen; ti->loc = ti->cutend = cl1 + ntLen; return(TRUE); } static void ti_cursor(But *but) { Txtin *ti = but->iPacket; ButWin *win = but->win; ButEnv *env = win->env; XFontStruct *fs = env->fonts[0]; int x, y; int rw; if (ti->loc != ti->cutend) return; x = but->x - ti->xoffset + env->stdButBw*2 + XTextWidth(fs, ti->dispStr, ti->loc); y = but->y + env->stdButBw*2; if ((rw = (fs->ascent + fs->descent + 10) / 20) < 1) rw = 1; x -= rw/2; if (x < but->x + env->stdButBw) { rw -= (but->x + env->stdButBw - x); x = but->x + env->stdButBw; } else if (x+rw > but->x + but->w - env->stdButBw) { rw = but->x + but->w - env->stdButBw - x; } if (rw <= 0) return; if (ti->cursorVisible) butEnv_setXFg2(env, BUT_FG); else butEnv_setXFg2(env, BUT_HIBG); XFillRectangle(env->dpy, win->win, env->gc2, x - win->xOff, y - win->yOff, rw, ti->pm_h - env->stdButBw*2); } static void ti_redrawCursor(But *but) { Txtin *ti = but->iPacket; ButWin *win = but->win; ButEnv *env = win->env; XFontStruct *fs = env->fonts[0]; int x, y; int rw; if (ti->loc != ti->cutend) return; x = but->x - ti->xoffset + env->stdButBw*2 + XTextWidth(fs, ti->dispStr, ti->loc); y = but->y + env->stdButBw*2; if ((rw = (fs->ascent + fs->descent + 10) / 20) < 1) rw = 1; x -= rw/2; if (x < but->x + env->stdButBw) { rw -= (but->x + env->stdButBw - x); x = but->x + env->stdButBw; } else if (x+rw > but->x + but->w - env->stdButBw) { rw = but->x + but->w - env->stdButBw - x; } if (rw <= 0) return; butWin_redraw(win, x, y, rw, ti->pm_h - env->stdButBw*2); } static void cut(ButEnv *env, char *cutstr, int cutlen, But *but) { ButWin *realWin; if (cutstr_maxlen < cutlen) { if (cutdata != NULL) wms_free(cutdata); cutdata = (char *)wms_malloc(cutlen); cutstr_maxlen = cutlen; } XStoreBytes(env->dpy, cutstr, cutlen); memcpy(cutdata, cutstr, cutlen); cutstr_len = cutlen; realWin = but->win; while (realWin->parent != NULL) realWin = realWin->parent; if ((env->sReq == NULL) || ((env->sReq == sreq) && (cut_butnum == but))) XSetSelectionOwner(env->dpy, XA_PRIMARY, realWin->win, 0); else env->sClear(env); if (XGetSelectionOwner(env->dpy, XA_PRIMARY) == realWin->win) { env->sReq = sreq; env->sClear = sclear; cut_butnum = but; } } static bool sreq(ButEnv *env, XSelectionRequestEvent *xsre) { if (xsre->target != XA_STRING) return(FALSE); XChangeProperty(env->dpy, xsre->requestor, xsre->property, xsre->target, 8, PropModeReplace, cutdata, cutstr_len); return(TRUE); } static int sclear(ButEnv *env) { Txtin *ti; assert(MAGIC(cut_butnum)); ti = cut_butnum->iPacket; assert(MAGIC(ti)); ti->loc = ti->cutend; but_draw(cut_butnum); env->sReq = NULL; env->sClear = NULL; return(0); } static void paste(ButEnv *env, But *but) { ButWin *topWin; paste_butnum = but; env->sNotify = snotify; topWin = but->win; while (topWin->parent != NULL) topWin = topWin->parent; XConvertSelection(env->dpy, XA_PRIMARY, XA_STRING, env->prop, topWin->win, 0); } static int snotify(ButEnv *env, XSelectionEvent *xsnot) { unsigned char *propbuf; unsigned long proplen, propleft; int blen; int pformat; Atom ptype; Txtin *ti; char *pb2; ti = paste_butnum->iPacket; if (xsnot->property != None) { XGetWindowProperty(env->dpy, xsnot->requestor, xsnot->property, 0, ti->maxlen, True, AnyPropertyType, &ptype, &pformat, &proplen, &propleft, &propbuf); pb2 = (char *)wms_malloc(proplen * pformat + 1); pb2[proplen * pformat] = '\0'; memcpy(pb2, propbuf, proplen * pformat); XFree(propbuf); if (insert(env, pb2, ti)) { textInView(paste_butnum, FALSE); but_draw(paste_butnum); } else XBell(env->dpy, 0); wms_free(pb2); } else { propbuf = (unsigned char *)XFetchBytes(env->dpy, &blen); if (blen > 0) { pb2 = (char *)wms_malloc(blen + 1); pb2[blen] = '\0'; memcpy(pb2, propbuf, blen); XFree(propbuf); if (insert(env, pb2, ti)) { textInView(paste_butnum, FALSE); but_draw(paste_butnum); } else XBell(env->dpy, 0); wms_free(pb2); } else XBell(env->dpy, 0); } env->sNotify = NULL; return(0); } /* * This adjusts your loc and your cutend for when you're in word select mode. */ static void wordsel_adjust(Txtin *but) { int a, b; if (but->loc < but->cutend) { a = but->loc; b = but->cutend; } else { a = but->cutend; b = but->loc; } for (;;) { if (a <= 0) { a = 0; break; } if (((isalnum(but->str[a]) || (but->str[a] == '_')) && (isalnum(but->str[a-1]) || (but->str[a-1] == '_'))) || (but->str[a] == but->str[a-1]) || (isdigit(but->str[a]) && (but->str[a-1] == '.') && (a >= 2) && isdigit(but->str[a-2])) || (isdigit(but->str[a+1]) && (but->str[a] == '.') && isdigit(but->str[a-1]))) --a; else break; } if (b <= 0) b = 1; for (;;) { if (b >= but->len) { b = but->len; break; } if (((isalnum(but->str[b-1]) || (but->str[b-1] == '_')) && (isalnum(but->str[b]) || (but->str[b] == '_'))) || (but->str[b-1] == but->str[b]) || (isdigit(but->str[b-1]) && (but->str[b] == '.') && isdigit(but->str[b+1])) || ((b >= 2) && isdigit(but->str[b-2]) && (but->str[b-1] == '.') && isdigit(but->str[b]))) ++b; else break; } but->loc = a; but->cutend = b; } /* Returns the index of the character just to the right of the cursor. */ static int locateMouse(XFontStruct *fs, char *text, int len, int x, bool *rightSide) { int i; int prev_x = x; bool dummy; if (rightSide == NULL) rightSide = &dummy; for (i = 0; (x > 0) && (i < len); ++i) { prev_x = x; if (fs->per_char == NULL) /* Monospace font. */ x -= fs->min_bounds.width; else x -= fs->per_char[text[i] - fs->min_char_or_byte2].width; } if ((*rightSide = ((i > 0) && (x < 0) && (prev_x < -x)))) --i; if (i == len) *rightSide = FALSE; return(i); } /* Set up xoffset so that the cursor will be in view. */ static void curInView(But *but) { Txtin *ti = but->iPacket; ButEnv *env = but->win->env; int curIn; curIn = XTextWidth(env->fonts[0], ti->dispStr, ti->loc); if (curIn < ti->xoffset) ti->xoffset = curIn; if (curIn - ti->xoffset > ti->pm_w - env->stdButBw * 2) ti->xoffset = curIn - ti->pm_w + env->stdButBw * 2; } /* * Set up xoffset so that the text will be in view. If maxInView is set, * then make sure that as much text is in the window as possible (that is, * there is no unnecessary empty space to the right of the text). */ static void textInView(But *but, bool maxInView) { Txtin *ti = but->iPacket; ButEnv *env = but->win->env; int curIn; curIn = XTextWidth(env->fonts[0], ti->dispStr, ti->len); if (maxInView) { if (ti->xoffset > curIn - (but->w - env->stdButBw*4)) ti->xoffset = curIn - (but->w - env->stdButBw * 4); } if (ti->xoffset < 0) ti->xoffset = 0; if (ti->xoffset > curIn) ti->xoffset = curIn; } static void flags(But *but, uint flags) { Txtin *ti = but->iPacket; if ((but->flags & BUT_KEYED) != (flags & BUT_KEYED)) { if (flags & BUT_KEYED) { enableCTimer(but); ti->cursorVisible = TRUE; } else { ti->cursorVisible = FALSE; disableCTimer(but); } } but->flags = flags; assert((but->flags & BUT_PRESSABLE) || !(but->flags & BUT_KEYED)); but_draw(but); } static ButOut blinkCursor(ButTimer *timer) { But *but = butTimer_packet(timer); Txtin *ti = but->iPacket; ti->cursorVisible = !(butTimer_ticks(timer) & 1); ti_redrawCursor(but); return(0); } static ButOut slide(ButTimer *timer) { But *but = butTimer_packet(timer); Txtin *ti = but->iPacket; int newXoff, oldXoff; if (ti->slideDir > 0) { oldXoff = ti->xoffset; textInView(but, TRUE); if (oldXoff != ti->xoffset) { ti->xoffset = oldXoff; butTimer_destroy(ti->sTimer); ti->sTimer = NULL; return(0); } } newXoff = ti->xoffset + ti->slideDir * butTimer_ticks(timer); ti->xoffset = newXoff; textInView(but, ti->slideDir > 0); if (ti->xoffset != newXoff) { butTimer_destroy(ti->sTimer); ti->sTimer = NULL; } butTimer_setTicks(timer, 0); but_draw(but); return(0); } static void startSlide(But *but, int dir, bool fast) { struct timeval zero; Txtin *ti = but->iPacket; int freq; zero.tv_sec = 0; zero.tv_usec = 0; freq = but->h; if (fast) freq *= 10; if (ti->sTimer != NULL) { if ((ti->slideFreq == freq) && (ti->slideDir == dir)) return; butTimer_destroy(ti->sTimer); } ti->slideDir = dir; ti->slideFreq = freq; ti->sTimer = butTimer_fCreate(but, but, zero, freq, FALSE, slide); } static void enableCTimer(But *but) { Txtin *ti = but->iPacket; struct timeval halfSec; assert(ti->cTimer == NULL); halfSec.tv_sec = 0; halfSec.tv_usec = 500000; ti->cTimer = butTimer_create(but, but, halfSec, halfSec, TRUE, blinkCursor); } static void disableCTimer(But *but) { Txtin *ti = but->iPacket; if (ti->cTimer != NULL) { butTimer_destroy(ti->cTimer); ti->cTimer = NULL; } } void butTextin_set(But *but, const char *newStr, bool propagate) { Txtin *ti; assert(MAGIC(but)); assert(but->action == &action); ti = but->iPacket; assert(MAGIC(ti)); assert(strlen(newStr) <= ti->maxlen); strcpy(ti->str, newStr); ti->len = ti->loc = ti->cutend = strlen(newStr); textInView(but, TRUE); but_draw(but); if (propagate) ti->callback(but, ti->str); } void butTextin_setHidden(But *but, bool hidden) { Txtin *ti; int i; assert(MAGIC(but)); assert(but->action == &action); ti = but->iPacket; assert(MAGIC(ti)); if (hidden == ti->hidden) return; ti->hidden = hidden; if (hidden) { ti->dispStr = wms_malloc(ti->maxlen); for (i = 0; i < ti->maxlen; ++i) { ti->dispStr[i] = '*'; } } else { wms_free(ti->dispStr); ti->dispStr = ti->str; } } void butTextin_setSpecialKey(But *but, KeySym keysym, uint keyModifiers, uint modMask, ButOut callback(But *but, KeySym keysym, uint keyModifiers, void *context), void *context) { Txtin *ti; SpecKey *newSpec; assert(MAGIC(but)); assert(but->action == &action); ti = but->iPacket; assert(MAGIC(ti)); assert((keyModifiers & modMask) == keyModifiers); newSpec = wms_malloc(sizeof(SpecKey)); MAGIC_SET(newSpec); newSpec->next = ti->specKeys; ti->specKeys = newSpec; newSpec->keysym = keysym; newSpec->keyModifiers = keyModifiers; newSpec->modMask = modMask; newSpec->callback = callback; newSpec->context = context; } #endif /* X11_DISP */ goban-1.1.orig/src/server.c0000644000175000017500000000131310270065364013414 0ustar alal/* * src/cliServer.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include "server.h" /********************************************************************** * Functions **********************************************************************/ /* * It seems that gcc has an error. If no _functions_ in a library file are * called, then the file is not linked in. Since I want "cliServer_names[]" * to get pulled in, I need to have a function here. :-( * This file no longer has *any* data in it, so I could just scrap this, but * what the hell. */ void cliServer_create(void) { } goban-1.1.orig/src/help.h0000644000175000017500000000205310267776074013062 0ustar alal/* * src/msg.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _HELP_H_ #define _HELP_H_ 1 #ifndef _ABUT_HELP_H_ #include "abut_help.h" #endif /********************************************************************** * Data Types **********************************************************************/ typedef struct { int numPages; const char *menuTitle; const AbutHelpPage *pages; } Help; /********************************************************************** * Global variables **********************************************************************/ extern Help help_control; extern Help help_gameSetup; extern Help help_editTool; extern Help help_cliMain; extern Help help_cliMatch; extern Help help_editBoard; extern Help help_localBoard; extern Help help_cliBoard; extern Help help_cliSetup; extern Help help_gmpBoard; extern Help help_gmpSetup; extern Help help_configure; extern Help help_cliLook; #endif /* _HELP_H_ */ goban-1.1.orig/src/cm2pm.h0000644000175000017500000000143406342434120013130 0ustar alal/* * src/cm2pm.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CM2PM_H_ #define _CM2PM_H_ 1 /********************************************************************** * Constants **********************************************************************/ /********************************************************************** * Functions **********************************************************************/ extern Pixmap cm2Pm(ButEnv *env, uchar *cmap, uint cmapw,uint cmaph, uint w,uint h, int pic0, int npic, bool flat); extern void cm2OldPm(ButEnv *env, uchar *cmap, uint cmapw,uint cmaph, int pic0, int npic, Pixmap pic, bool flat); #endif /* _CM2PM_H_ */ goban-1.1.orig/src/clp-x.c0000644000175000017500000000205310270001107013114 0ustar alal/* * wmslib/src/wms/clp-x.c, part of wmslib (Library functions) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. * * Command Line Parser. */ #include #if X11_DISP #include #include #include "clp.h" /********************************************************************** * Functions **********************************************************************/ void clp_rXDefaults(Clp *clp, Display *dpy, char *name) { int i, j; ClpEntry *ci; char *xdef, wname[80]; for (i = 0; i < clp->numInfos; ++i) { ci = &clp->infos[i]; if (!ci->name || (ci->where == clpWhere_cmdline)) continue; strncpy(wname, ci->name, sizeof(wname) - 1); wname[sizeof(wname) - 1] = '\0'; for (j = 0; wname[j]; ++j) if (wname[j] == ',') wname[j] = '\0'; xdef = XGetDefault(dpy, name, wname); if (xdef != NULL) { ci->where = clpWhere_xdefs; ci->type = clpDtype_string; clpEntry_setStr(ci, xdef); } } } #endif /* X11_DISP */ goban-1.1.orig/src/abut.h0000644000175000017500000000225610267775610013065 0ustar alal/* * src/abut.h, part of wmslib library * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _ABUT_ABUT_H_ #ifndef _WMS_CLP_H_ #include #endif #ifdef _ABUT_ABUT_H_ Levelization Error. #endif #define _ABUT_ABUT_H_ 1 /********************************************************************** * Types **********************************************************************/ /* Private. */ typedef struct Abut_struct { ButEnv *env; const char *ok, *cancel; int butH; int ulColor, lrColor, bgColor; Pixmap ulPixmap, lrPixmap, bgPixmap; Clp *clp; MAGIC_STRUCT } Abut; /********************************************************************** * Functions available **********************************************************************/ extern Abut *abut_create(ButEnv *env, const char *ok, const char *cancel); extern void abut_destroy(Abut *a); extern void abut_setColors(Abut *a, int ul, int lr, int bg); extern void abut_setPixmaps(Abut *a, Pixmap ul, Pixmap lr, Pixmap bg); #define abut_setClp(a, c) ((a)->clp = (c)) #define abut_setButH(a, h) ((a)->butH = (h)) #endif /* _ABUT_ABUT_H_ */ goban-1.1.orig/src/setup.c0000644000175000017500000004055110270070355013251 0ustar alal/* * src/gmp/setup.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "setup.h" #include "client.h" #include "gameSetup.h" #include "msg.h" #include "play.h" #include /********************************************************************** * Global variables **********************************************************************/ /* * If this field is TRUE, then we will really, truly be speaking GMP to * the player in question. */ static const bool isGmpType[] = { TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, TRUE}; /********************************************************************** * Forward declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut okPressed(But *but); static ButOut cancelPressed(But *but); static ButOut newType(But *but, int newVal); static ButOut newIn1(But *but, const char *value); static ButOut newIn2(But *but, const char *value); static void gotGameSetup(void *packet, GameSetup *gameSetup); /********************************************************************** * Functions **********************************************************************/ GmpSetup *gmpSetup_create(Cgoban *cg) { GmpSetup *gs; GoStone s; int w, h; GmpSetupPlayer *p; char port[10]; assert(MAGIC(cg)); gs = wms_malloc(sizeof(GmpSetup)); MAGIC_SET(gs); gs->cg = cg; gs->gameWaiting = FALSE; h = cg->fontH * 16 + butEnv_stdBw(cg->env) * 14; w = h * 2; gs->win = butWin_create(gs, cg->env, "Go Modem Protocol Setup", w,h, unmap, map, resize, destroy); butWin_activate(gs->win); gs->bg = butBoxFilled_create(gs->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(gs->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); gs->title = butText_create(gs->win, 1, BUT_DRAWABLE, msg_gmpSetup, butText_center); butText_setFont(gs->title, 2); gs->ok = butCt_create(okPressed, gs, gs->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, msg_ok); gs->cancel = butCt_create(cancelPressed, gs, gs->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, msg_cancel); gs->help = butCt_create(cgoban_createHelpWindow, &help_gmpSetup, gs->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); gs->players[goStone_white].optionEntry = clp_lookup(cg->clp, "gmp.WOption"); gs->players[goStone_black].optionEntry = clp_lookup(cg->clp, "gmp.BOption"); gs->players[goStone_white].progNameEntry = clp_lookup(cg->clp, "gmp.WProgram"); gs->players[goStone_black].progNameEntry = clp_lookup(cg->clp, "gmp.BProgram"); gs->players[goStone_white].devNameEntry = clp_lookup(cg->clp, "gmp.WDevice"); gs->players[goStone_black].devNameEntry = clp_lookup(cg->clp, "gmp.BDevice"); sprintf(port, "%d", clp_getInt(cg->clp, "gmp.port")); /* * Set up the goStone_black type because when I set up goStone_white, * below, I will check this value and it must be something sane. */ gs->players[goStone_black].type = gmpSetup_program; goStoneIter(s) { p = &gs->players[s]; str_initChars(&p->progName, clpEntry_getStr(p->progNameEntry)); str_initChars(&p->devName, clpEntry_getStr(p->devNameEntry)); p->box = butBox_create(gs->win, 1, BUT_DRAWABLE); butBox_setPixmaps(p->box, cg->bgLitPixmap, cg->bgShadPixmap); p->typeMenu = butMenu_downCreate(newType, gs, gs->win, 1, 2, BUT_DRAWABLE|BUT_PRESSABLE, msg_gmpPlayers[s], msg_gmpTypes, clpEntry_getInt(p->optionEntry)); butMenu_setFlags(p->typeMenu, (int)gmpSetup_local, BUTMENU_DISABLED); butMenu_setFlags(p->typeMenu, (int)gmpSetup_remote, BUTMENU_DISABLED); p->strDesc1 = butText_create(gs->win, 1, BUT_DRAWABLE, msg_program, butText_center); butText_setColor(p->strDesc1, BUT_NOCHANGE, TRUE); p->strIn1 = butTextin_create(newIn1, gs, gs->win, 1, BUT_DRAWABLE, str_chars(&p->progName), 500); p->strDesc2 = butText_create(gs->win, 1, BUT_DRAWABLE, msg_port, butText_center); butText_setColor(p->strDesc2, BUT_NOCHANGE, TRUE); p->strIn2 = butTextin_create(newIn2, gs, gs->win, 1, BUT_DRAWABLE, port, 100); p->type = -1; newType(p->typeMenu, clpEntry_getInt(p->optionEntry)); } return(gs); } void gmpSetup_destroy(GmpSetup *gs) { assert(MAGIC(gs)); if (gs->win) { butWin_setDestroy(gs->win, NULL); butWin_destroy(gs->win); } str_deinit(&gs->players[goStone_white].progName); str_deinit(&gs->players[goStone_black].progName); str_deinit(&gs->players[goStone_white].devName); str_deinit(&gs->players[goStone_black].devName); MAGIC_UNSET(gs); wms_free(gs); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { GmpSetup *gs = butWin_packet(win); Cgoban *cg; int w, h; int bw, fh; ButEnv *env; int boxX, boxY, boxW, boxH, butX, butW, butY; GoStone s; GmpSetupPlayer *p; assert(MAGIC(gs)); cg = gs->cg; assert(MAGIC(cg)); env = cg->env; bw = butEnv_stdBw(env); fh = cg->fontH; w = butWin_w(win); h = butWin_h(win); but_resize(gs->bg, 0,0, w,h); butText_resize(gs->title, w/2,bw*2, fh*2); boxX = bw; boxY = bw * 3 + fh * 2; boxH = h - bw * 6 - fh * 4; goStoneIter(s) { p = &gs->players[s]; boxW = (w - bw * 2 + (int)s) / 2; but_resize(p->box, boxX, boxY, boxW, boxH); butX = boxX + bw * 2; butW = boxW - bw * 4; butY = boxY + bw * 2; boxX += boxW; but_resize(p->typeMenu, butX, butY, butW, fh * 4); butY += fh * 4 + bw; but_resize(p->strDesc1, butX, butY, butW, fh * 2); butY += fh * 2 + bw; but_resize(p->strIn1, butX, butY, butW, fh * 2); butY += fh * 2 + bw; but_resize(p->strDesc2, butX, butY, butW, fh * 2); butY += fh * 2 + bw; but_resize(p->strIn2, butX, butY, butW, fh * 2); } boxX = bw * 2; boxW = (w - bw * 6) / 3; but_resize(gs->help, boxX, boxY + boxH + bw, boxW, fh * 2); boxX += boxW + bw; boxW = (w - bw * 6) / 3 + ((w - bw * 6) % 3); but_resize(gs->cancel, boxX, boxY + boxH + bw, boxW, fh * 2); boxX += boxW + bw; boxW = (w - bw * 6) / 3; but_resize(gs->ok, boxX, boxY + boxH + bw, boxW, fh * 2); return(0); } static ButOut destroy(ButWin *win) { GmpSetup *gs = butWin_packet(win); assert(MAGIC(gs)); gs->win = NULL; /* It's dead already. */ if (!gs->gameWaiting) { gmpSetup_destroy(gs); } return(0); } /* * Callback for when "OK" is pressed in the setup window. * It starts up the game setup dialogue, which asks for handicap, time * controls, etc. */ static ButOut okPressed(But *but) { GmpSetup *gs; GoStone s; GmpSetupPlayer *p; bool needSetup = TRUE; CliServer server = cliServer_nngs; const char *userName = NULL, *password = NULL; gs = but_packet(but); assert(MAGIC(gs)); goStoneIter(s) { p = &gs->players[s]; if (but_getFlags(p->strIn1) & BUT_PRESSABLE) { if (newIn1(p->strIn1, butTextin_get(p->strIn1)) & BUTOUT_ERR) return(BUTOUT_ERR); } if (but_getFlags(p->strIn2) & BUT_PRESSABLE) { if (newIn2(p->strIn2, butTextin_get(p->strIn2)) & BUTOUT_ERR) return(BUTOUT_ERR); } if ((p->type == gmpSetup_nngs) || (p->type == gmpSetup_igs)) { if (p->type == gmpSetup_nngs) server = cliServer_nngs; else server = cliServer_igs; needSetup = FALSE; userName = butTextin_get(p->strIn1); password = butTextin_get(p->strIn2); } } if (needSetup) { gs->gameWaiting = TRUE; butWin_destroy(gs->win); gameSetup_create(gs->cg, gotGameSetup, gs); } else { /* You need to connect to the server! */ if (gs->players[goStone_white].type == gmpSetup_program) gmpClient_create(gs->cg, str_chars(&gs->players[goStone_white].progName), server, userName, password); else gmpClient_create(gs->cg, str_chars(&gs->players[goStone_black].progName), server, userName, password); gmpSetup_destroy(gs); } return(0); } static void gotGameSetup(void *packet, GameSetup *gameSetup) { int inFiles[2], outFiles[2], pids[2]; GmpSetup *gs = packet; GoStone s; GmpSetupPlayer *p; bool valid = TRUE; Str error; struct termios newTty; assert(MAGIC(gs)); if (gameSetup) { if (gameSetup_size(gameSetup) > 22) { cgoban_createMsgWindow(gs->cg, "Cgoban Error", msg_gmpTooBig); valid = FALSE; } else { goStoneIter(s) { p = &gs->players[s]; switch(p->type) { case gmpSetup_program: pids[s] = gmp_forkProgram(gs->cg, &inFiles[s], &outFiles[s], str_chars(&p->progName), gameSetup->mainTime, gameSetup->byTime); if (pids[s] < 0) { str_init(&error); str_print(&error, msg_progRunErr, strerror(errno), str_chars(&p->progName)); cgoban_createMsgWindow(gs->cg, "Cgoban Error", str_chars(&error)); str_deinit(&error); valid = FALSE; } break; case gmpSetup_device: pids[s] = -1; inFiles[s] = outFiles[s] = open(str_chars(&p->devName), O_RDWR | O_NDELAY); if (inFiles[s] < 0) { str_init(&error); str_print(&error, msg_devOpenErr, strerror(errno), str_chars(&p->devName)); cgoban_createMsgWindow(gs->cg, "Cgoban Error", str_chars(&error)); str_deinit(&error); valid = FALSE; } if (isatty(inFiles[s])) { newTty.c_cflag = B2400 | CREAD | CLOCAL | CS8; newTty.c_iflag = 0; newTty.c_oflag = 0; newTty.c_lflag = 0; bzero(newTty.c_cc, NCCS); tcsetattr(inFiles[s], TCSANOW, &newTty); } break; case gmpSetup_human: inFiles[s] = outFiles[s] = -1; pids[s] = -1; break; case gmpSetup_local: case gmpSetup_remote: default: assert(0); break; } } } if (valid) { gmpPlay_create(gs->cg, inFiles, outFiles, pids, gameSetup_rules(gameSetup), gameSetup_size(gameSetup), gameSetup_handicap(gameSetup), gameSetup_komi(gameSetup), gameSetup_wName(gameSetup), gameSetup_bName(gameSetup), gameSetup_timeType(gameSetup), gameSetup_mainTime(gameSetup), gameSetup_byTime(gameSetup), gameSetup_timeAux(gameSetup)); } } gmpSetup_destroy(gs); } static ButOut cancelPressed(But *but) { GmpSetup *gs = but_packet(but); assert(MAGIC(gs)); butWin_destroy(gs->win); return(0); } static ButOut newType(But *but, int newVal) { GmpSetup *gs; GoStone color; GmpSetupPlayer *p; gs = but_packet(but); assert(MAGIC(gs)); if (but == gs->players[goStone_white].typeMenu) { color = goStone_white; } else { assert(but == gs->players[goStone_black].typeMenu); color = goStone_black; } p = &gs->players[color]; if (p->type == (GmpSetupType)newVal) return(0); p->type = (GmpSetupType)newVal; clpEntry_setInt(p->optionEntry, newVal); switch((GmpSetupType)newVal) { case gmpSetup_program: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_program); butTextin_set(p->strIn1, str_chars(&p->progName), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, TRUE); but_setFlags(p->strIn2, BUT_NOPRESS); break; case gmpSetup_device: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_device); butTextin_set(p->strIn1, str_chars(&p->devName), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, TRUE); but_setFlags(p->strIn2, BUT_NOPRESS); break; case gmpSetup_human: butText_setColor(p->strDesc1, BUT_NOCHANGE, TRUE); but_setFlags(p->strIn1, BUT_NOPRESS); butText_setColor(p->strDesc2, BUT_NOCHANGE, TRUE); but_setFlags(p->strIn2, BUT_NOPRESS); break; case gmpSetup_nngs: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_username); butTextin_set(p->strIn1, clp_getStr(gs->cg->clp, "gmp.nngs.username"), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, FALSE); butText_set(p->strDesc2, msg_password); but_setFlags(p->strIn2, BUT_DRAWABLE|BUT_PRESSABLE); butTextin_set(p->strIn2, clp_getStr(gs->cg->clp, "gmp.nngs.password"), FALSE); butTextin_setHidden(p->strIn2, TRUE); break; case gmpSetup_igs: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_username); butTextin_set(p->strIn1, clp_getStr(gs->cg->clp, "gmp.igs.username"), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, FALSE); butText_set(p->strDesc2, msg_password); but_setFlags(p->strIn2, BUT_DRAWABLE|BUT_PRESSABLE); butTextin_set(p->strIn2, clp_getStr(gs->cg->clp, "gmp.igs.password"), FALSE); butTextin_setHidden(p->strIn2, TRUE); break; case gmpSetup_local: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_port); butTextin_set(p->strIn1, clp_getStr(gs->cg->clp, "gmp.port"), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, TRUE); but_setFlags(p->strIn2, BUT_NOPRESS); break; case gmpSetup_remote: butText_setColor(p->strDesc1, BUT_NOCHANGE, FALSE); butText_set(p->strDesc1, msg_machineName); butTextin_set(p->strIn1, clp_getStr(gs->cg->clp, "gmp.machine"), FALSE); but_setFlags(p->strIn1, BUT_PRESSABLE); butText_setColor(p->strDesc2, BUT_NOCHANGE, FALSE); butText_set(p->strDesc2, msg_port); but_setFlags(p->strIn2, BUT_DRAWABLE|BUT_PRESSABLE); butTextin_set(p->strIn2, clp_getStr(gs->cg->clp, "gmp.port"), FALSE); butTextin_setHidden(p->strIn2, FALSE); break; } if (!isGmpType[gs->players[goStone_white].type] && !isGmpType[gs->players[goStone_black].type]) { but_setFlags(gs->ok, BUT_NOPRESS); } else { but_setFlags(gs->ok, BUT_PRESSABLE); } return(0); } static ButOut newIn1(But *but, const char *value) { GmpSetup *gs = but_packet(but); GoStone color; GmpSetupPlayer *p; Str errorMsg; assert(MAGIC(gs)); but_setFlags(but, BUT_NOKEY); if (but == gs->players[goStone_white].strIn1) { color = goStone_white; } else { assert(but == gs->players[goStone_black].strIn1); color = goStone_black; } p = &gs->players[color]; switch(p->type) { case gmpSetup_program: clpEntry_setStr(p->progNameEntry, value); str_copyChars(&p->progName, value); break; case gmpSetup_device: clpEntry_setStr(p->devNameEntry, value); str_copyChars(&p->devName, value); break; case gmpSetup_nngs: clp_setStr(gs->cg->clp, "gmp.nngs.username", value); break; case gmpSetup_igs: clp_setStr(gs->cg->clp, "gmp.igs.username", value); break; case gmpSetup_local: if (!clp_setStr(gs->cg->clp, "gmp.port", value)) { str_init(&errorMsg); str_print(&errorMsg, msg_badPortNum, value); cgoban_createMsgWindow(gs->cg, "Cgoban Error", str_chars(&errorMsg)); str_deinit(&errorMsg); return(BUTOUT_ERR); } break; case gmpSetup_remote: clp_setStr(gs->cg->clp, "gmp.machine", value); break; default: assert(0); break; } return(0); } static ButOut newIn2(But *but, const char *value) { GmpSetup *gs = but_packet(but); GoStone color; GmpSetupPlayer *p; Str errorMsg; assert(MAGIC(gs)); but_setFlags(but, BUT_NOKEY); if (but == gs->players[goStone_white].strIn2) { color = goStone_white; } else { assert(but == gs->players[goStone_black].strIn2); color = goStone_black; } p = &gs->players[color]; switch(p->type) { case gmpSetup_nngs: clp_setStr(gs->cg->clp, "gmp.nngs.password", value); break; case gmpSetup_igs: clp_setStr(gs->cg->clp, "gmp.igs.password", value); break; case gmpSetup_remote: if (!clp_setStr(gs->cg->clp, "gmp.port", value)) { str_init(&errorMsg); str_print(&errorMsg, msg_badPortNum, value); cgoban_createMsgWindow(gs->cg, "Cgoban Error", str_chars(&errorMsg)); str_deinit(&errorMsg); return(BUTOUT_ERR); } break; default: assert(0); break; } return(0); } goban-1.1.orig/src/client_setup.h0000644000175000017500000000216410270065364014616 0ustar alal/* * src/client/setup.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_SETUP_H_ #define _CLIENT_SETUP_H_ 1 #ifndef _CGOBAN_H_ #include "../cgoban.h" #endif #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _CLIENT_SERVER_H_ #include "server.h" #endif /********************************************************************** * Data Types **********************************************************************/ typedef struct CliSetup_struct { CliData *cd; AbutMsg *login; int serverNum; ClpEntry *userClp, *passwordClp; MAGIC_STRUCT } CliSetup; /********************************************************************** * Functions **********************************************************************/ extern CliSetup *cliSetup_create(Cgoban *cg, int serverNum); extern void cliSetup_createGmp(Cgoban *cg, int serverNum, const char *username, const char *password, const CliActions *actions, void *packet); extern void cliSetup_destroy(CliSetup *c); #endif /* _CLIENT_SETUP_H_ */ goban-1.1.orig/src/net.c0000644000175000017500000005207510270071403012676 0ustar alal/* * wmslib/src/but/net.c, part of wmslib (Library functions) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #if X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #if HAVE_SOCKETS #include #if HAVE_NETINET_IN_H #include #endif #if HAVE_SYS_IN_H #include #endif #if HAVE_SYS_INET_H #include #endif #include #if HAVE_ARPA_NAMESER_H #include #endif #if HAVE_RESOLV_H #include #endif #if HAVE_SYS_UTSNAME_H #include #endif #include #endif /* HAVE_SOCKETS */ #include #include #include #include #if HAVE_SOCKETS /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut newConn(void *packet, int fd); static ButRnet *newRnet(ButEnv *env); static ButOut getNetData(void *packet, int fd); static ButOut finishWrite(void *packet, int fd); static void putProtoWho(ButRnet *net); static void butRnet_close(ButRnet *net, const char *reason, bool forced); static bool butRnet_write(ButRnet *net, ButNetMsg *msg); static void butRnet_sendMMove(ButRnet *net, int winId, int lx, int ly, int lw, int lh, ButCur type); static void newFlags(ButRnet *net, int id, uint newFlags); static ButOut butSpec(ButEnv *env, int butId, void *buf, int bufLen); /********************************************************************** * Functions **********************************************************************/ ButLnet *butLnet_create(ButEnv *env, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)) { ButLnet *net = wms_malloc(sizeof(ButLnet)); struct sockaddr_in sa; MAGIC_SET(net); net->env = env; net->packet = packet; net->valid = net->error = FALSE; net->fd = socket(AF_INET, SOCK_STREAM, 0); net->ocallback = ocallback; net->callback = callback; net->ccallback = ccallback; if (net->fd == -1) { net->error = TRUE; net->errNum = errno; return(net); } sa.sin_family = AF_INET; sa.sin_addr.s_addr = INADDR_ANY; sa.sin_port = htons(port); if (bind(net->fd, (struct sockaddr *)&sa, sizeof(sa)) != 0) { net->error = TRUE; net->errNum = errno; close(net->fd); return(net); } if (listen(net->fd, 2) != 0) { net->error = TRUE; net->errNum = errno; close(net->fd); return(net); } butEnv_addFile(env, BUT_READFILE, net->fd, net, newConn); net->valid = TRUE; return(net); } ButRnet *butRnet_create(ButEnv *env, const char *address, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)) { ButRnet *net; struct sockaddr_in sa; struct hostent *hp; net = newRnet(env); net->packet = packet; net->state = butRnetState_closed; net->error = net->lookupError = net->butNetError = FALSE; net->ocallback = ocallback; net->callback = callback; net->ccallback = ccallback; if ((net->fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { net->error = TRUE; net->errNum = errno; return(net); } sa.sin_family = AF_INET; if ((hp = gethostbyname(address)) == NULL) { net->lookupError = TRUE; #if HAVE_H_ERRNO net->errNum = h_errno; #else net->errNum = HOST_NOT_FOUND; #endif return(net); } memcpy(&sa.sin_addr, hp->h_addr, hp->h_length); sa.sin_port = htons(port); if (connect(net->fd, (struct sockaddr *)&sa, sizeof(sa)) < 0) { net->error = TRUE; net->errNum = errno; return(net); } net->state = butRnetState_pwWait; fcntl(net->fd, F_SETFL, O_NONBLOCK); putProtoWho(net); butEnv_addFile(net->env, BUT_READFILE, net->fd, net, getNetData); return(net); } void butRnet_accept(ButRnet *net) { assert(net->state == butRnetState_accWait); net->state = butRnetState_open; net->lType = net->env->curlast; net->env->curlast = butCur_bogus; /* Force the cursor type to be sent. */ putProtoWho(net); } void butLnet_destroy(ButLnet *net) { assert(MAGIC(net)); if (net->valid) { close(net->fd); butEnv_rmFile(net->env, BUT_READFILE, net->fd); } MAGIC_UNSET(net); wms_free(net); } void butRnet_destroy(ButRnet *net, const char *reason) { ButNetMsg msgOut; assert(MAGIC(net)); if (net->state < butRnetState_closing) { msgOut.type = int_stdInt32(BUTNET_CLOSE); msgOut.length = int_stdInt32(2*4+strlen(reason)+1); strcpy(msgOut.perType.close, reason); butRnet_write(net, &msgOut); butRnet_close(net, NULL, FALSE); } } static ButOut newConn(void *packet, int fd) { ButLnet *lnet = packet; ButRnet *rnet; struct sockaddr_in addr; int addrlen = sizeof(addr); assert(MAGIC(lnet)); rnet = newRnet(lnet->env); rnet->fd = accept(lnet->fd, (struct sockaddr *)&addr, &addrlen); if (rnet->fd < 0) { rnet->env->partners[rnet->partner] = NULL; MAGIC_UNSET(rnet); wms_free(rnet); return(0); } rnet->packet = lnet->packet; rnet->ocallback = lnet->ocallback; rnet->callback = lnet->callback; rnet->ccallback = lnet->ccallback; fcntl(rnet->fd, F_SETFL, O_NONBLOCK); rnet->state = butRnetState_pwAccWait; butEnv_addFile(rnet->env, BUT_READFILE, rnet->fd, rnet, getNetData); return(0); } static ButRnet *newRnet(ButEnv *env) { ButRnet *net = wms_malloc(sizeof(ButRnet)); int newNumPartners, i, partner; ButRnet **newPartners; MAGIC_SET(net); for (partner = 0; partner < env->numPartners; ++partner) { if (!env->partners[partner]) break; } if (partner == env->numPartners) { newNumPartners = (env->numPartners + 1) * 2; newPartners = wms_malloc(newNumPartners * sizeof(ButRnet *)); for (i = 0; i < env->numPartners; ++i) { newPartners[i] = env->partners[i]; } for (; i < newNumPartners; ++i) newPartners[i] = NULL; if (env->partners) wms_free(env->partners); env->numPartners = newNumPartners; env->partners = newPartners; } env->partners[partner] = net; net->partner = partner; net->env = env; net->error = FALSE; net->wBufSize = net->wBufStart = net->wBufLen = 0; net->wBuffer = NULL; net->rBufAmt = 0; net->rBufLen = BUTNET_MAXCMD * 2 + 2; net->fd = -1; net->ackNeeded = net->mouseMove = FALSE; net->who = "Unknown"; net->protocol = "Unknown"; if ((env->last_mwin) && (env->last_mx >= 0)) { assert(MAGIC(env->last_mwin)); net->lWinId = env->last_mwin->id; net->lx = env->last_mx; net->ly = env->last_my; net->lw = env->last_mwin->w; net->lh = env->last_mwin->h; net->lType = env->curnum; } else net->lWinId = -2; net->lPress = net->lTwitch = -1; butRcur_create(&net->rc, net->env); return(net); } /* Returns TRUE if success. */ static bool butRnet_write(ButRnet *net, ButNetMsg *msg) { int len = stdInt32_int(msg->length) + 8; int amtWritten; char *remainder = (char *)msg; assert(MAGIC(net)); if (net->wBufLen == 0) { /* Nothing queued up. Try to write directly! */ amtWritten = write(net->fd, msg, len); if (amtWritten == len) return(TRUE); if (amtWritten < 0) { butRnet_close(net, strerror(errno), TRUE); return(FALSE); } remainder += amtWritten; len -= amtWritten; } /* Not all got written. Put some into the wBuffer. */ if (len + net->wBufStart + net->wBufLen > net->wBufSize) { char *newBuf; newBuf = wms_malloc(net->wBufSize = len + net->wBufStart + net->wBufLen); if (net->wBufLen) memcpy(newBuf, net->wBuffer+net->wBufStart, net->wBufLen); net->wBufStart = 0; if (net->wBuffer) wms_free(net->wBuffer); net->wBuffer = newBuf; } memcpy(remainder, net->wBuffer + net->wBufStart + net->wBufLen, len); net->wBufLen += len; butEnv_addFile(net->env, BUT_WRITEFILE, net->fd, net, finishWrite); return(TRUE); } static ButOut finishWrite(void *packet, int fd) { ButRnet *net = packet; int amtWritten; assert(MAGIC(net)); amtWritten = write(net->fd, net->wBuffer + net->wBufStart, net->wBufLen); if (amtWritten == net->wBufLen) { butEnv_rmFile(net->env, BUT_WRITEFILE, net->fd); net->wBufLen = 0; net->wBufStart = 0; if (net->state == butRnetState_closing) { close(net->fd); net->fd = -1; MAGIC_UNSET(net); wms_free(net); } } else if (amtWritten < 0) { butRnet_close(net, strerror(errno), TRUE); return(0); } else { net->wBufStart += amtWritten; net->wBufLen -= amtWritten; } return(0); } static ButOut getNetData(void *packet, int fd) { ButRnet *net = packet; int readLen, i, msgType; ButOut res = 0; char *temp; assert(MAGIC(net)); if (net->rBufAmt < 4) { /* Waiting for the length count. */ readLen = read(fd, (char *)&net->rBuffer + net->rBufAmt, 4 - net->rBufAmt); if (readLen <= 0) { if (readLen == 0) butRnet_close(net, "Connection closed", TRUE); else if ((readLen < 0) && (errno != EAGAIN)) butRnet_close(net, strerror(errno), TRUE); return(res); } if ((net->rBufAmt += readLen) < 4) return(0); net->rBufMsgLen = stdInt32_int(net->rBuffer.length); if (net->rBufMsgLen > BUTNET_MAXCMD) { fprintf(stderr, "Bogus command\n"); for (;;); } net->rBufMsgLen += 8; return(0); } if ((net->rBufMsgLen > BUTNET_MAXCMD+8) || (net->rBufMsgLen < 8)) { butRnet_close(net, "Invalid data on connection", TRUE); return(res); } readLen = read(fd, (char *)&net->rBuffer + net->rBufAmt, net->rBufMsgLen - net->rBufAmt); if (readLen <= 0) { if (readLen == 0) butRnet_close(net, "Connection closed", TRUE); else if ((readLen < 0) && (errno != EAGAIN)) butRnet_close(net, strerror(errno), TRUE); return(res); } net->rBufAmt += readLen; if (net->rBufAmt == net->rBufMsgLen) { msgType = stdInt32_int(net->rBuffer.type); net->rBufAmt = 0; switch(msgType) { case BUTNET_PROTOWHO: if (net->state == butRnetState_pwWait) { net->state = butRnetState_open; /* Force the cursor type to be sent. */ net->lType = net->env->curlast; net->env->curlast = butCur_bogus; } else if (net->state == butRnetState_pwAccWait) { net->state = butRnetState_accWait; } else { butRnet_close(net, "Invalid data on connection", TRUE); break; } if (net->rBufMsgLen != sizeof(net->rBuffer.perType.protoWho) + 8) { butRnet_close(net, "Invalid data on connection", TRUE); break; } net->rmtPartner = stdInt32_int(net->rBuffer.perType.protoWho.context); temp = wms_malloc(i = (strlen(net->rBuffer.perType.protoWho.proto) + 1)); strcpy(temp, net->rBuffer.perType.protoWho.proto); net->protocol = temp; temp = wms_malloc(strlen(net->rBuffer.perType.protoWho.who) + 1); strcpy(temp, net->rBuffer.perType.protoWho.who); net->who = temp; return(net->ocallback(net)); break; case BUTNET_CLOSE: butRnet_close(net, net->rBuffer.perType.close, FALSE); break; case BUTNET_USERDATA: if (net->callback) return(net->callback(net, net->rBuffer.perType.userData, stdInt32_int(net->rBuffer.length))); break; case BUTNET_MOUSE: if (net->rBufMsgLen != sizeof(net->rBuffer.perType.mouse) + 8) { butRnet_close(net, "Invalid data on connection", TRUE); break; } butRcur_move(&net->rc, stdInt32_int(net->rBuffer.perType.mouse.win), stdInt32_int(net->rBuffer.perType.mouse.x), stdInt32_int(net->rBuffer.perType.mouse.y), stdInt32_int(net->rBuffer.perType.mouse.w), stdInt32_int(net->rBuffer.perType.mouse.h), stdInt32_int(net->rBuffer.perType.mouse.type)); net->rBuffer.length = int_stdInt32(0); net->rBuffer.type = int_stdInt32(BUTNET_MOUSEACK); butRnet_write(net, &net->rBuffer); break; case BUTNET_MOUSEACK: if (net->rBufMsgLen != 8) { butRnet_close(net, "Invalid data on connection", TRUE); break; } net->ackNeeded = FALSE; if (net->mouseMove) { net->mouseMove = FALSE; butRnet_sendMMove(net, -1, -1,-1, -1,-1, -1); } break; case BUTNET_NEWFLAGS: if (net->rBufMsgLen != sizeof(net->rBuffer.perType.newFlags) + 8) { butRnet_close(net, "Invalid data on connection", TRUE); break; } newFlags(net, stdInt32_int(net->rBuffer.perType.newFlags.butId), stdInt32_int(net->rBuffer.perType.newFlags.newFlags)); break; case BUTNET_BUTSPEC: res |= butSpec(net->env, stdInt32_int(net->rBuffer.perType.butSpec.butId), net->rBuffer.perType.butSpec.butData, stdInt32_int(net->rBuffer.length) - sizeof(StdInt32)); break; default: butRnet_close(net, "Invalid data on connection", TRUE); break; } } return(res); } static void newFlags(ButRnet *net, int id, uint newFlags) { ButEnv *env = net->env; But *but; if (id < env->maxButIds) { but = env->id2But[id]; if (but) { if (newFlags & BUT_PRESSED) net->lPress = id; else if (net->lPress == id) net->lPress = -1; if (newFlags & BUT_TWITCHED) net->lTwitch = id; else if (net->lTwitch == id) net->lTwitch = -1; but_newFlags(but, (newFlags & (BUT_NETMASK<flags & ~(BUT_NETMASK<env; ButNetMsg protoOut; assert(MAGIC(net)); protoOut.length = int_stdInt32(sizeof(protoOut.perType.protoWho)); protoOut.type = int_stdInt32(BUTNET_PROTOWHO); #if HAVE_SYS_UTSNAME_H uname(&unameOut); #endif if ((loginName = getlogin()) == NULL) { pw = getpwuid(getuid()); loginName = pw->pw_name; } strcpy(protoOut.perType.protoWho.proto, env->protocol); protoOut.perType.protoWho.proto[sizeof(protoOut.perType.protoWho.proto) - 1] = '\0'; sprintf(protoOut.perType.protoWho.who, "%s@%s", loginName, #if HAVE_SYS_UTSNAME_H unameOut.nodename #else "unknown" #endif ); butRnet_write(net, &protoOut); } static void butRnet_close(ButRnet *net, const char *reason, bool force) { ButEnv *env = net->env; assert(MAGIC(net)); if (net->lPress != -1) { if (env->id2But[net->lPress]) { but_newFlags(env->id2But[net->lPress], env->id2But[net->lPress]->flags & ~BUT_NETPRESS); } } if (net->lTwitch != -1) { if (env->id2But[net->lTwitch]) { but_newFlags(env->id2But[net->lTwitch], env->id2But[net->lTwitch]->flags & ~BUT_NETTWITCH); } } if (net->state < butRnetState_closing) { if (reason && net->ccallback) net->ccallback(net, reason); net->state = butRnetState_closing; butEnv_rmFile(net->env, BUT_READFILE, net->fd); if (force || (net->wBufLen == 0)) { close(net->fd); net->fd = -1; if (net->wBufLen != 0) butEnv_rmFile(net->env, BUT_WRITEFILE, net->fd); } } net->env->partners[net->partner] = NULL; MAGIC_UNSET(net); wms_free(net); } void butRnet_send(ButRnet *net, void *buffer, int len) { ButNetMsg msg; assert(len <= BUTNET_MAXCMD); msg.length = int_stdInt32(len); msg.type = int_stdInt32(BUTNET_USERDATA); memcpy(msg.perType.userData, buffer, len); butRnet_write(net, &msg); } void butRnet_mMove(ButEnv *env, int winId, int lx,int ly, int lw,int lh, ButCur curnum) { int i; for (i = 0; i < env->numPartners; ++i) { if (env->partners[i]) { if (butRnet_valid(env->partners[i]) && ((winId != -2) || (env->partners[i]->lWinId != -2))) butRnet_sendMMove(env->partners[i], winId, lx,ly, lw,lh, curnum); } } } static void butRnet_sendMMove(ButRnet *net, int winId, int lx, int ly, int lw, int lh, ButCur curnum) { ButNetMsg msg; if (winId == -1) winId = net->lWinId; if (lx == -1) lx = net->lx; if (ly == -1) ly = net->ly; if (lw == -1) lw = net->lw; if (lh == -1) lh = net->lh; if (curnum == -1) curnum = net->lType; net->lWinId = winId; net->lx = lx; net->ly = ly; net->lw = lw; net->lh = lh; net->lType = curnum; if (net->ackNeeded) net->mouseMove = TRUE; else { msg.length = int_stdInt32(sizeof(msg.perType.mouse)); msg.type = int_stdInt32(BUTNET_MOUSE); msg.perType.mouse.context = int_stdInt32(0); msg.perType.mouse.win = int_stdInt32(winId); msg.perType.mouse.x = int_stdInt32(lx); msg.perType.mouse.y = int_stdInt32(ly); msg.perType.mouse.w = int_stdInt32(lw); msg.perType.mouse.h = int_stdInt32(lh); msg.perType.mouse.type = int_stdInt32(curnum); assert((curnum == -1) || (curnum < butCur_bogus)); butRnet_write(net, &msg); } } void butRnet_newFlags(ButEnv *env, int butId, uint newFlags) { int i; ButNetMsg msg; if ((butId != -2) && (env->numPartners > 0)) { assert(butId >= 0); assert(butId < env->maxButIds); newFlags = (newFlags & ~(BUT_NETTWITCH|BUT_NETPRESS|BUT_NETKEY)) | ((newFlags & BUT_NETMASK) << BUT_NETSHIFT); msg.length = int_stdInt32(sizeof(msg.perType.newFlags)); msg.type = int_stdInt32(BUTNET_NEWFLAGS); msg.perType.newFlags.butId = int_stdInt32(butId); msg.perType.newFlags.newFlags = int_stdInt32(newFlags); for (i = 0; i < env->numPartners; ++i) { if (env->partners[i]) if (butRnet_valid(env->partners[i])) butRnet_write(env->partners[i], &msg); } } } static ButOut butSpec(ButEnv *env, int butId, void *buf, int bufLen) { But *but; but = env->id2But[butId]; assert(but->action->netMessage); return(but->action->netMessage(but, buf, bufLen)); } #else /* !HAVE_SOCKETS */ ButLnet *butLnet_create(ButEnv *env, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)) { ButLnet *net = wms_malloc(sizeof(ButLnet)); net->error = TRUE; net->valid = FALSE; net->errNum = EPERM; return(net); } ButRnet *butRnet_create(ButEnv *env, char *address, int port, void *packet, ButOut ocallback(ButRnet *net), ButOut callback(ButRnet *net, void *cmd, int cmdLen), ButOut ccallback(ButRnet *net, const char *reason)) { ButRnet *net = wms_malloc(sizeof(ButRnet)); net->error = TRUE; net->errNum = EPERM; net->state = butRnetState_closed; return(net); } void butLnet_destroy(ButLnet *net) { wms_free(net); } void butRnet_destroy(ButRnet *net, char *reason) { wms_free(net); } bool butRnet_write(ButRnet *net, ButNetMsg *msg) { return(FALSE); } void butRnet_send(ButRnet *net, void *buffer, int len) {} void butRnet_mMove(ButEnv *env, int winId, int lx,int ly, int lw,int lh, ButCur curnum) {} void butRnet_newFlags(ButEnv *env, int butId, uint newFlags) {} void butRnet_accept(ButRnet *net) {} #endif /* HAVE_SOCKETS */ void but_setId(But *but, int id) { ButEnv *env = but->win->env; int i; assert(MAGIC(but)); if (id >= env->maxButIds) { But **newId2But; int newMaxButIds = (id + 1)*2; newId2But = wms_malloc(newMaxButIds * sizeof(But *)); for (i = 0; i < env->maxButIds; ++i) newId2But[i] = env->id2But[i]; for (; i < newMaxButIds; ++i) newId2But[i] = NULL; env->maxButIds = newMaxButIds; if (env->id2But) wms_free(env->id2But); env->id2But = newId2But; } if (but->id != -1) { assert(but->id < env->maxButIds); env->id2But[id] = NULL; } env->id2But[id] = but; but->id = id; } void butWin_setId(ButWin *win, int id) { ButEnv *env = win->env; int i; assert(MAGIC(win)); if (id >= env->maxWinIds) { ButWin **newId2Win; int newMaxWinIds = (id + 1)*2; newId2Win = wms_malloc(newMaxWinIds * sizeof(ButWin *)); for (i = 0; i < env->maxWinIds; ++i) newId2Win[i] = env->id2Win[i]; for (; i < newMaxWinIds; ++i) newId2Win[i] = NULL; env->maxWinIds = newMaxWinIds; if (env->id2Win) wms_free(env->id2Win); env->id2Win = newId2Win; } if (win->id != -1) { assert(win->id < env->maxWinIds); env->id2Win[id] = NULL; } env->id2Win[id] = win; win->id = id; } void butRnet_butSpecSend(But *but, void *buffer, int len) { ButEnv *env; ButNetMsg msg; int i; assert(len < BUTNET_MAXCMD - sizeof(StdInt32)); if (but->id >= 0) { env = but->win->env; if (env->numPartners > 0) { msg.length = int_stdInt32(len + 4); msg.type = int_stdInt32(BUTNET_BUTSPEC); msg.perType.butSpec.butId = int_stdInt32(but->id); if (len > 0) memcpy(msg.perType.butSpec.butData, buffer, len); for (i = 0; i < env->numPartners; ++i) { if (env->partners[i]) { if (butRnet_valid(env->partners[i])) butRnet_write(env->partners[i], &msg); } } } } } #endif /* X11_DISP */ goban-1.1.orig/src/canvas.h0000644000175000017500000000242006042230657013367 0ustar alal/* * wmslib/include/but/canvas.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for canvas.c */ #ifndef _BUT_CANVAS_H_ #define _BUT_CANVAS_H_ 1 /********************************************************************** * Functions. **********************************************************************/ extern ButWin *butCan_create(void *packet, ButWin *parent, int layer, ButWinFunc *resize, ButWinFunc *destroy, void (*change)(void *packet, int xOff, int yOff, int w, int h, int viewW, int viewH)); /* Any values of BUT_NOCHANGE in this function will be left unchanged. */ extern void butCan_resizeView(ButWin *win, int x, int y, int w, int h, bool propagate); extern void butCan_slide(ButWin *win, int xOff, int yOff, bool propagate); extern void butCan_resizeWin(ButWin *win, int w, int h, bool propagate); #define butCan_xOff(win) ((win)->xOff) #define butCan_yOff(win) ((win)->yOff) extern void butCan_destroy(ButWin *can); /* Private. */ extern Window butCan_xWin(ButWin *win); extern void butCan_redrawn(ButWin *win, int x,int y, int w,int h); extern void butCan_winDead(ButWin *win); #endif /* _BUT_CANVAS_H_ */ goban-1.1.orig/src/abut_msg.c0000644000175000017500000002605610270061240013707 0ustar alal/* * src/msg.c, part of wmslib library * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include static ButOut unmap(ButWin *win); static ButOut wDestroy(ButWin *win); static ButOut resize(ButWin *win); static ButOut ok_pressed(But *but); static void checkNewSize(AbutMsg *mwin, ButWin *win); static void calcDims(Abut *abut, int fontNum, const char *text, int *w, int *h, int *textH, int numTins); static ButOut msg_resize(ButWin *win, AbutMsg *mwin); static void fillboxDead(But *but); /* * UseMsg is never accessed. We just need a void * guaranteed to be * different from any the user could pass us. */ static int useMsg = 0; AbutMsg *abutMsg_inCreate(Abut *a, ButWin *win, int layer, const char *text, void *packet, int numTins, const AbutMsgTin *tinList) { static AbutMsgOpt ok[1]; static ButKey ka_ok[] = {{XK_Return, 0, ShiftMask}, {XK_KP_Enter, 0, ShiftMask}, {0,0,0}}; ok[0].name = a->ok; ok[0].callback = ok_pressed; ok[0].keyEq = ka_ok; ok[0].packet = &useMsg; return(abutMsg_optInCreate(a, win, layer, text, NULL, NULL, 1, ok, numTins, tinList)); } AbutMsg *abutMsg_optInCreate(Abut *a, ButWin *win, int layer, const char *text, ButOut (*destroy)(void *packet), void *packet, int numButs, const AbutMsgOpt *optList, int numTins, const AbutMsgTin *tinList) { ButEnv *env; AbutMsg *mwin; int winW, winH; int i; void *butPacket; assert(MAGIC(a)); assert(a->env == butWin_env(win)); env = a->env; mwin = wms_malloc(sizeof(AbutMsg)); MAGIC_SET(mwin); mwin->abut = a; mwin->win = win; mwin->numButs = numButs; mwin->buts = wms_malloc(numButs * sizeof(But *)); mwin->numTins = numTins; mwin->tins = wms_malloc(numTins * sizeof(But *)); mwin->tinTitles = wms_malloc(numTins * sizeof(But *)); mwin->butDesc = optList; mwin->destroy = destroy; mwin->packet = packet; mwin->layer = layer; calcDims(a, 0, text, &winW, &winH, &mwin->textH, numTins); mwin->w = winW; mwin->h = winH; mwin->box = butBoxFilled_create(win, layer, BUT_DRAWABLE); but_setPacket(mwin->box, mwin); but_setDestroyCallback(mwin->box, fillboxDead); butBoxFilled_setColors(mwin->box, a->ulColor, a->lrColor, a->bgColor); butBoxFilled_setPixmaps(mwin->box, a->ulPixmap, a->lrPixmap, a->bgPixmap); mwin->text = butTblock_create(win, layer+1, BUT_DRAWABLE, text, butText_just); for (i = 0; i < numButs; ++i) { butPacket = optList[i].packet; if (butPacket == &useMsg) butPacket = mwin; mwin->buts[i] = butCt_create(optList[i].callback, butPacket, win, layer+1, BUT_DRAWABLE|BUT_PRESSABLE, optList[i].name); if (optList[i].keyEq) but_setKeys(mwin->buts[i], optList[i].keyEq); } for (i = 0; i < numTins; ++i) { if (tinList[i].name) mwin->tinTitles[i] = butText_create(win, layer+1, BUT_DRAWABLE, tinList[i].name, butText_left); else mwin->tinTitles[i] = NULL; mwin->tins[i] = butTextin_create(tinList[i].callback, packet, win, layer+1, BUT_DRAWABLE|BUT_PRESSABLE, tinList[i].def, 500); } if (butWin_w(win)) msg_resize(win, mwin); return(mwin); } AbutMsg *abutMsg_winInCreate(Abut *a, const char *title, const char *text, void *packet, int numTins, const AbutMsgTin *tinList) { static AbutMsgOpt ok[1]; static ButKey ka_ok[] = {{XK_Return, 0, ShiftMask|ControlMask}, {XK_KP_Enter, 0, ShiftMask|ControlMask}, {0, 0, 0}}; ok[0].name = a->ok; ok[0].callback = ok_pressed; ok[0].keyEq = ka_ok; ok[0].packet = &useMsg; return(abutMsg_winOptInCreate(a, title, text, NULL, NULL, 1, ok, numTins, tinList)); } AbutMsg *abutMsg_winOptInCreate(Abut *a, const char *title, const char *text, ButOut (*destroy)(void *packet), void *packet, int numButs, const AbutMsgOpt *optList, int numTins, const AbutMsgTin *tinList) { ButEnv *env; AbutMsg *mwin; ButWin *win; int winW, winH; int i; void *butPacket; assert(MAGIC(a)); env = a->env; mwin = wms_malloc(sizeof(AbutMsg)); MAGIC_SET(mwin); mwin->abut = a; mwin->numButs = numButs; mwin->buts = wms_malloc(numButs * sizeof(But *)); mwin->numTins = numTins; mwin->tins = wms_malloc(numTins * sizeof(But *)); mwin->tinTitles = wms_malloc(numTins * sizeof(But *)); mwin->butDesc = optList; mwin->destroy = destroy; mwin->packet = packet; mwin->layer = 0; calcDims(a, 0, text, &winW, &winH, &mwin->textH, numTins); mwin->w = winW; mwin->h = winH; mwin->win = win = butWin_create(mwin, env, title, winW, winH, unmap, NULL, resize, wDestroy); butWin_activate(win); mwin->box = butBoxFilled_create(win, 0, BUT_DRAWABLE); butBoxFilled_setColors(mwin->box, a->ulColor, a->lrColor, a->bgColor); butBoxFilled_setPixmaps(mwin->box, a->ulPixmap, a->lrPixmap, a->bgPixmap); mwin->text = butTblock_create(win, 1, BUT_DRAWABLE, text, butText_just); for (i = 0; i < numButs; ++i) { butPacket = optList[i].packet; if (butPacket == &useMsg) butPacket = mwin; mwin->buts[i] = butCt_create(optList[i].callback, butPacket, win, 1, BUT_DRAWABLE|BUT_PRESSABLE, optList[i].name); if (optList[i].keyEq) but_setKeys(mwin->buts[i], optList[i].keyEq); } for (i = 0; i < numTins; ++i) { mwin->tinTitles[i] = butText_create(win, 1, BUT_DRAWABLE, tinList[i].name, butText_left); mwin->tins[i] = butTextin_create(tinList[i].callback, packet, win, 1, BUT_DRAWABLE|BUT_PRESSABLE, tinList[i].def, 150); if (tinList[i].flags & abutMsgTinFlags_secret) { butTextin_setHidden(mwin->tins[i], TRUE); } } if (butWin_w(win)) msg_resize(win, mwin); return(mwin); } static ButOut unmap(ButWin *win) { butWin_destroy(win); return(0); } static ButOut wDestroy(ButWin *win) { AbutMsg *mwin = butWin_packet(win); ButOut result = 0; assert(MAGIC(mwin)); mwin->win = NULL; if (mwin->buts) { wms_free(mwin->buts); mwin->buts = NULL; } if (mwin->tins) { wms_free(mwin->tins); wms_free(mwin->tinTitles); mwin->tins = NULL; mwin->tinTitles = NULL; } if (mwin->destroy) result = mwin->destroy(mwin->packet); MAGIC_UNSET(mwin); wms_free(mwin); return(result); } static ButOut resize(ButWin *win) { return(msg_resize(win, butWin_packet(win))); } static ButOut msg_resize(ButWin *win, AbutMsg *mwin) { int x, y, w, h, buth; ButEnv *env = butWin_env(win); int bw = butEnv_stdBw(env); int butX, butW, i; int maxTinNameLen = 0, newLen; assert(MAGIC(mwin)); checkNewSize(mwin, win); x = (butWin_w(win) - mwin->w) / 2; y = (butWin_h(win) - mwin->h) / 2; w = mwin->w; h = mwin->h; buth = mwin->abut->butH; but_resize(mwin->box, x,y, w,h); butTblock_resize(mwin->text, x+bw*2, y+bw*2, w - bw*4); for (butX = bw*2, i = 0; i < mwin->numButs; ++i) { butW = (w-bw-butX + (mwin->numButs - i) / 2) / (mwin->numButs - i) - bw; but_resize(mwin->buts[i], x+butX, y+h-bw*2-buth, butW, buth); butX += butW + bw; } for (i = 0; i < mwin->numTins; ++i) { if (mwin->tinTitles[i]) { newLen = butText_resize(mwin->tinTitles[i], x + bw*2, y + h - (buth + bw)*(mwin->numTins - i + 1) - bw*2, buth) + bw; if (newLen > maxTinNameLen) maxTinNameLen = newLen; } } for (i = 0; i < mwin->numTins; ++i) { but_resize(mwin->tins[i], x + bw*2 + maxTinNameLen, y + h - (buth + bw)*(mwin->numTins - i + 1) - bw*2, w - bw*4 - maxTinNameLen, buth); } return(0); } static void checkNewSize(AbutMsg *mwin, ButWin *win) { ButEnv *env = butWin_env(win); int textH, butH; textH = butEnv_fontH(env, 0); butH = mwin->abut->butH; if (textH != mwin->textH) { calcDims(mwin->abut, 0, butTblock_getText(mwin->text), &mwin->w, &mwin->h, &mwin->textH, mwin->numTins); if (mwin->layer == 0) butWin_resize(win, mwin->w, mwin->h); } } static ButOut ok_pressed(But *but) { AbutMsg *msg; msg = but_packet(but); assert(MAGIC(msg)); if (msg->layer == 0) butWin_destroy(msg->win); else abutMsg_destroy(but_packet(but), TRUE); return(0); } void abutMsg_destroy(AbutMsg *msg, bool propagate) { int i; int x = 0, y = 0, w = 0, h = 0; assert(MAGIC(msg)); if (propagate == FALSE) { msg->destroy = NULL; } if (msg->box) { x = but_x(msg->box); y = but_y(msg->box); w = but_w(msg->box); h = but_h(msg->box); } if (msg->buts) { but_setPacket(msg->box, NULL); but_destroy(msg->box); but_destroy(msg->text); for (i = 0; i < msg->numButs; ++i) but_destroy(msg->buts[i]); for (i = 0; i < msg->numTins; ++i) { but_destroy(msg->tins[i]); but_destroy(msg->tinTitles[i]); } } if ((msg->layer == 0) && msg->win) butWin_destroy(msg->win); else { butWin_redraw(msg->win, x, y, w, h); MAGIC_UNSET(msg); wms_free(msg); } } static void calcDims(Abut *abut, int fontNum, const char *text, int *w, int *h, int *textHOut, int numTins) { ButEnv *env = abut->env; int textW, textH, butH, butSpc; int winW, winH, actualH, bw; double b, c; textW = butEnv_textWidth(env, text, fontNum); *textHOut = textH = butEnv_fontH(env, fontNum); butH = abut->butH; bw = butEnv_stdBw(env); butSpc = butH + bw; /* * This is based on the calculations: * winW = 2*winH * (winW - 4*bw) * (winH - (4*bw + butSpc*(numTins + 1))) = textW*textH * Solve for winW... * (winW - 4*bw) * (0.5*winW - 4*bw - butSpc*numTins - butSpc) = * textW*textH * 0.5*winW^2 - winW*(-4*bw-butSpc*numTins-butSpc-2*bw) + * 16*bw*bw+4*bw*butSpc*numTins+4*bw*butSpc - textW*textH = 0 * winW^2 - winW*(-12*bw-2*butSpc*numTins-2*butSpc) + * 32*bw*bw+8*bw*butSpc*numTins+8*bw*butSpc - 2*textW*textH = 0 * Using the quadratic equation, notice a is 1.0, and solve * winW = (-b+sqrt(b*b-4*a*c))/2*a */ b = (double)(-12 * bw - 2 * butSpc * numTins - 2 * butSpc); c = (double)(32*bw*bw + 8*bw*butSpc*numTins + 8*bw*butSpc - 2 * textW*textH); winW = (int)((-b + sqrt(b*b-4*c)) * 0.5 + 0.5); winH = winW / 2; if (winH < 2*textH + butSpc*(numTins + 1) + 4*butEnv_stdBw(env)) winH = 2*textH + butSpc*(numTins + 1) + 4*butEnv_stdBw(env); winW = winH * 2; actualH = butTblock_guessH(env, text, winW - 4*butEnv_stdBw(env), fontNum) + butSpc*(numTins + 1) + 4*butEnv_stdBw(env); if (actualH > winH) { winH = actualH; winW = 2*winH; } *w = winW; *h = winH; } static void fillboxDead(But *but) { AbutMsg *mwin; assert(MAGIC(but)); mwin = but_packet(but); if (mwin) { assert(MAGIC(mwin)); if (mwin->buts) { wms_free(mwin->buts); mwin->buts = NULL; } if (mwin->tins) { wms_free(mwin->tins); wms_free(mwin->tinTitles); mwin->tins = NULL; mwin->tinTitles = NULL; } mwin->box = mwin->text = NULL; mwin->win = NULL; } } goban-1.1.orig/src/editBoard.h0000644000175000017500000000274310270001467014012 0ustar alal/* * src/editBoard.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _EDITBOARD_H_ #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _SGF_H_ #include "sgf.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOBAN_H_ #include "goban.h" #endif #ifndef _EDITTOOL_H_ #include "editTool.h" #endif #ifndef _ABUT_FSEL_H_ #include #endif #ifndef _EDITINFO_H_ #include "editInfo.h" #endif #ifdef _EDITBOARD_H_ Levelization Error. #endif #define _EDITBOARD_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef struct EditBoard_struct { Cgoban *cg; Str fName; bool modified; AbutFsel *fsel; AbutMsg *reallyQuit; Sgf *sgf; int currentNodeNum; GoGame *game; Goban *goban; SgfElem *lastComment; EditToolWin tools; EditTool oldTool; But *shiftKeytrap, *prevVar, *nextVar; bool invertShift; /* Kludgey. :-( */ EditInfo *info; MAGIC_STRUCT } EditBoard; /********************************************************************** * Functions **********************************************************************/ EditBoard *editBoard_create(Cgoban *cg, const char *fName); EditBoard *editBoard_createSgf(Cgoban *cg, const Sgf *sgf); void editBoard_destroy(EditBoard *eb); #endif /* _EDITBOARD_H_ */ goban-1.1.orig/src/term.h0000644000175000017500000000267510267777722013114 0ustar alal/* * wmslib/src/abut/term.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. * * Includes for "term" scrolling terminal-like widgety thing. */ #ifndef _ABUT_TERM_H_ #define _ABUT_TERM_H_ 1 #ifndef _ABUT_ABUT_H_ #include #endif #ifndef _ABUT_SWIN_H_ #include #endif #ifndef _BUT_TBIN_H_ #include #endif /********************************************************************** * Data types **********************************************************************/ typedef enum { abutTermState_fastUp, abutTermState_slowUp, abutTermState_steady, abutTermState_slowDown, abutTermState_fastDown } AbutTermState; typedef struct AbutTerm_struct { Abut *abut; AbutSwin *swin; But *bg; But *tbin; AbutTermState state; MAGIC_STRUCT } AbutTerm; /********************************************************************** * Functions **********************************************************************/ extern AbutTerm *abutTerm_create(Abut *abut, ButWin *parent, int layer, bool editable); extern void abutTerm_destroy(AbutTerm *term); extern void abutTerm_resize(AbutTerm *term, int x, int y, int w, int h); extern void abutTerm_set(AbutTerm *term, const char *text); #define abutTerm_get(term) butTbin_get((term)->tbin) extern void abutTerm_append(AbutTerm *term, const char *appText); #endif /* _ABUT_TERM_H_ */ goban-1.1.orig/src/look.c0000644000175000017500000001322410270070111013040 0ustar alal/* * src/client/look.c, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #ifndef _MSG_H_ #include "msg.h" #endif #ifdef _CLIENT_LOOK_H_ LEVELIZATION ERROR #endif #include "look.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void gameReady(CliLook *look, int size); static GobanOut quit(void *packet); static void gobanDead(void *packet); static bool moveOk(void *packet); static void makeMoves(GoGame *game, const char *board, int size); /********************************************************************** * Functions **********************************************************************/ void cliLook_init(CliLook *look, Cgoban *cg, CliServer server) { GoStone s; MAGIC_SET(look); look->cg = cg; look->server = server; look->state = cliLook_ready; goStoneIter(s) { str_init(&look->name[s]); str_init(&look->rank[s]); } str_init(&look->boardData); } void cliLook_deinit(CliLook *look) { GoStone s; assert(MAGIC(look)); goStoneIter(s) { str_deinit(&look->name[s]); str_deinit(&look->rank[s]); } str_deinit(&look->boardData); MAGIC_UNSET(look); } void cliLook_gotData(CliLook *look, const char *buf) { GoStone s; int lineNum, matches; char data[GOBOARD_MAXSIZE + 1]; char name[40], rank[10]; assert(MAGIC(look)); switch(look->state) { case cliLook_ready: look->skip = FALSE; str_clip(&look->boardData, 0); /* Fall through to cliLook_info1. */ case cliLook_info: s = (look->state - cliLook_ready) + goStone_white; matches = sscanf(buf, "%39s %9s %d %*d %*d %*s %g %d", name, rank, &look->captures[s], &look->komi, &look->handicap); assert(matches == 5); str_copyChars(&look->name[s], name); str_copyChars(&look->rank[s], rank); ++look->state; break; case cliLook_body: matches = sscanf(buf, "%d: %s", &lineNum, data); assert(matches == 2); assert(strlen(data) <= GOBOARD_MAXSIZE); str_catChars(&look->boardData, data); if (lineNum == strlen(data) - 1) { gameReady(look, lineNum + 1); look->state = cliLook_ready; } break; } } static void gameReady(CliLook *look, int size) { static const GobanActions actions = { NULL, quit, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, /* edit, gameInfo */ &help_cliLook, gobanDead, moveOk, moveOk, moveOk, moveOk}; Goban *goban; GoGame *game; Str title; static const GoTime noTime = {goTime_none, 0, 0, 0}; CliLookChild *child; int i; /* * If it's a game-end board, then don't show it. * You can tell these because they have 3s, 4s, and 5s in them. */ for (i = 0; i < str_len(&look->boardData); ++i) { assert(str_chars(&look->boardData)[i] >= '0'); assert(str_chars(&look->boardData)[i] <= '6'); if ((str_chars(&look->boardData)[i] > '2') && (str_chars(&look->boardData)[i] < '6')) { return; } } child = wms_malloc(sizeof(CliLookChild)); MAGIC_SET(child); str_init(&title); str_print(&title, msg_cliLookName, str_chars(&look->name[goStone_white]), str_chars(&look->rank[goStone_white]), str_chars(&look->name[goStone_black]), str_chars(&look->rank[goStone_black])); /* * I pass in a handicap of 0 even though I know the real handicap. Why? * because otherwise when I parse over the board, if I find a white * stone where there used to be a handicap stone, I'm screwed! I'd have * to erase the black stone somehow and add a white one. Ugh. Easier * just to never add the handicap stones to begin with; they'll be caught * when I scan the board later. */ game = goGame_create(size, goRules_japanese, 0, look->komi, &noTime, TRUE); makeMoves(game, str_chars(&look->boardData), size); goban = goban_create(look->cg, &actions, child, game, "client.look", str_chars(&title)); goban->pic->allowedMoves = goPicMove_noWhite | goPicMove_noBlack; goban->iDec1 = grid_create(&look->cg->cgbuts, NULL, NULL, goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(goban->iDec1, goStone_white, FALSE); if (look->server == cliServer_nngs) grid_setVersion(goban->iDec1, CGBUTS_WORLDWEST(0)); else grid_setVersion(goban->iDec1, CGBUTS_WORLDEAST(0)); goban_update(goban); butText_set(goban->infoText, "Static Game Board"); child->game = game; child->goban = goban; str_deinit(&title); } static GobanOut quit(void *packet) { CliLookChild *child = packet; assert(MAGIC(child)); goban_destroy(child->goban, TRUE); return(gobanOut_noDraw); } static void gobanDead(void *packet) { CliLookChild *child = packet; assert(MAGIC(child)); goGame_destroy(child->game); MAGIC_UNSET(child); wms_free(child); } static bool moveOk(void *packet) { return(FALSE); } static void makeMoves(GoGame *game, const char *board, int size) { int x, y; for (x = 0; x < size; ++x) { for (y = 0; y < size; ++y) { switch(*board) { case '0': goGame_move(game, goStone_black, goBoard_xy2Loc(game->board, x, y), NULL); break; case '1': goGame_move(game, goStone_white, goBoard_xy2Loc(game->board, x, y), NULL); break; case '2': case '6': break; default: assert(0); break; } ++board; } } goGame_pass(game, goStone_black, NULL); /* These passes just get rid of */ goGame_pass(game, goStone_white, NULL); /* the "last move here" marker. */ } goban-1.1.orig/src/str.h0000644000175000017500000000400206121705431012715 0ustar alal/* * wmslib/src/wms/str.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _WMS_STR_H_ #define _WMS_STR_H_ 1 #ifndef _WMS_H_ #include #endif /********************************************************************** * Data Types **********************************************************************/ typedef struct Str_struct { char *chars; int len; int maxLen; MAGIC_STRUCT } Str; /********************************************************************** * Functions **********************************************************************/ extern Str *str_create(void); extern Str *str_createStr(const Str *s); extern Str *str_createChars(const char *chars); extern Str *str_createChar(char c); extern void str_destroy(Str *s); extern void str_init(Str *s); extern void str_initStr(Str *s, const Str *src); extern void str_initChars(Str *s, const char *src); extern void str_initCharsLen(Str *s, const char *src, int len); extern void str_deinit(Str *s); #define str_len(s) ((s)->len) #define str_chars(s) ((const char *)((s)->chars)) extern void str_copy(Str *dest, const Str *src); extern void str_copyChars(Str *dest, const char *src); extern void str_copyCharsLen(Str *dest, const char *src, int len); extern void str_copyChar(Str *dest, char src); extern void str_print(Str *dest, const char *fmt, ...); extern void str_cat(Str *dest, const Str *src); extern void str_catChars(Str *dest, const char *src); extern void str_catCharsLen(Str *dest, const char *src, int len); extern void str_catChar(Str *dest, char src); extern void str_catInt(Str *dest, int src); /* str_alphaCmd is useful in qsort and bsearch. */ extern int str_alphaCmp(const void *a, const void *b); #define str_clip(s, l) \ do { \ if ((l) < (s)->len) \ (s)->chars[(s)->len = (l)] = '\0'; \ } while(0) #endif /* _WMS_STR_H_ */ goban-1.1.orig/src/sgfOut.c0000644000175000017500000002065010270056703013357 0ustar alal/* * src/sgfOut.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include "cgoban.h" #include "sgf.h" #include "msg.h" #ifdef _SGFOUT_H_ LEVELIZATION ERROR #endif #include "sgfOut.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void printColor(Str *out, SgfElem *me); static void printPoint(Str *out, Sgf *mc, SgfElem *me); static bool writeNode(FILE *f, Sgf *mc, SgfElem *me, int *err, int col, Str *tmp1, Str *tmp2); static void printString(Str *out, SgfElem *me); static SgfElem *printPoints(Str *out, Sgf *mc, SgfElem *me); static SgfElem *printLabelPoints(Str *out, Sgf *mc, SgfElem *me); /********************************************************************** * Functions **********************************************************************/ bool sgf_writeFile(Sgf *mc, const char *fname, int *err) { FILE *f; SgfElem *me; Str nodeOut, tmp; assert(MAGIC(mc)); f = fopen(fname, "w"); if (f == NULL) { if (err) *err = errno; return(FALSE); } fprintf(f, "(;GM[1]FF[3]\n"); str_init(&nodeOut); str_init(&tmp); if (mc->top.childH == mc->top.childT) { if (!writeNode(f, mc, mc->top.childH, err, 0, &nodeOut, &tmp)) { fclose(f); str_deinit(&nodeOut); str_deinit(&tmp); return(FALSE); } } else { for (me = mc->top.childH; me; me = me->sibling) { fprintf(f, "\n("); if (!writeNode(f, mc, me, err, 0, &nodeOut, &tmp)) { fclose(f); str_deinit(&nodeOut); str_deinit(&tmp); return(FALSE); } fprintf(f, ")"); } } fprintf(f, "\n)\n"); fclose(f); str_deinit(&nodeOut); str_deinit(&tmp); return(TRUE); } static bool writeNode(FILE *f, Sgf *mc, SgfElem *me, int *err, int col, Str *nodeOut, Str *tmp) { bool crNeeded; /* Flag; put this on its own line? */ while (me) { crNeeded = FALSE; switch(me->type) { case sgfType_node: str_copyChar(nodeOut, ';'); break; case sgfType_unknown: str_copyChars(nodeOut, str_chars(me->sVal)); break; case sgfType_size: str_print(nodeOut, "SZ[%d]", me->iVal); break; case sgfType_rules: str_print(nodeOut, "RU[%s]", msg_ruleNames[(int)(me->iVal)]); break; case sgfType_handicap: str_print(nodeOut, "HA[%d]", me->iVal); break; case sgfType_komi: str_print(nodeOut, "KM[%g]", (double)me->iVal / 2.0); break; case sgfType_time: str_print(nodeOut, "TM[%s]", str_chars(me->sVal)); break; case sgfType_copyright: str_copyChars(nodeOut, "CP"); printString(nodeOut, me); break; case sgfType_playerName: crNeeded = TRUE; str_copyChar(nodeOut, 'P'); printColor(nodeOut, me); printString(nodeOut, me); break; case sgfType_title: crNeeded = TRUE; str_copyChars(nodeOut, "GN"); printString(nodeOut, me); break; case sgfType_playerRank: str_clip(nodeOut, 0); printColor(nodeOut, me); str_catChar(nodeOut, 'R'); printString(nodeOut, me); break; case sgfType_event: crNeeded = TRUE; str_copyChars(nodeOut, "EV"); printString(nodeOut, me); break; case sgfType_source: crNeeded = TRUE; str_copyChars(nodeOut, "SO"); printString(nodeOut, me); break; case sgfType_gameComment: str_copyChars(nodeOut, "GC"); printString(nodeOut, me); break; case sgfType_date: crNeeded = TRUE; str_copyChars(nodeOut, "DT"); printString(nodeOut, me); break; case sgfType_whoseMove: assert(goStone_isStone(me->gVal)); str_print(nodeOut, "PL[%d]", (int)(me->gVal == goStone_white) + 1); break; case sgfType_move: str_clip(nodeOut, 0); printColor(nodeOut, me); printPoint(nodeOut, mc, me); break; case sgfType_pass: str_clip(nodeOut, 0); printColor(nodeOut, me); if (mc->longLoc) str_catChars(nodeOut, "[]"); else str_catChars(nodeOut, "[tt]"); break; case sgfType_timeLeft: str_clip(tmp, 0); printColor(tmp, me); str_print(nodeOut, "%sL[%d]", str_chars(tmp), me->iVal); break; case sgfType_stonesLeft: str_copyChar(tmp, 'O'); printColor(tmp, me); str_print(nodeOut, "%s[%d]", str_chars(tmp), me->iVal); break; case sgfType_setBoard: str_copyChar(nodeOut, 'A'); printColor(nodeOut, me); me = printPoints(nodeOut, mc, me); break; case sgfType_territory: str_copyChar(nodeOut, 'T'); printColor(nodeOut, me); me = printPoints(nodeOut, mc, me); break; case sgfType_triangle: str_copyChars(nodeOut, "TR"); me = printPoints(nodeOut, mc, me); break; case sgfType_circle: str_copyChars(nodeOut, "CR"); me = printPoints(nodeOut, mc, me); break; case sgfType_square: str_copyChars(nodeOut, "MA"); me = printPoints(nodeOut, mc, me); break; case sgfType_label: str_copyChars(nodeOut, "LB"); me = printLabelPoints(nodeOut, mc, me); break; case sgfType_comment: str_copyChars(nodeOut, "C"); printString(nodeOut, me); break; case sgfType_result: crNeeded = TRUE; str_copyChars(nodeOut, "RE"); printString(nodeOut, me); break; case sgfType_place: str_copyChars(nodeOut, "PC"); printString(nodeOut, me); break; case sgfType_style: str_copyChars(nodeOut, "SY"); printString(nodeOut, me); break; default: fprintf(stderr, "BOGUS PROPERTY TO PRINT!\n"); for (;;); break; } if (col && (crNeeded || (col + str_len(nodeOut) > 70))) { fprintf(f, "\n"); col = 0; } col += str_len(nodeOut); fprintf(f, "%s", str_chars(nodeOut)); if (crNeeded) { fprintf(f, "\n"); col = 0; } if (me->childH == me->childT) { me = me->childH; } else { for (me = me->childH; me; me = me->sibling) { fprintf(f, "\n("); if (!writeNode(f, mc, me, err, 1, nodeOut, tmp)) return(FALSE); fprintf(f, ")\n"); col = 0; } } } return(TRUE); } static void printColor(Str *out, SgfElem *me) { if (me->gVal == goStone_white) str_catChar(out, 'W'); else if (me->gVal == goStone_black) str_catChar(out, 'B'); else { assert(me->gVal == goStone_empty); str_catChar(out, 'E'); } } static void printPoint(Str *out, Sgf *mc, SgfElem *me) { if (mc->longLoc) { str_catChar(out, '['); str_catChar(out, me->lVal[0]); str_catChar(out, me->lVal[1]); str_catChar(out, me->lVal[2]); str_catChar(out, me->lVal[3]); str_catChar(out, ']'); } else { str_catChar(out, '['); str_catChar(out, me->lVal[1]); str_catChar(out, me->lVal[3]); str_catChar(out, ']'); } } static SgfElem *printPoints(Str *out, Sgf *mc, SgfElem *me) { printPoint(out, mc, me); while ((me->childH != NULL) && (me->childH == me->childT) && (me->childH->type == me->type) && (me->childH->gVal == me->gVal)) { me = me->childH; printPoint(out, mc, me); } return(me); } static void printLabelPoint(Str *out, Sgf *mc, SgfElem *me) { if (mc->longLoc) { str_catChar(out, '['); str_catChar(out, me->lVal[0]); str_catChar(out, me->lVal[1]); str_catChar(out, me->lVal[2]); str_catChar(out, me->lVal[3]); str_catChar(out, ':'); str_cat(out, me->sVal); str_catChar(out, ']'); } else { str_catChar(out, '['); str_catChar(out, me->lVal[1]); str_catChar(out, me->lVal[3]); str_catChar(out, ':'); str_cat(out, me->sVal); str_catChar(out, ']'); } } static SgfElem *printLabelPoints(Str *out, Sgf *mc, SgfElem *me) { printLabelPoint(out, mc, me); while (me->childH && (me->childH == me->childT) && (me->childH->type == me->type) && (me->childH->gVal == me->gVal)) { me = me->childH; printLabelPoint(out, mc, me); } return(me); } static void printString(Str *out, SgfElem *me) { const char *str = str_chars(me->sVal); str_catChar(out, '['); while (*str) { if ((*str == ']') || (*str == '[') || (*str == '\\')) str_catChar(out, '\\'); str_catChar(out, *str); ++str; } str_catChar(out, ']'); } goban-1.1.orig/src/menu_snd.c0000644000175000017500000002124510270056420013715 0ustar alal/* * wmslib/src/but/menu_snd.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #if X11_DISP #include #include #include static uchar openmenu[] = { /* * Actual noise: "Twanging" a rubber band stretched across my * hole puncher. */ 101,97,104,92,79,70,53,55,89,32,21,35,32,44,47,57,72,83,229,196, 146,136,150,140,139,145,150,158,164,175,190,235,74,59,51,47,45, 44,43,43,43,44,45,47,49,53,56,36,31,180,101,222,193,211,210,45, 29,14,19,12,22,31,35,109,191,200,220,175,176,169,169,167,166,166, 166,167,168,167,142,128,133,139,142,151,156,167,177,206,80,58,47, 43,40,31,12,3,5,6,10,14,21,25,30,41,50,73,238,195,185,178,174, 163,137,128,133,137,141,146,152,159,168,180,197,102,68,57,50,42, 34,47,46,43,47,44,48,48,52,55,59,47,24,16,18,15,14,17,25,32,44, 62,125,191,180,173,169,166,160,140,129,137,159,178,159,147,140, 142,151,161,34,21,44,168,162,184,185,223,95,70,60,56,52,51,49,50, 50,51,53,52,31,17,15,13,15,25,60,161,146,143,149,150,154,156,159, 163,167,171,174,179,184,189,195,201,207,214,221,227,233,235,235, 233,229,227,45,12,7,11,15,24,30,41,54,84,203,185,167,143,137,146, 175,67,225,207,166,144,141,139,139,142,158,43,17,13,17,20,32,169, 149,143,151,156,161,172,178,197,219,82,68,60,56,45,24,16,16,15, 21,29,58,176,158,154,158,159,163,167,170,174,184,202,223,79,81, 240,185,176,186,186,189,191,194,202,33,7,8,14,18,27,32,45,204, 149,141,142,167,36,59,64,79,220,213,193,175,156,157,165,176,88, 68,69,74,75,77,78,105,165,147,142,138,142,150,155,166,175,198,97, 57,24,10,10,10,13,22,39,174,157,159,165,169,173,178,185,190,198, 206,217,232,93,51,45,49,46,52,55,62,82,193,172,169,172,173,175, 194,21,6,13,17,24,31,40,56,231,155,143,149,172,53,222,215,203, 189,183,157,153,157,162,188,75,53,56,59,60,64,213,173,172,161, 154,151,148,147,150,158,167,179,202,91,53,26,14,12,11,15,20,28, 48,190,162,158,167,172,176,188,208,91,78,67,57,49,51,59,76,234, 204,194,187,175,168,163,161,166,179,73,27,10,12,17,22,29,36,47, 206,157,156,157,179,69,78,96,208,174,155,155,156,160,175,218,50, 43,45,49,86,172,166,159,156,157,158,165,168,170,170,171,175,187, 236,60,45,34,27,23,21,22,24,28,36,55,207,185,179,177,179,180,186, 196,205,218,237,110,107,222,196,186,185,179,174,173,173,174,179, 189,210,56,34,22,12,13,20,25,31,46,176,163,165,164,183,201,187, 179,174,170,167,166,168,173,185,209,89,76,77,110,200,182,175,172, 170,170,170,171,174,174,177,183,186,191,207,91,58,45,40,36,32,29, 29,33,41,47,55,66,95,208,201,204,206,207,205,202,200,196,194,191, 189,187,182,178,176,180,187,206,94,71,53,40,30,24,21,22,30,44,87, 184,173,170,171,172,175,181,181,180,183,181,178,179,184,191,208, 244,107,121,225,203,193,187,184,185,184,183,182,181,182,184,189, 196,205,231,77,56,45,41,38,37,38,41,47,58,69,78,90,239,216,211, 208,207,206,206,203,202,203,199,195,193,191,188,188,192,205,124, 78,67,53,39,33,30,30,34,41,56,101,189,177,173,173,174,176,179, 184,189,191,196,199,198,195,192,193,197,203,210,222,234,232,230, 220,214,211,203,196,191,188,187,188,191,199,214,106,73,58,49,45, 43,44,46,52,61,74,94,237,218,212,206,204,205,206,206,206,208,210, 209,206,204,201,196,192,191,191,198,218,88,61,50,39,30,30,32,40, 51,79,201,183,176,176,179,184,189,196,203,206,207,207,207,202, 194,191,190,193,198,201,203,206,208,212,214,218,221,221,218,208, 205,200,193,192,197,207,124,76,61,53,47,46,47,54,61,73,91,242, 218,209,206,206,205,205,208,211,214,214,215,218,217,219,216,212, 207,203,204,205,219,96,72,57,44,35,30,31,38,48,72,206,185,178, 176,178,184,189,197,205,208,211,207,205,199,192,191,191,193,196, 200,204,209,212,217,222,222,231,228,220,214,205,200,195,191,191, 198,213,99,72,60,55,53,53,57,64,75,83,90,97,102,109,254,254,249, 242,234,229,223,219,215,212,208,206,204,203,203,205,213,223,114, 79,65,56,45,37,34,38,45,59,101,197,184,179,179,182,186,191,199, 205,207,206,205,202,198,197,195,196,197,199,202,205,215,230,111, 93,86,85,90,105,235,211,199,191,186,186,190,203,250,76,62,57,56, 59,64,75,83,89,95,95,90,85,85,87,91,99,120,237,228,226,225,221, 215,209,208,206,205,209,220,110,78,65,58,49,42,40,42,46,59,79, 207,189,182,179,180,183,188,194,202,206,209,212,211,206,204,201, 199,198,198,200,203,210,224,254,97,91,87,83,83,87,101,236,213, 202,195,194,201,217,109,77,65,61,61,64,73,84,96,105,103,103,96, 95,97,105,120,244,231,223,222,220,219,216,213,212,208,211,220, 235,92,73,62,56,50,44,44,46,53,65,91,213,194,187,184,183,185,188, 191,199,204,207,213,215,215,214,211,207,206,207,210,216,223,236, 121,101,91,86,87,94,125,220,205,195,190,188,189,192,204,242,85, 72,64,62,63,67,72,78,88,95,104,117,109,106,114,123,117,123,255, 120,109,106,108,110,119,237,227,233,246,97,77,66,59,54,48,49,55, 62,78,245,206,194,187,185,186,188,191,195,200,204,206,215,231, 242,236,225,218,213,212,214,218,222,231,252,104,92,87,90,95,114, 225,206,198,191,190,190,195,206,247,84,72,66,66,69,74,79,89,95, 101,100,95,94,96,101,108,113,109,105,99,94,92,92,95,103,116,122, 116,101,86,75,67,61,58,56,58,63,75,95,223,207,199,193,190,189, 189,190,193,197,200,203,207,217,226,237,251,247,243,236,232,230, 227,230,245,110,95,92,94,109,234,214,204,200,198,197,201,210,235, 94,78,71,68,69,72,76,83,90,103,122,242,238,237,236,238,239,238, 238,237,247,115,104,96,94,99,103,104,100,90,82,75,69,63,61,62,66, 74,89,252,223,215,208,203,199,196,196,198,200,201,204,211,219, 224,229,234,235,231,233,234,231,227,223,224,229,245,102,94,94, 102,248}; static uchar closemenu[] = { /* * Actual sound: Me clicking my tongue. I don't really like this * noise but I can't find a better one within my wage slave * cubicle and if I leave to record a good noise my boss might * see me. */ 214,102,73,59,51,47,44,42,42,43,44,47,52,61,81,218,191,182,176, 175,174,175,177,181,187,194,202,215,224,231,223,209,200,193,190, 188,188,186,181,180,181,185,195,219,90,65,55,47,45,44,43,43,43, 46,52,68,243,192,177,172,170,169,172,182,205,77,52,41,34,30,29, 30,34,41,54,103,188,173,167,164,162,162,162,164,166,170,172,175, 175,179,189,217,76,59,52,49,49,47,44,38,32,30,30,32,40,49,67,110, 199,185,176,171,167,166,168,173,184,205,94,72,66,62,60,57,54,54, 58,70,117,201,188,186,188,192,195,193,189,185,184,184,185,187, 190,188,187,184,180,177,175,175,174,175,176,183,204,72,44,31,25, 21,18,18,19,21,25,29,36,47,76,197,178,172,169,167,168,168,168, 168,169,170,171,174,175,178,177,175,175,175,177,183,188,198,211, 225,122,99,87,73,63,60,58,60,62,62,61,60,57,55,55,57,61,68,78,79, 76,71,70,77,105,206,191,186,183,183,184,186,190,199,204,215,249, 94,90,120,212,199,190,189,191,196,203,208,208,206,207,218,118,86, 73,66,59,55,52,47,45,43,41,40,40,39,39,40,41,44,49,60,91,203,184, 174,167,160,157,156,159,168,179,192,197,189,177,174,179,221,56, 44,44,55,73,62,43,31,41,175,144,144,144,152,144,153,18,18,18,145, 144,144,151,31,18,18,18,72,153,193,32,144,144,174,18,18,39,151, 195,172,144,144,160,18,18,163,158,34,150,144,144,178,18,18,41,37, 18,36,144,144,144,18,18,18,18,21,235,144,144,144,18,18,22,18,22, 168,144,144,144,95,25,18,18,18,42,144,144,163,152,59,18,18,18,25, 147,153,144,144,167,18,18,19,23,29,148,144,144,186,27,26,18,18, 18,152,144,158,145,155,22,18,18,35,41,175,144,144,159,47,43,18, 18,25,158,151,153,144,148,42,20,29,34,45,157,144,146,163,195,26, 18,18,20,32,182,144,144,145,153,172,48,43,74,201,170,157,168,62, 29,18,18,18,18,26,126,167,172,164,189,62,76,237,166,150,144,144, 144,149,172,73,43,34,47,68,214,189,102,46,28,22,17,21,30,43,217, 188,192,220,49,41,38,43,79,181,162,158,160,170,189,84,60,78,194, 172,164,162,168,188,62,31,18,192,154,29,144,22,144,31,41,175,18, 156,18,144,29,145,197,177,174,41,162,31,151,52,147,194,157,206, 67,57,36,104,34,187,35,186,26,32,47,60,68,29,203,105,189,87,88, 78,38,47,43,97,73,169,171,161,173,171,193,239,103,80,195,203,177, 189,189,76,63,45,47,46,58,87,217,191,206,222,63,58,48,57,69,209, 187,178,180,189,216,77,66,59,68,86,210,196,186,185,185,188,189, 184,176,172,169,167,169,175,194,106,63,56,55,62,78,119,116,75,56, 44,36,31,30,31,36,42,51,60,79,107,223,200,187,176,172,166,162, 159,160,163,167,173,177,186,191,204,242,78,59,47,40,33,30,30,31, 35,41,47,57,69,90,221,202,191,184,178,175,174,175,178,183,191, 206,243,107,255,222,213,205,202,202,205,212,213,217,213,205,198, 194,192,193,198,207,220,232,225,211,203,198,200,209,121,78,63,57, 54,52,51,52,56,60,65,74,76,78,81,88,116,219,205,202,201,202,207, 219,239,105,87,78,78,82,84,88,88,80,77,76,76,79,93,234,209,201, 194,189,186,184,185,188,190,190,190,190,191,191,193,197,204,219, 229,241,123,95,79,72,68,64,60,56}; Snd butMenu_openSnd = snd_define(openmenu); Snd butMenu_closeSnd = snd_define(closemenu); #endif /* X11_DISP */ goban-1.1.orig/src/goScore.c0000644000175000017500000003714410270000767013516 0ustar alal/* * src/goScore.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include "goBoard.h" #include "goGame.h" #include "goScore.h" #include "msg.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void checkIfSeki(GoGame *game, int loc); static void markNeighborEmptySpecial(GoGame *game, int loc, GoStone s); static void markSpecialStones(GoGame *game, GoStone s, uint mark); static int findSpecialEyes(GoGame *game, GoStone s); static int countNeighbors(GoGame *g, GoBoard *b, int loc, GoStone s); static void removeFakeEyes(GoGame *g, GoStone s); static void testGroupForFake(GoGame *g, int loc, GoStone s); static void paintRelatedGroupsFaketest(GoGame *g, int loc, GoStone s); /********************************************************************** * Functions **********************************************************************/ Str *goScore_str(GoScore *score, GoGame *game, const GoTime *time, const GoTimer *timers) { Str *result, ingTimes[2], winner; GoRules rules = game->rules; float scores[2]; int timePenalties[2]; GoStone s; result = str_create(); goStoneIter(s) { str_init(&ingTimes[s]); if (time != NULL) timePenalties[s] = goTime_ingPenalty(time, &timers[s]); if (timePenalties[s]) { str_print(&ingTimes[s], msg_ingPenaltyComment, timePenalties[s]); } scores[s] = score->scores[s] - timePenalties[s]; } if (goRules_scoreKills[rules]) { str_print(result, msg_scoreKillsComment, score->territories[goStone_white], goGame_caps(game, goStone_white) + score->deadStones[goStone_white], game->komi, str_chars(&ingTimes[goStone_white]), scores[goStone_white], score->territories[goStone_black], goGame_caps(game, goStone_black) + score->deadStones[goStone_black], str_chars(&ingTimes[goStone_black]), scores[goStone_black]); } else { str_print(result, msg_scoreNoKillsComment, score->territories[goStone_white], score->livingStones[goStone_white], (double)score->dame / 2.0, game->komi, str_chars(&ingTimes[goStone_white]), scores[goStone_white], score->territories[goStone_black], score->livingStones[goStone_black], (double)score->dame / 2.0, str_chars(&ingTimes[goStone_black]), scores[goStone_black]); } str_init(&winner); if (scores[goStone_white] > scores[goStone_black]) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_white], scores[goStone_white] - scores[goStone_black]); } else if ((scores[goStone_black] > scores[goStone_white]) || (game->rules == goRules_ing)) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_black], scores[goStone_black] - scores[goStone_white]); } else { str_print(&winner, msg_jigoComment); } str_cat(result, &winner); str_catChar(result, '\n'); str_deinit(&winner); str_deinit(&ingTimes[goStone_white]); str_deinit(&ingTimes[goStone_black]); return(result); } void goScore_compute(GoScore *score, GoGame *game) { int sekiArea[2], dame = 0; GoBoard *b = game->board; bool change; int i, j, min, max; uint oldFlags; GoStone s; assert(MAGIC(game)); assert(game->state >= goGameState_selectDead); game->flagsCleared = FALSE; min = goBoard_minLoc(game->board); max = goBoard_maxLoc(game->board); score->livingStones[goStone_black] = score->livingStones[goStone_white] = 0; score->territories[goStone_black] = score->territories[goStone_white] = 0; score->deadStones[goStone_black] = score->deadStones[goStone_white] = 0; score->dame = 0; sekiArea[goStone_black] = sekiArea[goStone_white] = 0; /* Add up the number of living stones. */ for (i = min; i < max; ++i) { game->flags[i] &= ~(GOGAMEFLAGS_SEEN | GOGAMEFLAGS_SEKI | GOGAMEFLAGS_NOSEKI); s = goBoard_stone(b, i); if (goStone_isStone(s)) { if (game->flags[i] & GOGAMEFLAGS_MARKDEAD) { ++score->deadStones[goStone_opponent(s)]; } else { game->flags[i] |= goGameFlags_see(s); ++score->livingStones[s]; } } } /* * Now iterate over the board, figuring out what empty spaces see * different stones. */ do { change = FALSE; for (i = min; i < max; ++i) { if ((goBoard_stone(b, i) == goStone_empty) || (game->flags[i] & GOGAMEFLAGS_MARKDEAD)) { /* It's an empty space. */ oldFlags = game->flags[i]; for (j = 0; j < 4; ++j) { game->flags[i] |= game->flags[i + goBoard_dir(b, j)] & GOGAMEFLAGS_SEEN; } change = (change || (game->flags[i] != oldFlags)); } } } while (change); /* * Go through and find all the sekis. */ if (game->rules == goRules_japanese) { for (i = 0; i < goBoard_area(game->board); ++i) { if (goStone_isStone(goBoard_stone(game->board, i)) && !(game->flags[i] & (GOGAMEFLAGS_SEKI | GOGAMEFLAGS_NOSEKI | GOGAMEFLAGS_MARKDEAD))) checkIfSeki(game, i); } } for (i = min; i < max; ++i) { if ((goBoard_stone(b, i) == goStone_empty) || (game->flags[i] & GOGAMEFLAGS_MARKDEAD)) { if (((game->flags[i] & GOGAMEFLAGS_SEEBLACK) == 0) == ((game->flags[i] & GOGAMEFLAGS_SEEWHITE) == 0)) { ++dame; } else if (game->flags[i] & GOGAMEFLAGS_SEEBLACK) { if (game->flags[i] & GOGAMEFLAGS_SEKI) { ++sekiArea[goStone_black]; } else { ++score->territories[goStone_black]; } } else { assert(game->flags[i] & GOGAMEFLAGS_SEEWHITE); if (game->flags[i] & GOGAMEFLAGS_SEKI) { ++sekiArea[goStone_white]; } else { ++score->territories[goStone_white]; } } } } score->dame = dame; switch(game->rules) { case goRules_chinese: case goRules_ing: case goRules_nz: goStoneIter(s) { score->territories[s] += sekiArea[s]; score->scores[s] = (float)dame / 2.0 + score->territories[s] + score->livingStones[s]; } break; case goRules_aga: case goRules_tibetan: goStoneIter(s) { score->territories[s] += sekiArea[s]; score->scores[s] = score->territories[s] + goGame_caps(game, s) + score->deadStones[s]; } break; case goRules_japanese: goStoneIter(s) { score->scores[s] = score->territories[s] + goGame_caps(game, s) + score->deadStones[s]; } break; } score->scores[goStone_white] += game->komi; } static void checkIfSeki(GoGame *game, int loc) { GoStone s; int i; s = goBoard_stone(game->board, loc); goBoard_copy(game->board, game->tmpBoard); for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if (goStone_isStone(goBoard_stone(game->tmpBoard, i)) && (game->flags[i] & GOGAMEFLAGS_MARKDEAD)) goBoard_rmGroup(game->tmpBoard, i); } markNeighborEmptySpecial(game, loc, s); removeFakeEyes(game, s); if (findSpecialEyes(game, s) > 1) { markSpecialStones(game, s, GOGAMEFLAGS_NOSEKI); return; } markSpecialStones(game, s, GOGAMEFLAGS_SEKI); } static void markNeighborEmptySpecial(GoGame *game, int loc, GoStone s) { int i, d; bool change; GoStone stoneHere; uint oldFlags, enemySeen; for (i = 0; i < goBoard_area(game->tmpBoard); ++i) game->flags[i] &= ~(GOGAMEFLAGS_SPECIAL | GOGAMEFLAGS_EYE | GOGAMEFLAGS_NOTFAKE | GOGAMEFLAGS_FAKETEST); game->flags[loc] |= GOGAMEFLAGS_SPECIAL; do { change = FALSE; for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { stoneHere = goBoard_stone(game->tmpBoard, i); if (!(game->flags[i] & GOGAMEFLAGS_SPECIAL) && ((stoneHere == goStone_empty) || (stoneHere == s))) { oldFlags = game->flags[i]; for (d = 0; d < 4; ++d) game->flags[i] |= game->flags[i+goBoard_dir(game->tmpBoard, d)] & GOGAMEFLAGS_SPECIAL; change = (change || (oldFlags != game->flags[i])); } } } while (change); enemySeen = goGameFlags_see(goStone_opponent(s)); for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if (game->flags[i] & enemySeen) game->flags[i] &= ~GOGAMEFLAGS_SPECIAL; } } static void markSpecialStones(GoGame *game, GoStone s, uint mark) { int i; for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if (game->flags[i] & GOGAMEFLAGS_SPECIAL) game->flags[i] |= mark; } } static int findSpecialEyes(GoGame *game, GoStone s) { uint oldFlags; int i, d, eyeSize, n; int deadEnemyLoc, enemySize = 0, deadEnemyConn[5]; int specialConn[5]; bool change, emptyAwayFromEnemy = FALSE; GoStone opponent = goStone_opponent(s); deadEnemyLoc = 0; for (i = 0; i < 5; ++i) { deadEnemyConn[i] = 0; specialConn[i] = 0; } for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if ((game->flags[i] & GOGAMEFLAGS_SPECIAL) && (goBoard_stone(game->tmpBoard, i) == goStone_empty)) { game->flags[i] |= GOGAMEFLAGS_EYE; break; } } if (i == goBoard_area(game->tmpBoard)) { return(0); } /* * If this is a dead enemy stone, we want to know! */ if (goBoard_stone(game->board, i) == opponent) { deadEnemyLoc = i; ++deadEnemyConn[countNeighbors(game, game->board, i, opponent)]; ++enemySize; } else { n = countNeighbors(game, game->board, i, goStone_empty); ++specialConn[n]; if (n >= 3) return(2); if (countNeighbors(game, game->board, i, opponent) == 0) emptyAwayFromEnemy = TRUE; } eyeSize = 1; do { change = FALSE; for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if (((game->flags[i] & (GOGAMEFLAGS_EYE|GOGAMEFLAGS_SPECIAL)) == GOGAMEFLAGS_SPECIAL) && (goBoard_stone(game->tmpBoard, i) == goStone_empty)) { oldFlags = game->flags[i]; for (d = 0; d < 4; ++d) game->flags[i] |= game->flags[i+goBoard_dir(game->tmpBoard, d)] & GOGAMEFLAGS_EYE; if (game->flags[i] != oldFlags) { change = TRUE; ++eyeSize; if (goBoard_stone(game->board, i) == opponent) { if (deadEnemyLoc) { if (!goBoard_groupEq(game->board, deadEnemyLoc, i)) return(2); } else deadEnemyLoc = i; ++deadEnemyConn[countNeighbors(game, game->board, i, opponent)]; ++enemySize; } else { n = countNeighbors(game, game->board, i, goStone_empty); ++specialConn[n]; if (n >= 3) return(2); if (countNeighbors(game, game->board, i, opponent) == 0) emptyAwayFromEnemy = TRUE; } } } } } while (change); /* * Look for a second eye. */ for (i = 0; i < goBoard_area(game->tmpBoard); ++i) { if (((game->flags[i] & (GOGAMEFLAGS_SPECIAL | GOGAMEFLAGS_EYE)) == GOGAMEFLAGS_SPECIAL) && (goBoard_stone(game->tmpBoard, i) == goStone_empty)) { return(2); } } /* * We have one big eye with no dead enemies in in. It can make unless it * is less than 3 in size or it is a 4 space 2x2 eye. */ if (enemySize == 0) { switch(eyeSize) { case(1): case(2): return(1); case(4): if (specialConn[2] == 4) return(1); else return(2); default: return(2); } } /* * If there are enemies and you have a liberty away from them, then you * can get two eyes. */ if (emptyAwayFromEnemy) return(2); /* * We have some dead enemies. See if they're in a dead shape. */ /* * First test: Matches ? * ? # ? * ? */ if (deadEnemyConn[4] + deadEnemyConn[3] + deadEnemyConn[2] < 2) return(1); /* * Second test: Matches # # * ? # # * ? */ if ((deadEnemyConn[4] == (deadEnemyConn[1] == 2)) && (deadEnemyConn[3] == (deadEnemyConn[1] == 1)) && (deadEnemyConn[4] + deadEnemyConn[3] + deadEnemyConn[2] == 4) && (deadEnemyConn[1] < 3)) return(1); /* * Second test: Matches # # * # # # * # # */ if ((deadEnemyConn[4] == 1) && (deadEnemyConn[2] == 6) && (enemySize == 7)) return(1); return(2); } static int countNeighbors(GoGame *g, GoBoard *b, int loc, GoStone s) { int d, newLoc, count; for (d = 0, count = 0; d < 4; ++d) { newLoc = loc + goBoard_dir(b, d); if ((goBoard_stone(b, newLoc) == s) && (g->flags[newLoc] & GOGAMEFLAGS_SPECIAL)) ++count; } return(count); } static void removeFakeEyes(GoGame *g, GoStone s) { int i; bool change; do { change = FALSE; for (i = 0; i < goBoard_area(g->tmpBoard); ++i) { if ((goBoard_stone(g->tmpBoard, i) == s) && ((g->flags[i] & (GOGAMEFLAGS_SPECIAL | GOGAMEFLAGS_NOTFAKE)) == GOGAMEFLAGS_SPECIAL)) { change = TRUE; testGroupForFake(g, i, s); break; } } } while (change); } static void testGroupForFake(GoGame *g, int loc, GoStone s) { int i, d, faketests, newLoc; int emptySeen = 0; paintRelatedGroupsFaketest(g, loc, s); /* * All SPECIAL empties touching FAKETEST stones are fake UNLESS: * - There are more than one SPECIAL empties that touch FAKETEST * stones. * or * - There is at least one SPECIAL empty that is bounded on all four * sides by FAKETEST stones. */ for (i = 0; i < goBoard_area(g->tmpBoard); ++i) { if ((goBoard_stone(g->tmpBoard, i) == goStone_empty) && (g->flags[i] & GOGAMEFLAGS_SPECIAL)) { faketests = 0; for (d = 0; d < 4; ++d) { if (g->flags[i + goBoard_dir(g->tmpBoard, d)] & GOGAMEFLAGS_FAKETEST) ++faketests; } if (faketests) ++emptySeen; if (faketests == 4) ++emptySeen; } } if (emptySeen != 1) { /* No fakes associated with this group. */ for (i = 0; i < goBoard_area(g->tmpBoard); ++i) { if ((goBoard_stone(g->tmpBoard, i) == s) && (g->flags[i] & GOGAMEFLAGS_FAKETEST)) { g->flags[i] |= GOGAMEFLAGS_NOTFAKE; } g->flags[i] &= ~GOGAMEFLAGS_FAKETEST; } } else { /* * Fake. Turn off the specialness of all adjacent empties, and * also turn off all NOTFAKE flags. * Turn on the SEEBLACK and the SEEWHITE flags to make sure that * the fake eyes don't count for territory. */ for (i = 0; i < goBoard_area(g->tmpBoard); ++i) { if ((goBoard_stone(g->tmpBoard, i) == s) && (g->flags[i] & GOGAMEFLAGS_FAKETEST)) { for (d = 0; d < 4; ++d) { newLoc = i + goBoard_dir(g->tmpBoard, d); if ((g->flags[newLoc] & GOGAMEFLAGS_SPECIAL) && (goBoard_stone(g->tmpBoard, newLoc) == goStone_empty)) { g->flags[newLoc] = (g->flags[newLoc] & ~GOGAMEFLAGS_SPECIAL) | (GOGAMEFLAGS_SEEBLACK|GOGAMEFLAGS_SEEWHITE); } } } g->flags[i] &= ~(GOGAMEFLAGS_FAKETEST | GOGAMEFLAGS_NOTFAKE); } } } /* * All stones that are connected by non-eye spaces are related. Here * we paint all such groups FAKETEST. */ static void paintRelatedGroupsFaketest(GoGame *g, int loc, GoStone s) { bool change; uint oldFlags; int i, d; g->flags[loc] |= GOGAMEFLAGS_FAKETEST; do { change = FALSE; for (i = 0; i < goBoard_area(g->tmpBoard); ++i) { if ((goBoard_stone(g->tmpBoard, i) == s) || ((goBoard_stone(g->tmpBoard, i) == goStone_empty) && !(g->flags[i] & GOGAMEFLAGS_SPECIAL))) { oldFlags = g->flags[i]; for (d = 0; d < 4; ++d) g->flags[i] |= (g->flags[i + goBoard_dir(g->tmpBoard, d)] & GOGAMEFLAGS_FAKETEST); change = (change || (oldFlags != g->flags[i])); } } } while (change); } void goScore_zero(GoScore *score) { GoStone color; score->dame = 0; goStoneIter(color) { score->territories[color] = 0; score->livingStones[color] = 0; score->deadStones[color] = 0; score->scores[color] = 0.0; } } goban-1.1.orig/src/fsel.h0000644000175000017500000000463010267777524013067 0ustar alal/* * src/fsel.h, part of wmslib library * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _ABUT_FSEL_H_ #ifndef _ABUT_ABUT_H_ #include #endif #ifndef _ABUT_SWIN_H_ #include #endif #ifndef _WMS_STR_H_ #include #endif #ifndef _ABUT_MSG_H_ #include #endif #ifdef _ABUT_FSEL_H_ #error Levelization Error. #endif #define _ABUT_FSEL_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef struct AbutFsel_struct { Abut *abut; bool propagate; void (*callback)(struct AbutFsel_struct *fsel, void *packet, const char *fname); void *packet; ButWin *win; But *title; But *box; But *path, *pathIn; But *file, *in; But *mask, *maskIn; But *dirs, *files; AbutSwin *dSwin, *fSwin; But *dList, *dlBg, *fList, *flBg; But *ok; But *cancel; Str pathVal; AbutMsg *msg; MAGIC_STRUCT } AbutFsel; /********************************************************************** * Globals **********************************************************************/ extern const char *abutFsel_pathMessage; extern const char *abutFsel_fileMessage; extern const char *abutFsel_maskMessage; extern const char *abutFsel_dirsMessage; extern const char *abutFsel_filesMessage; extern const char *abutFsel_dirErrMessage; /********************************************************************** * Functions **********************************************************************/ extern AbutFsel *abutFsel_create(Abut *a, void (*callback)(AbutFsel *fsel, void *packet, const char *fname), void *packet, const char *app, const char *title, const char *startName); extern AbutFsel *abutFsel_createDir(Abut *a, void (*callback)(AbutFsel *fsel, void *packet, const char *fname), void *packet, const char *app, const char *title, const char *startDir, const char *startName); extern void abutFsel_destroy(AbutFsel *fsel, bool propagate); #define abutFsel_setColors(f, ul, lr, c) \ butBoxFilled_setColors((f)->box, (ul), (lr), (c)) #define abutFsel_setPixmaps(f, ul, lr, c) \ butBoxFilled_setPixmaps((f)->box, (ul), (lr), (c)) #endif /* _ABUT_FSEL_H_ */ goban-1.1.orig/src/control.h0000644000175000017500000000173710270067644013610 0ustar alal/* * src/control.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CONTROL_H_ #define _CONTROL_H_ 1 #ifndef _SETUP_H_ #include "lsetup.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef struct Control_struct { Cgoban *cg; ButWin *win; But *box; But *sPics[2], *servers[2]; But *lGame, *lGamePic; But *lLoad, *lLoadPic; But *edit, *editPic; But *gmp, *gmpPic; But *sBox; Setup *setupWin; But *help, *setup, *quit; ButWin *iWin; But *iBg, *ig; MAGIC_STRUCT } Control; /********************************************************************** * Functions **********************************************************************/ extern Control *control_create(Cgoban *cg, bool iconic); #endif /* _CONTROL_H_ */ goban-1.1.orig/src/goHash.c0000644000175000017500000000153610270000734013314 0ustar alal/* * src/gohash.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include "goHash.h" #if GoHash_isScalar const GoHash goHash_zero = 0; const GoHash goHash_pass = 1; #else const GoHash goHash_zero = {0, 0}; const GoHash goHash_pass = {1, 0}; #endif /* GoHash_isScalar */ GoHash goHash_init(Rnd *r) { GoHash v; int i; #if GoHash_isScalar v = 0; for (i = 0; i < sizeof(GoHash) / sizeof(uint32); ++i) v = (v << 32) | (GoHash)rnd_uint32(r); v &= ~1; #else v.hi = rnd_uint32(r); v.lo = rnd_uint32(r) & ~1; #endif /* GoHash_isScalar */ return(v); } #if !GoHash_isScalar GoHash goHash_xor(GoHash v1, GoHash v2) { v1.lo ^= v2.lo; v1.hi ^= v2.hi; return(v1); } #endif /* !GoHash_isScalar */ goban-1.1.orig/src/but.h0000644000175000017500000004174310267775045012732 0ustar alal/* * wmslib/include/but/but.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for auxiliary button code. */ #ifndef _BUT_BUT_H_ #define _BUT_BUT_H_ 1 #include #include #if HAVE_SYS_SELECT_H #include #endif /********************************************************************** * Forward declarations **********************************************************************/ typedef struct ButTimer_struct ButTimer; typedef struct ButWin_struct ButWin; typedef struct ButLnet_struct ButLnet; typedef struct ButRnet_struct ButRnet; typedef struct ButEnv_struct ButEnv; typedef struct But_struct But; #include /********************************************************************** * Constants **********************************************************************/ #define BUT_DCLICK 350 /* Time between double clicks; should probably */ /* be settable by the user. */ /********************************************************************** * Types **********************************************************************/ #define BUTOUT_STOPWAIT 0x01 #define BUTOUT_ERR 0x02 #define BUTOUT_CAUGHT 0x04 #define BUTOUT_STILLBUTS 0x08 #define BUTOUT_IGNORE 0x10 /* Used by canvases. */ typedef uint ButOut; typedef ButOut ButWinFunc(struct ButWin_struct *win); typedef struct ButAction_struct { ButOut (*mMove)(But *but, int x, int y); ButOut (*mLeave)(But *but); ButOut (*mPress)(But *but, int butnum, int x, int y); ButOut (*mRelease)(But *but, int butnum, int x, int y); ButOut (*kPress)(But *but, const char *str, KeySym sym); ButOut (*kRelease)(But *but, const char *str, KeySym sym); void (*draw)(But *but, int x, int y, int w, int h); ButOut (*destroy)(But *but); void (*newFlags)(But *but, uint nfl); ButOut (*netMessage)(But *but, void *msg, int msgLen); /* resize returns TRUE if redraws are needed for old & new position. */ bool (*resize)(But *but, int oldX, int oldY, int oldW, int oldH); } ButAction; typedef struct ButColor_struct { int red, green, blue, greyLevel; } ButColor; typedef struct ButSet_struct { int numButs; bool dynamic; /* If TRUE, then buts should be freed when you're done. */ But **buts; int maxButs; MAGIC_STRUCT } ButSet; typedef struct ButWinArea_struct { int x, y, w, h; } ButWinArea; struct ButWin_struct { struct ButWin_struct *parent; /* NULL unless you're a canvas. */ struct But_struct *parentBut; /* NULL unless you're a canvas. */ void *packet, *iPacket; Window win, physWin; struct ButWin_struct *iconWin; const char *name; bool iconic, isIcon; bool isroot; /* for screensaver */ int window_id; /* for screensaver */ int x,y,w,h, xOff, yOff, minWRatio, minHRatio, maxWRatio, maxHRatio; int minW, minH, maxW, maxH, wStep, hStep; int logicalW, logicalH; /* Same as w&h except for canvases. */ bool resized, resizeNeeded, redrawReady; ButWinArea *redraws; int numRedraws, maxRedraws; int id; bool mapped; ButWinFunc *unmap, *map, *resize, *destroy, *quit; ButEnv *env; int minLayer, maxLayer; struct ButSet_struct butsNoDraw; But *lock, *butIn; But *keyBut; int numCols, maxCols; struct ButCol_struct *cols; MAGIC_STRUCT }; typedef struct ButWrite_struct { double width; void *packet; void (*draw)(void *packet, ButWin *win, int x, int y, int w, int h); } ButWrite; #define BUTWRITE_MINPRINT '\t' #define BUTWRITE_MAXCHARS (BUTWRITE_MINPRINT*256-256) typedef struct ButFdCallback_struct { ButOut (*callback)(void *packet, int fd); void *packet; } ButFdCallback; struct ButEnv_struct { char *protocol; void *packet; Display *dpy; int (*shutdown)(Display *dpy); GC gc, gc2; Pixmap stipDisable; bool colorp; /* TRUE if color, FALSE if b/w. */ int numColors; ulong *colors; Pixmap greyMaps[17]; Pixmap *colorPmaps; int numFonts; XFontStruct **fonts; int font0h, depth, rootW, rootH; int stdButBw; Atom prop; bool (*sReq)(ButEnv *env, XSelectionRequestEvent *xsre); int (*sClear)(ButEnv *env); int (*sNotify)(ButEnv *env, XSelectionEvent *xsnot); struct ButWin_struct **winlist; int minWindows, wllen, wlmax; But *butIn, *lockBut; struct ButWin_struct *last_mwin; int last_mx, last_my; ButEnv *next; struct ButWrite_struct write[BUTWRITE_MAXCHARS]; uint keyModifiers; Time eventTime; /* But & kbd PRESS or RELEASE or MOVE events. */ int eventNum; /* But & kbd PRESS events ONLY. */ int maxFd, maxGFds[3]; fd_set fMasks[3]; ButFdCallback *fCallbacks[3]; /* These are set up in the rc (remote cusor) file. */ int cur_mnum, new_mnum; Cursor cursors[BUTCUR_NUM]; Pixmap cpic[BUTCUR_NUM], cmask[BUTCUR_NUM], *cstore; struct ButRnet_struct **partners; int partner, numPartners; int maxButIds, maxWinIds; But **id2But; struct ButWin_struct **id2Win; ButCur curnum, curlast; Window curwin; But *curhold; MAGIC_STRUCT }; typedef struct ButKey_struct { KeySym key; uint modifiers; uint modMask; } ButKey; struct But_struct { void *uPacket; /* Packet of user information. */ void *iPacket; /* Packet unique to this button type. */ struct ButWin_struct *win; int layer; int x, y, w, h, id; unsigned flags; const ButKey *keys; /* A list of keys that map to this button. */ const ButAction *action; void (*destroyCallback)(struct But_struct *but); MAGIC_STRUCT }; typedef struct ButRow_struct { int startY, numButs, maxButs; But **buts; MAGIC_STRUCT } ButRow; typedef struct ButCol_struct { int startX; int numRows, maxRows; struct ButRow_struct *rows; MAGIC_STRUCT } ButCol; #define butEnv_setXFg(env, colornum) \ do { \ if (env->colorp) \ XSetForeground(env->dpy, env->gc, env->colors[colornum]); \ else \ XSetTile(env->dpy, env->gc, env->colorPmaps[colornum]); \ } while (0) #define butEnv_stdFill(env) \ do { \ if (env->colorp) \ XSetFillStyle(env->dpy, env->gc, FillSolid); \ else \ XSetFillStyle(env->dpy, env->gc, FillTiled); \ } while (0) #define butEnv_setXFg2(env, colornum) \ do { \ if (env->colorp) \ XSetForeground(env->dpy, env->gc2, env->colors[colornum]); \ else \ XSetTile(env->dpy, env->gc2, env->colorPmaps[colornum]); \ } while (0) #define butEnv_stdFill2(env) \ do { \ if (env->colorp) \ XSetFillStyle(env->dpy, env->gc2, FillSolid); \ else \ XSetFillStyle(env->dpy, env->gc2, FillTiled); \ } while (0) extern Atom but_myProp, but_wmDeleteWindow, but_wmProtocols; extern struct ButTimer_struct *but_timerList; extern bool but_inEvent; extern void butWin_turnOnTimers(ButWin *win); extern void butWin_turnOffTimers(ButWin *win); extern ButOut butWin_delete(ButWin *win); extern ButOut but_dList(But *but); extern ButOut butWin_dList(ButWin *win); /* From "write.c" */ extern void butWin_write(ButWin *win, int x, int y, const char *text, int font); /* Functions available to the buttons. */ extern void butEnv_deinit(ButEnv *env); extern But *but_create(ButWin *win, void *iPacket, const ButAction *action); extern void but_init(But *but); extern ButOut but_delete(But *but); #define but_getFlags(b) ((b)->flags) extern void but_newFlags(But *but, uint newflags); extern void but_flags(But *but, uint newflags); /* Private. */ extern void but_draw(But *but); extern void butWin_redraw(ButWin *win, int x, int y, int w, int h); extern void butWin_performDraws(ButWin *win); extern void but_resize(But *but, int x, int y, int w, int h); extern ButOut butWin_mMove(ButWin *win, int x, int y); extern ButOut butWin_mPress(ButWin *win, int x, int y, int butnum); extern ButOut butWin_mRelease(ButWin *win, int x, int y, int butnum); extern ButOut butWin_kPress(ButWin *win, const char *kstring, KeySym sym); extern ButOut butWin_kRelease(ButWin *env, const char *kstring, KeySym sym); /* Functions for internal use only. */ /* In but_finder.c */ void butSet_destroy(ButSet *butset); extern ButWin *butEnv_findWin(ButEnv *env, Window win); extern void butWin_addToTable(ButWin *win); extern void butWin_rmFromTable(ButWin *win); extern void but_addToTable(But *but); extern void but_delFromTable(But *but); extern void butWin_findButSet(ButWin *win, int x, int y, ButSet *butset); extern void butWin_findButSetInRegion(ButWin *win, int x,int y, int w,int h, ButSet *butset); extern But *butWin_findButsInRegion(ButWin *win, int x,int y, int w,int h, bool (*action)(But *but, void *packet), void *packet); void butSet_addBut(ButSet *butset, But *but); void butSet_delBut(ButSet *butset, But *but); /* From "ctext.c" */ extern Snd but_downSnd, but_upSnd; /********************************************************************** * Forward declarations **********************************************************************/ /* These are all bits for the flags arguments to button functions. */ #define BUT_DRAWABLE 0x0001 /* Can be drawn. */ #define BUT_PRESSABLE 0x0002 /* Can be pressed. */ #define BUT_TWITCHABLE 0x0004 /* Changes when mouse goes over it. */ #define BUT_KEYED 0x0008 /* Keys pressed land in this button. */ #define BUT_PRESSTHRU 0x0010 #define BUT_PRESSED 0x0020 #define BUT_TWITCHED 0x0040 #define BUT_KEYPRESSED 0x0080 #define BUT_KEYACTIVE 0x0100 /* Read only; set if recvs keypresses. */ #define BUT_TABLED 0x0200 /* Private. Don't touch. */ #define BUT_LOCKED 0x0400 #define BUT_OPAQUE 0x0800 /* Solidly fills rectangle. */ #define BUT_DEAD 0x1000 /* Marked for death! */ #define BUT_NETPRESS 0x2000 #define BUT_NETTWITCH 0x4000 #define BUT_NETKEY 0x8000 #define BUT_MAXBITS 16 #define BUT_NODRAW (BUT_DRAWABLE<packet) #define butEnv_dpy(env) ((env)->dpy) #define butEnv_gc(env) ((env)->gc) #define butEnv_color(env, cnum) ((env)->colors[cnum]) #define butEnv_isColor(env) ((env)->colorp) #define butEnv_pixmap(env, cnum) ((env)->colorPmaps[cnum]) #define butEnv_fontStr(env, fnum) ((env)->fonts[fnum]) #define butEnv_stdBw(env) ((env)->stdButBw) #define butEnv_keyModifiers(env) ((env)->keyModifiers) #define butWin_packet(win) ((win)->packet) #define butWin_env(win) ((win)->env) #define butWin_xwin(bwin) ((bwin)->win) #define butWin_w(win) ((win)->logicalW) #define butWin_h(win) ((win)->logicalH) #define butWin_viewW(win) ((win)->w) #define butWin_viewH(win) ((win)->h) #define butWin_x(win) ((win)->x) #define butWin_y(win) ((win)->y) #define butWin_xoff(win) ((win)->xOff) #define butWin_yoff(win) ((win)->yOff) #define butWin_setPacket(win, p) ((win)->packet = (p)) #define butWin_setQuit(win, q) ((win)->quit = (q)) #define butWin_setDestroy(win, d) ((win)->destroy = (d)) #define but_win(but) ((but)->win) #define but_packet(but) ((but)->uPacket) #define but_setPacket(but, val) ((but)->uPacket = (val)) #define but_x(but) ((but)->x) #define but_y(but) ((but)->y) #define but_w(but) ((but)->w) #define but_h(but) ((but)->h) #define but_setDestroyCallback(but, v) ((but)->destroyCallback = (v)) /* * but_events keeps servicing events until one returns BUT_OUT_STOPWAIT. */ extern void butEnv_events(ButEnv *env); extern ButEnv *butEnv_create(const char *protocol, const char *dpyname, int shutdown(Display *dpy)); extern ButEnv *butEnv_createNoDpy(const char *protocol); /* * but_env_init() returns: * 0 - Black and white display or color=FALSE. * 1 - Couldn't allocate standard colors. Failed. * 2 - Color successful. * 3 - Truecolor display. Color will always be successful. */ extern int butEnv_init(ButEnv *env, void *packet, const char *atomname, bool color); extern void butEnv_destroy(ButEnv *env); extern bool butEnv_setFont(ButEnv *env, int fontnum, const char *fontname, int fparam); #define butEnv_fontH(env, fnum) \ ((env)->fonts[fnum]->ascent + (env)->fonts[fnum]->descent) /* drawall is typically used after changing fonts, etc. */ extern void butEnv_drawAll(ButEnv *env); extern void butEnv_resizeAll(ButEnv *env); extern void but_draw(But *but); extern void but_destroy(But *but); extern void but_resize(But *but, int x, int y, int w, int h); #define butEnv_localContext(env) ((env)->localContext) #define butEnv_context(env) ((env)->context) extern void but_setId(But *but, int id); extern void butWin_setId(ButWin *win, int id); #define BUT_READFILE 0 #define BUT_WRITEFILE 1 #define BUT_XFILE 2 extern void butEnv_addFile(ButEnv *env, int group, int fd, void *packet, ButOut (*callback)(void *packet, int fd)); extern void butEnv_rmFile(ButEnv *env, int group, int fd); extern ButWin *butWin_iCreate(void *packet, ButEnv *env, const char *name, int w, int h, ButWin **iWin, bool iconic, int iW, int iH, ButWinFunc *unmap, ButWinFunc *map, ButWinFunc *resize, ButWinFunc *iResize, ButWinFunc *destroy); #define butWin_create(p,e,n,w,h,un,ma,re,de) \ butWin_iCreate(p,e,n,w,h,NULL,FALSE,0,0,un,ma,re,NULL,de) extern void butWin_setGeom(ButWin *win, const char *geometry); extern void butWin_setX(ButWin *win, int x); extern void butWin_setY(ButWin *win, int y); extern void butWin_setMinW(ButWin *win, int minW); extern void butWin_setMinH(ButWin *win, int minH); extern void butWin_setMaxW(ButWin *win, int maxW); extern void butWin_setMaxH(ButWin *win, int maxH); extern void butWin_setWHRatio(ButWin *win, int w, int h); extern void butWin_setWHRatios(ButWin *win, int minW, int minH, int maxW, int maxH); extern void butWin_setWStep(ButWin *win, int wStep); extern void butWin_setHStep(ButWin *win, int hStep); #define butWin_getMinW(w) ((w)->minW) #define butWin_getMinH(w) ((w)->minH) #define butWin_getMaxW(w) ((w)->maxW) #define butWin_getMaxH(w) ((w)->maxH) #define butWin_getWStep(w) ((w)->wStep) #define butWin_getHStep(w) ((w)->hStep) extern void butWin_activate(ButWin *win); extern void butWin_checkDims(ButWin *win); /* Private. */ extern void butWin_resize(ButWin *win, int newW, int newH); extern void butWin_destroy(ButWin *xw); /* grey is 0..16 */ extern ButColor butColor_create(int r, int g, int b, int grey); /* The output color will have bw_greyscale same as c1's. */ extern ButColor butColor_mix(ButColor c1, int r1, ButColor c2, int r2); extern bool butEnv_setColor(ButEnv *env, int colornum, ButColor color); XImage *butEnv_imageCreate(ButEnv *env, int w, int h); void butEnv_imageDestroy(XImage *image); /* From "i_general.c" */ extern void but_setFlags(But *but, uint fch); extern void but_setKeys(But *but, const ButKey *keys); /* From "but_write.c" */ extern void butEnv_setChar(ButEnv *env, double wratio, const char *id, void (*draw)(void *packet, ButWin *win, int x, int y, int w, int h), void *packet); extern int butEnv_textWidth(ButEnv *env, const char *text, int fnum); extern int butEnv_charWidth(ButEnv *env, const char *text, int fnum); /* From "but_textin.c" */ #define BUT_NOCHANGE (1 << (sizeof(int)*8-2)) #endif /* _BUT_BUT_H_ */ goban-1.1.orig/src/sgfIn.c0000644000175000017500000003466410270056635013174 0ustar alal/* * src/sgfInchain.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include "cgoban.h" #include "sgf.h" #include "sgfIn.h" #include "msg.h" #include "goGame.h" /********************************************************************** * Constants **********************************************************************/ #define POOLSIZE 100 /********************************************************************** * Forward declarations **********************************************************************/ static uint getToken(FILE *f, const char **arg, int *lineCount); static const char *readFile(Sgf *mc, FILE *f, int *lineCount); static const char *arg_getLoc(const char *arg, bool *err); static int arg_getInt(const char *arg, bool *err); static double arg_getDouble(const char *arg, bool *err); static const char *arg_getStr(const char *arg, Str *result); static void arg_multi(const char *arg, Sgf *mc, SgfType type, GoStone gval, bool *err); static void arg_multiLabel(const char *arg, Sgf *mc, bool *errOut); /********************************************************************** * Functions **********************************************************************/ #define TOKEN1(c) ((int)c & 0xff) #define TOKEN2(c1, c2) (((int)c1 & 0xff) | (((int)c2 << 8) & 0xff00)) Sgf *sgf_createFile(Cgoban *cg, const char *fName, const char **err, bool *noFile) { static Str strErr; static bool firstTime = TRUE; Sgf *mc; SgfElem *me; FILE *f; int c, crCount = 1; const char *problem; bool dummy; if (noFile == NULL) noFile = &dummy; *noFile = FALSE; if (firstTime) { str_init(&strErr); firstTime = FALSE; } mc = sgf_create(); assert(MAGIC(mc)); mc->mode = sgfInsert_variant; f = fopen(fName, "r"); if (f == NULL) { if (err) { if (errno == ENOENT) *noFile = TRUE; str_print(&strErr, msg_mcReadErr, strerror(errno), fName); *err = str_chars(&strErr); } sgf_destroy(mc); return(NULL); } /* * Start reading after the "(;" bit that marks the first node. */ do { do { c = getc(f); if (c == '\n') ++crCount; } while((c != '(') && (c != EOF)); do { c = getc(f); if (c == '\n') ++crCount; } while(isspace(c)); } while ((c != EOF) && (c != ';')); problem = readFile(mc, f, &crCount); if (problem) { if (err) { str_print(&strErr, msg_badSGFFile, fName, problem, crCount); *err = str_chars(&strErr); } fclose(f); sgf_destroy(mc); return(NULL); } fclose(f); mc->mode = sgfInsert_main; for (me = &mc->top; me; me = me->activeChild) { mc->active = me; } return(mc); } /* * Returns FALSE if there was an error. */ static const char *readFile(Sgf *mc, FILE *f, int *crCount) { uint token; const char *arg; SgfElem *me; int i; bool err = FALSE; const char *problem; static Str strOut; static bool firstTime = TRUE; float komi; if (firstTime) { str_init(&strOut); firstTime = FALSE; } for (;;) { token = getToken(f, &arg, crCount); switch(token) { case(0): return(msg_sgfBadToken); break; case(TOKEN1(')')): return(NULL); break; case(TOKEN1(';')): sgf_addNode(mc); break; case(TOKEN1('(')): me = mc->active; problem = readFile(mc, f, crCount); if (problem) return(problem); else { mc->active = me; me->activeChild = me->childH; } break; case(TOKEN2('S','Z')): i = arg_getInt(arg, &err); if ((err) || (i < 2) || (i > GOBOARD_MAXSIZE)) return(msg_sgfBadArg); sgf_setSize(mc, i); break; case(TOKEN2('R','U')): arg_getStr(arg, &strOut); for (i = 0; i < (int)goRules_num; ++i) { if (!strcmp(str_chars(&strOut), msg_ruleNames[i])) { break; } } if (i == goRules_num) { sgf_setRules(mc, goRules_japanese); } else { sgf_setRules(mc, (GoRules)i); } break; case(TOKEN2('H','A')): i = arg_getInt(arg, &err); if (err) { return(msg_sgfBadArg); } sgf_setHandicap(mc, i); break; case(TOKEN2('K','M')): arg_getStr(arg, &strOut); if (str_len(&strOut) == 0) { sgf_setKomi(mc, 0.0); } else { komi = wms_atof(str_chars(&strOut), &err); if (err) { if ((str_chars(&strOut)[0] == '-') || isdigit(str_chars(&strOut)[0])) { komi = atoi(str_chars(&strOut)); if (komi >= 0.0) komi += 0.5; else komi -= 0.5; } else { return(msg_sgfBadArg); } } sgf_setKomi(mc, komi); } break; case(TOKEN2('T','M')): sgf_setTimeFormat(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('C','P')): sgf_copyright(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('P','W')): sgf_setPlayerName(mc, goStone_white, arg_getStr(arg, &strOut)); break; case(TOKEN2('P','B')): sgf_setPlayerName(mc, goStone_black, arg_getStr(arg, &strOut)); break; case(TOKEN2('D','T')): sgf_addSElem(mc, sgfType_date, arg_getStr(arg, &strOut)); break; case(TOKEN2('G','N')): arg_getStr(arg, &strOut); if (str_len(&strOut) > 0) sgf_addSElem(mc, sgfType_title, str_chars(&strOut)); break; case(TOKEN2('W','R')): sgf_playerRank(mc, goStone_white, arg_getStr(arg, &strOut)); break; case(TOKEN2('B','R')): sgf_playerRank(mc, goStone_black, arg_getStr(arg, &strOut)); break; case(TOKEN2('E','V')): sgf_event(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('S','O')): sgf_source(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('G','C')): sgf_gameComment(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('P','L')): arg_getStr(arg, &strOut); if (str_len(&strOut) != 1) { return(msg_sgfBadArg); } switch(str_chars(&strOut)[0]) { case 'B': case 'b': case '1': sgf_setWhoseMove(mc, goStone_black); break; case 'W': case 'w': case '2': sgf_setWhoseMove(mc, goStone_white); break; default: return(msg_sgfBadArg); } break; case(TOKEN1('W')): arg = arg_getLoc(arg, &err); if (err) return(msg_sgfBadLoc); if (arg) sgf_move(mc, goStone_white, arg); else sgf_pass(mc, goStone_white); break; case(TOKEN1('B')): arg = arg_getLoc(arg, &err); if (err) return(msg_sgfBadLoc); if (arg) sgf_move(mc, goStone_black, arg); else sgf_pass(mc, goStone_black); break; case(TOKEN2('W','L')): i = (int)arg_getDouble(arg, &err); if (err) { return(msg_sgfBadArg); } sgf_timeLeft(mc, goStone_white, i); break; case(TOKEN2('B','L')): i = (int)arg_getDouble(arg, &err); if (err) { return(msg_sgfBadArg); } sgf_timeLeft(mc, goStone_black, i); break; case(TOKEN2('O','W')): i = arg_getInt(arg, &err); if (err) { return(msg_sgfBadArg); } sgf_stonesLeft(mc, goStone_white, i); break; case(TOKEN2('O','B')): i = arg_getInt(arg, &err); if (err) { return(msg_sgfBadArg); } sgf_stonesLeft(mc, goStone_black, i); break; case(TOKEN2('A','E')): arg_multi(arg, mc, sgfType_setBoard, goStone_empty, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('A','W')): arg_multi(arg, mc, sgfType_setBoard, goStone_white, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('A','B')): arg_multi(arg, mc, sgfType_setBoard, goStone_black, &err); if (err) { return(msg_sgfBadLoc); } break; case(TOKEN2('T','W')): arg_multi(arg, mc, sgfType_territory, goStone_white, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('T','B')): arg_multi(arg, mc, sgfType_territory, goStone_black, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('T','R')): arg_multi(arg, mc, sgfType_triangle, goStone_empty, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('C','R')): arg_multi(arg, mc, sgfType_circle, goStone_empty, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('M','A')): /* I draw "MA" (mark) as a square. */ case(TOKEN1('M')): /* Some games have marks as "M[..]". */ arg_multi(arg, mc, sgfType_square, goStone_empty, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN2('L','B')): arg_multiLabel(arg, mc, &err); if (err) return(msg_sgfBadLoc); break; case(TOKEN1('L')): /* Obsolete version of the LB token. */ me = mc->active; arg_multi(arg, mc, sgfType_label, goStone_empty, &err); if (err) return(msg_sgfBadLoc); i = 'A'; while (me != mc->active) { me = me->activeChild; me->sVal = str_createChar(i++); } break; case(TOKEN1('C')): sgf_comment(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('R','E')): sgf_result(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('G','M')): /* * if (arg_getInt(arg, &err) != 1) * return(msg_sgfBadArg); */ break; case(TOKEN2('F','F')): break; case(TOKEN2('P','C')): sgf_place(mc, arg_getStr(arg, &strOut)); break; case(TOKEN2('S','Y')): sgf_style(mc, arg_getStr(arg, &strOut)); break; default: sgf_unknown(mc, arg); break; } } } static const char *arg_getLoc(const char *arg, bool *err) { static char result[5] = "abcd"; while ((*arg != '[') && *arg) ++arg; if (!(*arg)) { *err = TRUE; return(NULL); } ++arg; if ((*arg == ']') || ((arg[0] == 't') && (arg[1] == 't') && (arg[2] == ']'))) return(NULL); if (!islower(arg[0]) || !islower(arg[1])) { *err = TRUE; return(NULL); } if ((arg[2] == ']') || (arg[2] == ':')) { result[0] = result[2] = 'a'; result[1] = arg[0]; result[3] = arg[1]; result[4] = '\0'; return(result); } if (islower(arg[2]) && islower(arg[3]) && ((arg[4] == ']') || (arg[4] == ':'))) { result[0] = arg[0]; result[1] = arg[1]; result[2] = arg[2]; result[3] = arg[3]; result[4] = '\0'; return(result); } else { *err = TRUE; return(NULL); } } static void arg_multi(const char *arg, Sgf *mc, SgfType type, GoStone gval, bool *errOut) { bool err = FALSE; const char *loc; for (;;) { while ((*arg != '[') && (*arg != '\0')) ++arg; if (*arg == '\0') return; loc = arg_getLoc(arg, &err); if (err) { *errOut = TRUE; return; } if (loc != NULL) sgf_addCLElem(mc, type, gval, loc); ++arg; } } static void arg_multiLabel(const char *arg, Sgf *mc, bool *errOut) { bool err = FALSE; const char *loc; for (;;) { while ((*arg != '[') && (*arg != '\0')) ++arg; if (*arg == '\0') return; loc = arg_getLoc(arg, &err); if (err) { *errOut = TRUE; return; } while ((*arg != ':') && (*arg != '\0')) ++arg; if (*arg == '\0') { *errOut = TRUE; return; } sgf_label(mc, loc, ""); ++arg; while ((*arg != ']') && (*arg != '\0')) { str_catChar(mc->active->sVal, *arg); ++arg; } if (*arg == '\0') { *errOut = TRUE; return; } } } static int arg_getInt(const char *arg, bool *err) { int len; char tmp[11]; while (*arg != '[') ++arg; if (arg[1] == ']') { /* * Is this an error? I think so. * But apparently some lame ass SGF editor uses [] as zero at times, * so I gotta accept it. */ return(0); } ++arg; for (len = 0; arg[len] != ']'; ++len) { tmp[len] = arg[len]; if (len + 1 >= sizeof(tmp)) { *err = TRUE; return(0); } } tmp[len] = '\0'; return(wms_atoi(tmp, err)); } static double arg_getDouble(const char *arg, bool *err) { int len; char tmp[20]; while (*arg != '[') ++arg; ++arg; for (len = 0; arg[len] != ']'; ++len) { tmp[len] = arg[len]; if (len + 1 >= sizeof(tmp)) { *err = TRUE; return(0); } } tmp[len] = '\0'; return(wms_atof(tmp, err)); } static const char *arg_getStr(const char *arg, Str *result) { str_clip(result, 0); while (*arg != '[') ++arg; ++arg; while (*arg != ']') { assert(*arg); if (*arg == '\\') ++arg; str_catChar(result, *arg); ++arg; } return(str_chars(result)); } static uint getToken(FILE *f, const char **arg, int *lineCount) { static bool firstTime = TRUE; static Str buf; int c; enum { state_token, state_arg, state_nextArg } state; bool escaping = FALSE, escaped; uint token = 0; int shift = 0; int countAdd = 0; int lastCloseBracket = 0; if (firstTime) { str_init(&buf); firstTime = FALSE; } state = state_token; str_copyChars(&buf, ""); for (;;) { c = getc(f); if (c == '\n') ++countAdd; if (c == EOF) { *arg = str_chars(&buf); if (state == state_nextArg) { *lineCount += countAdd; return(token); } else return(0); } if (!escaping) { escaped = FALSE; if (c == '\\') escaping = TRUE; } else { escaped = TRUE; escaping = FALSE; } if ((state == state_token) && !escaped && !token && ((c == ';') || (c == '(') || (c == ')'))) { str_catChar(&buf, c); token = c; *arg = str_chars(&buf); *lineCount += countAdd; return(token); } else if ((state == state_token) && !islower(c) && !isspace(c) && (c != '[')) { str_catChar(&buf, c); token |= ((int)c & 0xff) << shift; shift += 8; if (shift > 16) return(0); } else if (((state == state_token) || (state == state_nextArg)) && !escaped && (c == '[')) { *lineCount += countAdd; countAdd = 0; str_catChar(&buf, c); state = state_arg; } else if ((state == state_arg) && !escaped && (c == ']')) { str_catChar(&buf, c); lastCloseBracket = str_len(&buf); state = state_nextArg; } else if ((state == state_nextArg) && !isspace(c) && (c != '[')) { ungetc(c, f); *arg = str_chars(&buf); *lineCount += countAdd; assert(lastCloseBracket > 0); str_clip(&buf, lastCloseBracket); return(token); } else { str_catChar(&buf, c); } } } goban-1.1.orig/src/Makefile.am0000644000175000017500000000161310271254777014012 0ustar alalAUTOMAKE_OPTIONS = foreign no-dependencies AM_CFLAGS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" bin_PROGRAMS = goban goban_SOURCES = abut.c abut_help.c abut_msg.c arena.c board.c box.c but.c canvas.c cgbuts.c cgoban.c checkbox.c client.c client_main.c client_setup.c clp.c clp-x.c cm2pm.c conn.c control.c crwin.c ctext.c data.c drawStone.c editBoard.c editInfo.c editTool.c engine.c fsel.c game.c gameSetup.c goban.c goBoard.c goGame.c goHash.c goPic.c goScore.c goTime.c help.c i_finder.c i_general.c i_snd.c i_win.c list.c local.c login.c look.c lsetup.c main.c match.c menu.c menu_snd.c msg.c net.c plain.c plasma.c play.c player.c radio.c rcur.c rnd.c screensaver.c server.c setup.c sgf.c sgfIn.c sgfMap.c sgfOut.c sgfPlay.c slide.c snd.c str.c swin.c tbin.c tblock.c term.c text.c textin.c timer.c wms.c write.c goban_CFLAGS = @X_CFLAGS@ $(AM_CFLAGS) goban_LDADD = @X_LIBS@ -lX11 @X_EXTRA_LIBS@ -lm goban-1.1.orig/src/msg.h0000644000175000017500000001575210267777403012727 0ustar alal/* * src/msg.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _MSG_H_ #define _MSG_H_ 1 /********************************************************************** * Global variables **********************************************************************/ extern const char msg_mFonts[], msg_labelFonts[], msg_bFonts[]; /* From "crwin.c" */ extern const char msg_byBillShubert[]; extern const char msg_noWarranty[]; extern const char msg_seeHelp[]; /* From "cgoban.c" */ extern const char msg_path[], msg_file[], msg_mask[]; extern const char msg_dirs[], msg_files[]; extern const char msg_dirErr[]; extern const char msg_notEnoughColors[]; /* From "control.c" */ extern const char msg_newGame[], msg_loadGame[]; extern const char msg_editSGF[], msg_goModem[]; extern const char msg_quit[], msg_setup[]; extern const char msg_loadGameName[], msg_editGameName[]; /* From "local.c" */ extern const char msg_gSetup[]; extern const char msg_wName[], msg_bName[]; extern const char msg_ruleSet[], *msg_ruleNames[]; extern const char msg_boardSize[]; extern const char msg_handicap[]; extern const char msg_komi[]; extern const char msg_ok[]; extern const char msg_cancel[]; extern const char msg_timeSystem[], *msg_timeSystems[]; extern const char msg_primaryTime[], msg_byoYomi[]; extern const char msg_byoYomiCount[], msg_byoYomiStones[]; extern const char msg_badSize[], msg_badHcap[], msg_badKomi[]; extern const char msg_localTitle[], msg_noTitle[]; extern const char msg_badTime[], msg_badBYStones[], msg_badBYCount[]; /* * From "local.c" */ extern const char msg_notCgobanFile[]; extern const char msg_gameInfo[], msg_help[]; extern const char msg_pass[], msg_done[], msg_resume[], msg_dispute[]; extern const char msg_saveGame[], msg_editGame[]; extern const char msg_score[], msg_time[]; extern const char msg_localChiRemDead[], msg_localJapRemDead[]; extern const char msg_selectDisputed[], msg_selectDisputedMsg[]; extern const char *msg_stoneNames[]; extern const char msg_gameStartDesc[], msg_toPlay[]; extern const char msg_move1Desc[], msg_move1OfDesc[]; extern const char msg_moveNDesc[], msg_moveNOfDesc[]; extern const char msg_selectDead[]; extern const char msg_whiteWon[], msg_blackWon[], msg_jigo[]; extern const char msg_timeLossInfo[]; extern const char msg_disputeAnnounce[], msg_alive[], msg_dead[]; extern const char msg_disputeOverAlive[]; extern const char msg_disputeOverDead[]; extern const char msg_scoreKillsComment[], msg_scoreNoKillsComment[]; extern const char msg_ingPenaltyComment[]; extern const char msg_winnerComment[], msg_jigoComment[]; extern const char msg_gameIsOver[]; extern const char msg_timeLoss[]; extern const char msg_saveGameName[]; extern const char msg_reallyQuitGame[]; /* From "goban.c" */ extern const char msg_say[], msg_both[], msg_kib[]; /* From movechain.c */ extern const char msg_mcReadErr[]; extern const char msg_badSGFFile[]; extern const char msg_sgfBadToken[]; extern const char msg_sgfEarlyEOF[]; extern const char msg_sgfBadLoc[]; extern const char msg_sgfBadArg[]; /* From editBoard.c */ extern const char msg_printGame[], msg_noSuchGame[], msg_reallyQuit[]; extern const char msg_noCancel[], msg_yesQuit[]; extern const char msg_changeNodeWhileScoring[]; /* From editTool.c */ extern const char *msg_toolNames[]; extern const char *msg_toolDesc1[], *msg_toolDesc2[]; extern const char msg_killNode[], msg_moveNode[]; /* From "editInfo.c" */ extern const char msg_editInfoTitle[], msg_copyrightC[]; extern const char msg_gameTitle[], msg_result[]; extern const char msg_wStoneName[], msg_bStoneName[]; extern const char msg_wRank[], msg_bRank[]; extern const char msg_handicapC[], msg_komiC[]; extern const char msg_date[], msg_place[], msg_event[], msg_source[]; /* From gmp/setup.c */ extern const char msg_gmpSetup[]; extern const char *msg_gmpTypes[]; extern const char *msg_gmpPlayers[]; extern const char msg_program[]; extern const char msg_device[]; extern const char msg_machineName[]; extern const char msg_port[]; extern const char msg_username[]; extern const char msg_password[]; extern const char msg_badPortNum[]; extern const char msg_progRunErr[], msg_devOpenErr[]; extern const char msg_gmpTooBig[]; extern const char msg_waitingForGame[]; extern const char msg_noUndoFromGmpToClient[]; /* From gmp/play.c */ extern const char msg_gmpMoveOutsideGame[]; extern const char msg_gmpBadMove[]; extern const char msg_undoRequested[]; extern const char msg_badNewGameReq[]; extern const char msg_gmpCouldntStart[]; extern const char msg_gmpProgDied[], msg_gmpProgKilled[]; extern const char msg_gmpProgWhyDead[]; /* From gmp/engine.c */ extern const char msg_gmpDead[], msg_gmpTimeout[], msg_gmpSendBufFull[]; /* From client/setup.c */ extern const char *msg_loginDesc[]; extern const char msg_usernameColon[], msg_passwordColon[]; /* From client/login.c */ extern const char msg_cliOpenSocket[], msg_cliLookup[], msg_cliConnect[]; extern const char msg_cliHangup[], msg_login[]; extern const char msg_notAGuest[], msg_guest[], msg_loginFailed[]; /* From client/board.c */ extern const char msg_cliGameName[], msg_close[], msg_adjourn[]; extern const char msg_resign[], msg_yesResign[], msg_reallyResign[]; extern const char msg_cliGameBadMove[]; /* From client/conn.c */ extern const char msg_commandError[]; /* From client/look.c */ extern const char msg_cliLookName[]; extern const char msg_cliLookInfo[]; /* From client/main.c */ extern const char msg_players[], msg_games[]; /* From client/game.c */ extern const char msg_gameGoneResign[], msg_gameGoneAdjourn[]; extern const char msg_gameGoneTime[], msg_gameGoneScore[]; extern const char msg_gameResultResign[], msg_gameResultAdjourn[]; extern const char msg_gameResultTime[], msg_gameResultScore[]; extern const char msg_gameListDesc[]; extern const char msg_gameBadElf[]; /* From client/player.c */ extern const char msg_name[], msg_braceRank[], msg_state[]; extern const char msg_playerListDesc[]; /* From setup.c */ extern const char msg_setupTitle[]; extern const char msg_selServer[]; extern const char msg_gsCompName[]; extern const char msg_gsPortNum[]; extern const char msg_clientBadPortNum[]; extern const char msg_srvConfig[]; extern const char msg_directConn[]; extern const char msg_connCmdLabel[]; extern const char msg_miscellaneous[]; extern const char msg_showCoordinates[], msg_numberKibitzes[]; extern const char msg_hiContrast[]; extern const char msg_noTypo[]; extern const char msg_setupSrvName[]; extern const char msg_setupProtocol[]; /* From client/match.c */ extern const char msg_swapColors[]; extern const char msg_cliGameSetup[]; extern const char msg_cliGameSetupSent[]; extern const char msg_cliGameSetupRej[]; extern const char msg_cliGameSetupRecvd[]; extern const char msg_freeGame[]; extern const char msg_youDontExist[]; /* From "sgfPlay.c" */ extern const char msg_badMoveInSgf[]; #endif /* _MSG_H_ */ goban-1.1.orig/src/vroot.h0000644000175000017500000001217006756155141013276 0ustar alal/*****************************************************************************/ /** Copyright 1991 by Andreas Stolcke **/ /** Copyright 1990 by Solbourne Computer Inc. **/ /** Longmont, Colorado **/ /** **/ /** All Rights Reserved **/ /** **/ /** Permission to use, copy, modify, and distribute this software and **/ /** its documentation for any purpose and without fee is hereby **/ /** granted, provided that the above copyright notice appear in all **/ /** copies and that both that copyright notice and this permis- **/ /** sion notice appear in supporting documentation, and that the **/ /** name of Solbourne not be used in advertising **/ /** in publicity pertaining to distribution of the software without **/ /** specific, written prior permission. **/ /** **/ /** ANDREAS STOLCKE AND SOLBOURNE COMPUTER INC. DISCLAIMS ALL WARRANTIES **/ /** WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF **/ /** MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ANDREAS STOLCKE **/ /** OR SOLBOURNE BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL **/ /** DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/ /** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/ /** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/ /** OR PERFORMANCE OF THIS SOFTWARE. **/ /*****************************************************************************/ /* * vroot.h -- Virtual Root Window handling header file * * This header file redefines the X11 macros RootWindow and DefaultRootWindow, * making them look for a virtual root window as provided by certain `virtual' * window managers like swm and tvtwm. If none is found, the ordinary root * window is returned, thus retaining backward compatibility with standard * window managers. * The function implementing the virtual root lookup remembers the result of * its last invocation to avoid overhead in the case of repeated calls * on the same display and screen arguments. * The lookup code itself is taken from Tom LaStrange's ssetroot program. * * Most simple root window changing X programs can be converted to using * virtual roots by just including * * #include * * after all the X11 header files. It has been tested on such popular * X clients as xphoon, xfroot, xloadimage, and xaqua. * It also works with the core clients xprop, xwininfo, xwd, and editres * (and is necessary to get those clients working under tvtwm). * It does NOT work with xsetroot; get the xsetroot replacement included in * the tvtwm distribution instead. * * Andreas Stolcke , 9/7/90 * - replaced all NULL's with properly cast 0's, 5/6/91 * - free children list (suggested by Mark Martin ), 5/16/91 * - include X11/Xlib.h and support RootWindowOfScreen, too 9/17/91 */ #ifndef _VROOT_H_ #define _VROOT_H_ #if !defined(lint) && !defined(SABER) static const char vroot_rcsid[] = "#Id: vroot.h,v 1.4 1991/09/30 19:23:16 stolcke Exp stolcke #"; #endif #include #include #include static Window #ifdef __STDC__ /* ANSIfication added by jwz, to avoid superfluous warnings. */ VirtualRootWindowOfScreen(Screen *screen) #else /* !__STDC__ */ VirtualRootWindowOfScreen(screen) Screen *screen; #endif /* !__STDC__ */ { static Screen *save_screen = (Screen *)0; static Window root = (Window)0; if (screen != save_screen) { Display *dpy = DisplayOfScreen(screen); Atom __SWM_VROOT = None; int i; Window rootReturn, parentReturn, *children; unsigned int numChildren; root = RootWindowOfScreen(screen); /* go look for a virtual root */ __SWM_VROOT = XInternAtom(dpy, "__SWM_VROOT", False); if (XQueryTree(dpy, root, &rootReturn, &parentReturn, &children, &numChildren)) { for (i = 0; i < numChildren; i++) { Atom actual_type; int actual_format; unsigned long nitems, bytesafter; Window *newRoot = (Window *)0; if (XGetWindowProperty(dpy, children[i], __SWM_VROOT, 0, 1, False, XA_WINDOW, &actual_type, &actual_format, &nitems, &bytesafter, (unsigned char **) &newRoot) == Success && newRoot) { root = *newRoot; break; } } if (children) XFree((char *)children); } save_screen = screen; } return root; } #undef RootWindowOfScreen #define RootWindowOfScreen(s) VirtualRootWindowOfScreen(s) #undef RootWindow #define RootWindow(dpy,screen) VirtualRootWindowOfScreen(ScreenOfDisplay(dpy,screen)) #undef DefaultRootWindow #define DefaultRootWindow(dpy) VirtualRootWindowOfScreen(DefaultScreenOfDisplay(dpy)) #endif /* _VROOT_H_ */ goban-1.1.orig/src/swin.h0000644000175000017500000000331106051507625013076 0ustar alal/* * wmslib/src/abut/swin.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for auxiliary button code. */ #ifndef _ABUT_SWIN_H_ #define _ABUT_SWIN_H_ 1 #ifndef _WMS_H_ #include #endif #ifndef _BUT_BUT_H_ #include #endif /********************************************************************** * Constants **********************************************************************/ #define ABUT_UPPIC "\2\1" #define ABUT_DOWNPIC "\2\2" #define ABUT_LEFTPIC "\2\3" #define ABUT_RIGHTPIC "\2\4" /********************************************************************** * Data types **********************************************************************/ typedef struct AbutSwin_struct { ButWin *win; void *packet; But *up, *down, *left, *right, *hSlide, *vSlide, *box; float xCenter, yCenter; uint flags; ButTimer *timer; int x, y, w, h, slideW, lineH; /* Backups for resizing. */ int canButW, canButH; MAGIC_STRUCT } AbutSwin; #define ABUTSWIN_LSLIDE 0x1 #define ABUTSWIN_RSLIDE 0x2 #define ABUTSWIN_TSLIDE 0x4 #define ABUTSWIN_BSLIDE 0x8 /********************************************************************** * Functions **********************************************************************/ extern AbutSwin *abutSwin_create(void *packet, ButWin *parent, int layer, uint flags, ButWinFunc resize); extern void abutSwin_resize(AbutSwin *swin, int x, int y, int w, int h, int slidew, int lineh); extern void abutSwin_destroy(AbutSwin *swin); extern void abutSwin_vMove(AbutSwin *swin, int newLoc); #endif /* _ABUT_SWIN_H_ */ goban-1.1.orig/src/help.c0000644000175000017500000025354006427022272013051 0ustar alal/* * src/help.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include "cgbuts.h" #ifdef _HELP_H_ LEVELIZATION ERROR #endif #include "help.h" /* * Used by all help pages */ static const AbutHelpText aboutAuthor[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "About the author"}, {butText_just, 0, " Hello! My name is Bill Shubert. I learned go " "when I was very young, but never had any opponents until late 1993, " "when I learned of the Internet Go Server. I was thrilled by the " "server, but was disappointed by the client programs available. I was " "also disappointed by the quality of the smart go editing tools that " "I could find. Instead of just whining, I decided to create my own " "program to do these tasks! I called it \"Cgoban\", for Complete " "Goban, because it does everything that a computerized goban should."}, {butText_just, 0, " You can always get the latest version of cgoban from " "my web pages at the URL below. You can also find out more about me if " "you wish."}, {butText_just, 0, " I run a mailing list for people who want cgoban " "updates. I keep the traffic low; mostly only announcements when new " "versions are available, along with a brief description of what is " "new or fixed in the new version. If you want these announcements, " "then send me email. Also feel free to get in touch with me if you " " have any comments about this program. Bug reports are especially " "welcome. As of the date at the top of this help page, you can contact " "me in these ways:"}, {butText_left, 0, " Email: wms@hevanet.com"}, {butText_left, 0, " WWW: http://www.hevanet.com/wms/"}, {butText_left, 0, " Work email: wms@ssd.intel.com"}, {butText_left, 0, " Phone: (503)223-2285"}, {butText_just, 0, "Or send me a postcard at:"}, {butText_left, 0, " Bill Shubert"}, {butText_left, 0, " 1975 NW Everett St. #301"}, {butText_left, 0, " Portland, OR 97209"}, {butText_left, 0, " USA"}, {butText_just, 0, ""}, {butText_just, 0, " Thanks for trying out my program. I hope you like " "it!"}, {butText_just, 0, " Special thanks to all cgoban testers, especially " "to Dan Niles, Per-Eric Martin, Anthony Thyssen, Jan van der Steen, " "Eric Hoffman, Allen Tollin, Mel Melchner, Saito Takaaki, and " "Matt Ritchie, who were " "willing to debug cgoban on their systems and/or hack on the code to help " "track down bugs for me."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText copyright[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 0, " The globe pictures were extracted from gifs created " "by xearth-1.0, which carries this copyright:"}, {butText_center, 0, "Copyright (C) 1989, 1990, 1993, 1994, 1995 Kirk Lauritz Johnson"}, {butText_center, 0, "Parts of the source code (as marked) are:"}, {butText_center, 0, "Copyright (C) 1989, 1990, 1991 by Jim Frost"}, {butText_center, 0, "Copyright (C) 1992 by Jamie Zawinski "}, {butText_center, 0, "Permission to use, copy, modify and freely distribute " "xearth for non-commercial and not-for-profit purposes is hereby granted " "without fee, provided that both the above copyright notice and " "this permission notice appear in all copies and in supporting " "documentation."}, {butText_just, 0, ""}, {butText_just, 2, "Distribution"}, {butText_just, 0, " All code except for the data described above is " "copyright \251 1995-1996 William Shubert and is distributed under the " "Gnu General Public License, version 2. This should have been included " "with your copy of the source code is a file called \"COPYING\". In any " "case, the license is also included below."}, {butText_just, 0, " Basically, there are three things that most of you " "will care about in this license. One is that you can give away free " "copies to all your friends. Another is that you have to be told where " "you can get the source code from. You can get it from me; see the " "\"About the Author\" help page for how to get in touch. The last is " "that there is no warranty, so if this software ruins your life don't " "come crying to me."}, {butText_just, 0, " If you want to do anything else with this software, " "you should read the license below for details."}, {butText_just, 0, ""}, {butText_center, 0, "GNU GENERAL PUBLIC LICENSE"}, {butText_center, 0, "TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND " "MODIFICATION"}, {butText_just, 0, ""}, {butText_just, 0, " 0. This License applies to any program or other work " "which contains a notice placed by the copyright holder saying it may be " "distributed under the terms of this General Public License. The " "\"Program\", below, refers to any such program or work, and a \"work " "based on the Program\" means either the Program or any derivative work " "under copyright law: that is to say, a work containing the Program or a " "portion of it, either verbatim or with modifications and/or translated " "into another language. (Hereinafter, translation is included without " "limitation in the term \"modification\".) Each licensee is addressed " "as \"you\"."}, {butText_just, 0, ""}, {butText_just, 0, "Activities other than copying, distribution and " "modification are not covered by this License; they are outside its " "scope. The act of running the Program is not restricted, and the " "output from the Program is covered only if its contents constitute a " "work based on the Program (independent of having been made by running " "the Program). Whether that is true depends on what the Program does."}, {butText_just, 0, ""}, {butText_just, 0, " 1. You may copy and distribute verbatim copies of the " "Program's source code as you receive it, in any medium, provided that " "you conspicuously and appropriately publish on each copy an appropriate " "copyright notice and disclaimer of warranty; keep intact all the " "notices that refer to this License and to the absence of any warranty; " "and give any other recipients of the Program a copy of this License " "along with the Program."}, {butText_just, 0, ""}, {butText_just, 0, "You may charge a fee for the physical act of " "transferring a copy, and you may at your option offer warranty " "protection in exchange for a fee."}, {butText_just, 0, ""}, {butText_just, 0, " 2. You may modify your copy or copies of the Program " "or any portion of it, thus forming a work based on the Program, and " "copy and distribute such modifications or work under the terms of " "Section 1 above, provided that you also meet all of these " "conditions:"}, {butText_just, 0, ""}, {butText_just, 0, " a) You must cause the modified files to carry " "prominent notices stating that you changed the files and the date of " "any change."}, {butText_just, 0, ""}, {butText_just, 0, " b) You must cause any work that you distribute or " "publish, that in whole or in part contains or is derived from the " "Program or any part thereof, to be licensed as a whole at no charge to " "all third parties under the terms of this License."}, {butText_just, 0, ""}, {butText_just, 0, " c) If the modified program normally reads commands " "interactively when run, you must cause it, when started running for " "such interactive use in the most ordinary way, to print or display an " "announcement including an appropriate copyright notice and a notice " "that there is no warranty (or else, saying that you provide a warranty) " "and that users may redistribute the program under these conditions, and " "telling the user how to view a copy of this License. (Exception: if " "the Program itself is interactive but does not normally print such an " "announcement, your work based on the Program is not required to print " "an announcement.)"}, {butText_just, 0, ""}, {butText_just, 0, "These requirements apply to the modified work as a " "whole. If identifiable sections of that work are not derived from the " "Program, and can be reasonably considered independent and separate " "works in themselves, then this License, and its terms, do not apply to " "those sections when you distribute them as separate works. But when " "you distribute the same sections as part of a whole which is a work " "based on the Program, the distribution of the whole must be on the " "terms of this License, whose permissions for other licensees extend to " "the entire whole, and thus to each and every part regardless of who " "wrote it."}, {butText_just, 0, ""}, {butText_just, 0, "Thus, it is not the intent of this section to claim " "rights or contest your rights to work written entirely by you; rather, " "the intent is to exercise the right to control the distribution of " "derivative or collective works based on the Program."}, {butText_just, 0, ""}, {butText_just, 0, "In addition, mere aggregation of another work not based " "on the Program with the Program (or with a work based on the Program) " "on a volume of a storage or distribution medium does not bring the " "other work under the scope of this License."}, {butText_just, 0, ""}, {butText_just, 0, " 3. You may copy and distribute the Program (or a work " "based on it, under Section 2) in object code or executable form under " "the terms of Sections 1 and 2 above provided that you also do one of " "the following:"}, {butText_just, 0, ""}, {butText_just, 0, " a) Accompany it with the complete corresponding " "machine-readable source code, which must be distributed under the terms " "of Sections 1 and 2 above on a medium customarily used for software " "interchange; or,"}, {butText_just, 0, ""}, {butText_just, 0, " b) Accompany it with a written offer, valid for at " "least three years, to give any third party, for a charge no more than " "your cost of physically performing source distribution, a complete " "machine-readable copy of the corresponding source code, to be " "distributed under the terms of Sections 1 and 2 above on a medium " "customarily used for software interchange; or,"}, {butText_just, 0, ""}, {butText_just, 0, " c) Accompany it with the information you received " "as to the offer to distribute corresponding source code. (This " "alternative is allowed only for noncommercial distribution and only if " "you received the program in object code or executable form with such an " "offer, in accord with Subsection b above.)"}, {butText_just, 0, ""}, {butText_just, 0, "The source code for a work means the preferred form of " "the work for making modifications to it. For an executable work, " "complete source code means all the source code for all modules it " "contains, plus any associated interface definition files, plus the " "scripts used to control compilation and installation of the executable. " " However, as a special exception, the source code distributed need not " "include anything that is normally distributed (in either source or " "binary form) with the major components (compiler, kernel, and so on) of " "the operating system on which the executable runs, unless that " "component itself accompanies the executable."}, {butText_just, 0, ""}, {butText_just, 0, "If distribution of executable or object code is made by " "offering access to copy from a designated place, then offering " "equivalent access to copy the source code from the same place counts as " "distribution of the source code, even though third parties are not " "compelled to copy the source along with the object code."}, {butText_just, 0, ""}, {butText_just, 0, " 4. You may not copy, modify, sublicense, or " "distribute the Program except as expressly provided under this License. " " Any attempt otherwise to copy, modify, sublicense or distribute the " "Program is void, and will automatically terminate your rights under " "this License. However, parties who have received copies, or rights, " "from you under this License will not have their licenses terminated so " "long as such parties remain in full compliance."}, {butText_just, 0, ""}, {butText_just, 0, " 5. You are not required to accept this License, since " "you have not signed it. However, nothing else grants you permission to " "modify or distribute the Program or its derivative works. These " "actions are prohibited by law if you do not accept this License. " "Therefore, by modifying or distributing the Program (or any work based " "on the Program), you indicate your acceptance of this License to do so, " "and all its terms and conditions for copying, distributing or modifying " "the Program or works based on it."}, {butText_just, 0, ""}, {butText_just, 0, " 6. Each time you redistribute the Program (or any " "work based on the Program), the recipient automatically receives a " "license from the original licensor to copy, distribute or modify the " "Program subject to these terms and conditions. You may not impose any " "further restrictions on the recipients' exercise of the rights granted " "herein. You are not responsible for enforcing compliance by third " "parties to this License."}, {butText_just, 0, ""}, {butText_just, 0, " 7. If, as a consequence of a court judgment or " "allegation of patent infringement or for any other reason (not limited " "to patent issues), conditions are imposed on you (whether by court " "order, agreement or otherwise) that contradict the conditions of this " "License, they do not excuse you from the conditions of this License. " "If you cannot distribute so as to satisfy simultaneously your " "obligations under this License and any other pertinent obligations, " "then as a consequence you may not distribute the Program at all. For " "example, if a patent license would not permit royalty-free " "redistribution of the Program by all those who receive copies directly " "or indirectly through you, then the only way you could satisfy both it " "and this License would be to refrain entirely from distribution of the " "Program."}, {butText_just, 0, ""}, {butText_just, 0, "If any portion of this section is held invalid or " "unenforceable under any particular circumstance, the balance of the " "section is intended to apply and the section as a whole is intended to " "apply in other circumstances."}, {butText_just, 0, ""}, {butText_just, 0, "It is not the purpose of this section to induce you to " "infringe any patents or other property right claims or to contest " "validity of any such claims; this section has the sole purpose of " "protecting the integrity of the free software distribution system, " "which is implemented by public license practices. Many people have " "made generous contributions to the wide range of software distributed " "through that system in reliance on consistent application of that " "system; it is up to the author/donor to decide if he or she is willing " "to distribute software through any other system and a licensee cannot " "impose that choice."}, {butText_just, 0, ""}, {butText_just, 0, "This section is intended to make thoroughly clear what " "is believed to be a consequence of the rest of this License."}, {butText_just, 0, ""}, {butText_just, 0, " 8. If the distribution and/or use of the Program is " "restricted in certain countries either by patents or by copyrighted " "interfaces, the original copyright holder who places the Program under " "this License may add an explicit geographical distribution limitation " "excluding those countries, so that distribution is permitted only in or " "among countries not thus excluded. In such case, this License " "incorporates the limitation as if written in the body of this License."}, {butText_just, 0, ""}, {butText_just, 0, " 9. The Free Software Foundation may publish revised " "and/or new versions of the General Public License from time to time. " "Such new versions will be similar in spirit to the present version, but " "may differ in detail to address new problems or concerns."}, {butText_just, 0, ""}, {butText_just, 0, "Each version is given a distinguishing version number. " "If the Program specifies a version number of this License which applies " "to it and \"any later version\", you have the option of following the " "terms and conditions either of that version or of any later version " "published by the Free Software Foundation. If the Program does not " "specify a version number of this License, you may choose any version " "ever published by the Free Software Foundation."}, {butText_just, 0, ""}, {butText_just, 0, " 10. If you wish to incorporate parts of the Program " "into other free programs whose distribution conditions are different, " "write to the author to ask for permission. For software which is " "copyrighted by the Free Software Foundation, write to the Free Software " "Foundation; we sometimes make exceptions for this. Our decision will " "be guided by the two goals of preserving the free status of all " "derivatives of our free software and of promoting the sharing and reuse " "of software generally."}, {butText_just, 0, ""}, {butText_center, 0, "NO WARRANTY"}, {butText_just, 0, ""}, {butText_just, 0, " 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, " "THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY " "APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT " "HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT " "WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT " "LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A " "PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE " "OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU " "ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION."}, {butText_just, 0, ""}, {butText_just, 0, " 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR " "AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO " "MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE " "LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL " "OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE " "PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING " "RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A " "FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF " "SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH " "DAMAGES."}, {butText_just, 0, ""}, {butText_center, 0, "END OF TERMS AND CONDITIONS"}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; /* * From control.c */ static const AbutHelpText ctrlHelp[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Control Panel"}, {butText_just, 0, " The control panel of cgoban is used to select one " "of Cgoban's features. The text on this help page will only briefly " "describe what feature each button activates. More detailed help " "on each of these features is available once the feature has been " "started."}, {butText_just, 0, ""}, {butText_just, 2, "Server Buttons"}, {butText_just, 0, " These two buttons are used to log in to the " "internet go servers. Clicking on a button will connect to the server " "named on that button. To access more than two servers, hold down shift " "and click on a server button; this will change the server that the " "button connects to."}, {butText_just, 0, ""}, {butText_just, 2, "\"New Game\" and \"Load Game\" Buttons"}, {butText_just, 0, " To start a new game of Go, click on the \"New Game\" " "button. Here two players can play against each other on a single " "go board."}, {butText_just, 0, " Pressing the \"Load Game\" button will let you " "continue a previously saved game of go. You can only use \"Load Game\" " "for games started with cgoban. If you want to load a smart go file " "that was created with a different program, then use the \"Edit SGF " "File\" button instead."}, {butText_just, 0, ""}, {butText_just, 2, "\"Edit SGF File\" Button"}, {butText_just, 0, " To edit a smart go file, use the \"Edit SGF File\" " "button. Using this button, you can review an sgf file or edit it, " "viewing and adding comments, annotations, and variations. The " "\"Edit SGF File\" button can not be used to create a new SGF file. " "To do that use the \"New Game\" button, then once the game has " "started use the \"Edit Game\" button on the go board to switch to " "SGF editing mode."}, {butText_just, 0, " To edit a file without going through the control " "window, you may start cgoban by typing \"cgoban -edit \"."}, {butText_just, 0, ""}, {butText_just, 2, "\"Go Modem\" Button"}, {butText_just, 0, " The Go Modem protocol is a standard protocol for " "playing go over a modem that was designed by Bruce Wilcox and others. " "It has also become a standard format for playing computer go " "tournaments. The \"Go Modem\" button can be used to connect cgoban to a " "computer program or a device that talks the go modem protocol. The \"Go " "Modem\" button can also be used to connect a go modem protocol program " "to one of the internet go servers."}, {butText_just, 0, ""}, {butText_just, 2, "\"Help\", \"Setup\", and \"Quit\" Buttons"}, {butText_just, 0, " Pressing \"Help\" brings up this window. Most " "Cgoban windows have help buttons. Pressing the help button on any " "window brings up help for that window."}, {butText_just, 0, " The \"Setup\" button will open the cgoban setup " "window. In this window you can configure cgoban, " "changing the address of the go servers, turning on and off certain " "features, etc."}, {butText_just, 0, " Pressing the \"Quit\" button will exit from Cgoban. " "Be careful! If you press \"Quit\", then all games in progress will " "end!"}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage ctrlPage[] = { {"Control Window", ctrlHelp}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_control = {4, "Control Help Pages", ctrlPage}; /* * From gameSetup.c */ static const AbutHelpText gameSetup[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Game Setup Window"}, {butText_just, 0, " This window allows you to set up a new game. At " "the top you may enter the names of the players. You have a choice of " "rule sets in the left pane of the window, and a choice of time controls " "in the right pane."}, {butText_just, 0, " The difference in rule sets and time controls is described in " "other help pages. To see these pages, use the menu at the top of this " "help window."}, {butText_just, 0, " Besides selecting the rule set and the time system, players can " "choose the handicap and the komi. \"Handicap\" is the number of " "stones that Black is given at the start of the game. Depending on " "the rule set, Black may be free to place these stones where they " "choose or may be forced to play them in certain locations. A handicap " "of zero will give Black no stones to begin the game."}, {butText_just, 0, " The komi is the number of points that White is given at the " "beginning of the game to make up for having to move second. Most " "rule sets say that a komi of 5.5 with a handicap of zero lead to a fair " "game (the extra half point prevents tie games). The Ing rules, " "however, say that a komi of 8.0 is fair. Often, a game with no " "handicap and a komi of zero is called a \"handicap 1\" game because " "the Black player gets the advantage of moving first and no penalty."}, {butText_just, 0, " When the game is configured the way you want, press the \"Ok\" " "button to start the game, or press the \"Cancel\" button if you decide " "not to start the game at all."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText ruleSets[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Rule Sets"}, {butText_just, 0, " Depending on where Go is played, the rules of the game can differ " "sligtly. Cgoban allows you to pick the rule set that you are most " "comfortable with. This help page is not a description of the rules of " "go; it is only meant to outline the differences between the rule sets."}, {butText_just, 0, " The biggest differences between the rule sets are typically the ko " "rule used and the way that the game is scored."}, {butText_just, 0, ""}, {butText_just, 2, "Chinese Rules"}, {butText_just, 0, " Chinese rules are played primarily on mainland China. Chinese " "rules use the Superko rule. The superko rule states that it is illegal " "to make a move which returns the board to an earlier position. A game " "played under Chinese rules ends when both players pass; at that point " "score is counted. The score of a player is the number of living stones " "that player has on the board, plus the amount of territory surrounded, " "plus one-half the number of dame points on the board. If there is a " "dispute over which stones are dead at the end of the game, the players " "can simply continue the game where they left off to resolve the " "problem."}, {butText_just, 0, " Chinese rules are considered by some people to be the most " "mathematically elegant version of the rules of go."}, {butText_just, 0, ""}, {butText_just, 2, "Japanese Rules"}, {butText_just, 0, " Japanese rules are played in Japan and also have strong followings " "in many other countries. The Japanese ko rule states that it is " "illegal to recreate the board position of exactly two moves ago. " "There are certain board positions that can lead to cycles of more than " "two moves; if a game ever falls into one of these positions, the " "players repeat until they conclude that the game will never finish. " "At this point the game is regarded as \"no result\" (not as a draw). " "If this is a game in a tournament, it must be replayed."}, {butText_just, 0, " The score in a Japanese game is the total of the number of enemy " "stones captured and the amount of territory surrounded. Territory in " "a seki is not counted towards either player's score. If there is " "a dispute over which stones are dead at the end of the game, the " "fate of the disputed stones is resolved locally. Cgoban handles this " "by letting the players continue the game. When resolving the " "dispute, ko stones can never be retaken until a player passes, and " "after three passes the stones are considered dead only if all of them " "have been removed from the board. At this point the board is returned " "to the original end game position but with the disputed stones marked " "as alive or dead."}, {butText_just, 0, " Japanese rules state that suicide (making a move which kills your " "own stones) is illegal. Under some rare circumstances such a move may " "be useful, so most other rule sets allow it."}, {butText_just, 0, " Under some situations cgoban will not recognize a seki unless the " "dame are filled in. If there is a seki position on the board and " "you see that cgoban is mis-scoring it, continue the game and fill in " "the dame."}, {butText_just, 0, " Some people find the Japanese rules to be the most natural " "to play with. Most of Europe and North America plays with rule sets " "based on the Japanese rules."}, {butText_just, 0, ""}, {butText_just, 2, "Ing Rules"}, {butText_just, 0, " The Ing rules were invented by a wealthy Taiwanese Go player. They " "are encouraged through the Ing Foundation, which sponsors Go " "tournaments around the world. Unfortunately, the Ing Ko rule is very " "difficult (some say impossible) to implement on a computer, so the " "Ing rules of Cgoban are the same as Chinese rules except that the " "standard Komi is 8 and tie games are awarded to Black."}, {butText_just, 0, ""}, {butText_just, 2, "AGA Rules"}, {butText_just, 0, " The American Go Association has a set of rules designed to feel " "like Japanese rules, but use the simpler end of game disputes of " "Chinese rules. AGA rules use Superko like Chinese rules, but count " "score as captures plus territory (although unlike Japanese rules, eyes " "in a seki count for points under AGA rules). In addition, every time " "that you pass under AGA rules you must give your opponent one capture. " "This change makes it reasonable to resolve disputed stones by " "continuing the game, as in Chinese rules."}, {butText_just, 0, ""}, {butText_just, 2, "New Zealand Rules"}, {butText_just, 0, " In New Zealand the go organization has adopted the Chinese rules, " "with the exception that handicap stones may be placed anywhere on the " "board instead of at the preselected star points. In every other way " "it is the same as Chinese rules."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText timeTypes[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Time Formats"}, {butText_just, 0, " Much like the rule sets, as Go has travelled around the world many " "different ways of timing games have been used. Cgoban makes available " "many of the more popular. To select a time control, first choose the " "type of time control with the \"Time System\" menu, then fill in the " "appropriate time values."}, {butText_just, 0, ""}, {butText_just, 2, "None"}, {butText_just, 0, " If you select \"None\" as your time system, then the players may " "take as long as they wish to make their moves."}, {butText_just, 0, ""}, {butText_just, 2, "Absolute Time"}, {butText_just, 0, " With the \"Absolute\" time system, you simply set a main time for " "the players. Each player must finish the game within the time " "specified. If the player runs out of time, then the player loses."}, {butText_just, 0, ""}, {butText_just, 2, "Japanese Time"}, {butText_just, 0, " In Japan one of the common tournament time systems involves a " "main time and what are called \"byo-yomi\" periods. The easiest way " "to explain this is with an example. If you play with 45 minutes main " "time and five one-minute byo-yomi periods, then each player starts with " "45 minutes on the clock. Play goes as with an absolute time limit, but " "when a player's clock drops below the five minute mark the enter the " "first byo-yomi period. As long as they finish before their clock drops " "below the four minute mark, it will be reset to five minutes. From " "then on, they can play as many moves as they want, but if they take " "more than a minute on any move their clock moves to the second byo-yomi " "period, which is from four to three minutes. If they ever use up their " "last byo-yomi period, then they lose the game."}, {butText_just, 0, " This scheme gives players lots of time to think until they have " "used up their main time, then forces them to keep moving with only a " "few opportunities to think for long after that."}, {butText_just, 0, ""}, {butText_just, 2, "Canadian Time"}, {butText_just, 0, " The canadian time system is also used on the internet go servers. " "It also has a main time period and what are called byo-yomi periods, " "but the byo-yomi periods work differently. Again, an example will " "be a good way to show how this works. If you have a 30 minute main " "time period and byo-yomi periods of 25 moves in ten minutes, then each " "player starts with 30 minutes on their clock. After that time is gone, " "their clock is reset to ten minutes. They must make 25 moves in that " "ten minutes or lose. If they make 25 moves, then no matter how much " "time is left on their clock it is reset to ten minutes again and they " "must make another 25 moves in that ten minutes. This can continue " "indefinitely."}, {butText_just, 0, ""}, {butText_just, 2, "Ing Time"}, {butText_just, 0, " Like the Ing rules, the Ing time controls are encouraged by the " "Ing foundation. Under Ing rules, players are given main time and " "extra time periods, but the players are penalized tw, points for " "entering each extra time periods."}, {butText_just, 0, " If players have 45 minutes and three 15 minute periods, a player who " "used 55 minutes to make their moves will lose two points. A player who " "used 80 minutes will lose six points, and a player who used only 40 " "minutes will lose no points."}, {butText_just, 0, ""}, {butText_just, 0, NULL}}; static const AbutHelpPage gameSetupPage[] = { {"Game Setup Window", gameSetup}, {"Rule Sets", ruleSets}, {"Time Controls", timeTypes}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_gameSetup = {6, "Game Setup Help Pages", gameSetupPage}; static const AbutHelpText editToolHelp[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "About Smart Go Files"}, {butText_just, 0, " Smart go files can contain a game complete with many different " "types of annotation. A game may contain marks on the board that " "become visible as the game is viewed, it make contain comments about " "the game as it progresses, and it may also contain variations."}, {butText_just, 0, " The variations of a smart go file make it into what can be called a " "move tree. The starting position (typically an empty board) is at the " "start of the move tree. From each move in the game, you may progress " "to the next move. When there is a variation, there may be several " "different moves to go to. Typically one move will be the move actually " "made during game play, and the other moves show what would have " "happened if the players had made different choices."}, {butText_just, 0, " As you are viewing a game, the \"active move list\" is the set of " "moves that you will see if you step through the game. You may choose " "which moves are active with the game map (see below). The active moves " "are also the moves that will be affected by the cut and reorder " "buttons."}, {butText_just, 0, ""}, {butText_just, 2, "The Edit Tool Window"}, {butText_just, 0, " The edit tool window of cgoban is used to edit a smart go file. " "It contains three parts; the tool selector, the cut/reorder buttons, " "and the game map."}, {butText_just, 0, ""}, {butText_just, 2, "The Tool Selector"}, {butText_just, 0, " The tool selector is the line of buttons on the top of the edit tool " "window. Click on a button to make that the active tool. The effects " "of the current tool are listed just below the tool selector. A " "complete description of each tool is available through the menu at the " "top of this help window."}, {butText_just, 0, ""}, {butText_just, 2, "The Delete Moves Button"}, {butText_just, 0, " Pressing \"Delete Moves\" will remove all of the active moves below " "your current move. Be careful! There is currently no way to undo if " "you accidentally delete some moves"}, {butText_just, 0, ""}, {butText_just, 2, "The Reorder Moves Button"}, {butText_just, 0, " Pressing \"Reorder Moves\" is useful when you have several " "variations to your current move. Pressing this button will change " "the order in which the variations appear."}, {butText_just, 0, ""}, {butText_just, 2, "The Game Map"}, {butText_just, 0, " The game map shows the same game that is being viewed on the " "board, but it shows the game as a list of moves instead of showing " "the current board position. For a game with no variations, this list " "will be a simple line of stones. For a game with many variations, " "however, the game map can be invaluable in finding interesting " "variations and keeping your place within the game."}, {butText_just, 0, " The active move list is shown as a set of moves along a line. " "variation that are not active (that is, variations that you will not " "see by just stepping through the move list) are shown in grey. You " "may skip to a new move by clicking on the mark that corresponds to " "that move. If you click on a non-active move, then the active move " "list will change to the move list that contains the move you clicked " "on. The move that you see on the board is always shown with a box " "around it."}, {butText_just, 0, " On the game map, the starting board position is in the upper-left " "of the map. Each game move is to the right of the previous move. " "When there are several moves that are variations from a single board " "position, these will be seen as a \"fork\" in the game with each " "possible variation as a separate move chain."}, {butText_just, 0, " Different types of moves are represented by different symbols " "on the game map. Simple moves are shown as a black or white stone. " "If there is some sort of comment or annotation to the move, a " "triangle move is placed on the stone; otherwise the stone is labeled " "with its move number."}, {butText_just, 0, " Moves that are not strictly game moves, but instead modifications " "to the board, are represented by groups of four stones on the map. " "An empty spot on a move chain means that there is no move information " "here."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText moveTool[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Move Tool"}, {butText_just, 0, " The \"Move Tool\" is represented on the tool selector as a plain " "stone. The color of the stone shows whose move it is. By clicking on " "the stone you may set whose turn it is to move."}, {butText_just, 0, " When you click on the board with the move tool, you will add moves " "to the game that you are viewing. These moves will be added to the " "game as variations off of the current move if there is already a move " "off of the current move."}, {butText_just, 0, " Holding down the shift key when you use the move tool will not add " "stones to the board. Instead it will make the current move change to " "the point when a specific move was made. For example, to see the " "board when a move was made at location C16, hold down shift and click " "on the board at location C16."}, {butText_just, 0, " Clicking on the move tool when it is already active will change " "whose move it is."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText editToolKey[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Edit Tool Keyboard Shortcuts"}, {butText_just, 0, " Shift-up changes the active move list to the previous variation."}, {butText_just, 0, " Shift-down changes the active move list to the next variation."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText changeTool[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Change Board Tool"}, {butText_just, 0, " The \"Change Board Tool\" is represented on the tool selector as a " "group of four stones. This tool lets you rearrange a lot of stones " "with a single move; it is useful for setting up board positions and " "erasing groups of stones."}, {butText_just, 0, " Clicking on the board with this tool will erase a stone where you " "click, or add a stone if there isn't a stone there. The added stone " "will be white. To add a black stone, hold down the shift key when you " "click."}, {butText_just, 0, " Pressing \"Pass\" when the change board tool is selected will make " "all new board changes become part of a new board. This lets you create " "a sequence of moves, each rearranging the board however you wish."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText scoreTool[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Score Tool"}, {butText_just, 0, " The \"Score Tool\" is represented on the tool selector as a yin-yang " "symbol. This tallies up the current score of the game and adds marks " "to show who own what territory."}, {butText_just, 0, " When you select this tool, all territory completely surrounded by " "one player will be marked as that player's territory. Now clicking " "on stones will mark them as dead. To unmark some dead stones, click " "on them again."}, {butText_just, 0, " When you are satisfied with which stones are dead and alive, press " "the \"Done\" button next to the board. This will add a comment to " "the game record stating the score. To stop scoring and remove all " "marks, select a different tool."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText markTools[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Marking Tools Tool"}, {butText_just, 0, " The marking tools are represented on the tool selector as stones " "marked with a triangle, circle, or square. All three of these tools " "behaves in the same way; only the mark added is different."}, {butText_just, 0, " When one of the three marking tools is selected and you click on " "the board, the appropriate mark will be added. Holding down shift " "when you click will mark a group of stones."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText labelTools[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Label Tools"}, {butText_just, 0, " The label tools are represented on the tool selector as a stones " "with a letter or number on them. The letter label tool and the " "number label tool behave in very similar ways."}, {butText_just, 0, " When you click on the board with a label tool, the appropriate " "type of label (a letter or a number) is added. The labels will start " "at \"A\" or \"1\" and count up for each label that you add. Holding " "down shift when you click with the numbering tool will add the move " "number of that stone instead of starting at one."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage editToolPage[] = { {"Edit Tool Window", editToolHelp}, {"Keyboard Shortcuts", editToolKey}, {"Move Tool", moveTool}, {"Change Board Tool", changeTool}, {"Score Tool", scoreTool}, {"Marking Tools", markTools}, {"Label Tools", labelTools}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_editTool = {10, "Edit Tool Help Pages", editToolPage}; /* * From client/main.c */ static const AbutHelpText cliMain[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Client Main Window"}, {butText_just, 0, " When cgoban is connected to one of the servers, the client main " "window is the central area for information. There is a log in " "the middle of this window which shows the output from the server. " "Above the log are two buttons that open other windows; see the " "\"Client Game List Window\" and \"Client Player List Window\" help " "pages in the menu at the top of this help page. Below the log " "are a text input box, the help button and the \"Quit\" button. The " "\"Quit\" button will disconnect you from the server."}, {butText_just, 0, " Any commands that you want to send to the server should be typed " "in the text input box below the log. If you need help on server " "commands, type the \"Help\" command here. These help pages only give " "help for this client, not for the servers themselves."}, {butText_just, 0, " Some server commands won\'t work with this client if you try to " "enter them directly. For example, the \"who\" command should not be " "used because its output will be caught by the client and not shown; if " "you want a list of players, open the \"Player List\" window. Other " "commands that will not work correctly are the \"games\" and \"observe\" " "commands. Other commands may not be needed because their " "functionality is already present in the client, but they will work " "if you want to use them."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText cliGames[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Client Game List Window"}, {butText_just, 0, " The game list window presents a list of all games in progress on " "the server. The list will be automatically kept up to date as games " "start and end."}, {butText_just, 0, " Each line of the list is one game. From left to right, the columns " "of the list are the game number, the name and rank of the white " "player, the name and rank of the black player, the size of the board " "used, the number of handicap stones given to black, the komi points " "given to white, the game flags, and the number of players observing the " "game."}, {butText_just, 0, " When a game ends, the game number will be replaced " "with a hyphen and the \"Flags\" and \"Observers\" columns will be " "replaced with the result of the game. This will remain until another " "game is started in that game slot or until the \"*\" button is pressed " "(see below)."}, {butText_just, 0, " If you can't see all of the columns, then resize the window to be " "bigger. For a description of exactly what the column means, see " "the server's help file on the \"games\" command."}, {butText_just, 0, " To observe a game in progress, click on the game in the list."}, {butText_just, 0, " Not all of these fields will be kept up to date. To refresh the " "window at any time press the \"*\" button in the upper left corner of " "the list. This will also clear out all old game results for games " "that have ended."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText cliPlayers[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Client Player List Window"}, {butText_just, 0, " The player list window is a list of all players currently logged in " "to the server. As players come and go they will appear and disappear " "on this list."}, {butText_just, 0, " Each line of the list is one player. From left to right, the " "column of the list are the player\'s name, the player\'s rank, the " "player\'s state, how long the player has been idle, and the game number " "that the player is currently observing or playing in."}, {butText_just, 0, " The state is one of four options: \"!\" means that the player is " "actively looking for games, \"O\" means that the player is open to " "playing, \"X\" means that the player is not available for games, and " "\"?\" means that the client does not know what state the player is in"}, {butText_just, 0, " The list is sorted. You have three choices on how to sort the list; " "pick one by clicking on the buttons at the top of the player list. " "Clicking on \"Name\" will sort the list alphabetically by name. " "Clicking on \"Rank\" will sort the list by rank, strongest players " "to weakest players. Clicking on \"State\" will sort the list by " "state, with the players looking for games at the top and players " "not interested in games at the bottom."}, {butText_just, 0, " If you click on a player\'s name, the complete status of that " "player will be fetched from the server and displayed in the log in " "the main window."}, {butText_just, 0, " If the player is available for games, then you can click on the " "player's state to open up a \"Server Game Setup\" window. Use this " "window to set up games against the other players on the server."}, {butText_just, 0, " As new players arrive, they are placed at the bottom of the list. " "To update the list and re-sort it, press the \"*\" button in the upper " "left corner of the list."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage cliMainPage[] = { {"Main Client Window", cliMain}, {"Game List Window", cliGames}, {"Player List Window", cliPlayers}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_cliMain = {6, "Client Help Pages", cliMainPage}; /* From "client/match.c" */ static const AbutHelpText cliMatch[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Server Game Setup Window"}, {butText_just, 0, " The server game setup window is used to set up games against other " "people on the server. To use this, first you set up the game " "parameters as you wish, then when you are ready you click on the " "\"OK\" button. This will send the match request to the other player. " "When they send you a matching request, the game will begin!"}, {butText_just, 0, " At the top are the names of the players (you and your opponent). " "To change who plays black and who white, press the \"Switch\" button."}, {butText_just, 0, " Below this are places where you can choose the rules of the game - " "the size, handicap, etc. Most of these should be self-explanatory if " "you are familiar with playing go on the servers. If you have any " "questions, then you may want to try the online help files from the " "server. Typing \"help match\", \"help komi\", etc. on the server " "command line should give you the help that you need."}, {butText_just, 0, " The \"Free Game\" button will determine whether the game counts " "towards your rank. Usually you want this to happen, but if you want " "to just experiment during a game or play casually, then check this " "box."}, {butText_just, 0, " Click \"Cancel\" if you decide that you don't want to play the game " "at all. This will take away the window."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage cliMatchPage[] = { {"Server Game Setup Window", cliMatch}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_cliMatch = {4, "Client Help Pages", cliMatchPage}; /* From "editBoard.c" */ static const AbutHelpText editBoard[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Edit Board Window"}, {butText_just, 0, " When editing a smart-go file, the current board position is " "displayed in the edit board window. Around the edit board window are " "various buttons and controls."}, {butText_just, 0, ""}, {butText_just, 2, "The Title Box"}, {butText_just, 0, " At the top left of the window is the title box. This shows the " "name of the game in bold, and below that which moves are currently " "visible on the board."}, {butText_just, 0, ""}, {butText_just, 2, "The Board"}, {butText_just, 0, " Just below the title box is the board. Clicking on a point on " "the board will have different effects depending on which edit tool " "you are using; press \"Help\" in the edit tool window for more " "infomation. With the most common tool, the \"Move Tool\", clicking " "on the board will add a variation. Holding down shift when you " "click on the board will change your move number to see when a " "particular move was made."}, {butText_just, 0, ""}, {butText_just, 2, "The \""CGBUTS_REWCHAR"\", \""CGBUTS_BACKCHAR"\", " "\""CGBUTS_FWDCHAR"\", and \""CGBUTS_FFCHAR"\" Buttons"}, {butText_just, 0, " Pressing these buttons will change the current move number that " "you can see on the board. "CGBUTS_BACKCHAR" and "CGBUTS_FWDCHAR" " "will go one move at a time. "CGBUTS_REWCHAR" moves you to the " "beginning of the game, and "CGBUTS_FFCHAR" moves you to the end."}, {butText_just, 0, ""}, {butText_just, 2, "The Score Boxes"}, {butText_just, 0, " To the right of the board are the score boxes. There are two; one " "for white and one for black. In each box are shown the current score " "for that player and the amount of time remaining on that player's " "clock. The score is not the final score for that player, but the sum " "of the number of captures and the komi. To see the final score use " "the \"Score Tool\" in the edit tool window."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Save Game\" Button"}, {butText_just, 0, " Pressing \"Save Game\" will let you save the changes that you have " "made to the smart-go file."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Quit\" Button"}, {butText_just, 0, " Pressing the \"Quit\" button will close the edit board window and " "the edit tool window. If you have made any changes to the smart go " "file that you were viewing then you will be asked whether you want to " "save these changes before you exit."}, {butText_just, 0, ""}, {butText_just, 2, "The Comments Box"}, {butText_just, 0, " At the very bottom of the window is the comments box. Here you " "will see any comments that have been made about the move you are " "viewing. To edit or add the comments, click in the comments box " "and start typing. Some emacs-style control keys are available; " "see the \"Keyboard Shortcuts\" help page for a list of them."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText editBoardInfo[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Game Info Window"}, {butText_just, 0, " You open the game info window by pressing the " "\"Game Info\" button when you are viewing a smart go file."}, {butText_just, 0, " The game info window lets you view and edit the " "smart go game properties, such as player names, etc. To change " "the properties simply type in your new value then save the game. " "You should be warned that changing a property does not change the " "game itself, only the description of the game. For example, if you " "change the handicap then handicap stones will not be automatically " "added to the game; the game will be described as having the new " "handicap but to see this change you must add the stones yourself."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText editBoardKey[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Edit Board Keyboard Shortcuts"}, {butText_just, 0, " Left arrow: Go back one move."}, {butText_just, 0, " Right arrow: Go ahead one move."}, {butText_just, 0, " Shift-left arrow: Go back to the previous " "variation, comment, or annotation."}, {butText_just, 0, " Shift-right arrow: Go ahead to the next " "variation, comment, or annotation."}, {butText_just, 0, " Shift-up arrow: Change the main variation to " "the previous variation."}, {butText_just, 0, " Shift-down arrow: Change the main variation to " "the next variation."}, {butText_just, 0, ""}, {butText_just, 2, "Comment Editing"}, {butText_just, 0, " When you are editing a comment the left and right " "arrows will not change moves. Instead they will move the cursor. " "These other commands are available:"}, {butText_just, 0, " Ctrl-A: Move cursor to the beginning of the line."}, {butText_just, 0, " Ctrl-D: Delete to the right of the cursor"}, {butText_just, 0, " Ctrl-E: Move cursor to the end of the line."}, {butText_just, 0, " Ctrl-K: Delete to the end of the line."}, {butText_just, 0, " Ctrl-U: Delete from the beginning of the line."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage editBoardPage[] = { {"Edit Board Window", editBoard}, {"Game Info Window", editBoardInfo}, {"Keyboard Shortcuts", editBoardKey}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_editBoard = {6, "Edit Board Help Pages", editBoardPage}; /* From "local.c" */ static const AbutHelpText localBoard[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Game Board"}, {butText_just, 0, " When two players are playing go with Cgoban, the " "board is shown in a window with controls used in the game around it. " "To make a move, click on the board where you want your stone to go. " "The last stone played will have a circle marker on it; if the last " "move was a ko move, then the stone will have a square marker on it " "instead."}, {butText_just, 0, ""}, {butText_just, 2, "The Title Box"}, {butText_just, 0, " Just above the board is the title box. Here, the " "title of the game is shown along with the current move number and " "whose move it is."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Pass\" Button"}, {butText_just, 0, " Pressing \"Pass\" will pass your turn. The game will " "enter the scoring stage after both players pass."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Dispute\" Button"}, {butText_just, 0, " When you are playing with Japanese scoring, the " "button just below the pass button is the \"Dispute\" button. If " "the players disagree on whether a group of stones are alive or dead, " "they can resolve the disagreement by pressing \"Dispute\". After " "pressing dispute, the players select which group of stones are " "the problem. Then the game continues, with slightly different rules. " "When you are resolving disputes, kos cannot be retaken until a player " "passes and it takes three consecutive passes to end the dispute. After " "the three passes, the board is put back to the position it had before " "the dispute. If any of the disputed stones are still alive, then " "they are alive for scoring purposes; if they are all dead, then they " "are dead for scoring purposes."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Resume\" button"}, {butText_just, 0, " When you are not using Japanese rules, any dispute " "at the end of the game can be resolved by simply undoing the last two " "passes and continuing the game. Pressing \"Resume\" will let you do " "that."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Done\" button"}, {butText_just, 0, " When both players are done marking dead stones, " "pressing \"Done\" will finish it and record the score."}, {butText_just, 0, ""}, {butText_just, 2, "The \""CGBUTS_REWCHAR"\", \""CGBUTS_BACKCHAR"\", " "\""CGBUTS_FWDCHAR"\", and \""CGBUTS_FFCHAR"\" Buttons"}, {butText_just, 0, " Pressing these buttons will move forward and backward through the " "game, letting you undo and redo moves. "CGBUTS_BACKCHAR" and " CGBUTS_FWDCHAR" will go one move at a time. "CGBUTS_REWCHAR" moves " "you to the beginning of the game, and "CGBUTS_FFCHAR" moves you to the " "end."}, {butText_just, 0, ""}, {butText_just, 2, "The Score Boxes"}, {butText_just, 0, " To the right of the board are the score boxes. There are two; one " "for white and one for black. In each box are shown the current score " "for that player and the amount of time remaining on that player's " "clock. When you are playing the game, the score is not the final " "score for that player, but the sum of the number of captures and the " "komi. When you are selecting dead stones and after pressing the " "\"Done\" button, the score is the actual score for that player."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Save Game\" Button"}, {butText_just, 0, " Pressing \"Save Game\" will save the game as a smart go file. Later " "you can continue the game with the \"Load Game\" button of the control " "window. You can also choose \"Edit Game\" from the control panel to " "edit the game that you have saved. This is currently the only way to " "create a new smart go file since the \"Edit Game\" button doesn't " "work."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Edit Game\" Button"}, {butText_just, 0, " Pressing \"Edit Game\" will pop up a second game board with the " "game on it. This will be an edit game board, not a playing game " "board, and it will come with a edit tool set. This is used if you " "want to stop playing a game and want to use the editing tools to " "annotate your game."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Quit\" Button"}, {butText_just, 0, " Pressing \"Quit\" will end the game. If you want to continue the " "game later, you should choose \"Save Game\" before you quit."}, {butText_just, 0, ""}, {butText_just, 2, "The Comments Box"}, {butText_just, 0, " At the very bottom of the window is the comments box. Here you " "can make comments about the game that will be saved in the smart go " "file if you choose \"Save Game\" later. To edit or add the comments, " "click in the comments box and start typing. Some emacs-style control " "keys are available; see the \"Keyboard Shortcuts\" help page for a " "list of them."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText localKeys[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Playing Go Keyboard Shortcuts"}, {butText_just, 0, " Left arrow: Go back one move."}, {butText_just, 0, " Right arrow: Go ahead one move."}, {butText_just, 0, ""}, {butText_just, 2, "Comment Editing"}, {butText_just, 0, " When you are editing a comment the left and right " "arrows will not change moves. Instead they will move the cursor. " "These other commands are available:"}, {butText_just, 0, " Ctrl-A: Move cursor to the beginning of the line."}, {butText_just, 0, " Ctrl-D: Delete to the right of the cursor"}, {butText_just, 0, " Ctrl-E: Move cursor to the end of the line."}, {butText_just, 0, " Ctrl-K: Delete to the end of the line."}, {butText_just, 0, " Ctrl-U: Delete from the beginning of the line."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage localBoardPage[] = { {"Playing Go", localBoard}, {"Keyboard Shortcuts", localKeys}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_localBoard = {5, "Playing Go Help Pages", localBoardPage}; /* From "client/board.c" */ static const AbutHelpText cliBoardPage[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Game Board"}, {butText_just, 0, " When you play or observe a game on the server, the " "board is shown in a window with controls used in the game around it. " "To make a move, click on the board where you want your stone to go. " "The last stone played will have a circle marker on it; if the last " "move was a ko move, then the stone will have a square marker on it " "instead."}, {butText_just, 0, " You can also skip around in games or try out " "variations by holding down shift or control as you click on the board. " "See the \"Keyboard Shortcuts\" help page for more information on this."}, {butText_just, 0, ""}, {butText_just, 2, "The Title Box"}, {butText_just, 0, " Just above the board is the title box. Here, the " "title of the game is shown along with the current move number and " "whose move it is."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Pass\" Button"}, {butText_just, 0, " Pressing \"Pass\" will pass your turn. The game will " "enter the scoring stage after both players pass."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Done\" button"}, {butText_just, 0, " When you are done marking dead stones, " "pressing \"Done\" will finish it and record the score."}, {butText_just, 0, ""}, {butText_just, 2, "The \""CGBUTS_REWCHAR"\", \""CGBUTS_BACKCHAR"\", " "\""CGBUTS_FWDCHAR"\", and \""CGBUTS_FFCHAR"\" Buttons"}, {butText_just, 0, " Pressing these buttons will move forward and backward through the " "game to see what order the moves occurred in. They do not undo or " "redo moves; they only let you look back at previous moves. " CGBUTS_BACKCHAR" and " CGBUTS_FWDCHAR" will go one move at a time. "CGBUTS_REWCHAR" moves " "you to the beginning of the game, and "CGBUTS_FFCHAR" moves you to the " "end."}, {butText_just, 0, ""}, {butText_just, 2, "The Score Boxes"}, {butText_just, 0, " To the right of the board are the score boxes. There are two; one " "for white and one for black. In each box are shown the current score " "for that player and the amount of time remaining on that player's " "clock. When you are playing the game, the score is not the final " "score for that player, but the sum of the number of captures and the " "komi. When you are selecting dead stones and after pressing the " "\"Done\" button, the score is the actual score for that player."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Adjourn\" Button"}, {butText_just, 0, " Pressing \"Adjourn\" will send a request to adjourn the game when " "you are playing. The other player must choose to adjourn also; then " "the game will be saved on the server and you can safely stop playing."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Resign\" and \"Close\" Buttons"}, {butText_just, 0, " If you are playing a game, there will be a button labeled " "\"Resign\". Pressing this will resign the game. You will be asked " "whether you really want to resign just in case you pressed the button " "by accident!"}, {butText_just, 0, " If you are not playing in the game, then the button will say " "\"close\" instead and pressing it will close the window showing the " "game."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Edit Game\" Button"}, {butText_just, 0, " Pressing \"Edit Game\" will pop up a second game board with the " "game on it. This will be an edit game board, not a server game " "board, and it will come with a edit tool set. This is used if you " "want to the editing tools to annotate the game that your are " "observing or playing in."}, {butText_just, 0, ""}, {butText_just, 2, "The Kibitz Box"}, {butText_just, 0, " At the very bottom of the window is the kibitz box. If you are " "observing the game, then you will see kibitzes here. If you are " "playing, then you will see messages from your opponent here."}, {butText_just, 0, " There is an area below the kibitz box where you can type your " "own kibitzes. Observers can only kibitz here; if you are playing, " "then the radio button to the right of the text entry box controls " "whether your message is seen by the observers (the \"Kib\" setting), " "your opponent (the \"Say\" setting) or everybody (the \"Both\" " "setting)."}, {butText_just, 0, " When you are typing a message, the left and right arrows will not " "move you forwards and backwards in the game. Instead they will move " "the text cursor. To get rid of the text cursor and enable the " "left and right arrows again, just press \"Return\" on an empty " "kibitz."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText cliBoardKeyPage[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Client Play Keyboard Shortcuts"}, {butText_just, 0, " Left arrow: Go back one move."}, {butText_just, 0, " Right arrow: Go ahead one move."}, {butText_just, 0, " Holding down shift when you click on the board will move the " "game forward or back to when that move was played."}, {butText_just, 0, " Holding down control when you click on the board will let you try " "out variations in the game you are observing or playing. Press " "the \"" CGBUTS_FFCHAR "\" button to return to the game."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage cliBoard[] = { {"Server Play", cliBoardPage}, {"Keyboard Shortcuts", cliBoardKeyPage}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_cliBoard = {5, "Server Play Help Pages", cliBoard}; /* From "client/setup.c" */ static const AbutHelpText cliSetup[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Connecting to Go Servers"}, {butText_just, 0, " The internet go servers provide a way for go " "players around the world to meet to talk and play go. If your computer " "can connect to these servers then you too can enjoy this. In some " "parts of the world the go servers is the only way to find games of " "go on a regular basis!"}, {butText_just, 0, " To connect, fill out your username and password " "in the areas provided. You will not see your password as you type it " "for security reasons. Your username and password will be stored in " "your resource file so that you will not have to type them next time " "that you log in. This does mean, however, that you should be careful " "about letting people see your resource file! The default name for " "this file is \".cgobanrc\"; you should protect it if you are worried " "about your password getting out."}, {butText_just, 0, " If you don't have an account on the server you are " "connecting to, just follow the directions in the connect window and " "you will log in as a guest."}, {butText_just, 0, " If you are behind a firewall and need to use a proxy " "agent to connect to a server, then press the \"setup\" button on the " "main window. This will allow you to configure the servers to go " "through a proxy. It will also enable you to add or remove servers."}, {butText_just, 0, " To change the machine name or port numbers used to " "connect to the servers, press the \"Setup\" button in the control " "window."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage cliSetupPage[] = { {"Server Connect", cliSetup}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_cliSetup = {4, "Server Connect Help Pages", cliSetupPage}; /* From "gmp/play.c" */ static const AbutHelpText gmpBoard[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "The Game Board"}, {butText_just, 0, " When using go modem protocol to play a game, the " "board is shown in a window with controls used in the game around it. " "To make a move, click on the board where you want your stone to go. " "The last stone played will have a circle marker on it; if the last " "move was a ko move, then the stone will have a square marker on it " "instead."}, {butText_just, 0, ""}, {butText_just, 2, "The Title Box"}, {butText_just, 0, " Just above the board is the title box. Here, the " "title of the game is shown along with the current move number and " "whose move it is."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Pass\" Button"}, {butText_just, 0, " Pressing \"Pass\" will pass your turn. The game will " "enter the scoring stage after both players pass."}, {butText_just, 0, " Go modem protocol has no way to indicate which stones " "are dead, so that must be done by a person."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Dispute\" Button"}, {butText_just, 0, " When you are playing with Japanese scoring, the " "button just below the pass button is the \"Dispute\" button. If " "the players disagree on whether a group of stones are alive or dead, " "they can resolve the disagreement by pressing \"Dispute\". After " "pressing dispute, the players select which group of stones are " "the problem. Then the game continues, with slightly different rules. " "When you are resolving disputes, kos cannot be retaken until a player " "passes and it takes three consecutive passes to end the dispute. After " "the three passes, the board is put back to the position it had before " "the dispute. If any of the disputed stones are still alive, then " "they are alive for scoring purposes; if they are all dead, then they " "are dead for scoring purposes."}, {butText_just, 0, " It should be noted that go modem protocol has no " "way to resolve disputes, so the disputes must be played out by a " "person."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Resume\" button"}, {butText_just, 0, " When you are not using Japanese rules, any dispute " "at the end of the game can be resolved by simply undoing the last two " "passes and continuing the game. Pressing \"Resume\" will let you do " "that."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Done\" button"}, {butText_just, 0, " When both players are done marking dead stones, " "pressing \"Done\" will finish it and record the score."}, {butText_just, 0, ""}, {butText_just, 2, "The \""CGBUTS_REWCHAR"\", \""CGBUTS_BACKCHAR"\", " "\""CGBUTS_FWDCHAR"\", and \""CGBUTS_FFCHAR"\" Buttons"}, {butText_just, 0, " Pressing these buttons will move forward and backward through the " "game, letting you undo and redo moves. "CGBUTS_BACKCHAR" and " CGBUTS_FWDCHAR" will go one move at a time. "CGBUTS_REWCHAR" moves " "you to the beginning of the game, and "CGBUTS_FFCHAR" moves you to the " "end."}, {butText_just, 0, ""}, {butText_just, 2, "The Score Boxes"}, {butText_just, 0, " To the right of the board are the score boxes. There are two; one " "for white and one for black. In each box are shown the current score " "for that player and the amount of time remaining on that player's " "clock. When you are playing the game, the score is not the final " "score for that player, but the sum of the number of captures and the " "komi. When you are selecting dead stones and after pressing the " "\"Done\" button, the score is the actual score for that player."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Save Game\" Button"}, {butText_just, 0, " Pressing \"Save Game\" will save the game as a smart go file. Later " "you can continue the game with the \"Load Game\" button of the control " "window. You can also choose \"Edit Game\" from the control panel to " "edit the game that you have saved. This is currently the only way to " "create a new smart go file since the \"Edit Game\" button doesn't " "work."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Edit Game\" Button"}, {butText_just, 0, " Pressing \"Edit Game\" will pop up a second game board with the " "game on it. This will be an edit game board, not a go modem game " "board, and it will come with a edit tool set. This is used if you " "want to use the editing tools to annotate the game that is being " "played."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Quit\" Button"}, {butText_just, 0, " Pressing \"Quit\" will end the game. If you want to continue the " "game later, you should choose \"Save Game\" before you quit."}, {butText_just, 0, ""}, {butText_just, 2, "The Comments Box"}, {butText_just, 0, " At the very bottom of the window is the comments box. Here you " "can make comments about the game that will be saved in the smart go " "file if you choose \"Save Game\" later. To edit or add the comments, " "click in the comments box and start typing. Some emacs-style control " "keys are available; see the \"Keyboard Shortcuts\" help page for a " "list of them."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpText gmpBoardKey[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Playing Go Keyboard Shortcuts"}, {butText_just, 0, " Left arrow: Go back one move."}, {butText_just, 0, " Right arrow: Go ahead one move."}, {butText_just, 0, ""}, {butText_just, 2, "Comment Editing"}, {butText_just, 0, " When you are editing a comment the left and right " "arrows will not change moves. Instead they will move the cursor. " "These other commands are available:"}, {butText_just, 0, " Ctrl-A: Move cursor to the beginning of the line."}, {butText_just, 0, " Ctrl-D: Delete to the right of the cursor"}, {butText_just, 0, " Ctrl-E: Move cursor to the end of the line."}, {butText_just, 0, " Ctrl-K: Delete to the end of the line."}, {butText_just, 0, " Ctrl-U: Delete from the beginning of the line."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage gmpBoardPage[] = { {"Go Modem Play", gmpBoard}, {"Keyboard Shortcuts", gmpBoardKey}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_gmpBoard = {5, "Go Modem Help Pages", gmpBoardPage}; /* From "gmp/setup.c" */ static const AbutHelpText gmpSetup[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Go Modem Protocol Setup Window"}, {butText_just, 0, " Using this window you may configure how the go modem " "protocol will be used. The different types of connections allowed " "will be described."}, {butText_just, 0, ""}, {butText_just, 2, "\"Program\" Connections"}, {butText_just, 0, " When you select \"Program\" as either the white " "or the black player, Cgoban will execute a program and communicate " "go modem protocol with that program's stdin/stdout. You must " "specify the program to run in the \"Program\" field. The full " "command line, with the path, must be specified. If you put \"%d\" " "in the command line somewhere, the first \"%d\" will be replaced by " "the main time (in seconds) and the second \"%d\" will be replaced by " "the byo-yomi time (in seconds). For example, the program name " "\"./goDummy -time %d -byoYomi %d\" will run the program \"goDummy\" " "from the current directory with the time and the byo-yomi time " "passed in on the command line."}, {butText_just, 0, " The send game command checkbox controls whether " "commands to start the game will be sent to the program. Go modem " "protocol required the two agents to decide before connecting who will " "initiate the communication; this button lets you choose. Make sure " "that either Cgoban or the program send the game command or else the " "game will never start!"}, {butText_just, 0, ""}, {butText_just, 2, "\"Device\" Connections"}, {butText_just, 0, " This behaves much like a \"Program\" connection " "except that instead of running a program, Cgoban will connect to " "the device specified. For example, in Linux setting device to " "\"/dev/cua0\" will connect up to the computer's COM1 port."}, {butText_just, 0, ""}, {butText_just, 2, "\"Human\" Connections"}, {butText_just, 0, " Setting the connection to \"Human\" will let you " "make moves for this player."}, {butText_just, 0, ""}, {butText_just, 2, "\"NNGS\" and \"IGS\" Connections"}, {butText_just, 0, " Using \"NNGS\" or \"IGS\" will open a connection " "to a go server. The username and the password should be set " "correctly. If one player is \"NNGS\" or \"IGS\", then the other " "player will be started up every time that a game is accepted on " "the server. You will have to type all server commands except for " "the actual moves in the game; these will be made by the program or " "device. The \"Send game command\" switch is always set when you " "are connected to a server."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage gmpSetupPage[] = { {"Go Modem Play Setup", gmpSetup}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_gmpSetup = {4, "Go Modem Setup Help Pages", gmpSetupPage}; /* From "setup.c" */ static const AbutHelpText configure[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Configure Window"}, {butText_just, 0, " The configure window lets you change the behavior " "of Cgoban. There are several control panels in the configure window; " "each controls a different part of cgoban."}, {butText_just, 0, ""}, {butText_just, 2, "The \"Connecting To NNGS\" And \"Connecting To IGS\" " "Control Panels"}, {butText_just, 0, " Here you can set the location of the go servers. " "The default will be set to the current location of the " "servers; this window is here in case they move in the future. " "If the locations are wrong then you should fill in the machine name " "and port number of the server in the appropriate fields."}, {butText_just, 0, " Typically you want to leave \"Connect Directly To " "Server\" set. This is the most efficient way to connect to a go " "server. The only time when you might not want to set this is when " "your computer is behind a firewall or other security system. Then " "direct connections out might not work and you will have to go through " "a proxy. To do this, turn off \"Connect Directly To Server\" and " "enter the name of a program that can get through the firewall in " "the \"Connecting Command\" field. Instead of connecting to the " "server itself, Cgoban will run the command you specify and use it " "to get to the server."}, {butText_just, 0, " Be careful that you do not confuse the NNGS and the " "IGS servers! There are subtle differences in their protocol and " "Cgoban will not operate reliably if it connects to one type of " "server when it thinks it is connecting to another!"}, {butText_just, 0, ""}, {butText_just, 2, "The \"Miscellaneous\" Control Panel"}, {butText_just, 0, " Here are a few different controls."}, {butText_just, 0, " When \"Show Coordinates Around Boards\" checkbox " "controls whether the coordinates are shown around the boards that " "Cgoban draws."}, {butText_just, 0, " When \"Number Kibitzes\" is set, any kibitz " "in a game on a go server will have the move number shown before it."}, {butText_just, 0, " The \"Anti-Slip Moving\" button will not let you " "make a move until you have held the mouse over that point for at least " "a half a second. This is useful because sometimes clicking on the " "mouse makes it slip to the next space over, placing your move in " "the wrong location! With Anti-Slip on, this can't happen."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage configurePage[] = { {"Configuring Cgoban", configure}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_configure = {4, "Configure Help Pages", configurePage}; /* From client/look.c */ static const AbutHelpText cliLook[] = { {butText_center, 2, "Cgoban " VERSION}, {butText_center, 0, "By Bill Shubert"}, {butText_center, 0, DATE}, {butText_just, 0, ""}, {butText_just, 2, "Client Look Window"}, {butText_just, 0, " The \"Look\" and \"Status\" commands on the go " "servers show you the current state of a game. \"Look\" shows you " "a saved game, while \"Status\" shows you a game in progress."}, {butText_just, 0, " These boards cannot be edited or manipulated in " "any way."}, {butText_just, 0, ""}, {butText_left, 0, NULL}}; static const AbutHelpPage cliLookPage[] = { {"Client Look Window", cliLook}, {NULL, NULL}, {"Copyright and Non-Warranty", copyright}, {"About the Author", aboutAuthor}}; Help help_cliLook = {4, "Client Look Help Pages", cliLookPage}; goban-1.1.orig/src/cgbuts.c0000644000175000017500000007327010267776707013430 0ustar alal/* * src/cgbuts.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. * * This code extends the wmslib/but library to add special buttons needed * for cgoban. * * The globe data was extracted from the CIA World Data Bank II map database. * via XEarth. See the main copyright for information about this. */ #include #include #include #include #include #include #include "goBoard.h" #include "drawStone.h" #ifdef _CGBUTS_H_ Levelization Error. #endif #include "cgbuts.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut grid_mmove(But *but, int x, int y); static ButOut grid_mleave(But *but); static ButOut grid_mpress(But *but, int butnum, int x, int y); static ButOut grid_mrelease(But *but, int butnum, int x, int y); static void grid_draw(But *but, int x,int y,int w,int h); static ButOut grid_destroy(But *but); static void grid_newflags(But *but, uint fl); static ButOut gridNetPress(But *but, void *buf, int bufLen); static void drawRewChar(void *packet, ButWin *win, int x, int y, int w, int h); static void drawBackChar(void *packet, ButWin *win, int x, int y, int w, int h); static void drawFwdChar(void *packet, ButWin *win, int x, int y, int w, int h); static void drawFfChar(void *packet, ButWin *win, int x, int y, int w, int h); static void drawWStoneChar(void *packet, ButWin *win, int x, int y, int w, int h); static void drawBStoneChar(void *packet, ButWin *win, int x, int y, int w, int h); static void grid_morePixmaps(Cgbuts *b, int newNumPixmaps); static void gobanPic_draw(But *but, int x,int y, int w,int h); static ButOut gobanPic_destroy(But *but); static void stoneGroup_draw(But *but, int x,int y, int w,int h); static ButOut stoneGroup_destroy(But *but); static void computerPic_draw(But *but, int x,int y, int w,int h); static ButOut computerPic_destroy(But *but); static void toolPic_draw(But *but, int x,int y, int w,int h); static ButOut toolPic_destroy(But *but); /********************************************************************** * Global Variables **********************************************************************/ const char *cgbuts_stoneChar[2] = {CGBUTS_WSTONECHAR, CGBUTS_BSTONECHAR}; static const ButAction grid_action = { grid_mmove, grid_mleave, grid_mpress, grid_mrelease, NULL, NULL, grid_draw, grid_destroy, grid_newflags, gridNetPress}; static const ButAction no_action = { NULL, NULL, NULL, NULL, NULL, NULL, grid_draw, grid_destroy, grid_newflags, gridNetPress}; static const ButAction gobanPic_action = { NULL, NULL, NULL, NULL, NULL, NULL, gobanPic_draw, gobanPic_destroy, but_flags, NULL}; static const ButAction stoneGroup_action = { NULL, NULL, NULL, NULL, NULL, NULL, stoneGroup_draw, stoneGroup_destroy, but_flags, NULL}; static const ButAction computerPic_action = { NULL, NULL, NULL, NULL, NULL, NULL, computerPic_draw, computerPic_destroy, but_flags, NULL}; static const ButAction toolPic_action = { NULL, NULL, NULL, NULL, NULL, NULL, toolPic_draw, toolPic_destroy, but_flags, NULL}; /********************************************************************** * Functions **********************************************************************/ void cgbuts_init(Cgbuts *cgbuts, ButEnv *env, Rnd *rnd, int color, bool hold, bool hiContrast, bool interactive) { MAGIC_SET(cgbuts); cgbuts->env = env; cgbuts->dpyDepth = DefaultDepth(butEnv_dpy(env), DefaultScreen(butEnv_dpy(env))); cgbuts->dpyRootWindow = RootWindow(butEnv_dpy(env), DefaultScreen(butEnv_dpy(env))); cgbuts->pics = NULL; cgbuts->numPics = 0; cgbuts->rnd = rnd; cgbuts->color = color; cgbuts->holdStart = 0; cgbuts->hiContrast = hiContrast; cgbuts->interactive = interactive; cgbuts->holdEnabled = hold; butEnv_setChar(env, 1.0, CGBUTS_REWCHAR, drawRewChar, NULL); butEnv_setChar(env, 0.5, CGBUTS_BACKCHAR, drawBackChar, NULL); butEnv_setChar(env, 0.5, CGBUTS_FWDCHAR, drawFwdChar, NULL); butEnv_setChar(env, 1.0, CGBUTS_FFCHAR, drawFfChar, NULL); butEnv_setChar(env, 1.0, CGBUTS_WSTONECHAR, drawWStoneChar, cgbuts); butEnv_setChar(env, 1.0, CGBUTS_BSTONECHAR, drawBStoneChar, cgbuts); } But *grid_create(Cgbuts *b, ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, int pos) { Grid *grid; But *but; grid = wms_malloc(sizeof(Grid)); MAGIC_SET(grid); but = but_create(win, grid, b->interactive ? &grid_action : &no_action); but->uPacket = packet; but->layer = layer; but->flags = flags; grid->b = b; grid->callback = func; grid->lineGroup = gridLines_center; grid->starPoint = FALSE; grid->pos = pos; grid->pressColor = goStone_black; grid->stoneVersion = rnd_int(b->rnd) % CGBUTS_NUMWHITE; grid->ptype = goStone_empty; grid->grey = FALSE; grid->holdRequired = FALSE; grid->markType = goMark_none; grid->markAux = 0; but_init(but); return(but); } void grid_setStone(But *but, GoStone piece, bool grey) { Grid *grid = but->iPacket; if ((piece != grid->ptype) || (grey != grid->grey)) { grid->ptype = piece; grid->grey = grey; but_draw(but); } } void grid_setMark(But *but, GoMarkType mark, int aux) { Grid *grid = but->iPacket; if ((grid->markType != mark) || (grid->markAux != aux)) { grid->markType = mark; grid->markAux = aux; but_draw(but); } } static ButOut grid_destroy(But *but) { Grid *grid = but->iPacket; wms_free(grid); return(0); } static void grid_newflags(But *but, uint fl) { uint ofl = but->flags; but->flags = fl; if ((ofl & (BUT_TWITCHED|BUT_PRESSED|BUT_NETTWITCH|BUT_NETPRESS)) != (fl & (BUT_TWITCHED|BUT_PRESSED|BUT_NETTWITCH|BUT_NETPRESS))) { but_draw(but); } } static ButOut grid_mmove(But *but, int x, int y) { uint newflags = but->flags, retval = BUTOUT_CAUGHT; Grid *grid; if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if ((x < but->x) || (y < but->y) || (x >= but->x + but->w) || (y >= but->y + but->h)) { newflags &= ~BUT_TWITCHED; if (newflags != but->flags) { butEnv_setCursor(but->win->env, but, butCur_idle); but_newFlags(but, newflags); } if (!(newflags & BUT_LOCKED)) retval = 0; } else { newflags |= BUT_TWITCHED; if (newflags != but->flags) { grid = but->iPacket; assert(MAGIC(grid)); grid->b->holdStart = butWin_env(but_win(but))->eventTime; butEnv_setCursor(but->win->env, but, butCur_twitch); but_newFlags(but, newflags); } } return(retval); } static ButOut grid_mleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if (newflags != but->flags) { butEnv_setCursor(but->win->env, but, butCur_idle); but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut grid_mpress(But *but, int butnum, int x, int y) { int newflags = but->flags, retval = BUTOUT_CAUGHT; Grid *grid; if (butnum == 1) { grid = but->iPacket; assert(MAGIC(grid)); /* * Check to make sure that the user has been holding the mouse there * long enough. * Holding the mouse is only necessare if all of these are true: * - Cgbuts.holdEnabled is TRUE. This lets the user turn on and off * all holds globally. * - This particular button has hold enabled. This lets cgoban turn * off hold when you are in a situation where an undo is no problem. * - No modifiers are pressed. Same reason as the previous. */ if (((but->win->env->keyModifiers & (ShiftMask | ControlMask)) == 0) && grid->holdRequired && grid->b->holdEnabled && (butWin_env(but_win(but))->eventTime - grid->b->holdStart < CGBUTS_HOLDTIME)) retval |= BUTOUT_ERR; else newflags |= BUT_PRESSED|BUT_LOCKED; } else retval |= BUTOUT_ERR; /* * if (!(but->flags & BUT_PRESSED) && (newflags & BUT_PRESSED)) * snd_play(&pe_move_snd); */ if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut grid_mrelease(But *but, int butnum, int x, int y) { int newflags = but->flags, retval = BUTOUT_CAUGHT; Grid *grid = but->iPacket; bool makeCallback = FALSE; if (butnum != 1) return(retval); if (but->flags & BUT_TWITCHED) { if (but->flags & BUT_PRESSED) { if (but->id) butRnet_butSpecSend(but, NULL, 0); makeCallback = TRUE; } } else retval |= BUTOUT_ERR; newflags &= ~(BUT_PRESSED|BUT_LOCKED); if (newflags != but->flags) but_newFlags(but, newflags); if (makeCallback) retval |= grid->callback(but); return(retval); } static void grid_draw(But *but, int x,int y,int w,int h) { static const struct { int numPoints, points[5]; } lineFormats[9] = { {3, {4,2,3}}, /* ul */ {4, {1,3,2,4}}, /* top */ {3, {1,2,4}}, /* ur */ {4, {0,4,2,3}}, /* left */ {5, {1,3,2,0,4}}, /* center */ {4, {0,4,2,1}}, /* right */ {3, {0,2,3}}, /* ll */ {4, {1,3,2,0}}, /* bottom */ {3, {0,2,1}}}; /* lr */ Grid *grid = but->iPacket; int i, lineWidth, starSize, flags = but->flags; Display *dpy; XPoint points[5], lines[5]; GC gc = but->win->env->gc; GoStone markColor; Cgbuts *b = grid->b; assert(MAGIC(b)); dpy = but->win->env->dpy; /* Points are: * 0 * | * 1 - 2 - 3 * | * 4 */ if ((grid->markType != goMark_letter) && (grid->markType != goMark_number) && (grid->lineGroup != gridLines_none) && ((grid->ptype == goStone_empty) || grid->grey)) { butEnv_setXFg(but->win->env, BUT_FG); lineWidth = (but->w + 15) / 30; if (lineWidth < 1) lineWidth = 1; XSetLineAttributes(dpy, gc, lineWidth, LineSolid, CapButt, JoinMiter); points[0].x = points[2].x = points[4].x = but->x + but->w/2; points[1].x = but->x; points[3].x = but->x + but->w; points[0].y = but->y; points[1].y = points[2].y = points[3].y = but->y + but->h/2; points[4].y = but->y + but->h; for (i = 0; i < lineFormats[grid->lineGroup].numPoints; ++i) lines[i] = points[lineFormats[grid->lineGroup].points[i]]; XDrawLines(dpy, but->win->win, gc, lines, lineFormats[grid->lineGroup].numPoints, CoordModeOrigin); if (grid->starPoint) { butEnv_setXFg(but->win->env, BUT_FG); starSize = (((but->w + 6 - lineWidth*6) / 12) * 2) + lineWidth+1; if (starSize > 1) { XFillArc(dpy, but->win->win, gc, but->x+(but->w - starSize)/2, but->y + (but->h-starSize)/2, starSize, starSize, 0, 360*64); } } } if ((grid->ptype == goStone_empty) && !(flags & (BUT_TWITCHED|BUT_NETTWITCH)) && (grid->markType == goMark_none)) return; markColor = grid->ptype; if (grid->ptype != goStone_empty) { if (flags & (BUT_PRESSED|BUT_NETPRESS)) { /* Pressed. Invert the greyness. */ cgbuts_drawp(b, but->win, grid->ptype, !grid->grey, but->x, but->y, but->w, grid->stoneVersion, x,y,w,h); } else { cgbuts_drawp(b, but->win, grid->ptype, grid->grey, but->x, but->y, but->w, grid->stoneVersion, x,y,w,h); if (flags & (BUT_TWITCHED|BUT_NETTWITCH)) { /* Twitched. Draw a small stone in the middle of it. */ if (grid->grey) { cgbuts_drawp(b, but->win, grid->ptype, FALSE, but->x+(but->w+1)/4, but->y+(but->w+1)/4, but->w/2, grid->stoneVersion, x,y,w,h); } else { cgbuts_drawp(b, but->win, goStone_opponent(grid->ptype), TRUE, but->x+(but->w+1)/4, but->y+(but->w+1)/4, but->w/2, grid->stoneVersion, x,y,w,h); } } } } else { assert(grid->ptype == goStone_empty); if (flags & (BUT_PRESSED|BUT_NETPRESS|BUT_TWITCHED|BUT_NETTWITCH)) { markColor = grid->pressColor; if (flags & (BUT_PRESSED |BUT_NETPRESS)) { cgbuts_drawp(b, but->win, grid->pressColor, FALSE, but->x, but->y, but->w, grid->stoneVersion, x,y,w,h); } else { /* Grid is twitched only. */ cgbuts_drawp(b, but->win, grid->pressColor, TRUE, but->x, but->y, but->w, grid->stoneVersion, x,y,w,h); } } } if ((grid->markType != goMark_none) && (!(flags & (BUT_PRESSED|BUT_NETPRESS)))) { cgbuts_markPiece(b, but->win, markColor, grid->markType, grid->markAux, but->x, but->y, but->w, grid->stoneVersion, x,y,w,h); } } static ButOut gridNetPress(But *but, void *buf, int bufLen) { Grid *grid = but->iPacket; assert(bufLen == 0); /* snd_play(&pe_move_snd); */ return(grid->callback(but)); } void cgbuts_drawp(Cgbuts *b, ButWin *win, GoStone piece, bool grey, int x, int y, int size, int stoneVersion, int dx,int dy, int dw,int dh) { ButEnv *env = win->env; Display *dpy = env->dpy; GC gc = env->gc2; int copyStart; int worldNum = 0; if (size >= b->numPics) grid_morePixmaps(b, size + 1); if (b->pics[size].stonePixmaps == None) drawStone_newPics(env, b->rnd, CGBUTS_GREY(0), &b->pics[size].stonePixmaps, &b->pics[size].maskBitmaps, size, butEnv_isColor(env) && !b->hiContrast); if (stoneVersion >= CGBUTS_NUMWHITE) { worldNum = 2 + stoneVersion / CGBUTS_NUMWHITE; stoneVersion %= CGBUTS_NUMWHITE; } if ((dx >= x+size) || (dy >= y+size) || (dx+dw <= x) || (dy+dh <= y)) return; if (dx < x) { dw -= x - dx; dx = x; } if (dy < y) { dh -= y - dy; dy = y; } if (dx + dw > x + size) dw = x + size - dx; if (dy + dh > y + size) dh = y + size - dy; XSetClipMask(dpy, gc, b->pics[size].maskBitmaps); if (grey) { if ((x & 1) == (y & 1)) XSetClipOrigin(dpy, gc, x - size - win->xOff, y - win->yOff); else XSetClipOrigin(dpy, gc, x - size * 2 - win->xOff, y - win->yOff); } else { XSetClipOrigin(dpy, gc, x - win->xOff, y - win->yOff); } copyStart = 0; if (piece == goStone_white) copyStart = (stoneVersion + 1) * size; XCopyArea(dpy, b->pics[size].stonePixmaps, win->win, gc, copyStart+dx-x,dy-y, dw,dh, dx - win->xOff, dy - win->yOff); if (worldNum) { copyStart = 0; if (piece == goStone_black) copyStart = (stoneVersion + 1) * size; XSetClipOrigin(dpy, gc, x-size*worldNum - win->xOff, y - win->yOff); XCopyArea(dpy, b->pics[size].stonePixmaps, win->win, gc, copyStart+dx-x,dy-y, dw,dh, dx - win->xOff, dy - win->yOff); } XSetClipMask(dpy, gc, None); } void cgbuts_markPiece(Cgbuts *b, ButWin *win, GoStone piece, GoMarkType markType, int markAux, int x, int y, int w, int stoneVersion, int dx,int dy, int dw,int dh) { ButEnv *env = win->env; Display *dpy = env->dpy; GC gc = env->gc; int lw = 0; XPoint points[4]; int off; char text[4]; if ((markType >= goMark_lastMove) && (markType <= goMark_circle)) { /* Must set up line attributes. */ lw = (w + 7) / 15; if (lw < 1) lw = 1; XSetLineAttributes(dpy, gc, lw, LineSolid, CapButt, JoinMiter); } if (piece == goStone_black) butEnv_setXFg(env, BUT_WHITE); else butEnv_setXFg(env, BUT_BLACK); switch(markType) { case goMark_none: break; case goMark_triangle: points[0].x = x+w/2 - win->xOff; points[0].y = y+lw - win->yOff; points[1].x = x+((w*0.9330127)-(lw*0.8660254)+0.5) - win->xOff; points[1].y = y+((w*0.75)-(lw*0.5)+0.5) - win->yOff; points[2].x = x+((w*0.0669873)+(lw*0.8660254)+0.5) - win->xOff; points[2].y = points[1].y; points[3] = points[0]; XDrawLines(dpy, win->win, gc, points, 4, CoordModeOrigin); break; case goMark_ko: case goMark_square: off = (int)(w*0.14644661+lw*0.5+0.5); XDrawRectangle(dpy, win->win, gc, x + off - win->xOff, y + off - win->yOff, w-off*2-(lw&1),w-off*2-(lw&1)); break; case goMark_lastMove: case goMark_circle: off = (w + 1) / 4; XDrawArc(dpy, win->win, gc, x + off - win->xOff, y + off - win->yOff, w-off*2-1,w-off*2-1, 0,360*64); break; case goMark_smBlack: case goMark_smWhite: if (markType == goMark_smBlack) cgbuts_drawp(b, win, goStone_black, FALSE, x+(w+1)/4,y+(w+1)/4, w/2, stoneVersion, dx,dy,dw,dh); else cgbuts_drawp(b, win, goStone_white, FALSE, x+(w+1)/4,y+(w+1)/4, w/2, stoneVersion, dx,dy,dw,dh); break; case goMark_letter: text[0] = markAux; text[1] = '\0'; butWin_write(win, x + (w - butEnv_textWidth(env, text, 1)) / 2, y + (w - butEnv_fontH(env, 1)) / 2, text, 1); break; case goMark_number: assert(markAux >= 0); if (markAux > 999) markAux = 999; if ((markAux > 99) && (w < butEnv_fontH(env, 0) * 2)) sprintf(text, "%02d", markAux % 100); else sprintf(text, "%d", markAux); butWin_write(win, x + (w - butEnv_textWidth(env, text, 1)) / 2, y + (w - butEnv_fontH(env, 1)) / 2, text, 1); break; } } void grid_setPress(But *but, GoStone pressColor) { Grid *grid; if (pressColor == goStone_empty) { if (but->flags & BUT_PRESSABLE) but_setFlags(but, BUT_NOPRESS); } else { if (!(but->flags & BUT_PRESSABLE)) but_setFlags(but, BUT_PRESSABLE); grid = but->iPacket; grid->pressColor = pressColor; } if (but->flags & BUT_TWITCHED) but_draw(but); } static void drawRewChar(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[8]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x; points[0].y = y+h/2; points[1].x = x+w/2; points[1].y = y; points[2].x = x+w/2; points[2].y = y+h/2; points[3].x = x+w; points[3].y = y; points[4].x = x+w; points[4].y = y+h; points[5] = points[2]; points[6].x = x+w/2; points[6].y = y+h; points[7] = points[0]; XFillPolygon(dpy, xwin, gc, points, 8, Nonconvex, CoordModeOrigin); } static void drawBackChar(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[4]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; points[0].x = x; points[0].y = y+h/2; points[1].x = x+w; points[1].y = y; points[2].x = x+w; points[2].y = y+h; points[3] = points[0]; XFillPolygon(dpy, xwin, gc, points, 4, Nonconvex, CoordModeOrigin); } static void drawFwdChar(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[4]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; points[0].x = x; points[0].y = y; points[1].x = x+w; points[1].y = y+h/2; points[2].x = x; points[2].y = y+h; points[3] = points[0]; XFillPolygon(dpy, xwin, gc, points, 4, Nonconvex, CoordModeOrigin); } static void drawFfChar(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[8]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x; points[0].y = y; points[1].x = x+w/2; points[1].y = y+h/2; points[2].x = x+w/2; points[2].y = y; points[3].x = x+w; points[3].y = y+h/2; points[4].x = x+w/2; points[4].y = y+h; points[5] = points[1]; points[6].x = x; points[6].y = y+h; points[7] = points[0]; XFillPolygon(dpy, xwin, gc, points, 8, Nonconvex, CoordModeOrigin); } static void drawWStoneChar(void *packet, ButWin *win, int x, int y, int w, int h) { Cgbuts *b = packet; cgbuts_drawp(b, win, goStone_white, FALSE, x,y, w, 1, x,y,w,h); } static void drawBStoneChar(void *packet, ButWin *win, int x, int y, int w, int h) { Cgbuts *b = packet; cgbuts_drawp(b, win, goStone_black, FALSE, x,y, w, 1, x,y,w,h); } static void grid_morePixmaps(Cgbuts *b, int newNumPics) { int i; CgbutsPic *newPics; assert(MAGIC(b)); newPics = wms_malloc(newNumPics * sizeof(CgbutsPic)); for (i = 0; i < b->numPics; ++i) { newPics[i] = b->pics[i]; } for (; i < newNumPics; ++i) { newPics[i].stonePixmaps = None; newPics[i].maskBitmaps = None; } b->numPics = newNumPics; if (b->pics) { wms_free(b->pics); } b->pics = newPics; } But *gobanPic_create(Cgbuts *b, ButWin *win, int layer, int flags) { But *but; but = but_create(win, b, &gobanPic_action); but->uPacket = NULL; but->layer = layer; but->flags = flags; return(but); } static void gobanPic_draw(But *but, int x,int y, int w,int h) { ButWin *win = but->win; ButEnv *env = win->env; int w13 = (but->w+1)/3; int w16 = (but->w + 2) / 6; int stonew = but->w/3; int bw = butEnv_stdBw(env); int cgtop = but->y + (but->w - stonew - bw - (w13 + w16)) / 2; int bdtop = cgtop + stonew + bw; XPoint points[4]; butEnv_setXFg(env, CGBUTS_COLORBOARD(0)); XFillRectangle(env->dpy, win->win, env->gc, but->x,bdtop+w13, but->w,w16); butEnv_setXFg(env, CGBUTS_COLORBOARD(225)); points[0].x = but->x; points[0].y = bdtop+w13; points[1].x = but->x + w16; points[1].y = bdtop; points[2].x = but->x + but->w - w16; points[2].y = points[1].y; points[3].x = but->x + but->w; points[3].y = points[0].y; XFillPolygon(env->dpy, win->win, env->gc, points, 4, Convex, CoordModeOrigin); } static ButOut gobanPic_destroy(But *but) { return(0); } But *stoneGroup_create(Cgbuts *b, ButWin *win, int layer, int flags) { But *but; but = but_create(win, b, &stoneGroup_action); but->uPacket = NULL; but->layer = layer; but->flags = flags; return(but); } static void stoneGroup_draw(But *but, int x,int y, int w,int h) { ButWin *win = but->win; int stoneW; stoneW = but->w >> 1; cgbuts_drawp(but->iPacket, win, goStone_black, FALSE, but->x, but->y, stoneW, 0, x, y, w, h); cgbuts_drawp(but->iPacket, win, goStone_white, FALSE, but->x + stoneW, but->y, stoneW, 1, x, y, w, h); cgbuts_drawp(but->iPacket, win, goStone_white, FALSE, but->x, but->y + stoneW, stoneW, 2, x, y, w, h); cgbuts_drawp(but->iPacket, win, goStone_black, FALSE, but->x + stoneW, but->y + stoneW, stoneW, 3, x, y, w, h); } static ButOut stoneGroup_destroy(But *but) { return(0); } But *computerPic_create(Cgbuts *b, ButWin *win, int layer, int flags) { But *but; but = but_create(win, b, &computerPic_action); but->uPacket = NULL; but->layer = layer; but->flags = flags; return(but); } static void computerPic_draw(But *but, int x,int y, int w,int h) { XPoint points[4]; ButWin *win = but->win; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); int h2 = but->h / 2, h3 = but->h / 3, h12 = but->h / 12; int w6 = but->w / 6, w9 = but->w / 9; x = but->x; y = but->y; w = but->w; h = but->h; y += (h - (h12 + h2 + h12 + h3)) / 2; points[0].x = x; points[0].y = y + h12 + h2 + h3; points[1].x = x + w6; points[1].y = y + h12 + h2 + h12; points[2].x = x + w - w6; points[2].y = y + h12 + h2 + h12; points[3].x = x + w; points[3].y = y + h12 + h2 + h3; butEnv_setXFg(butWin_env(win), BUT_BLACK); XFillPolygon(dpy, xwin, gc, points, 4, Nonconvex, CoordModeOrigin); XFillRectangle(dpy, xwin, gc, x+w6,y+h12, w-2*w6,h2); butEnv_setXFg(butWin_env(win), BUT_PBG); XFillRectangle(dpy, xwin, gc, x+w6+w9,y+h12*2, w-2*w6-2*w9,h2-h12*2); } static ButOut computerPic_destroy(But *but) { return(0); } But *toolPic_create(Cgbuts *b, ButWin *win, int layer, int flags) { But *but; but = but_create(win, b, &toolPic_action); but->uPacket = NULL; but->layer = layer; but->flags = flags; return(but); } static void toolPic_draw(But *but, int x,int y, int w,int h) { XPoint points[12]; ButWin *win = but->win; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); /* Size of hammer or screwdriver relative to whole picture. */ const float subBoxSize = 0.75; const float bevel = 0.25; const float hr2 = 0.70710678; /* Half of Root 2 */ /* Hammer constants. */ const float hHandleW = 0.1; const float hJointW = 0.2; const float hJointL = 0.2; const float hClawL = 0.4; const float hNeckW = 0.07; const float hHeadL = 0.1; /* Screwdriver constants. */ const float sHandleW = 0.2; const float sHandleL = 0.5; const float sHEndW = 0.15; const float sBladeW = 0.04; float th; float bx, by; x = but->x; y = but->y; h = but->h; th = h * subBoxSize; bx = x + h * (1.0 - subBoxSize); by = y + h * (1.0 - subBoxSize); /* The hammer's handle. */ points[0].x = x; points[0].y = y + th * (1.0 - hHandleW) + 0.5; points[1].x = x + th * hHandleW + 0.5; points[1].y = points[0].y + (points[1].x - points[0].x); points[2].x = x + th * (1.0 - hJointL * hr2) + 0.5; points[2].y = points[1].y - (points[2].x - points[1].x); points[3].x = points[2].x - (points[1].x - points[0].x); points[3].y = points[2].y - (points[1].x - points[0].x); /* Add beveling to the handle. */ points[4] = points[0]; points[5].x = x + th * hHandleW * bevel + 0.5; points[5].y = points[4].y + (points[5].x - points[4].x); points[6].x = x + th * (1.0 - hJointL * hr2) + 0.5; points[6].y = points[5].y - (points[6].x - points[5].x); points[7] = points[3]; points[9] = points[1]; points[10] = points[2]; points[8].x = points[9].x - th * hHandleW * bevel + 0.5; points[8].y = points[9].y - (points[9].x - points[8].x); points[11].x = points[10].x - (points[9].x - points[8].x); points[11].y = points[10].y - (points[9].x - points[8].x); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(200)); XFillPolygon(dpy, xwin, gc, points, 4, Nonconvex, CoordModeOrigin); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(0)); XFillPolygon(dpy, xwin, gc, points+4, 4, Nonconvex, CoordModeOrigin); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(255)); XFillPolygon(dpy, xwin, gc, points+8, 4, Nonconvex, CoordModeOrigin); /* The hammer's head. */ points[0].x = x + th + 0.5; points[0].y = y + th * (hJointL * hr2) + 0.5; points[1].x = points[0].x - (points[0].y - y); points[1].y = y; points[2].x = x + th * (1.0 - hJointL * hr2 - hClawL) + 0.5; points[2].y = y; points[3].x = x + th * (1.0 - (hJointL + hJointW) * hr2) + 0.5; points[3].y = y + (points[1].x - points[3].x); points[4].x = points[3].x + (points[0].x - points[1].x); points[4].y = points[3].y + (points[4].x - points[3].x); points[5].x = x + th * (1.0 - (hJointW + hNeckW) * hr2 * 0.5) + 0.5; points[5].y = points[4].y - (points[5].x - points[4].x); points[6].x = points[5].x; points[6].y = points[4].y + (points[6].x - points[4].x); points[7].x = x + th * (1.0 + (hHeadL * 2.0 - hJointW) * hr2) + 0.5; points[7].y = points[6].y + (points[7].x - points[6].x); points[8].x = points[7].x + (points[0].x - points[4].x); points[8].y = points[7].y - (points[8].x - points[7].x); points[9].x = points[8].x - (points[7].x - points[6].x); points[9].y = points[8].y - (points[7].x - points[6].x); points[10].x = points[0].x - (points[9].y - points[0].y); points[10].y = points[9].y; butEnv_setXFg(butWin_env(win), BUT_BLACK); XFillPolygon(dpy, xwin, gc, points, 11, Nonconvex, CoordModeOrigin); /* The screwdriver's blade. */ points[0].x = bx + th * (1.0 - sBladeW * hr2) + 0.5; points[0].y = by + 0.5; points[1].x = bx + th * sHandleW + 0.5; points[1].y = points[0].y + (points[0].x - points[1].x); points[3].x = bx + th + 0.5; points[3].y = points[0].y + (points[3].x - points[0].x); points[2].x = points[1].x + (points[3].x - points[0].x); points[2].y = points[1].y + (points[3].x - points[0].x); butEnv_setXFg(butWin_env(win), CGBUTS_GREY(120)); XFillPolygon(dpy, xwin, gc, points, 4, Nonconvex, CoordModeOrigin); /* The screwdriver's handle. */ points[4].x = bx + 0.5; points[4].y = by + th * (1.0 - sHandleW * hr2) + 0.5; points[5].x = points[4].x; points[5].y = by + th * (1.0 - sHEndW * hr2) + 0.5; points[6].y = by + th + 0.5; points[6].x = points[5].x + (points[6].y - points[5].y); points[7].y = points[6].y; points[7].x = points[6].x + (points[5].y - points[4].y); points[8].x = bx + th * (sHandleL + sHandleW) * hr2 + 0.5; points[8].y = points[7].y - (points[8].x - points[7].x); points[3].x = points[4].x + (points[8].x - points[7].x); points[3].y = points[4].y - (points[8].x - points[7].x); points[2].x = points[3].x + th * bevel * sHandleW * hr2 + 0.5; points[2].y = points[3].y + (points[2].x - points[3].x); points[9].x = points[8].x - (points[2].x - points[3].x); points[9].y = points[8].y - (points[2].x - points[3].x); points[1].x = points[4].x + (points[2].x - points[3].x); points[1].y = points[4].y + (points[2].x - points[3].x); points[10].x = points[7].x - (points[2].x - points[3].x); points[10].y = points[7].y - (points[2].x - points[3].x); points[0].x = points[5].x + th * bevel * sHEndW * hr2 + 0.5; points[0].y = points[5].y + (points[0].x - points[5].x); points[11].x = points[6].x - (points[0].x - points[5].x); points[11].y = points[6].y - (points[0].x - points[5].x); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(200)); XFillPolygon(dpy, xwin, gc, points+3, 6, Nonconvex, CoordModeOrigin); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(0)); XFillPolygon(dpy, xwin, gc, points, 6, Nonconvex, CoordModeOrigin); butEnv_setXFg(butWin_env(win), CGBUTS_COLORBOARD(255)); XFillPolygon(dpy, xwin, gc, points+6, 6, Nonconvex, CoordModeOrigin); } static ButOut toolPic_destroy(But *but) { return(0); } void cgbuts_redraw(Cgbuts *b) { int i; assert(MAGIC(b)); for (i = 0; i < b->numPics; ++i) { if (b->pics[i].stonePixmaps != None) { XFreePixmap(butEnv_dpy(b->env), b->pics[i].stonePixmaps); XFreePixmap(butEnv_dpy(b->env), b->pics[i].maskBitmaps); } } wms_free(b->pics); b->pics = NULL; b->numPics = 0; butEnv_drawAll(b->env); } goban-1.1.orig/src/goGame.h0000644000175000017500000001320606431442507013320 0ustar alal/* * src/gogame.h, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOGAME_H_ #define _GOGAME_H_ 1 #ifndef _GOHASH_H_ #include "goHash.h" #endif #ifndef _GOBOARD_H_ #include "goBoard.h" #endif #ifndef _GOTIME_H_ #include "goTime.h" #endif /********************************************************************** * Constants **********************************************************************/ #define GOGAME_PASS 0 /********************************************************************** * Data types **********************************************************************/ typedef enum { goRules_chinese, goRules_japanese, goRules_ing, goRules_aga, goRules_nz, goRules_tibetan } GoRules; #define goRules_num ((int)goRules_tibetan + 1) typedef enum { goRulesKo_japanese, goRulesKo_super, goRulesKo_tibetan /* * goRulesKo_ing is longer supported since it can't be implemented * accurately by a computer without lots of help from the players. */ } GoRulesKo; typedef enum { goGameState_play, goGameState_dispute, goGameState_selectDead, goGameState_selectDisputed, goGameState_done } GoGameState; #define GOGAMEFLAGS_DISPUTED 0x0001 #define GOGAMEFLAGS_MARKDEAD 0x0002 #define GOGAMEFLAGS_WANTDEAD 0x0004 #define GOGAMEFLAGS_RESOLVEDEAD 0x0008 #define GOGAMEFLAGS_RESOLVEALIVE 0x0010 #define GOGAMEFLAGS_SEEWHITE 0x0020 #define GOGAMEFLAGS_SEEBLACK 0x0040 #define GOGAMEFLAGS_SEKI 0x0080 #define GOGAMEFLAGS_NOSEKI 0x0100 #define GOGAMEFLAGS_SPECIAL 0x0200 /* For seki detection. */ #define GOGAMEFLAGS_EYE 0x0400 /* For seki detection. */ #define GOGAMEFLAGS_FAKETEST 0x0800 /* For seki detection. */ #define GOGAMEFLAGS_NOTFAKE 0x1000 /* For seki detection. */ #define GOGAMEFLAGS_RESOLVED (GOGAMEFLAGS_RESOLVEDEAD| \ GOGAMEFLAGS_RESOLVEALIVE) #define GOGAMEFLAGS_SEEN (GOGAMEFLAGS_SEEBLACK|GOGAMEFLAGS_SEEWHITE) #define goGameFlags_see(s) (GOGAMEFLAGS_SEEWHITE << (s)) typedef struct GoGameMove_struct { int move; GoStone color; GoHash hash; /* Hash value at the beginning of this move. */ GoTimer time; /* Time left at this move. */ } GoGameMove; typedef struct { int size; GoRules rules; /* * Passive and forcePlay are somewhat redundant. I should clean them up. * But basically, passive means it is controlled by the SGF, and * forcePlay means go server. Yuck. */ bool passive; bool forcePlay; float komi; GoTime time; int moveNum, maxMoves, handicap, passCount; GoGameMove *moves; int movesLen; bool noLastMove; GoStone whoseMove; GoBoard *board; GoBoard *tmpBoard; /* Used for superko rule and seki checks. */ uint *flags; bool flagsCleared; int *hotMoves; int cooloff; /* The last move that cleared the kos. */ GoGameState state; bool disputeAlive; int setWhoseMoveNum; GoStone setWhoseMoveColor; int disputedLoc; MAGIC_STRUCT } GoGame; /********************************************************************** * Global variables **********************************************************************/ extern const bool goRules_freeHandicaps[goRules_num]; extern const GoRulesKo goRules_ko[goRules_num]; extern const bool goRules_suicide[goRules_num]; extern const bool goRules_dispute[goRules_num]; extern const bool goRules_scoreKills[goRules_num]; /********************************************************************** * Functions **********************************************************************/ extern GoGame *goGame_create(int size, GoRules rules, int handicap, float komi, const GoTime *time, bool passive); extern void goGame_destroy(GoGame *game); /* * Valid in the play or dispute states. */ /* * goGame_move() returns TRUE if the move caused the game's state to change. * Possible changes: * play --> selectDead * dispute --> selectDead * play, dispute --> done (for time-out losses only, move will not be made) */ extern bool goGame_move(GoGame *game, GoStone color, int move, GoTimer *currentTime); extern void goGame_setBoard(GoGame *game, GoStone color, int loc); #define goGame_pass(g, color, t) goGame_move((g), color, GOGAME_PASS, t) #define goGame_isHot(g, l) ((g)->hotMoves[l] >= (g)->cooloff) #define goGame_whoseMove(g) ((g)->whoseMove) extern GoStone goGame_whoseTurnOnMove(GoGame *game, int moveNum); extern const GoTimer *goGame_getTimer(const GoGame *game, GoStone color); /* * Valid in play, dispute, or done states. Returns TRUE if the game's state * has changed, just like goGame_move. * Possible changes: * play --> done * done --> play */ extern bool goGame_moveTo(GoGame *game, int moveNum); /* * Valid in the selectDead state. */ extern void goGame_markDead(GoGame *game, int loc); /* * resume() will change state from selectDead to play. */ extern void goGame_resume(GoGame *game); /* * done() will change state from selectDead to done. */ extern void goGame_done(GoGame *game); /* * selectDisputed() will change state from selectDead to selectDisputed. */ #define goGame_selectDisputed(g) ((g)->state = goGameState_selectDisputed) /* * dispute() will change state from selectDisputed to dispute. */ extern void goGame_dispute(GoGame *game, int loc); /* * Always valid. */ extern bool goGame_isLegal(GoGame *game, GoStone moveColor, int move); #define goGame_caps(g, s) goBoard_caps((g)->board, (s)) extern int goGame_lastMove(GoGame *g); #define goGame_noLastMove(g) ((g)->noLastMove = TRUE) #endif /* _GOGAME_H_ */ goban-1.1.orig/src/checkbox.h0000644000175000017500000000124606035353012013700 0ustar alal/* * wmslib/src/but/checkbox.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for checkbox.c */ #ifndef _BUT_CHECKBOX_H_ #define _BUT_CHECKBOX_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern But *butCb_create(ButOut (*func)(But *but, bool value), void *packet, ButWin *win, int layer, int flags, bool on); extern bool butCb_get(But *but); extern void butCb_set(But *but, bool on, bool makeCallback); #endif /* _BUT_CHECKBOX_H_ */ goban-1.1.orig/src/data.h0000644000175000017500000000372710270070030013021 0ustar alal/* * src/client/data.h, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_DATA_H_ #ifndef _CLIENT_SERVER_H_ #include "server.h" #endif #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _CLIENT_CONN_H_ #include "conn.h" #endif #ifndef _WMS_STR_H_ #include #endif #ifdef _CLIENT_DATA_H_ #error LEVELIZATION ERROR #endif #define _CLIENT_DATA_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef struct CliActions_struct { /* * Passing board as a void is really ugly. What I should do is move * this data type into board.h and keep it in the main data structure, * passing it down as needed. */ void (*newGame)(void *packet, GoStone localColor, int size, int handicap, float komi, int mainTime, int byTime, void *board); void (*gotMove)(void *packet, GoStone color, int loc); void (*gotUndo)(void *packet); void (*endGame)(void *packet); void (*logout)(void *packet); } CliActions; typedef enum { cliData_setup, cliData_login, cliData_main } CliDataState; typedef struct CliData_struct { CliDataState state; Cgoban *cg; int serverNum; CliServer server; const char *serverName; Str userName; Str cmdBuild; ClpEntry *numKibitz; bool connValid; CliConn conn; const CliActions *actions; void *packet; int refCount; MAGIC_STRUCT } CliData; /********************************************************************** * Functions **********************************************************************/ extern CliData *cliData_create(Cgoban *cg, int serverNum, const CliActions *actions, void *packet); #define cliData_incRef(cd) (++((cd)->refCount)) extern void cliData_closeConns(CliData *cd); extern void cliData_decRef(CliData *cd); #endif /* _CLIENT_DATA_H_ */ goban-1.1.orig/src/i_win.h0000644000175000017500000000041706035353012013216 0ustar alal/* * wmslib/src/but/i_win.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for i_win.c */ #ifndef _BUT_I_WIN_H_ #define _BUT_I_WIN_H_ 1 #endif /* _BUT_I_WIN_H_ */ goban-1.1.orig/src/plasma.c0000644000175000017500000000643510270056457013400 0ustar alal/* * src/xio/plasma.c, part of Complete Goban (game program) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include "plasma.h" #define FACTOR 0.7 #define SIZE PLASMA_SIZE #define STRETCH 3 static void vert(int *cloud, int step, int skew, Rnd *rnd); static void diag(int *, int, int, Rnd *), perp(int *, int, int, Rnd *); static int my_random(int limit, Rnd *rnd); uchar *plasma(void) { static bool done = FALSE; int *cloud, x; Rnd *rnd; static unsigned char *cout = NULL; int step, i; float fskew; if (done) return(cout); done = TRUE; rnd = rnd_create(time(NULL)); cout = wms_malloc(SIZE * SIZE * sizeof(char)); fskew = (float)(750 << 8); cloud = wms_malloc(SIZE * (SIZE+1) * sizeof(int)); assert(cloud != NULL); if (cloud == NULL) { fprintf(stderr, "Could not allocate enough memory.\n"); exit(1); } *cloud = my_random(256 << 16, rnd); for (step = SIZE/2; step; step /= 2) { diag(cloud, step, (int)fskew, rnd); fskew *= FACTOR; if (fskew < 1.0) fskew = 1.0; perp(cloud, step, (int)fskew, rnd); fskew *= FACTOR; if (fskew < 1.0) fskew = 1.0; } #if STRETCH for (i = PLASMA_SIZE*PLASMA_SIZE/(1<= 0; i -= PLASMA_SIZE) { memcpy(cloud+(i<>= 1) { fskew = 1.0; vert(cloud, step, (int)fskew, rnd); fskew *= FACTOR*FACTOR; if (fskew < 1.0) fskew = 1.0; } #endif /* STRETCH */ for (i = 0; i < SIZE*SIZE; ++i) { x = (cloud[i] >> 8) & 511; if (x > 255) x = 511 - x; cout[i] = x; } wms_free(cloud); rnd_destroy(rnd); return(cout); } #define CLACC(x, y) cloud[(x) + ((y)*SIZE)] static void diag(int *cloud, int step, int skew, Rnd *rnd) { int i, j; int sum; for (i = 0; i < SIZE; i += step) for (j = 0; j < SIZE; j += step) { if (((i & step) != 0) && ((j & step) != 0)) { sum = (CLACC(i-step, j-step) + CLACC(i-step, (j+step)&(SIZE-1)) + CLACC((i+step)&(SIZE-1), j-step) + CLACC((i+step)&(SIZE-1), (j+step)&(SIZE-1))) / 4; CLACC(i, j) = sum + my_random(skew, rnd); } } } static void perp(int *cloud, int step, int skew, Rnd *rnd) { int i, j; int sum; for (i = 0; i < SIZE; i += step) for (j = 0; j < SIZE; j += step) { if ((i & step) != (j & step)) { sum = (CLACC((i-step)&(SIZE-1), j) + CLACC(i, (j+step)&(SIZE-1)) + CLACC((i+step)&(SIZE-1), j) + CLACC(i, (j-step)&(SIZE-1))) / 4.0; CLACC(i, j) = sum + my_random(skew, rnd); } } } static void vert(int *cloud, int step, int skew, Rnd *rnd) { int i, j; int sum; for (i = 0; i < SIZE; ++i) for (j = step; j < SIZE; j += (step<<1)) { sum = (CLACC((i-1)&(SIZE-1), j-step) + CLACC(i, j-step) + CLACC((i+1)&(SIZE-1), j-step) + CLACC((i-1)&(SIZE-1), j+step) + CLACC(i, j+step) + CLACC((i+1)&(SIZE-1), j+step)) / 6.0; CLACC(i, j) = sum + my_random(skew, rnd); } } static int my_random(int limit, Rnd *rnd) { int i; i = rnd_int(rnd); if (i & 8) return(rnd_int(rnd) % limit); else return(-(rnd_int(rnd) % limit)); } goban-1.1.orig/src/setup.h0000644000175000017500000000264406415545327013273 0ustar alal/* * src/gmp/setup.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GMP_SETUP_H_ #define _GMP_SETUP_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef enum { gmpSetup_program, gmpSetup_device, gmpSetup_human, gmpSetup_nngs, gmpSetup_igs, gmpSetup_local, gmpSetup_remote } GmpSetupType; typedef struct GmpSetupPlayer_struct { GmpSetupType type; ClpEntry *optionEntry, *progNameEntry, *devNameEntry; Str progName, devName; But *box; But *typeMenu; But *strDesc1, *strIn1; But *strDesc2, *strIn2; } GmpSetupPlayer; typedef struct GmpSetup_struct { Cgoban *cg; /* TRUE if you are waiting for a callback from gameSetup. */ bool gameWaiting; ButWin *win; But *bg; But *title; But *ok, *help, *cancel; GmpSetupPlayer players[2]; MAGIC_STRUCT } GmpSetup; /********************************************************************** * Functions **********************************************************************/ extern GmpSetup *gmpSetup_create(Cgoban *cg); extern void gmpSetup_destroy(GmpSetup *gs); extern int gmp_forkProgram(Cgoban *cg, int *inFile, int *outFile, const char *progName, int mainTime, int byTime); #endif /* _GMP_SETUP_H_ */ goban-1.1.orig/src/slide.c0000644000175000017500000003612710270074372013220 0ustar alal/* * wmslib/src/but/slide.c, part of wmslib (Library functions) * Copyright (C) 1994-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include /********************************************************************** * Data Types **********************************************************************/ typedef struct Slide_struct { int maxval; int cval; int size; bool horiz; bool grip; int start_mloc, start_val, start_loc; ButTimer *timer; int timer_jump; int oldcur; /* * Stuff calculated from dimensions. * w and h are for a horizontal slider. Reverse for vertical! */ int boxW, boxH, boxLoc; int lastW, lastH; ButOut (*callback)(But *but, int setting, bool newPress); } Slide; /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static void flags(But *but, uint flags); static ButOut slide_now(ButTimer *bt); static void specialDraw(But *but, Slide *slide, int x, int y, int w, int h); static void drawNewLoc(But *but); static void calcBoxLoc(But *but); /********************************************************************** * Globals **********************************************************************/ static const ButAction action = { mmove, mleave, mpress, mrelease, NULL, NULL, draw, destroy, flags, NULL}; /********************************************************************** * Functions **********************************************************************/ But *butSlide_hCreate(ButOut (*func)(But *but, int setting, bool newPress), void *packet, ButWin *win, int layer, int flags, int maxval, int cval, int size) { Slide *slide; But *but; slide = wms_malloc(sizeof(Slide)); but = but_create(win, slide, &action); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; slide->maxval = maxval; slide->cval = cval; slide->size = size; slide->horiz = TRUE; slide->grip = FALSE; slide->start_mloc = 0; slide->start_val = 0; slide->start_loc = 0; slide->timer = NULL; slide->timer_jump = 0; slide->oldcur = butCur_idle; slide->boxW = slide->boxH = slide->boxLoc = 0; slide->lastW = 0; slide->lastH = 0; slide->callback = func; but_init(but); return(but); } But *butSlide_vCreate(ButOut (*func)(But *but, int setting, bool newPress), void *packet, ButWin *win, int layer, int flags, int maxval, int cval, int size) { Slide *slide; But *but; slide = wms_malloc(sizeof(Slide)); but = but_create(win, slide, &action); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; slide->maxval = maxval; slide->cval = cval; slide->size = size; slide->horiz = FALSE; slide->grip = FALSE; slide->start_mloc = 0; slide->start_val = 0; slide->start_loc = 0; slide->timer = NULL; slide->timer_jump = 0; slide->oldcur = butCur_idle; slide->boxW = slide->boxH = slide->boxLoc = 0; slide->lastW = 0; slide->lastH = 0; slide->callback = func; but_init(but); return(but); } void butSlide_set(But *but, int maxval, int cval, int size) { Slide *slide = but->iPacket; assert(but->action == &action); if (maxval == BUT_NOCHANGE) maxval = slide->maxval; if (cval == BUT_NOCHANGE) cval = slide->cval; if (size == BUT_NOCHANGE) size = slide->size; if ((maxval != slide->maxval) || (cval != slide->cval) || (size != slide->size)) { slide->maxval = maxval; slide->cval = cval; slide->size = size; drawNewLoc(but); } } int butSlide_get(But *but) { Slide *slide = but->iPacket; return(slide->cval); } static ButOut destroy(But *but) { Slide *slide = but->iPacket; if (slide->timer != NULL) butTimer_destroy(slide->timer); wms_free(slide); return(0); } static void draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; Slide *slide = but->iPacket; int bw = env->stdButBw; if ((w != slide->lastW) || (h != slide->lastH)) calcBoxLoc(but); but_drawBox(win, but->x,but->y, but->w,but->h, 1, bw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); butEnv_setXFg(env, BUT_PBG); XFillRectangle(env->dpy, win->win, env->gc, but->x+bw,but->y+bw, but->w-2*bw, but->h-2*bw); if (slide->horiz) { but_drawBox(win, but->x+bw+slide->boxLoc, but->y+bw, slide->boxW, slide->boxH, but->flags & BUT_LOCKED, bw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); butEnv_setXFg(env, BUT_BG); XFillRectangle(env->dpy, win->win, env->gc, but->x + bw*2 + slide->boxLoc, but->y + bw * 2, slide->boxW - bw * 2, slide->boxH - bw * 2); } else /* !but->horiz */ { but_drawBox(win, but->x+bw, but->y+bw+slide->boxLoc, slide->boxH, slide->boxW, but->flags & BUT_LOCKED, bw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); butEnv_setXFg(env, BUT_BG); XFillRectangle(env->dpy, win->win, env->gc, but->x + bw * 2, but->y + bw*2 + slide->boxLoc, slide->boxH - bw * 2, slide->boxW - bw * 2); } } static void calcBoxLoc(But *but) { Slide *slide = but->iPacket; ButEnv *env = but->win->env; int allW, allH; int bw; bw = butEnv_stdBw(env); if (slide->horiz) { allW = but->w - 2*bw; allH = but->h - 2*bw; } else { allW = but->h - 2*bw; allH = but->w - 2*bw; } if (allW <= allH) { slide->boxW = allW; slide->boxH = allH; slide->boxLoc = 0; } else { slide->boxW = (slide->size * allW + (slide->size + slide->maxval) / 2) / (slide->size + slide->maxval); slide->boxH = allH; if (slide->boxW < slide->boxH) slide->boxW = slide->boxH; if (slide->maxval == 0) slide->boxLoc = 0; else slide->boxLoc = ((allW - slide->boxW) * slide->cval + slide->maxval / 2) / slide->maxval; } slide->lastW = but->w; slide->lastH = but->h; } static void drawNewLoc(But *but) { ButEnv *env = but->win->env; Slide *slide = but->iPacket; int bw = env->stdButBw; int boxW, boxH, boxLoc; int oldW, oldLoc; if ((but->w < 1) || (but->h < 1)) return; oldW = slide->boxW; oldLoc = slide->boxLoc; calcBoxLoc(but); boxW = slide->boxW; boxH = slide->boxH; boxLoc = slide->boxLoc; if (boxLoc < oldLoc) { specialDraw(but, slide, boxLoc + bw, bw, oldLoc + bw - boxLoc, boxH); } else if (boxLoc > oldLoc) { specialDraw(but, slide, oldLoc + bw, bw, boxLoc + bw - oldLoc, boxH); } if (boxLoc + boxW < oldLoc + oldW) { specialDraw(but, slide, boxLoc + boxW, bw, oldLoc + oldW + bw - boxLoc - boxW, boxH); } else if (boxLoc + boxW > oldLoc + oldW) { specialDraw(but, slide, oldLoc + oldW, bw, boxLoc + boxW + bw - oldLoc - oldW, boxH); } } static void specialDraw(But *but, Slide *slide, int x, int y, int w, int h) { if (slide->horiz) { butWin_redraw(but->win, but->x + x, but->y + y, w, h); } else { butWin_redraw(but->win, but->x + y, but->y + x, h, w); } } static void flags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if ((flags & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_LOCKED)) != (ofl & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_LOCKED))) but_draw(but); } static ButOut mmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; ButEnv *env = butWin_env(but_win(but)); Slide *slide = but->iPacket; int newval, newloc, pitmax; int newcur = butCur_idle; if (slide->horiz) { if ((newflags & BUT_LOCKED) && slide->grip) { /* Slide it around! */ if (x == BUT_NOCHANGE) return(retval); newloc = x - slide->start_mloc + slide->start_loc; if (newloc < 0) newloc = 0; pitmax = but->w - slide->boxW - env->stdButBw*2; if (newloc > pitmax) newloc = pitmax; if (pitmax == 0) newval = 0; else newval = (newloc * slide->maxval + pitmax/2) / pitmax; if (newval != slide->cval) { slide->cval = newval; drawNewLoc(but); if (slide->callback != NULL) return(retval | slide->callback(but, slide->cval, FALSE)); } return(retval); } if ((x >= but->x+env->stdButBw) && (x < but->x+but->w-env->stdButBw) && (y >= but->y+env->stdButBw) && (y < but->y+but->h-env->stdButBw)) { newflags |= BUT_TWITCHED; if (x < but->x + env->stdButBw + slide->boxLoc) newcur = butCur_left; else if (x < but->x + env->stdButBw + slide->boxLoc + slide->boxW) newcur = butCur_lr; else newcur = butCur_right; } else { newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(newflags & BUT_LOCKED) && (newcur != slide->oldcur)) { butEnv_setCursor(env, but, newcur); slide->oldcur = newcur; } if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } else /* !slide->horiz */ { if ((newflags & BUT_LOCKED) && slide->grip) { /* Slide it around! */ if (y == BUT_NOCHANGE) return(retval); newloc = y - slide->start_mloc + slide->start_loc; if (newloc < 0) newloc = 0; pitmax = but->h - slide->boxW - env->stdButBw*2; if (newloc > pitmax) newloc = pitmax; if (pitmax == 0) newval = 0; else newval = (newloc * slide->maxval + pitmax/2) / pitmax; if (newval != slide->cval) { slide->cval = newval; drawNewLoc(but); if (slide->callback != NULL) return(retval | slide->callback(but, slide->cval, FALSE)); } return(retval); } if ((x >= but->x+env->stdButBw) && (x < but->x+but->w-env->stdButBw) && (y >= but->y+env->stdButBw) && (y < but->y+but->h-env->stdButBw)) { newflags |= BUT_TWITCHED; if (y < but->y + env->stdButBw + slide->boxLoc) newcur = butCur_up; else if (y < but->y + env->stdButBw + slide->boxLoc + slide->boxW) newcur = butCur_ud; else newcur = butCur_down; } else { newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(newflags & BUT_LOCKED) && (newcur != slide->oldcur)) { butEnv_setCursor(env, but, newcur); slide->oldcur = newcur; } if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } } static ButOut mleave(But *but) { int newflags = but->flags; Slide *slide = but->iPacket; newflags &= ~BUT_TWITCHED; butEnv_setCursor(but->win->env, but, butCur_idle); slide->oldcur = butCur_idle; if (newflags != but->flags) { but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { int retval = BUTOUT_CAUGHT, newflags = but->flags; Slide *slide = but->iPacket; ButEnv *env = but->win->env; if (!newflags & BUT_TWITCHED) retval &= ~BUTOUT_CAUGHT; else { if (slide->horiz) { if (but->w <= but->h) return(BUTOUT_CAUGHT | BUTOUT_ERR); if (butnum == 1) { newflags |= BUT_LOCKED; if (x < but->x + env->stdButBw + slide->boxLoc) { butSlide_startSlide(but, TRUE, -slide->size*2, FALSE); } else if (x >= but->x + env->stdButBw + slide->boxLoc + slide->boxW) { butSlide_startSlide(but, TRUE, slide->size*2, FALSE); } else { /* The box has been "gripped." */ slide->grip = TRUE; slide->start_mloc = x; slide->start_loc = slide->boxLoc; slide->start_val = slide->cval; } } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } else /* !slide->horiz */ { if (but->h <= but->w) return(BUTOUT_CAUGHT | BUTOUT_ERR); if (butnum == 1) { newflags |= BUT_LOCKED; if (y < but->y + env->stdButBw + slide->boxLoc) { butSlide_startSlide(but, TRUE, -slide->size*2, FALSE); } else if (y >= but->y + env->stdButBw + slide->boxLoc + slide->boxW) { butSlide_startSlide(but, TRUE, slide->size*2, FALSE); } else { /* The box has been "gripped." */ slide->grip = TRUE; slide->start_mloc = y; slide->start_loc = slide->boxLoc; slide->start_val = slide->cval; } } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } snd_play(&but_downSnd); if (newflags != but->flags) but_newFlags(but, newflags); if (slide->callback != NULL) return(retval | slide->callback(but, slide->cval, TRUE)); } return(retval); } void butSlide_startSlide(But *but, bool pause, int ssize, bool propagate) { Slide *slide = but->iPacket; struct timeval delay; int atj; bool skipTimer = FALSE; if (slide->timer != NULL) butTimer_destroy(slide->timer); if (pause) { slide->cval += ssize/2; if (slide->cval <= 0) { slide->cval = 0; skipTimer = TRUE; } else if (slide->cval >= slide->maxval - 1) { slide->cval = slide->maxval - 1; skipTimer = TRUE; } drawNewLoc(but); if (propagate && slide->callback) slide->callback(but, slide->cval, TRUE); } if (!skipTimer) { slide->timer_jump = ssize; if (pause) { delay.tv_sec = 0; delay.tv_usec = 500000; } else { delay.tv_sec = 0; delay.tv_usec = 0; } if (slide->timer_jump > 0) atj = slide->timer_jump; else atj = -slide->timer_jump; slide->timer = butTimer_fCreate(NULL, but, delay, atj*2, FALSE, slide_now); } } static ButOut slide_now(ButTimer *bt) { But *but = bt->but; Slide *slide = but->iPacket; if (slide->timer_jump > 0) { slide->cval += bt->eventNum; if (slide->cval > slide->maxval) { slide->cval = slide->maxval; butTimer_destroy(bt); slide->timer = NULL; } } else { slide->cval -= bt->eventNum; if (slide->cval < 0) { slide->cval = 0; butTimer_destroy(bt); slide->timer = NULL; } } bt->eventNum = 0; drawNewLoc(but); if (slide->callback != NULL) return(slide->callback(but, slide->cval, FALSE)); return(0); } static ButOut mrelease(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; uint newflags = but->flags; Slide *slide = but->iPacket; if (!newflags & BUT_TWITCHED) butEnv_setCursor(but->win->env, but, slide->oldcur = butCur_idle); if (slide->timer != NULL) { butTimer_destroy(slide->timer); slide->timer = NULL; } slide->grip = FALSE; newflags &= ~BUT_LOCKED; if (newflags != but->flags) but_newFlags(but, newflags); snd_play(&but_upSnd); return(retval); } void butSlide_stopSlide(But *but) { Slide *slide = but->iPacket; if (slide->timer) { butTimer_destroy(slide->timer); slide->timer = NULL; } } #endif goban-1.1.orig/src/but.c0000644000175000017500000007036010270070653012705 0ustar alal/* * wmslib/src/but/but.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #include #include #include #include #include /********************************************************************** * Types **********************************************************************/ typedef struct MouseEventFinder_struct { bool found; Window win; } MouseEventFinder; #if XlibSpecificationRelease < 5 /* * Older (X11R4 and earlier) releases of X11 used a char * where now an * XPointer is used. */ typedef char *XPointer; #endif /********************************************************************** * Forward declarations **********************************************************************/ static ButOut keyPress(ButEnv *env, XKeyPressedEvent *evt); static ButOut keyRelease(ButEnv *env, XKeyReleasedEvent *evt); static ButOut handleEvent(ButEnv *env); static int activateEvent(ButEnv *env); static bool butEnv_stdColors(ButEnv *env); static void getWinXY(Display *dpy, ButWin *win); static ButOut serviceXData(void *packet, int fd); static bool performQueuedWinStuff(ButEnv *env); static Bool anotherMouseEvent(Display *dpy, XEvent *ev, XPointer arg); #if DEBUG static int butErrors(Display *dpy, XErrorEvent *err); #endif /********************************************************************** * Globals **********************************************************************/ ButTimer *but_timerList; Atom but_wmDeleteWindow, but_wmProtocols; static fd_set emptyfds; static struct timeval long_timeout; static void makeStripes(ButEnv *env, int ssize); /* * This array really should be const, but an error in my Xlib.h forces me * to leave it non-const. :-( */ static char greymaps[17][4] = { {0x00, 0x00, 0x00, 0x00}, {0x01, 0x00, 0x00, 0x00}, {0x01, 0x00, 0x04, 0x00}, {0x05, 0x00, 0x04, 0x00}, {0x05, 0x00, 0x05, 0x00}, {0x05, 0x02, 0x05, 0x00}, {0x05, 0x02, 0x05, 0x08}, {0x05, 0x0a, 0x05, 0x08}, {0x05, 0x0a, 0x05, 0x0a}, {0x07, 0x0a, 0x05, 0x0a}, {0x07, 0x0a, 0x0d, 0x0a}, {0x0f, 0x0a, 0x0d, 0x0a}, {0x0f, 0x0a, 0x0f, 0x0a}, {0x0f, 0x0b, 0x0f, 0x0a}, {0x0f, 0x0b, 0x0f, 0x0e}, {0x0f, 0x0f, 0x0f, 0x0e}, {0x0f, 0x0f, 0x0f, 0x0f}}; /********************************************************************** * Functions **********************************************************************/ /* Returns false if the display can't be opened. */ ButEnv *butEnv_create(const char *protocol, const char *dpyname, int shutdown(Display *dpy)) { Display *dpy; ButEnv *env; env = (ButEnv *)wms_malloc(sizeof(ButEnv)); MAGIC_SET(env); if ((dpy = env->dpy = XOpenDisplay(dpyname)) == NULL) { MAGIC_UNSET(env); wms_free(env); return(NULL); } #if DEBUG XSynchronize(dpy, True); XSetErrorHandler(butErrors); #endif env->protocol = (char *)wms_malloc(strlen(protocol)+1); /* Probably not a good idea to silently truncate the protocol like this. */ if (strlen(protocol) > BUTNET_MAXCMD) env->protocol[BUTNET_MAXCMD] = '\0'; strcpy(env->protocol, protocol); if (shutdown != NULL) XSetIOErrorHandler(shutdown); env->shutdown = shutdown; return(env); } ButEnv *butEnv_createNoDpy(const char *protocol) { ButEnv *env; env = (ButEnv *)wms_malloc(sizeof(ButEnv)); MAGIC_SET(env); env->dpy = NULL; return(env); } /* * Returns: * 0 - Black and white display or color=FALSE. * 1 - Couldn't allocate standard colors. Failed. * 2 - Color successful. * 3 - Truecolor display. Color will always be successful. */ int butEnv_init(ButEnv *env, void *packet, const char *atomname, bool color) { Display *dpy; static int firstInit = TRUE; int i; XGCValues defGc; unsigned long gcVals; int retval; XVisualInfo xvi, *vlr; int depth; Window dummyRoot; unsigned int tempW, tempH, dummyBWRet, dummyDepth; int dummyX, dummyY; dpy = env->dpy; env->fonts = NULL; env->colors = NULL; env->colorPmaps = NULL; env->winlist = NULL; if (dpy) { but_wmDeleteWindow = XInternAtom(dpy, "WM_DELETE_WINDOW", 0); but_wmProtocols = XInternAtom(dpy, "WM_PROTOCOLS", 0); depth = DefaultDepth(dpy, DefaultScreen(dpy)); env->depth = depth; } if (firstInit) { firstInit = FALSE; but_timerList = NULL; FD_ZERO(&emptyfds); long_timeout.tv_sec = 60 * 60 * 24 * 365; /* 1 year. */ long_timeout.tv_usec = 0; } if (dpy && color) { xvi.visual = DefaultVisual(dpy, DefaultScreen(dpy)); xvi.visualid = XVisualIDFromVisual(xvi.visual); vlr = XGetVisualInfo(dpy, VisualIDMask, &xvi, &i); if (vlr[0].class == TrueColor) retval = 3; else if (vlr[0].class >= 2) { /* A color class */ retval = 2; } else { /* B&W */ retval = 0; color = FALSE; } XFree(vlr); } else retval = 0; env->packet = packet; if (dpy) { env->prop = XInternAtom(dpy, atomname, False); XGetGeometry(dpy, DefaultRootWindow(dpy), &dummyRoot, &dummyX, &dummyY, &tempW, &tempH, &dummyBWRet, &dummyDepth); env->rootW = tempW; env->rootH = tempH; } env->sReq = NULL; env->sClear = NULL; env->sNotify = NULL; env->winlist = NULL; env->wllen = env->wlmax = 0; env->minWindows = 1; env->butIn = NULL; env->lockBut = NULL; env->last_mwin = NULL; env->stipDisable = None; for (i = 0; i < BUTWRITE_MAXCHARS; ++i) env->write[i].draw = NULL; env->keyModifiers = 0; env->eventNum = 0; env->maxFd = 0; for (i = 0; i < 3; ++i) { env->maxGFds[i] = 0; FD_ZERO(&env->fMasks[i]); env->fCallbacks[i] = NULL; } if (dpy) butEnv_addFile(env, BUT_READFILE, ConnectionNumber(dpy), env, serviceXData); else return(retval); defGc.function = GXcopy; defGc.plane_mask = AllPlanes; defGc.line_style = LineSolid; defGc.cap_style = CapButt; defGc.join_style = JoinMiter; if (color) defGc.fill_style = FillSolid; else defGc.fill_style = FillTiled; defGc.fill_rule = EvenOddRule; defGc.graphics_exposures = False; gcVals = GCFunction | GCPlaneMask | GCLineStyle | GCCapStyle | GCJoinStyle | GCFillStyle | GCFillRule | GCGraphicsExposures; env->gc = XCreateGC(dpy, RootWindow(dpy, DefaultScreen(dpy)), gcVals, &defGc); env->gc2 = XCreateGC(dpy, RootWindow(dpy, DefaultScreen(dpy)), gcVals, &defGc); env->numFonts = 1; env->fonts = (XFontStruct **)wms_malloc(env->numFonts * sizeof(XFontStruct *)); for (i = 0; i < env->numFonts; ++i) { env->fonts[i] = NULL; butEnv_setFont(env, 0, "fixed", 0); } env->colorp = color; env->numColors = BUT_DCOLORS; env->colors = (ulong *)wms_malloc(env->numColors * sizeof(ulong)); env->colorPmaps = (Pixmap *)wms_malloc(env->numColors * sizeof(Pixmap)); if (!butEnv_stdColors(env)) { retval = 1; env->colorp = FALSE; XSetFillStyle(dpy, env->gc, FillTiled); XSetFillStyle(dpy, env->gc2, FillTiled); butEnv_stdColors(env); } env->partner = 0; env->numPartners = 0; env->partners = NULL; env->maxButIds = env->maxWinIds = 0; env->id2But = NULL; env->id2Win = NULL; butEnv_rcInit(env); return(retval); } void butEnv_destroy(ButEnv *env) { int i; assert(MAGIC(env)); while (env->wllen != 0) { but_inEvent = TRUE; for (i = 0; i < env->wllen; ++i) butWin_destroy(env->winlist[i]); but_inEvent = FALSE; while (but_dList(NULL) || butWin_dList(NULL)); } for (i = 0; i < env->numPartners; ++i) { if (env->partners[i] != NULL) { butRnet_destroy(env->partners[i], "Remote user has quit the program."); } } if (env->fonts != NULL) wms_free(env->fonts); if (env->colors != NULL) wms_free(env->colors); if (env->colorPmaps != NULL) wms_free(env->colorPmaps); if (env->winlist != NULL) wms_free(env->winlist); if (env->protocol != NULL) wms_free(env->protocol); MAGIC_UNSET(env); wms_free(env); XCloseDisplay(env->dpy); } void butEnv_events(ButEnv *env) { int i, selected_fds, fdGroup; fd_set fdSets[3]; struct timeval next_timer; ButOut result, temp; if (env->dpy) butEnv_rcActivate(env); for (;;) { result = 0; if (env->dpy) { do { XFlush(env->dpy); while (XPending(env->dpy)) { result |= handleEvent(env); if (result & BUTOUT_STOPWAIT) return; } result |= butEnv_checkTimers(env, &next_timer); if (result & BUTOUT_STOPWAIT) { return; } } while(performQueuedWinStuff(env)); if (result & BUTOUT_ERR) { XBell(env->dpy, 0); result = 0; } } for (fdGroup = 0; fdGroup < 3; ++fdGroup) { fdSets[fdGroup] = env->fMasks[fdGroup]; } if (env->dpy && (env->wllen <= env->minWindows)) return; selected_fds = select(env->maxFd, &fdSets[BUT_READFILE], &fdSets[BUT_WRITEFILE], &fdSets[BUT_XFILE], &next_timer); assert(selected_fds >= 0); if (selected_fds > 0) { for (fdGroup = 0; fdGroup < 3; ++fdGroup) { for (i = 0; i < env->maxGFds[fdGroup]; ++i) { if (FD_ISSET(i, &fdSets[fdGroup])) { assert(env->fCallbacks[fdGroup][i].callback != NULL); but_inEvent = TRUE; result |= env->fCallbacks[fdGroup][i]. callback(env->fCallbacks[fdGroup][i].packet, i); but_inEvent = FALSE; do { temp = but_dList(NULL) | butWin_dList(NULL); result |= temp; } while (temp != 0); if (env->dpy) { butEnv_rcActivate(env); if (result & BUTOUT_ERR) XBell(env->dpy, 0); } if (result & BUTOUT_STOPWAIT) { return; } } } } } } } /* * Do all the resizes and redraws that have been queued up now. * TRUE is returned if there was anything to do. */ static bool performQueuedWinStuff(ButEnv *env) { bool anythingDone = FALSE; ButWin *win, *winToDo, *ancestor; int i; for (i = 0; i < env->wllen; ++i) { win = env->winlist[i]; if (win->resizeNeeded) { anythingDone = TRUE; win->resize(win); win->resizeNeeded = FALSE; win->resized = TRUE; } } do { winToDo = NULL; for (i = 0; i < env->wllen; ++i) { win = env->winlist[i]; if (win->redrawReady && win->numRedraws && win->resized) { if (winToDo == NULL) { winToDo = win; } else { for (ancestor = win->parent; ancestor; ancestor = ancestor->parent) { if (ancestor == winToDo) winToDo = win; } } } } if (winToDo) { anythingDone = TRUE; butWin_performDraws(winToDo); } } while (winToDo); return(anythingDone); } static ButOut handleEvent(ButEnv *env) { ButOut result, temp; but_inEvent = TRUE; result = activateEvent(env); but_inEvent = FALSE; do { temp = but_dList(NULL) | butWin_dList(NULL); result |= temp; } while (temp != 0); butEnv_rcActivate(env); return(result); } static int activateEvent(ButEnv *env) { Display *dpy; XEvent event, ev2; ButWin *win = NULL; int old_w, old_h; ButOut result = 0; MouseEventFinder mef; dpy = env->dpy; XNextEvent(dpy, &event); switch(event.type) { case Expose: win = butEnv_findWin(env, event.xexpose.window); if (win != NULL) { assert(win->mapped); butWin_redraw(win, event.xexpose.x, event.xexpose.y, event.xexpose.width, event.xexpose.height); /* Don't do any of the redraws until the expose count hits zero. */ win->redrawReady = (event.xexpose.count == 0); } break; case MapNotify: win = butEnv_findWin(env, event.xmap.window); assert(MAGICNULL(win)); if (win == NULL) return(result); butWin_turnOnTimers(win); win->mapped = TRUE; if (win->map != NULL) win->map(win); if (!win->resized) { /* * If you have no window manager, you won't get your ConfigureNotify * when you start up, so we have to fake that first resize when * we get mapped. Yeah, it's ugly, but deal with it. */ win->resizeNeeded = TRUE; } break; case UnmapNotify: win = butEnv_findWin(env, event.xunmap.window); if (win == NULL) return(result); butWin_turnOffTimers(win); win->mapped = FALSE; if (win->unmap != NULL) { result |= win->unmap(win); } if (!win->isIcon && (win->iconWin == NULL)) { butWin_dList(win); } break; case ConfigureNotify: win = butEnv_findWin(env, event.xunmap.window); if (win == NULL) return(result); old_w = win->w; old_h = win->h; win->w = win->logicalW = event.xconfigure.width; win->h = win->logicalH = event.xconfigure.height; butWin_checkDims(win); if ((win->w != old_w) || (win->h != old_h) || !win->resized) win->resizeNeeded = TRUE; getWinXY(dpy, win); break; case MappingNotify: case ReparentNotify: case DestroyNotify: /* I should handle this correctly. */ break; case ClientMessage: if ((event.xclient.message_type == but_wmProtocols) && (event.xclient.data.l[0] == but_wmDeleteWindow)) { /* The WM asked this window to go away. Bye! */ win = butEnv_findWin(env, event.xclient.window); if (win == NULL) return(result); if (win->quit) win->quit(win); else butWin_dList(win); } break; case ButtonPress: env->eventTime = event.xbutton.time; env->keyModifiers = event.xbutton.state; ++env->eventNum; win = butEnv_findWin(env, event.xbutton.window); if (win) result |= butWin_mPress(win, event.xbutton.x, event.xbutton.y, event.xbutton.button); return(result); break; case KeyRelease: env->eventTime = event.xbutton.time; env->keyModifiers = event.xbutton.state; return(result | keyRelease(env, &(event.xkey))); break; case ButtonRelease: env->eventTime = event.xbutton.time; env->keyModifiers = event.xbutton.state; win = butEnv_findWin(env, event.xbutton.window); if (win) result |= butWin_mRelease(win, event.xbutton.x, event.xbutton.y, event.xbutton.button); return(result); break; case KeyPress: env->eventTime = event.xbutton.time; env->keyModifiers = event.xbutton.state; ++env->eventNum; return(result | keyPress(env, &(event.xkey))); break; case MotionNotify: mef.found = FALSE; mef.win = event.xmotion.window; XCheckIfEvent(dpy, &ev2, anotherMouseEvent, (XPointer)&mef); if (!mef.found) { win = butEnv_findWin(env, event.xmotion.window); if (win) { env->eventTime = event.xmotion.time; butWin_mMove(win, event.xmotion.x, event.xmotion.y); butRnet_mMove(env, win->id, event.xmotion.x,event.xmotion.y, win->w,win->h, -1); } } break; case LeaveNotify: win = butEnv_findWin(env, event.xcrossing.window); if (win) { butWin_mMove(win, BUT_NOCHANGE,BUT_NOCHANGE); butRnet_mMove(env, -2, -1,-1,-1,-1,-1); } break; case FocusIn: break; case FocusOut: if (env->lockBut) { if (env->lockBut->flags & BUT_KEYPRESSED) { return(result | env->lockBut->action->kRelease(env->lockBut, "", 0)); } } break; case SelectionRequest: ev2.type = SelectionNotify; ev2.xselection.type = SelectionNotify; ev2.xselection.send_event = True; ev2.xselection.display = event.xselectionrequest.display; ev2.xselection.requestor = event.xselectionrequest.requestor; ev2.xselection.selection = event.xselectionrequest.selection; ev2.xselection.target = event.xselectionrequest.target; if ((env->sReq == NULL) || !env->sReq(env, &(event.xselectionrequest))) ev2.xselection.property = None; else ev2.xselection.property = event.xselectionrequest.property; ev2.xselection.time = event.xselectionrequest.time; XSendEvent(env->dpy, event.xselectionrequest.requestor, False, 0, &ev2); break; case SelectionNotify: if (env->sNotify != NULL) env->sNotify(env, &(event.xselection)); break; case SelectionClear: if (env->sClear != NULL) env->sClear(env); break; default: #if DEBUG printf("UNKNOWN EVENT! #%d\n", event.type); #endif break; } return(result); } static Bool anotherMouseEvent(Display *dpy, XEvent *ev, XPointer arg) { MouseEventFinder *mef = (MouseEventFinder *)arg; if (ev->type == MotionNotify) { if (ev->xmotion.window == mef->win) mef->found = TRUE; } else if ((ev->type == ButtonPress) || (ev->type == ButtonRelease)) { if (ev->xbutton.window == mef->win) mef->found = TRUE; } return(False); } #ifndef STR_MAXLEN #define STR_MAXLEN 100 #endif static ButOut keyPress(ButEnv *env, XKeyPressedEvent *evt) { int slen; char kbuf[STR_MAXLEN]; KeySym keysym; ButWin *win = butEnv_findWin(env, evt->window); if (!win) return(0); assert(MAGIC(win)); slen = XLookupString(evt, kbuf, STR_MAXLEN-1, &keysym, NULL); kbuf[slen] = '\0'; if (kbuf[0] == '\r') kbuf[0] = '\n'; return(butWin_kPress(win, kbuf, keysym)); } static ButOut keyRelease(ButEnv *env, XKeyReleasedEvent *evt) { int slen; char kbuf[STR_MAXLEN]; KeySym keysym; ButWin *win = butEnv_findWin(env, evt->window); if (win == NULL) return(0); slen = XLookupString(evt, kbuf, STR_MAXLEN-1, &keysym, NULL); kbuf[slen] = '\0'; if (kbuf[0] == '\r') kbuf[0] = '\n'; if (XPending(env->dpy)) { XEvent nextev; XPeekEvent(env->dpy, &nextev); if (nextev.type == KeyPress) { if ((nextev.xkey.keycode == evt->keycode) && (evt->time == nextev.xkey.time)) { XNextEvent(env->dpy, &nextev); return(butWin_kPress(win, kbuf, keysym)); } } } return(butWin_kRelease(win, kbuf, keysym)); } /* Disable all timers used in a particular window. Useful mostly so that * when you iconify a window, the timers shut off. Even though the timers * don't take much CPU time, shutting them off makes it possible to * swap the entire application out of memory and this COULD have a * noticeable effect on system performance if other applicaitons need * lots of memory. * The timers will stay in the timer queue, but they will not go off. */ void butWin_turnOffTimers(ButWin *win) { ButTimer *timer; for (timer = but_timerList; timer != NULL; timer = timer->next) { if ((timer->win == win) && (timer->state == butTimer_on) && timer->winOnly) timer->state = butTimer_off; } } /* Re-enable all timers for a particular window. This will undo the work * of but_turnoff_timers. */ void butWin_turnOnTimers(ButWin *win) { ButTimer *timer; for (timer = but_timerList; timer != NULL; timer = timer->next) { if ((timer->win == win) && (timer->state == butTimer_off) && timer->winOnly) timer->state = butTimer_on; } } static bool butEnv_stdColors(ButEnv *env) { ButColor colorset[BUT_DCOLORS]; int i, xblack, xwhite; ButColor black, white; Display *dpy = env->dpy; Window rootwin = DefaultRootWindow(dpy); xblack = BlackPixel(dpy, DefaultScreen(dpy)); xwhite = WhitePixel(dpy, DefaultScreen(dpy)); for (i = 0; i < 17; ++i) { env->greyMaps[i] = XCreatePixmapFromBitmapData(dpy, rootwin, greymaps[i], 4,4, xwhite, xblack, env->depth); } black = butColor_create(0,0,0,0); white = butColor_create(255,255,255,16); colorset[BUT_FG] = black; colorset[BUT_BG] = butColor_mix(white,3, black,1); colorset[BUT_PBG] = butColor_mix(colorset[BUT_BG],7, black,1); colorset[BUT_PBG].greyLevel = 14; colorset[BUT_HIBG] = butColor_mix(colorset[BUT_BG],1, white,1); colorset[BUT_LIT] = butColor_create(255,255,255, 8); colorset[BUT_SHAD] = butColor_create(128,128,128, 0); colorset[BUT_ENTERBG] = colorset[BUT_HIBG]; colorset[BUT_SELBG] = butColor_create(255,255,0,12); /* Yellow. */ colorset[BUT_CHOICE] = butColor_create(0,255,0, 16); colorset[BUT_WHITE] = white; colorset[BUT_BLACK] = black; for (i = 0; i < BUT_DCOLORS; ++i) { env->colorPmaps[i] = None; if (butEnv_setColor(env, i, colorset[i]) == 0) return(FALSE); } return(TRUE); } bool butEnv_setColor(ButEnv *env, int colornum, ButColor color) { int i; Display *dpy = env->dpy; Colormap cmap; XColor temp; static uchar bm1616[] = {1}; Window rootwin = DefaultRootWindow(dpy); if (colornum >= env->numColors) { ulong *newcolors; Pixmap *newpixmaps; newcolors = (ulong *)wms_malloc((colornum+1)*sizeof(ulong)); newpixmaps = (Pixmap *)wms_malloc((colornum+1)*sizeof(Pixmap)); for (i = 0; i < env->numColors; ++i) { newcolors[i] = env->colors[i]; newpixmaps[i] = env->colorPmaps[i]; } if (env->colors) wms_free(env->colors); env->colors = newcolors; if (env->colorPmaps) wms_free(env->colorPmaps); env->colorPmaps = newpixmaps; env->numColors = colornum + 1; for (; i < env->numColors; ++i) env->colorPmaps[i] = None; } cmap = DefaultColormap(dpy, DefaultScreen(dpy)); if (env->colorPmaps[colornum] != None) { if (env->colorp) { XFreePixmap(env->dpy, env->colorPmaps[colornum]); XFreeColors(env->dpy, cmap, &env->colors[colornum], 1, 0); } } if (env->colorp) { temp.red = color.red; temp.green = color.green; temp.blue = color.blue; temp.flags = DoRed | DoGreen | DoBlue; if (XAllocColor(dpy, cmap, &temp) == 0) return(FALSE); env->colors[colornum] = temp.pixel; env->colorPmaps[colornum] = XCreatePixmapFromBitmapData(dpy, rootwin, bm1616, 1,1, temp.pixel,temp.pixel, env->depth); } else { env->colorPmaps[colornum] = env->greyMaps[color.greyLevel]; if (color.greyLevel < 16) env->colors[colornum] = BlackPixel(dpy, DefaultScreen(dpy)); else env->colors[colornum] = WhitePixel(dpy, DefaultScreen(dpy)); } return(TRUE); } int butEnv_setFont(ButEnv *env, int fontnum, const char *fontname, int fparam) { XFontStruct *flist; char **fnames; int i, f_avail, minChar; Str fname, temp; int cstart, fontloaded = 0; str_init(&fname); str_init(&temp); if (fontnum >= env->numFonts) { XFontStruct **newflist; newflist = (XFontStruct **)wms_malloc((fontnum+1) * sizeof(XFontStruct *)); for (i = 0; i < env->numFonts; ++i) newflist[i] = env->fonts[i]; wms_free(env->fonts); env->fonts = newflist; env->numFonts = fontnum + 1; for (; i < env->numFonts; ++i) env->fonts[i] = NULL; } if (env->fonts[fontnum] != NULL) { XFreeFont(env->dpy, env->fonts[fontnum]); env->fonts[fontnum] = NULL; } for (;;) { ++fontloaded; if (*fontname == '/') ++fontname; if (*fontname == '\0') { fontloaded = 0; fontname = "fixed"; } for (cstart = 0; (fontname[cstart] != '\0') && (fontname[cstart] != '/'); ++cstart); str_copyCharsLen(&temp, fontname, cstart); str_print(&fname, str_chars(&temp), fparam); fontname += cstart; fnames = XListFontsWithInfo(env->dpy, str_chars(&fname), 1, &f_avail, &flist); if (f_avail > 0) { env->fonts[fontnum] = XLoadQueryFont(env->dpy, fnames[0]); minChar = env->fonts[fontnum]->min_char_or_byte2; if ((minChar > ' ') || (env->fonts[fontnum]->max_char_or_byte2 < 'z')) { printf("Char range: %d..%d, should be %d..%d\n", env->fonts[fontnum]->min_char_or_byte2, env->fonts[fontnum]->max_char_or_byte2, ' ', 'z'); XFreeFontInfo(fnames, flist, f_avail); continue; } if (env->fonts[fontnum]->per_char == NULL) { if (env->fonts[fontnum]->min_bounds.width < 1) { XFreeFontInfo(fnames, flist, f_avail); continue; } } else { if (env->fonts[fontnum]->per_char['a' - minChar].width < 1) { printf("Width of a is %d\n", env->fonts[fontnum]->per_char['a'].width); XFreeFontInfo(fnames, flist, f_avail); continue; } } if (fontnum == 0) { env->font0h = env->fonts[0]->ascent + env->fonts[0]->descent; env->stdButBw = (env->font0h + 3) / 6; makeStripes(env, (env->font0h / 15) * 2); } XFreeFontInfo(fnames, flist, f_avail); str_deinit(&temp); str_deinit(&fname); return(fontloaded); } } } void butEnv_drawAll(ButEnv *env) { int i; ButWin *win; for (i = 0; i < env->wllen; ++i) { win = env->winlist[i]; butWin_redraw(win, 0,0, win->w,win->h); } } void butEnv_resizeAll(ButEnv *env) { int i; ButWin *win; for (i = 0; i < env->wllen; ++i) { win = env->winlist[i]; win->resize(win); } } static void makeStripes(ButEnv *env, int ssize) { uint j; int x, y; uchar *stripes; if (ssize == 0) ssize = 2; /* "ssize" is the width of a stripe pattern used to grey out text. */ j = (ssize + 7) / 8; stripes = (uchar *)wms_malloc(ssize * j); for (x = 0; x < ssize*j; ++x) stripes[x] = 0; for (y = 0; y < ssize; ++y) { for (x = 0; x < ssize; ++x) { if ((((ssize-x-1) >= y) && ((ssize-x-1) < y+(ssize/2))) || ((ssize-x-1) < y-(ssize/2))) stripes[(x>>3) + (y*j)] |= 1<<(x&7); } } if (env->stipDisable != None) XFreePixmap(env->dpy, env->stipDisable); env->stipDisable = XCreateBitmapFromData(env->dpy, RootWindow(env->dpy, DefaultScreen(env->dpy)), stripes, ssize,ssize); wms_free(stripes); XSetStipple(env->dpy, env->gc, env->stipDisable); XSetStipple(env->dpy, env->gc2, env->stipDisable); } #if DEBUG static int butErrors(Display *dpy, XErrorEvent *err) { char ebuf[1024]; XGetErrorText(dpy, err->error_code, ebuf, sizeof(ebuf)); fprintf(stderr, "Error: %s\n", ebuf); assert(0); } #endif /* DEBUG */ /* * You know, it's really unbelievable to me that this is the only way in * X to find the location on the display of a window. *sigh*. * This code was blatantly stolen from "xwininfo.c". */ static void getWinXY(Display *dpy, ButWin *win) { static bool errorPrinted = FALSE; Status status; Window wmframe = win->win; XWindowAttributes frame_attr; while (True) { Window root, parent; Window *childlist; unsigned int ujunk; status = XQueryTree(dpy, wmframe, &root, &parent, &childlist, &ujunk); if (parent == root || !parent || !status) break; wmframe = parent; if (status && childlist) XFree((void *)childlist); } /* WM may be reparented, so find edges of the frame. */ /* Only works for ICCCM-compliant WMs, and then only if the window has corner gravity. We would need to know the original width of the window to correctly handle the other gravities. */ if (!XGetWindowAttributes(dpy, wmframe, &frame_attr) && !errorPrinted) { fprintf(stderr, "wmslib: Can't get frame attributes."); errorPrinted = TRUE; } win->x = frame_attr.x; win->y = frame_attr.y; } void butEnv_addFile(ButEnv *env, int group, int fd, void *packet, ButOut (*callback)(void *packet, int fd)) { int i; assert((group >= 0) && (group < 3)); if (fd >= env->maxFd) env->maxFd = fd + 1; if (fd >= env->maxGFds[group]) { ButFdCallback *newFc = wms_malloc((fd+1)*sizeof(ButFdCallback)); for (i = 0; i < env->maxGFds[group]; ++i) newFc[i] = env->fCallbacks[group][i]; for (; i < fd; ++i) newFc[i].callback = NULL; if (env->fCallbacks[group] != NULL) wms_free(env->fCallbacks[group]); env->maxGFds[group] = fd + 1; env->fCallbacks[group] = newFc; } env->fCallbacks[group][fd].callback = callback; env->fCallbacks[group][fd].packet = packet; FD_SET(fd, &env->fMasks[group]); } void butEnv_rmFile(ButEnv *env, int group, int fd) { assert((group >= 0) && (group < 3)); assert(MAGIC(env)); assert(fd < env->maxGFds[group]); env->fCallbacks[group][fd].callback = NULL; FD_CLR(fd, &env->fMasks[group]); } static ButOut serviceXData(void *packet, int fd) { ButEnv *env = packet; if (XPending(env->dpy)) return(handleEvent(env)); else return(0); } XImage *butEnv_imageCreate(ButEnv *env, int w, int h) { Display *dpy = env->dpy; XImage *image; image = XCreateImage(dpy, DefaultVisual(dpy, DefaultScreen(dpy)), DefaultDepth(dpy, DefaultScreen(dpy)), ZPixmap, 0, NULL, w, h, 32, 0); image->data = wms_malloc(image->bytes_per_line * h); return(image); } void butEnv_imageDestroy(XImage *img) { wms_free(img->data); img->data = NULL; XDestroyImage(img); } #endif /* X11_DISP */ goban-1.1.orig/src/server.h0000644000175000017500000000174610270065364013433 0ustar alal/* * src/client/server.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_SERVER_H_ #define _CLIENT_SERVER_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliServer_nngs, cliServer_igs } CliServer; /********************************************************************** * Functions **********************************************************************/ /* * It seems that gcc has an error. If no _functions_ in a library file are * called, then the file is not linked in. Since I want "cliServer_names[]" * to get pulled in, I need to have a function here. :-( * This file no longer has *any* data in it, so I could just scrap it, but * what the hell. */ extern void cliServer_create(void); #endif /* _CLIENT_SERVER_H_ */ goban-1.1.orig/src/abut_msg.h0000644000175000017500000000555410267776324013742 0ustar alal/* * src/help.h, part of wmslib library * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _ABUT_MSG_H_ #define _ABUT_MSG_H_ 1 #ifndef _WMS_H_ #include #endif #ifndef _BUT_BUT_H_ #include #endif #ifndef _BUT_BOX_H_ #include #endif #ifndef _ABUT_ABUT_H_ #include #endif /********************************************************************** * Types **********************************************************************/ /* Public. */ typedef struct AbutMsgOpt_struct { const char *name; ButOut (*callback)(But *but); void *packet; const ButKey *keyEq; } AbutMsgOpt; typedef struct AbutMsgTin_struct { const char *name; const char *def; ButOut (*callback)(But *but, const char *value); uint flags; } AbutMsgTin; #define abutMsgTinFlags_secret 0x1 /* Private. */ typedef struct AbutMsg_struct { Abut *abut; ButWin *win; int numButs, numTins; But **buts, **tins, **tinTitles; const AbutMsgOpt *butDesc; ButOut (*destroy)(void *packet); void *packet; int layer; int w, h, textH; But *box, *text; MAGIC_STRUCT } AbutMsg; /********************************************************************** * Functions available **********************************************************************/ extern AbutMsg *abutMsg_inCreate(Abut *a, ButWin *win, int layer, const char *text, void *packet, int numTins, const AbutMsgTin *tinList); extern AbutMsg *abutMsg_optInCreate(Abut *a, ButWin *win, int layer, const char *text, ButOut (*destroy)(void *packet), void *packet, int numButs, const AbutMsgOpt *optList, int numTins, const AbutMsgTin *tinList); extern AbutMsg *abutMsg_winInCreate(Abut *a, const char *title, const char *text, void *packet, int numTins, const AbutMsgTin *tinList); extern AbutMsg *abutMsg_winOptInCreate(Abut *a, const char *title, const char *text, ButOut (*destroy)(void *packet), void *packet, int numButs, const AbutMsgOpt *optList, int numTins, const AbutMsgTin *tinList); #define abutMsg_create(a, w, l, t) abutMsg_inCreate(a, w, l, t, NULL,0,NULL) #define abutMsg_optCreate(a, w, l, t, d, p, nb, b) \ abutMsg_optInCreate(a, w, l, t, d, p, nb, b, 0,NULL) #define abutMsg_winCreate(a, ti, t) \ abutMsg_winInCreate(a, ti, t, NULL,0,NULL) #define abutMsg_winOptCreate(a, ti, t, d, p, nb, b) \ abutMsg_winOptInCreate(a, ti, t, d, p, nb, b, 0,NULL) extern void abutMsg_destroy(AbutMsg *msg, bool propagate); #define abutMsg_setColors(m, ul, lr, f) \ butBoxFilled_setColors((m)->box, (ul), (lr), (f)) #define abutMsg_setPixmaps(m, ul, lr, f) \ butBoxFilled_setPixmaps((m)->box, (ul), (lr), (f)) #define abutMsg_tin(m, t) ((m)->tins[t]) #endif /* _ABUT_MSG_H_ */ goban-1.1.orig/src/control.c0000644000175000017500000003113310270067462013572 0ustar alal/* * src/control.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "msg.h" #include "control.h" #include "gameSetup.h" #include "local.h" #include "cgbuts.h" #include "editBoard.h" #include "setup.h" #include "client_setup.h" #include "help.h" /********************************************************************** * Forward declarations **********************************************************************/ static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut iResize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut localGoban(But *but); static ButOut loadLocalGoban(But *but); static void gotLoadName(AbutFsel *fsel, void *packet, const char *fname); static ButOut quit(But *but); static ButOut setup(But *but); static ButOut editPressed(But *but); static ButOut gmpPressed(But *but); static void editFileName(AbutFsel *fsel, void *packet, const char *fName); static void localReady(void *packet, GameSetup *gs); static ButOut serverPressed(But *but); static void setupGone(Setup *setup, void *packet); static void updateServerBut(void *packet, int butNum); static void serverChange(Setup *setup, void *packet); /********************************************************************** * Functions **********************************************************************/ #define WIN_W(h,bw) ((h)*18+(bw)*18) /* I really want this to be square, */ #define WIN_H(h,bw) ((h)*18+(bw)*17) /* but it just won't work out. */ /* * Layout: * * 2*bw * Text * 2 * = Text*6+bw*4 * bw * = Text*6+bw*4 * Text * 2 * bw * 4 * = Text*2 * 2*bw * * Total: Text * 18 + bw * 17 */ Control *control_create(Cgoban *cg, bool iconic) { Control *ctrl; int i, serverNum; bool err; assert(MAGIC(cg)); ctrl = wms_malloc(sizeof(Control)); MAGIC_SET(ctrl); if (!iconic) cg->env->minWindows = 1; ctrl->cg = cg; ctrl->win = butWin_iCreate(ctrl, cg->env, "CGoban Control", WIN_W(cg->fontH, butEnv_stdBw(cg->env)), WIN_H(cg->fontH, butEnv_stdBw(cg->env)), &ctrl->iWin, iconic, 48,48, NULL, map, resize, iResize, destroy); i = clp_iGetInt(cg->clp, "control.x", &err); if (!err) butWin_setX(ctrl->win, i); i = clp_iGetInt(cg->clp, "control.y", &err); if (!err) butWin_setY(ctrl->win, i); butWin_activate(ctrl->win); ctrl->box = butBoxFilled_create(ctrl->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(ctrl->box, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); serverNum = clp_getInt(cg->clp, "client.def1"); ctrl->servers[0] = butCt_create(serverPressed, ctrl, ctrl->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStrNum(cg->clp, "client.server", serverNum)); ctrl->sPics[0] = grid_create(&cg->cgbuts, NULL, NULL, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(ctrl->sPics[0], goStone_white, FALSE); if (clp_getStrNum(cg->clp, "client.protocol", serverNum)[0] == 'n') grid_setVersion(ctrl->sPics[0], CGBUTS_WORLDWEST(0)); else grid_setVersion(ctrl->sPics[0], CGBUTS_WORLDEAST(0)); grid_setLineGroup(ctrl->sPics[0], gridLines_none); serverNum = clp_getInt(cg->clp, "client.def2"); ctrl->servers[1] = butCt_create(serverPressed, ctrl, ctrl->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStrNum(cg->clp, "client.server", serverNum)); ctrl->sPics[1] = grid_create(&cg->cgbuts, NULL, NULL, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(ctrl->sPics[1], goStone_white, FALSE); grid_setVersion(ctrl->sPics[1], CGBUTS_WORLDEAST(1)); grid_setLineGroup(ctrl->sPics[1], gridLines_none); ctrl->lGame = butCt_create(localGoban, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_newGame); ctrl->lGamePic = grid_create(&cg->cgbuts, NULL, NULL, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(ctrl->lGamePic, goStone_white, FALSE); grid_setVersion(ctrl->lGamePic, 2); grid_setLineGroup(ctrl->lGamePic, gridLines_none); ctrl->lLoad = butCt_create(loadLocalGoban, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_loadGame); ctrl->lLoadPic = grid_create(&cg->cgbuts, NULL, NULL, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(ctrl->lLoadPic, goStone_black, FALSE); grid_setLineGroup(ctrl->lLoadPic, gridLines_none); ctrl->edit = butCt_create(editPressed, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_editSGF); ctrl->editPic = toolPic_create(&cg->cgbuts, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU); ctrl->gmp = butCt_create(gmpPressed, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_goModem); ctrl->gmpPic = computerPic_create(&cg->cgbuts, ctrl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU); ctrl->sBox = butBoxFilled_create(ctrl->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(ctrl->sBox, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); ctrl->setupWin = NULL; ctrl->help = butCt_create(cgoban_createHelpWindow, &help_control, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); ctrl->setup = butCt_create(setup, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_setup); ctrl->quit = butCt_create(quit, ctrl, ctrl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_quit); ctrl->iBg = butBoxFilled_create(ctrl->iWin, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(ctrl->iBg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); ctrl->ig = grid_create(&cg->cgbuts, NULL, NULL, ctrl->iWin, 1, BUT_DRAWABLE, 0); grid_setStone(ctrl->ig, goStone_black, FALSE); grid_setLineGroup(ctrl->ig, gridLines_none); grid_setVersion(ctrl->ig, CGBUTS_YINYANG(2)); return(ctrl); } static ButOut map(ButWin *win) { butWin_env(win)->minWindows = 1; return(0); } static ButOut resize(ButWin *win) { Control *ctrl = butWin_packet(win); ButEnv *env; int bw, fontH; int x, y, w, h, tbH, totalH, boxH; assert(MAGIC(ctrl)); env = ctrl->cg->env; bw = butEnv_stdBw(env); fontH = ctrl->cg->fontH; x = bw * 2; y = bw * 2; w = fontH*6 + bw*4; h = fontH*8 + bw*4; tbH = fontH*2; totalH = h + bw; boxH = totalH * 2 + bw*3; but_resize(ctrl->box, 0,0, butWin_w(win), boxH); but_resize(ctrl->sBox, 0,boxH, butWin_w(win), butWin_h(win) - boxH); but_resize(ctrl->servers[0], x, y, w, h); butCt_setTextLoc(ctrl->servers[0], 0, 0, w, tbH); but_resize(ctrl->sPics[0], x+bw*2,y+tbH+bw*2, w-bw*4,w-bw*4); y += totalH; but_resize(ctrl->servers[1], x, y, w, h); but_resize(ctrl->sPics[1], x+bw*2,y+bw*2, w-bw*4,w-bw*4); butCt_setTextLoc(ctrl->servers[1], 0, h-tbH, w, tbH); x += w + bw; y -= totalH; but_resize(ctrl->lGame, x, y, w, h); butCt_setTextLoc(ctrl->lGame, 0, 0, w, tbH); but_resize(ctrl->lGamePic, x+bw*2,y+tbH+bw*2, w-bw*4,w-bw*4); y += totalH; but_resize(ctrl->lLoad, x, y, w, h); butCt_setTextLoc(ctrl->lLoad, 0, h-tbH, w, tbH); but_resize(ctrl->lLoadPic, x+bw*2, y+bw*2, w-bw*4, w-bw*4); x += w + bw; y -= totalH; but_resize(ctrl->edit, x, y, w, h); butCt_setTextLoc(ctrl->edit, 0, 0, w, tbH); but_resize(ctrl->editPic, x+bw*2,y+tbH+bw*2, w-bw*4,w-bw*4); y += totalH; but_resize(ctrl->gmp, x, y, w, h); butCt_setTextLoc(ctrl->gmp, 0, h-tbH, w, tbH); but_resize(ctrl->gmpPic, x+bw*2, y+bw*2, w-bw*4, w-bw*4); y += totalH + bw*3; x = bw*2; but_resize(ctrl->help, x, y, w, tbH); but_resize(ctrl->setup, x + w + bw, y, w, tbH); but_resize(ctrl->quit, x + w*2 + bw*2, y, w, tbH); return(0); } static ButOut iResize(ButWin *win) { Control *ctrl = butWin_packet(win); int w, h, size; int border; assert(MAGIC(ctrl)); w = butWin_w(win); h = butWin_h(win); but_resize(ctrl->iBg, 0,0, w,h); border = 2*butEnv_stdBw(butWin_env(win)); size = w - border * 2; but_resize(ctrl->ig, border, border, size, size); return(0); } static ButOut destroy(ButWin *win) { Control *ctrl = butWin_packet(win); assert(MAGIC(ctrl)); clp_setInt(ctrl->cg->clp, "control.x", butWin_x(win)); clp_setInt(ctrl->cg->clp, "control.y", butWin_y(win)); return(BUTOUT_STOPWAIT); } static ButOut localGoban(But *but) { Control *ctrl = but_packet(but); assert(MAGIC(ctrl)); gameSetup_create(ctrl->cg, localReady, ctrl); return(0); } static void localReady(void *packet, GameSetup *gs) { Control *ctrl = packet; assert(MAGIC(ctrl)); if (gs != NULL) { local_create(ctrl->cg, gameSetup_rules(gs), gameSetup_size(gs), gameSetup_handicap(gs), gameSetup_komi(gs), gameSetup_wName(gs), gameSetup_bName(gs), gameSetup_timeType(gs), gameSetup_mainTime(gs), gameSetup_byTime(gs), gameSetup_timeAux(gs)); } } static ButOut loadLocalGoban(But *but) { Control *c = but_packet(but); assert(MAGIC(c)); abutFsel_createDir(c->cg->abut, gotLoadName, c, "CGoban", msg_loadGameName, str_chars(&c->cg->lastDirAccessed), clp_getStr(c->cg->clp, "local.sgfName")); return(0); } static void gotLoadName(AbutFsel *fsel, void *packet, const char *fname) { Control *c = packet; assert(MAGIC(c)); str_copy(&c->cg->lastDirAccessed, &fsel->pathVal); if (fname != NULL) { clp_setStr(c->cg->clp, "local.sgfName", butTextin_get(fsel->in)); local_createFile(c->cg, fname); } } static ButOut quit(But *but) { Control *ctrl = but_packet(but); Clp *clp; assert(MAGIC(ctrl)); clp = ctrl->cg->clp; clp_setInt(clp, "control.x", butWin_x(ctrl->win)); clp_setInt(clp, "control.y", butWin_y(ctrl->win)); clp_wFile(clp, clp_getStr(clp, "adfile"), clp_getStr(clp, "name")); return(BUTOUT_STOPWAIT); } static ButOut setup(But *but) { Control *ctrl = but_packet(but); assert(MAGIC(ctrl)); if (ctrl->setupWin) { XRaiseWindow(butEnv_dpy(ctrl->cg->env), butWin_xwin(ctrl->setupWin->win)); } else { ctrl->setupWin = setup_create(ctrl->cg, setupGone, serverChange, ctrl); } return(0); } static void setupGone(Setup *setup, void *packet) { Control *ctrl = packet; assert(MAGIC(ctrl)); ctrl->setupWin = NULL; } static ButOut editPressed(But *but) { Control *ctrl = but_packet(but); assert(MAGIC(ctrl)); assert(MAGIC(ctrl->cg)); abutFsel_createDir(ctrl->cg->abut, editFileName, ctrl, "CGoban", msg_editGameName, str_chars(&ctrl->cg->lastDirAccessed), clp_getStr(ctrl->cg->clp, "edit.sgfName")); return(0); } static void editFileName(AbutFsel *fsel, void *packet, const char *fName) { Control *ctrl = packet; assert(MAGIC(ctrl)); str_copy(&ctrl->cg->lastDirAccessed, &fsel->pathVal); if (fName) { clp_setStr(ctrl->cg->clp, "edit.sgfName", butTextin_get(fsel->in)); editBoard_create(ctrl->cg, fName); } } static ButOut gmpPressed(But *but) { Control *ctrl = but_packet(but); gmpSetup_create(ctrl->cg); return(0); } static ButOut serverPressed(But *but) { Control *ctrl = but_packet(but); int butNum, serverNum; ClpEntry *sEntry, *sNames; assert(MAGIC(ctrl)); if (but == ctrl->servers[0]) { butNum = 0; sEntry = clp_lookup(ctrl->cg->clp, "client.def1"); } else { assert(but == ctrl->servers[1]); butNum = 1; sEntry = clp_lookup(ctrl->cg->clp, "client.def2"); } serverNum = clpEntry_getInt(sEntry); if (butEnv_keyModifiers(ctrl->cg->env) & ShiftMask) { /* Change which server this is. */ sNames = clp_lookup(ctrl->cg->clp, "client.server"); do { ++serverNum; if (serverNum == SETUP_MAXSERVERS) { serverNum = 0; } } while ((serverNum > 0) && (clpEntry_getStrNum(sNames, serverNum)[0] == '\0')); clpEntry_setInt(sEntry, serverNum); updateServerBut(ctrl, butNum); } else { /* Start up a connection to the server. */ cliSetup_create(ctrl->cg, serverNum); } return(0); } static void serverChange(Setup *setup, void *packet) { updateServerBut(packet, 0); updateServerBut(packet, 1); } static void updateServerBut(void *packet, int butNum) { Control *ctrl = packet; int sNum; assert(MAGIC(ctrl)); assert((butNum == 0) || (butNum == 1)); if (butNum == 0) { sNum = clp_getInt(ctrl->cg->clp, "client.def1"); } else { sNum = clp_getInt(ctrl->cg->clp, "client.def2"); } assert((sNum >= 0) && (sNum < SETUP_MAXSERVERS)); butCt_setText(ctrl->servers[butNum], clp_getStrNum(ctrl->cg->clp, "client.server", sNum)); if (clp_getStrNum(ctrl->cg->clp, "client.protocol", sNum)[0] == 'n') grid_setVersion(ctrl->sPics[butNum], CGBUTS_WORLDWEST(0)); else grid_setVersion(ctrl->sPics[butNum], CGBUTS_WORLDEAST(0)); } goban-1.1.orig/src/textin.h0000644000175000017500000000240206422161764013433 0ustar alal/* * wmslib/src/but/textin.h, part of wmslib (Library functions) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for textin.c */ #ifndef _BUT_TEXTIN_H_ #define _BUT_TEXTIN_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern But *butTextin_create(ButOut (*func)(But *but, const char *value), void *packet, ButWin *win, int layer, int flags, const char *text, int maxlen); extern void butTextin_setCallback(But *but, ButOut (*func)(But *but, const char *value), void *packet); extern void butTextin_set(But *but, const char *str, bool propagate); extern const char *butTextin_get(But *but); /* * If you set hidden to TRUE, then all characters appear as only "*"s. This * is nice if you are asking for a password. */ extern void butTextin_setHidden(But *but, bool hidden); extern void butTextin_setSpecialKey(But *but, KeySym keysym, uint keyModifiers, uint modMask, ButOut callback(But *but, KeySym keysym, uint keyModifiers, void *context), void *context); #endif /* _BUT_TEXTIN_H_ */ goban-1.1.orig/src/board.h0000644000175000017500000000372210270066147013210 0ustar alal/* * src/client/board.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_BOARD_H_ #ifndef _GOBOARD_H_ #include "goBoard.h" #endif #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOBAN_H_ #include "goban.h" #endif #ifndef _SGF_H_ #include "sgf.h" #endif #ifdef _CLIENT_BOARD_H_ LEVELIZATION ERROR #endif #define _CLIENT_BOARD_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef struct CliBoard_struct { CliData *data; Cgoban *cg; Sgf *sgf; SgfElem *gameEnd; int gameNum, lastMoveRead; bool gameEnded, onTrack; GoGame *game; Goban *goban; But *shiftKeytrap, *ctrlKeytrap; void (*destroy)(struct CliBoard_struct *cli, void *packet); void *packet; GoTime timer; Str wName, bName; bool moveWhite, moveBlack; Str result; MAGIC_STRUCT } CliBoard; /********************************************************************** * Functions **********************************************************************/ extern CliBoard *cliBoard_create(CliData *data, int gameNum, const Str *wName, const Str *wRank, const Str *bName, const Str *bRank, int size, int handicap, float komi, int mainTime, int byTime, void (*destroy)(CliBoard *cli, void *packet), void *packet); extern void cliBoard_destroy(CliBoard *board, bool propagate); extern Bool cliBoard_gotMove(CliBoard *board, const char *locStr, GoStone color, int moveNum); #define cliBoard_addKibitz(cli, kib) goban_catComments((cli)->goban, (kib)) GobanOut cliBoard_gridPressed(void *packet, int loc, bool forcePress); GobanOut cliBoard_passPressed(void *packet); extern void cliBoard_update(CliBoard *cli); #endif /* _CLIENT_BOARD_H_ */ goban-1.1.orig/src/goGame.c0000644000175000017500000004406210270000722013300 0ustar alal/* * src/gogame.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include "goBoard.h" #ifdef _GOGAME_H_ LEVELIZATION ERROR #endif #include "goGame.h" /********************************************************************** * Forward Declarations **********************************************************************/ static bool goGame_forcedHandicapPlacement(GoGame *game); static void goGame_addHandicapStones(GoGame *game, GoBoard *board); static GoBoard *goGame_replay(GoGame *game, int moves, bool separateBoard); static void goGame_updateForMove(GoGame *game, GoStone moveColor, int move); static bool isDisputeAlive(GoGame *game); static void addMoveToMoves(GoGame *game, GoStone moveColor, int move, int moveNum); static bool goGame_canMove(GoGame *game, GoStone s, int move); static bool goGame_canDispute(GoGame *game, int move); /********************************************************************** * Globals **********************************************************************/ const bool goRules_freeHandicaps[goRules_num] = { FALSE, FALSE, TRUE, FALSE, TRUE, TRUE}; const GoRulesKo goRules_ko[goRules_num] = { goRulesKo_super, goRulesKo_japanese, goRulesKo_super, goRulesKo_super, goRulesKo_super, goRulesKo_tibetan}; const bool goRules_suicide[goRules_num] = { TRUE, FALSE, TRUE, TRUE, TRUE, FALSE}; const bool goRules_dispute[goRules_num] = { TRUE, FALSE, FALSE, FALSE, FALSE, TRUE}; const bool goRules_scoreKills[goRules_num] = { FALSE, TRUE, FALSE, TRUE, FALSE, TRUE}; /********************************************************************** * Functions **********************************************************************/ GoGame *goGame_create(int size, GoRules rules, int handicap, float komi, const GoTime *time, bool passive) { GoGame *game; int i; assert((handicap >= 0) && (handicap <= 27)); game = wms_malloc(sizeof(GoGame)); MAGIC_SET(game); game->size = size; game->rules = rules; game->passive = passive; game->forcePlay = FALSE; if (handicap == 1) handicap = 0; game->handicap = handicap; game->komi = komi; if (time) { game->time = *time; } else { game->time.type = goTime_none; } game->moveNum = 0; game->maxMoves = 0; game->passCount = 0; game->movesLen = 400; game->moves = wms_malloc(game->movesLen * sizeof(game->moves[0])); game->noLastMove = FALSE; game->board = goBoard_create(size); game->tmpBoard = goBoard_create(size); game->flags = wms_malloc(game->board->area * sizeof(uint)); game->hotMoves = wms_malloc(game->board->area * sizeof(int)); for (i = 0; i < goBoard_area(game->board); ++i) { game->hotMoves[i] = -1; game->flags[i] = 0; } game->flagsCleared = TRUE; game->cooloff = 0; game->state = goGameState_play; game->setWhoseMoveNum = -1; if (game->handicap && goGame_forcedHandicapPlacement(game)) goGame_addHandicapStones(game, game->board); game->whoseMove = goGame_whoseTurnOnMove(game, game->moveNum); return(game); } void goGame_destroy(GoGame *game) { assert(MAGIC(game)); goBoard_destroy(game->board); goBoard_destroy(game->tmpBoard); wms_free(game->flags); wms_free(game->hotMoves); wms_free(game->moves); MAGIC_UNSET(game); wms_free(game); } bool goGame_move(GoGame *game, GoStone moveColor, int move, GoTimer *timer) { bool stateChange = FALSE; bool disputeAnswer; int i; assert(MAGIC(game)); assert(game->passive || (moveColor == game->whoseMove)); assert((game->state == goGameState_play) || (game->state == goGameState_dispute)); assert(move >= 0); assert((game->state == goGameState_play) || (game->setWhoseMoveNum >= 0)); assert(game->moveNum >= game->setWhoseMoveNum); assert(goGame_isLegal(game, moveColor, move)); game->noLastMove = FALSE; if ((game->state == goGameState_play) && !game->flagsCleared) { for (i = 0; i < goBoard_area(game->board); ++i) { game->flags[i] = 0; } } addMoveToMoves(game, moveColor, move, game->moveNum); /* * Save this timer so if we rewind, we can reset the clock. */ if (timer != NULL) { game->moves[game->moveNum].time = *timer; if (timer->timeLeft < 0) game->moves[game->moveNum].time.timeLeft = 0; } else { game->moves[game->moveNum].time.timeLeft = 0; } /* * Place the move on the board. */ goGame_updateForMove(game, moveColor, move); game->maxMoves = game->moveNum; if (move == GOGAME_PASS) { /* A pass may change your state. */ if (game->state == goGameState_play) { /* Two passes puts you into selectDead state. */ if ((game->passCount == 2) && !game->passive && !game->forcePlay) { stateChange = TRUE; game->setWhoseMoveNum = game->moveNum; game->state = goGameState_selectDead; } } else { assert(game->state == goGameState_dispute); assert(game->setWhoseMoveNum >= 0); /* * Three passes puts you back into selectDead state. */ if ((game->passCount == 3) && !game->passive && !game->forcePlay) { disputeAnswer = game->disputeAlive; for (i = 0; i < goBoard_area(game->board); ++i) { if (game->flags[i] & GOGAMEFLAGS_DISPUTED) { if (disputeAnswer) { game->flags[i] = (game->flags[i] & ~(GOGAMEFLAGS_DISPUTED | GOGAMEFLAGS_MARKDEAD | GOGAMEFLAGS_WANTDEAD)) | GOGAMEFLAGS_RESOLVEALIVE; } else { game->flags[i] = (game->flags[i] & ~GOGAMEFLAGS_DISPUTED) | GOGAMEFLAGS_MARKDEAD | GOGAMEFLAGS_RESOLVEDEAD; } } } stateChange = TRUE; game->maxMoves = game->setWhoseMoveNum; goGame_moveTo(game, game->setWhoseMoveNum); game->state = goGameState_selectDead; /* * disputeAlive is sometimes changed when we replay back to the * end of the game, so we restore it's value here. */ game->disputeAlive = disputeAnswer; } } } game->whoseMove = goGame_whoseTurnOnMove(game, game->moveNum); return(stateChange); } static void goGame_updateForMove(GoGame *game, GoStone moveColor, int move) { int caps; assert(MAGIC(game)); assert((game->state == goGameState_done) || goGame_isLegal(game, moveColor, move)); caps = goBoard_addStone(game->board, moveColor, move, NULL); ++game->moveNum; /* * Update the list of hashes seen. * The hashes seen is used to quickly determine whether we have seen this * board position before. It is used for the superko rule and also to * detect a game with no result under Japanese and Tibetan rules. */ game->moves[game->moveNum].hash = goBoard_hashNoKo(game->board, moveColor); /* * I use hot stones to decide the Japanese and Tibetan ko rules. * Basically, a hot stone is a stone that cannot be captured. * Now decide whether or not to mark this stone as hot, and also whether or * not this was a "cooling" move; that is, one that made all hot stones * no longer hot. */ /* Check for the tibetan anti-snapback rule activation! */ if ((caps == 1) && (goRules_ko[game->rules] == goRulesKo_tibetan) && (goBoard_liberties(game->board, move) == 1)) { game->hotMoves[move] = game->moveNum; } /* Check for regular Japanese ko. */ if (goBoard_koLoc(game->board)) { game->hotMoves[move] = game->moveNum; } if ((move == 0) || (game->state == goGameState_play)) game->cooloff = game->moveNum; if (move == 0) { if ((game->state == goGameState_dispute) && (game->moveNum == game->setWhoseMoveNum)) game->passCount = 0; else { ++game->passCount; if ((game->state == goGameState_play) && (game->rules == goRules_aga)) goBoard_addCaps(game->board, goStone_opponent(moveColor), 1); } } else { game->passCount = 0; if (game->state == goGameState_dispute) { game->disputeAlive = isDisputeAlive(game); } } } bool goGame_isLegal(GoGame *game, GoStone moveColor, int move) { assert(MAGIC(game)); assert((move >= 0) && (move < game->board->area)); switch(game->state) { case goGameState_play: case goGameState_dispute: if (!game->passive && !game->forcePlay && (game->whoseMove != moveColor)) return(FALSE); return(goGame_canMove(game, moveColor, move)); break; case goGameState_selectDead: case goGameState_selectDisputed: return(goGame_canDispute(game, move)); break; case goGameState_done: return(FALSE); break; default: assert(FALSE); break; } } static bool goGame_canMove(GoGame *game, GoStone s, int move) { GoHash newHash; bool suicide, superKoMatch; GoBoard *b; int i, d; if (move == GOGAME_PASS) return(TRUE); if (goBoard_stone(game->board, move) != goStone_empty) return(FALSE); newHash = goBoard_quickHash(game->board, s, move, &suicide); if (suicide) { if (!goRules_suicide[game->rules]) return(FALSE); /* Single stone suicide is _always_ illegal. */ for (d = 0; d < 4; ++d) { if (goBoard_stone(game->board, move+goBoard_dir(game->board, d)) == s) break; } if (d == 4) return(FALSE); } /* Check for a ko. */ switch(goRules_ko[game->rules]) { case goRulesKo_super: for (i = 0; i < game->moveNum; ++i) { if (goHash_eq(game->moves[i].hash, newHash) && (goGame_whoseTurnOnMove(game, i) == goStone_opponent(s))) { /* * We _may_ have a match. Rebuild the board at the move in question * and see if they are equal. */ goBoard_copy(game->board, game->tmpBoard); goBoard_addStone(game->tmpBoard, s, move, NULL); b = goGame_replay(game, i, TRUE); superKoMatch = goBoard_eq(game->tmpBoard, b); goBoard_destroy(b); if (superKoMatch) return(FALSE); } } return(TRUE); break; case goRulesKo_tibetan: case goRulesKo_japanese: /* * Although these three ko rules are _not_ the same, they all restrict * moves with "hot" stones. The only difference in them is how to * decide which stones are hot. */ for (d = 0; d < 4; ++d) { if (goGame_isHot(game, move + goBoard_dir(game->board, d)) && (goBoard_stone(game->board, move + goBoard_dir(game->board, d)) != s)) return(FALSE); } return(TRUE); break; default: assert(FALSE); break; } } static bool goGame_canDispute(GoGame *game, int move) { assert(MAGIC(game)); assert((move >= 0) && (move < goBoard_area(game->board))); if (!goStone_isStone(goBoard_stone(game->board, move))) return(FALSE); if (game->flags[move] & GOGAMEFLAGS_RESOLVED) return(FALSE); return(TRUE); } GoStone goGame_whoseTurnOnMove(GoGame *game, int moveNum) { assert(MAGIC(game)); if ((game->setWhoseMoveNum >= 0) && (game->moveNum >= game->setWhoseMoveNum)) { if ((moveNum - game->setWhoseMoveNum) & 1) return(goStone_opponent(game->setWhoseMoveColor)); else return(game->setWhoseMoveColor); } else if (goGame_forcedHandicapPlacement(game)) { if (game->handicap) { if (moveNum & 1) return(goStone_black); else return(goStone_white); } else if (moveNum & 1) return(goStone_white); else return(goStone_black); } else { if (game->handicap) { if (moveNum < game->handicap) return(goStone_black); else { if ((moveNum - game->handicap) & 1) return(goStone_black); else return(goStone_white); } } else { if (moveNum & 1) return(goStone_white); else return(goStone_black); } } } static bool goGame_forcedHandicapPlacement(GoGame *game) { return(!goRules_freeHandicaps[game->rules] && (game->size >= 9) && (game->size & 1) && (game->handicap <= 9)); } static void goGame_addHandicapStones(GoGame *game, GoBoard *board) { int locs[9], numLocs = 0; int lo, mid, hi; assert(goGame_forcedHandicapPlacement(game)); if (game->size >= 13) lo = 3; else lo = 2; hi = game->size - lo - 1; mid = game->size / 2; locs[numLocs++] = goBoard_xy2Loc(board, hi, lo); locs[numLocs++] = goBoard_xy2Loc(board, lo, hi); if (game->handicap >= 3) locs[numLocs++] = goBoard_xy2Loc(board, lo, lo); if (game->handicap >= 4) { locs[numLocs++] = goBoard_xy2Loc(board, hi, hi); if (game->handicap & 1) locs[numLocs++] = goBoard_xy2Loc(board, mid, mid); } if (game->handicap >= 6) { locs[numLocs++] = goBoard_xy2Loc(board, lo, mid); locs[numLocs++] = goBoard_xy2Loc(board, hi, mid); } if (game->handicap >= 8) { locs[numLocs++] = goBoard_xy2Loc(board, mid, lo); locs[numLocs++] = goBoard_xy2Loc(board, mid, hi); } while (numLocs) { --numLocs; goBoard_addStone(board, goStone_black, locs[numLocs], NULL); } } bool goGame_moveTo(GoGame *game, int moveNum) { bool newState = FALSE; int oldSetColorMove; assert(MAGIC(game)); assert(moveNum >= 0); assert(game->passive || game->forcePlay || ((game->state == goGameState_play) || (game->state == goGameState_done) || (game->state == goGameState_dispute))); assert((game->state != goGameState_dispute) || (moveNum >= game->setWhoseMoveNum)); assert(moveNum <= game->maxMoves); game->moveNum = moveNum; oldSetColorMove = game->setWhoseMoveNum; goGame_replay(game, game->moveNum, FALSE); if ((game->state == goGameState_dispute) && (game->moveNum >= oldSetColorMove)) game->setWhoseMoveNum = oldSetColorMove; if ((game->state == goGameState_play) && (game->passCount == 2) && !game->passive && !game->forcePlay) { newState = TRUE; game->state = goGameState_done; } else if ((game->state == goGameState_done) && (game->passCount < 2) && !game->passive && !game->forcePlay) { newState = TRUE; game->state = goGameState_play; } return(newState); } /* * If separateBoard is set, then we assume that you only want the way the * board looked at that point so the game structure will be unchanged. * Otherwise game will be exactly as if a game were played to that point, * except (of course) maxMoves will be different. */ static GoBoard *goGame_replay(GoGame *game, int moves, bool separateBoard) { GoBoard *b; int i; assert(moves <= game->maxMoves); b = goBoard_create(game->size); if (!separateBoard) { goBoard_destroy(game->board); game->setWhoseMoveNum = -1; game->board = b; game->moveNum = 0; game->passCount = 0; for (i = 0; i < goBoard_area(b); ++i) { game->hotMoves[i] = -1; } } if (game->handicap && goGame_forcedHandicapPlacement(game)) goGame_addHandicapStones(game, b); for (i = 0; i < moves; ++i) { if (separateBoard) goBoard_addStone(b, game->moves[i].color, game->moves[i].move, NULL); else { game->whoseMove = game->moves[i].color; if ((game->time.type == goTime_none) || (game->moves[i].time.timeLeft >= 0)) { /* * If there was a time loss, then the last move isn't valid - the * game ended before the move could be made. */ goGame_updateForMove(game, game->whoseMove, game->moves[i].move); } else ++game->moveNum; } } if (!separateBoard) { game->whoseMove = goGame_whoseTurnOnMove(game, i); } return(b); } void goGame_markDead(GoGame *game, int loc) { GoBoardGroupIter i; int iterLoc; assert(MAGIC(game)); assert(goStone_isStone(goBoard_stone(game->board, loc))); goBoardGroupIter(i, game->board, loc) { iterLoc = goBoardGroupIter_loc(i, game->board); game->flags[iterLoc] ^= GOGAMEFLAGS_MARKDEAD; } } void goGame_resume(GoGame *game) { assert(MAGIC(game)); assert(game->state == goGameState_selectDead); game->maxMoves -= 2; game->state = goGameState_play; goGame_replay(game, game->maxMoves, FALSE); game->whoseMove = goGame_whoseTurnOnMove(game, game->moveNum); } void goGame_done(GoGame *game) { assert(MAGIC(game)); assert(game->state == goGameState_selectDead); game->state = goGameState_done; game->maxMoves = game->moveNum; } void goGame_dispute(GoGame *game, int loc) { GoBoardGroupIter i; int stoneLoc; assert(MAGIC(game)); assert(game->state == goGameState_selectDisputed); game->state = goGameState_dispute; game->disputeAlive = TRUE; game->disputedLoc = loc; game->setWhoseMoveColor = goStone_opponent(goBoard_stone(game->board, loc)); game->passCount = 0; game->state = goGameState_dispute; assert(goStone_isStone(game->setWhoseMoveColor)); for (stoneLoc = 0; stoneLoc < goBoard_area(game->board); ++stoneLoc); goBoardGroupIter(i, game->board, loc) { stoneLoc = goBoardGroupIter_loc(i, game->board); game->flags[stoneLoc] = GOGAMEFLAGS_DISPUTED; } game->whoseMove = goGame_whoseTurnOnMove(game, game->moveNum); } static bool isDisputeAlive(GoGame *game) { int i; for (i = 0; i < goBoard_area(game->board); ++i) { if ((game->flags[i] & GOGAMEFLAGS_DISPUTED) && (goBoard_stone(game->board, i) == goStone_opponent(game->setWhoseMoveColor))) return(TRUE); } return(FALSE); } static void addMoveToMoves(GoGame *game, GoStone moveColor, int move, int moveNum) { GoGameMove *newMoves; int i; if (moveNum == game->movesLen) { newMoves = wms_malloc(game->movesLen * 2 * sizeof(game->moves[0])); for (i = 0; i < game->movesLen; ++i) { newMoves[i] = game->moves[i]; } wms_free(game->moves); game->moves = newMoves; game->movesLen *= 2; } game->moves[moveNum].move = move; game->moves[moveNum].color = moveColor; } int goGame_lastMove(GoGame *g) { assert(MAGIC(g)); if (g->noLastMove || (g->moveNum == 0)) return(0); return(g->moves[g->moveNum - 1].move); } void goGame_setBoard(GoGame *game, GoStone color, int loc) { assert(MAGIC(game)); if (goStone_isStone(color) && goStone_isStone(goBoard_stone(game->board, loc))) { if (goBoard_stone(game->board, loc) == color) return; goBoard_addStone(game->board, goStone_empty, loc, NULL); } goBoard_addStone(game->board, color, loc, NULL); } const GoTimer *goGame_getTimer(const GoGame *game, GoStone color) { if (color == game->whoseMove) { if (game->moveNum <= 1) return(NULL); else return(&game->moves[game->moveNum - 2].time); } else { if (game->moveNum <= 0) return(NULL); else return(&game->moves[game->moveNum - 1].time); } } goban-1.1.orig/src/list.c0000644000175000017500000002600010270072475013062 0ustar alal/* * wmslib/src/but/list.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #ifdef _BUT_LIST_H_ Levelization Error. #endif #include /********************************************************************** * Data types **********************************************************************/ typedef struct ListEl_struct { Str str; bool pressable; } ListEl; typedef struct List_struct { ButOut (*func)(But *but, int line); int numLines, maxLines, selectLine, pressLine; ListEl *lines; int numTabs, *tabs; ButTextAlign *aligns; MAGIC_STRUCT } List; /********************************************************************** * Forward declarations **********************************************************************/ static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static void newFlags(But *but, uint flags); static void drawLine(But *but, int lineNum); /********************************************************************** * Functions **********************************************************************/ But *butList_create(ButOut (*func)(But *but, int line), void *packet, ButWin *win, int layer, int flags) { static const ButAction action = { mmove, mleave, mpress, mrelease, NULL, NULL, draw, destroy, newFlags, NULL, NULL}; List *l; But *but; int i; const int len = 1; l = wms_malloc(sizeof(List)); MAGIC_SET(l); but = but_create(win, l, &action); but->uPacket = packet; but->layer = layer; but->flags = flags; l->func = func; l->numLines = l->maxLines = len; l->selectLine = -1; l->pressLine = -1; l->lines = wms_malloc(len * sizeof(ListEl)); l->numTabs = 0; l->tabs = NULL; l->aligns = NULL; for (i = 0; i < len; ++i) { l->lines[i].pressable = FALSE; str_init(&l->lines[i].str); } but_init(but); return(but); } void butList_setTabs(But *but, const int *tabs, const ButTextAlign *tabAligns, int numTabs) { List *l = but->iPacket; int i; assert(MAGIC(l)); if (l->numTabs < numTabs) { if (l->tabs) { wms_free(l->tabs); wms_free(l->aligns); } l->tabs = wms_malloc(numTabs * sizeof(int)); l->aligns = wms_malloc(numTabs * sizeof(ButTextAlign)); l->numTabs = numTabs; } for (i = 0; i < numTabs; ++i) { l->tabs[i] = tabs[i]; if (tabAligns) l->aligns[i] = tabAligns[i]; else l->aligns[i] = butText_left; } } void butList_resize(But *but, int x, int y, int w) { List *list = but->iPacket; int listLen; assert(MAGIC(list)); listLen = list->numLines; if (listLen == 0) { listLen = 1; str_copyCharsLen(&list->lines[0].str, "", 0); } but_resize(but, x, y, w, listLen * butEnv_fontH(but->win->env, 0)); } void butList_changeLine(But *but, int line, const char *text) { List *l = but->iPacket; assert(MAGIC(l)); if (line >= l->numLines) { butList_setLen(but, line + 1); butList_resize(but, but->x, but->y, but->w); } str_copyChars(&l->lines[line].str, text); if (str_len(&l->lines[line].str) == 0) { l->lines[line].pressable = FALSE; if (l->selectLine == line) l->selectLine = -1; if (l->pressLine == line) l->pressLine = -1; } else { l->lines[line].pressable = TRUE; } drawLine(but, line); } void butList_setLen(But *but, int newLen) { List *list = but->iPacket; int i; ListEl *newLines; assert(MAGIC(list)); if (newLen > list->maxLines) { newLines = wms_malloc(newLen * sizeof(ListEl)); for (i = 0; i < list->maxLines; ++i) { newLines[i] = list->lines[i]; } for (; i < newLen; ++i) { newLines[i].pressable = FALSE; str_init(&newLines[i].str); } wms_free(list->lines); list->maxLines = newLen; list->lines = newLines; } if (newLen > list->numLines) { for (i = list->numLines; i < newLen; ++i) { str_copyCharsLen(&list->lines[i].str, "", 0); list->lines[i].pressable = FALSE; } } list->numLines = newLen; butList_resize(but, but->x, but->y, but->w); } static ButOut destroy(But *but) { List *l = but->iPacket; int i; for (i = 0; i < l->maxLines; ++i) { str_deinit(&l->lines[i].str); } wms_free(l->lines); if (l->tabs) { wms_free(l->tabs); wms_free(l->aligns); } MAGIC_UNSET(l); wms_free(l); return(0); } static void draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; List *l = but->iPacket; int i, fontH; int txtY; int startLine; butEnv_setXFg(env, BUT_FG); fontH = butEnv_fontH(env, 0); startLine = (y - but->y) / fontH; if (startLine < 0) startLine = 0; txtY = but->y + startLine * fontH; for (i = startLine; i < l->numLines; ++i) { if (i == l->selectLine) { if (i == l->pressLine) { butEnv_setXFg(env, BUT_FG); XFillRectangle(env->dpy, win->win, env->gc, but->x - win->xOff, txtY - win->yOff, but->w, fontH); butEnv_setXFg(env, BUT_BG); } else if (l->pressLine == -1) { if (env->colorp) butEnv_setXFg(env, BUT_HIBG); else butEnv_setXFg(env, BUT_PBG); XFillRectangle(env->dpy, win->win, env->gc, but->x - win->xOff, txtY - win->yOff, but->w, fontH); butEnv_setXFg(env, BUT_FG); } } butWin_writeTabs(win, but->x, txtY, str_chars(&l->lines[i].str), 0, l->tabs, l->aligns); if ((i == l->selectLine) && (i == l->pressLine)) butEnv_setXFg(env, BUT_FG); txtY += fontH; if (txtY >= y + h) break; } } static void newFlags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if ((flags & BUT_NETPRESS) && !(ofl & BUT_NETPRESS)) { snd_play(&but_downSnd); } if (((flags & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_NETPRESS)) != (ofl & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_NETPRESS))) || (((flags & (BUT_TWITCHED|BUT_NETTWITCH)) != (ofl & (BUT_TWITCHED|BUT_NETTWITCH))) && (flags & (BUT_PRESSED|BUT_NETPRESS)))) but_draw(but); } static ButOut mmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; uint newflags = but->flags; bool overBut; List *list = but->iPacket; int oldSelect; overBut = ((x >= but->x) && (x < but->x + but->w) && (y >= but->y) && (y < but->y + list->numLines * butEnv_fontH(but->win->env, 0))); if (but->flags & BUT_PRESSABLE) { oldSelect = list->selectLine; list->selectLine = (y - but->y) / butEnv_fontH(but->win->env, 0); if ((list->selectLine < 0) || (list->selectLine >= list->numLines)) list->selectLine = -1; else if (!list->lines[list->selectLine].pressable) list->selectLine = -1; if (oldSelect != list->selectLine) { drawLine(but, oldSelect); drawLine(but, list->selectLine); } } if (overBut) { if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if (list->selectLine >= 0) newflags |= BUT_TWITCHED; else newflags &= ~BUT_TWITCHED; } else { if (!(but->flags & BUT_PRESSABLE)) return(0); newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } static ButOut mleave(But *but) { List *list = but->iPacket; int newflags = but->flags; newflags &= ~BUT_TWITCHED; if (but->flags & BUT_TWITCHED) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } if (list->selectLine != -1) { drawLine(but, list->selectLine); list->selectLine = -1; } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; uint newflags = but->flags; List *list = but->iPacket; int oldPressLine; assert(MAGIC(list)); if (!(newflags & BUT_TWITCHED)) { retval = BUTOUT_ERR; } else { if (butnum == 1) { newflags |= BUT_PRESSED | BUT_LOCKED; oldPressLine = list->pressLine; list->pressLine = list->selectLine; if (oldPressLine != list->pressLine) { drawLine(but, oldPressLine); drawLine(but, list->pressLine); } if (list->pressLine < 0) { return(BUTOUT_CAUGHT | BUTOUT_ERR); } } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } if (!(but->flags & BUT_PRESSED) && (newflags & BUT_PRESSED)) snd_play(&but_downSnd); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut mrelease(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; List *list = but->iPacket; int pressLine = -1; assert(MAGIC(list)); if (butnum != 1) { if (but->flags & BUT_TWITCHED) return(BUTOUT_CAUGHT); else return(0); } if (!(but->flags & BUT_PRESSED)) return(0); if (but->flags & BUT_TWITCHED) { pressLine = (y - but->y) / butEnv_fontH(but->win->env, 0); } else { retval |= BUTOUT_ERR; } newflags &= ~(BUT_PRESSED|BUT_LOCKED); if ((but->flags & BUT_PRESSED) && !(newflags & BUT_PRESSED) && !(retval & BUTOUT_ERR)) snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); if ((pressLine >= 0) && (pressLine == list->pressLine)) { list->pressLine = -1; retval |= list->func(but, pressLine); } else list->pressLine = -1; return(retval); } int butList_len(But *but) { List *list = but->iPacket; assert(MAGIC(list)); return(list->numLines); } static void drawLine(But *but, int lineNum) { if (lineNum >= 0) { butWin_redraw(but->win, but->x, but->y + lineNum * butEnv_fontH(but->win->env, 0), but->w, butEnv_fontH(but->win->env, 0)); } } void butList_setPress(But *but, int line, bool pressable) { List *list; assert(MAGIC(but)); list = but->iPacket; assert(MAGIC(list)); assert(line < list->numLines); list->lines[line].pressable = pressable; } const char *butList_get(But *but, int line) { List *list; assert(MAGIC(but)); list = but->iPacket; assert(MAGIC(list)); assert(line < list->numLines); return(str_chars(&list->lines[line].str)); } #endif goban-1.1.orig/src/cgoban.c0000644000175000017500000005071310271270545013347 0ustar alal/* * src/cgoban.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include "msg.h" #include "cgbuts.h" #include "goGame.h" #include "goTime.h" #include "plasma.h" #include "cm2pm.h" #include #include #ifdef _CGOBAN_H_ LEVELIZATION ERROR #endif #include "cgoban.h" /********************************************************************** * Forward Declarations **********************************************************************/ static bool setupColors(Cgoban *cg, int colorMode); static void setupPixmaps(Cgoban *cg); static bool checkRules(ClpEntry *ce); static bool checkSize(ClpEntry *ce); static bool checkKomi(ClpEntry *ce); static bool checkHandicap(ClpEntry *ce); static bool checkTimeType(ClpEntry *ce); static bool checkTimeValue(ClpEntry *ce); static bool checkBYStones(ClpEntry *ce); static bool checkBProp(ClpEntry *ce); static bool checkGmpOption(ClpEntry *ce); static bool checkPortNum(ClpEntry *ce); static ButOut helpDead(AbutHelp *help, void *packet); /********************************************************************** * Global variables **********************************************************************/ const ButKey cg_return[] = {{XK_Return, 0, ShiftMask}, {XK_KP_Enter, 0, ShiftMask}, {0,0,0}}; const ButKey cg_help[] = {{XK_Help, 0, 0}, {0,0,0}}; /********************************************************************** * Functions **********************************************************************/ Cgoban *cgoban_create(int argc, char *argv[], char *envp[]) { Cgoban *cg; static const ClpSetup commandLine[] = { CLPSETUP_MSG("goban screensaver version " VERSION " by Scott Draves based on\n" "cgoban 1.9.2 by William Shubert - 23 November 1997\n"), CLPSETUP_MSG(""), {"VersionNumber", VERSION, NULL, 0, NULL}, {"version,-version", "f", "Print version information", CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"stealth", "t", "Stealth mode", CLPSETUP_SHOWBOOL|CLPSETUP_BOOL, NULL}, {"display", NULL, "Display to use", CLPSETUP_NOSAVE, NULL}, {"color", "t", "Use color if possible", CLPSETUP_SHOWBOOL|CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"hiContrast", "f", "Use high-contrast graphics instead of rendered", CLPSETUP_SHOWBOOL|CLPSETUP_BOOL, NULL}, {"adfile", "~/.cgobanrc", "Set resource file name", CLPSETUP_NOSAVE, NULL}, {"name", "cgoban", "Name used to look up X resources", 0, NULL}, {"fontHeight", "12", "Size (in pixels) of font (default = 12)", 0, NULL}, {"window-id", "0", "X window id to draw in", 0, NULL}, {"root", "f", "draw on the root window", CLPSETUP_BOOL, NULL}, {"stonetime", "2000.0", "Milliseconds between stones in screensaver (default = 2000)", 0, NULL}, {"gametime", "10000.0", "Milliseconds between games in screensaver (default = 10000)", 0, NULL}, {"acceleration", "50.0", "Rate of acceleration of stonetime 0=slow 100=fast (default = 50)", 0, NULL}, {"game-dir", "", "Directory to find games to play", 0, NULL}, {"minstonetime", "100.0", "Minimum stonetime (limit on acceleration) in screensaver (default = 100)", 0, NULL}, CLPSETUP_MSG(""), CLPSETUP_MSG("See the README for info about arena mode"), {"arena.games", "0", "Number of games to play in arena test", CLPSETUP_NOSAVE, NULL}, {"arena.prog1", "", "Program 1 for arena testing", 0, NULL}, {"arena.prog2", "", "Program 2 for arena testing", 0, NULL}, {"arena.size", "19", "Size to use in arena testing", 0, NULL}, {"arena.komi", "5.5", "Komi for arena testing", 0, NULL}, {"arena.handicap", "0", "Handicap for arena testing", 0, NULL}, {"play.markLastMove", "t", NULL, CLPSETUP_SHOWBOOL|CLPSETUP_BOOL, NULL}, {"play.markHotStones", "t", NULL, CLPSETUP_SHOWBOOL|CLPSETUP_BOOL, NULL}, {"board.showCoords", "t", NULL, CLPSETUP_SHOWBOOL|CLPSETUP_BOOL, NULL}, CLPSETUP_MSG(""), {"edit", "", "Edit SGF file", CLPSETUP_NOSAVE, NULL}, {"nngs", "f", "Connect to NNGS", CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"igs", "f", "Connect to IGS", CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"screensaver", "t", "Run as a screensaver", CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"iconic", "f", NULL, CLPSETUP_BOOL|CLPSETUP_NOSAVE, NULL}, {"control.x", "", NULL, 0, NULL}, {"control.y", "", NULL, 0, NULL}, {"help.x", "", NULL, 0, NULL}, {"help.y", "", NULL, 0, NULL}, {"help.w", "28.284271", NULL, 0, NULL}, {"help.h", "40.0", NULL, 0, NULL}, {"game.rules", "0", NULL, 0, checkRules}, {"game.size", "19", NULL, 0, checkSize}, {"game.komi", "5.5", NULL, 0, checkKomi}, {"game.handicap", "0", NULL, 0, checkHandicap}, {"local.wName", "White", NULL, 0, NULL}, {"local.bName", "Black", NULL, 0, NULL}, {"local.x", "", NULL, 0, NULL}, {"local.y", "", NULL, 0, NULL}, {"local.bProp", "1.0", NULL, 0, checkBProp}, {"local.sgfName", "game.sgf", NULL, 0, NULL}, {"edit.x", "", NULL, 0, NULL}, {"edit.y", "", NULL, 0, NULL}, {"edit.toolX", "", NULL, 0, NULL}, {"edit.toolY", "", NULL, 0, NULL}, {"edit.toolW", "0.0", NULL, 0, NULL}, {"edit.toolH", "0.0", NULL, 0, NULL}, {"edit.bProp", "1.0", NULL, 0, checkBProp}, {"edit.sgfName", "seigen-minoru.sgf", NULL, 0, NULL}, {"edit.infoX", "", NULL, 0, NULL}, {"edit.infoY", "", NULL, 0, NULL}, {"edit.infoW", "1.0", NULL, 0, NULL}, {"edit.infoH", "1.0", NULL, 0, NULL}, {"setup.timeType", "2", NULL, 0, checkTimeType}, {"setup.mainTime", "30:00", NULL, 0, checkTimeValue}, {"setup.igsBYTime", "10:00", NULL, 0, checkTimeValue}, {"setup.igsBYStones", "25", NULL, 0, checkBYStones}, {"setup.ingBYTime", "15:00", NULL, 0, checkTimeValue}, {"setup.ingBYPeriods", "3", NULL, 0, checkBYStones}, {"setup.jBYTime", "1:00", NULL, 0, checkTimeValue}, {"setup.jBYPeriods", "5", NULL, 0, checkBYStones}, {"config.x", "", NULL, 0, NULL}, {"config.y", "", NULL, 0, NULL}, {"config.h", "0.70710678", NULL, 0, NULL}, {"gmp.WOption", "0", NULL, 0, checkGmpOption}, {"gmp.BOption", "0", NULL, 0, checkGmpOption}, {"gmp.WProgram", "./goDummy", NULL, 0, NULL}, {"gmp.BProgram", "./goDummy", NULL, 0, NULL}, {"gmp.WDevice", "/dev/cua0", NULL, 0, NULL}, {"gmp.BDevice", "/dev/cua1", NULL, 0, NULL}, {"gmp.machine", "localhost", NULL, 0, NULL}, {"gmp.port", "26276", NULL, 0, checkPortNum}, {"gmp.nngs.username", "", NULL, 0, NULL}, {"gmp.nngs.password", "", NULL, 0, NULL}, {"gmp.igs.username", "", NULL, 0, NULL}, {"gmp.igs.password", "", NULL, 0, NULL}, {"client.def1", "0", NULL, 0, NULL}, {"client.def2", "1", NULL, 0, NULL}, /* * If you change the number of entries in these lists you must also * change the value of SETUP_MAXSERVERS in "src/setup.c". */ {"client.server", "NNGS|IGS|LGS|NCIC|GIGS|||||", NULL, 0, NULL}, {"client.protocol", "n|i|n|n|n|n|n|n|n|n", NULL, 0, NULL}, {"client.direct", "t|t|t|t|t|t|t|t|t|t", NULL, 0, NULL}, {"client.connCmd", "telnet nngs.cosmic.org 9696|" "telnet igs.nuri.net 6969|" "telnet|telnet|telnet|telnet|telnet|telnet|telnet|telnet", NULL, 0, NULL}, {"client.username", "|||||||||", NULL, 0, NULL}, {"client.password", "|||||||||", NULL, 0, NULL}, {"client.address", "nngs.cosmic.org|igs.nuri.net|micro.ee.nthu.edu.tw|" "jet.ncic.ac.cn|grizu.uni-regensburg.de|||||", NULL, 0, NULL}, {"client.port", "9696|6969|9696|9696|9696|9696|9696|9696|9696|9696", NULL, 0, NULL}, {"client.match.meFirst", "t", NULL, 0, NULL}, {"client.match.size", "19", NULL, 0, checkSize}, {"client.match.free", "f", NULL, 0, NULL}, {"client.match.mainTime", "20:00", NULL, 0, checkTimeValue}, {"client.match.byTime", "10:00", NULL, 0, checkTimeValue}, {"client.match.x", "", NULL, 0, NULL}, {"client.match.y", "", NULL, 0, NULL}, {"client.main.x", "", NULL, 0, NULL}, {"client.main.y", "", NULL, 0, NULL}, {"client.main.w", "40", NULL, 0, NULL}, {"client.main.h", "40", NULL, 0, NULL}, {"client.games.x", "", NULL, 0, NULL}, {"client.games.y", "", NULL, 0, NULL}, {"client.games.w", "6", NULL, 0, NULL}, {"client.games.h2", "0.5", NULL, 0, NULL}, {"client.players.x", "", NULL, 0, NULL}, {"client.players.y", "", NULL, 0, NULL}, {"client.players.h", "30.742", NULL, 0, NULL}, {"client.players.sort", "0", NULL, 0, NULL}, {"client.x", "", NULL, 0, NULL}, {"client.y", "", NULL, 0, NULL}, {"client.bProp", "1.0", NULL, 0, checkBProp}, {"client.numberKibitz", "f", NULL, CLPSETUP_BOOL, NULL}, {"client.noTypo", "f", NULL, CLPSETUP_BOOL, NULL}, {"client.look.x", "", NULL, 0, NULL}, {"client.look.y", "", NULL, 0, NULL}, {"client.look.bProp", "1.0", NULL, 0, checkBProp}, {"client.saykib", "1", NULL, 0, NULL}, {"abut.fsel.x", "", NULL, 0, NULL}, {"abut.fsel.y", "", NULL, 0, NULL}, {"abut.fsel.w", "1.2", NULL, 0, NULL}, {"abut.fsel.h", "1.2", NULL, 0, NULL}, CLPSETUP_END}; int envInit, color; int parses; int boardBgSize; bool colorWarning = FALSE; /* Create the cg */ cg = wms_malloc(sizeof(Cgoban)); MAGIC_SET(cg); cg->envp = envp; cg->clp = clp_create(commandLine); clp_rCmdline(cg->clp, argv); if (clp_getBool(cg->clp, "version")) { printf("goban screensaver version " VERSION " by Scott Draves based on\n"); printf("cgoban 1.9.2 by William Shubert - 23 November 1997\n"); exit(0); } if (clp_getInt(cg->clp, "arena.games") > 0) { cg->env = butEnv_createNoDpy("Complete Goban " VERSION); return(cg); } cg->env = butEnv_create("Complete Goban " VERSION, clp_getStr(cg->clp, "display"), NULL); if (cg->env == NULL) { clp_destroy(cg->clp); wms_free(cg); MAGIC_UNSET(cg); return(NULL); } clp_rXDefaults(cg->clp, butEnv_dpy(cg->env), clp_getStr(cg->clp, "name")); clp_rFile(cg->clp, clp_getStr(cg->clp, "adfile")); parses = sscanf(clp_getStr(cg->clp, "VersionNumber"), "Complete Goban %d.%d.%d", &cg->rcMajor, &cg->rcMinor, &cg->rcBugFix); if (parses != 3) cg->rcMajor = cg->rcMinor = cg->rcBugFix = 0; clp_setStr(cg->clp, "VersionNumber", VERSION); color = TrueColor; envInit = butEnv_init(cg->env, cg, "Complete Goban", (clp_getBool(cg->clp, "color"))); cg->env->minWindows = 2; if (envInit == 0) color = GrayScale; if (envInit == 2) color = PseudoColor; else if (envInit == 1) { color = GrayScale; colorWarning = TRUE; } if (!setupColors(cg, color)) { colorWarning = TRUE; butEnv_destroy(cg->env); cg->env = butEnv_create("Complete Goban " VERSION, clp_getStr(cg->clp, "display"), NULL); assert(cg->env != NULL); butEnv_init(cg->env, cg, "Complete Goban", FALSE); setupColors(cg, color = GrayScale); } str_initChars(&cg->lastDirAccessed, "./"); cg->abut = abut_create(cg->env, msg_ok, msg_cancel); abut_setClp(cg->abut, cg->clp); abutFsel_pathMessage = msg_path; abutFsel_fileMessage = msg_file; abutFsel_maskMessage = msg_mask; abutFsel_dirsMessage = msg_dirs; abutFsel_filesMessage = msg_files; abutFsel_dirErrMessage = msg_dirErr; cg->help = NULL; { ClpWhere wh = clp_where(cg->clp, "fontHeight"); if (clp_getBool(cg->clp, "screensaver") && ((clpWhere_unset == wh) || (clpWhere_rcfile == wh))) { int wid; Window rootw; int dummy; wh = clp_where(cg->clp, "window-id"); if (clpWhere_cmdline == wh) { sscanf(clp_getStr(cg->clp, "window-id"), "%x", &wid); XGetGeometry(butEnv_dpy(cg->env), wid, &rootw, &dummy, &dummy, &cg->env->rootW, &cg->env->rootH, &dummy, &dummy); } cg->fontH = cg->env->rootH / 50; } else cg->fontH = clp_getInt(cg->clp, "fontHeight"); } abut_setButH(cg->abut, cg->fontH * 2); cg->markLastMove = clp_getBool(cg->clp, "play.markLastMove"); cg->markHotStones = clp_getBool(cg->clp, "play.markHotStones"); cg->showCoords = clp_getBool(cg->clp, "board.showCoords"); cg->rnd = rnd_create(time(NULL)); /* Set up the X stuff */ butEnv_setFont(cg->env, 0, msg_mFonts, cg->fontH); butEnv_setFont(cg->env, 1, msg_labelFonts, (cg->fontH*5+3)/6); butEnv_setFont(cg->env, 2, msg_bFonts, cg->fontH); cgbuts_init(&cg->cgbuts, cg->env, cg->rnd, color, clp_getBool(cg->clp, "client.noTypo"), clp_getBool(cg->clp, "hiContrast"), cg->screensaver); if (cg->cgbuts.color == GrayScale) { cg->boardPixmap = butEnv_pixmap(cg->env, BUT_LIT); } else { boardBgSize = butEnv_fontH(cg->env, 0) * 28 + butEnv_stdBw(cg->env) * 19; cg->boardPixmap = cm2Pm(cg->env, plasma(), PLASMA_SIZE,PLASMA_SIZE, boardBgSize, boardBgSize, CGBUTS_COLORBOARD(0), 256, clp_getBool(cg->clp, "hiContrast")); } setupPixmaps(cg); abut_setPixmaps(cg->abut, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); if (colorWarning) { cgoban_createMsgWindow(cg, "Cgoban Warning", msg_notEnoughColors); } return(cg); } void cgoban_destroy(Cgoban *cg) { assert(MAGIC(cg)); clp_wFile(cg->clp, clp_getStr(cg->clp, "adfile"), "cgoban"); butEnv_destroy(cg->env); clp_destroy(cg->clp); rnd_destroy(cg->rnd); str_deinit(&cg->lastDirAccessed); MAGIC_UNSET(cg); wms_free(cg); } static bool setupColors(Cgoban *cg, int color) { ButColor bd0, bd255, g0, g255; int i, mix1, mix2; /* should be "muted background" or something */ bool ss = clp_getBool(cg->clp, "screensaver"); assert(MAGIC(cg)); if (!butEnv_setColor(cg->env, CGBUTS_COLORBG1, ss ? butColor_create(40,55,56, 15) : butColor_create(46,139,87, 15))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORBG2, ss ? butColor_create(55,45,40, 15) : butColor_create(55,167,104, 15))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORBGLIT1, ss ? butColor_create(25,20,20, 15) : butColor_create(61,185,116, 15))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORBGLIT2, ss ? butColor_create(24,20,20, 15) : butColor_create(74,222,139, 15))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORBGSHAD1, ss ? butColor_create(10,5,10, 8) : butColor_create(31,93,58, 8))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORBGSHAD2, ss ? butColor_create(10,10,10, 8) : butColor_create(37,111,70, 8))) return(FALSE); if (!butEnv_setColor(cg->env, CGBUTS_COLORREDLED, butColor_create(255,80,80, 16))) return(FALSE); butEnv_setColor(cg->env, BUT_CHOICE, butColor_create(255,80,80, 8)); g0 = butColor_create(0,0,0, 0); g255 = butColor_create(255,255,255, 16); for (i = 0; i < 256; ++i) { mix1 = 255-i; mix2 = i; if (color != TrueColor) { mix1 = (mix1 * 17) / 256; mix2 = 16 - mix1; } if (!butEnv_setColor(cg->env, CGBUTS_GREY(i), butColor_mix(g0, mix1, g255, mix2))) return(FALSE); } bd0 = butColor_create(242,174,106, 8); bd255 = butColor_create(212,121,78, 8); bd255 = butColor_mix(bd0, 1, bd255, 4); for (i = 0; i < 256; ++i) { mix2 = (i*i*i + 127) / 255; mix1 = 255*255 - mix2; if (color != TrueColor) { mix1 = (mix1 * 8) / (255 * 255 + 1); mix2 = 7 - mix1; } if (!butEnv_setColor(cg->env, CGBUTS_COLORBOARD(i), butColor_mix(bd0, mix1, bd255, mix2))) return(FALSE); } return(TRUE); } static void setupPixmaps(Cgoban *cg) { Display *dpy; GC gc; int picH, i, j, offset, lastOffset = -1, lw, ll; assert(MAGIC(cg)); lw = (cg->fontH + 5) / 10; if (lw < 1) lw = 1; ll = lw * 4; picH = (ll+lw) * 3; picH = (((cg->fontH * 4) / picH) + 1) * picH; dpy = butEnv_dpy(cg->env); gc = butEnv_gc(cg->env); if (cg->cgbuts.color == GrayScale) { cg->bgPixmap = butEnv_pixmap(cg->env, BUT_BG); cg->bgLitPixmap = butEnv_pixmap(cg->env, BUT_LIT); cg->bgShadPixmap = butEnv_pixmap(cg->env, BUT_SHAD); } else { cg->bgPixmap = XCreatePixmap(dpy, cg->cgbuts.dpyRootWindow, picH, picH, cg->cgbuts.dpyDepth); cg->bgLitPixmap = XCreatePixmap(dpy, cg->cgbuts.dpyRootWindow, picH, picH, cg->cgbuts.dpyDepth); cg->bgShadPixmap = XCreatePixmap(dpy, cg->cgbuts.dpyRootWindow, picH, picH, cg->cgbuts.dpyDepth); XSetFillStyle(dpy, gc, FillSolid); XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBG1)); XFillRectangle(dpy, cg->bgPixmap, gc, 0,0, picH, picH); XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBGLIT1)); XFillRectangle(dpy, cg->bgLitPixmap, gc, 0,0, picH, picH); XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBGSHAD1)); XFillRectangle(dpy, cg->bgShadPixmap, gc, 0,0, picH, picH); XSetLineAttributes(dpy, gc, lw, LineSolid, CapButt, JoinMiter); for (i = 0; i < picH; i += 3*lw) { do { offset = (rnd_int(cg->rnd) % (ll+lw)) + lw; } while (offset == lastOffset); lastOffset = offset; for (j = -offset; j < picH; j += (ll+lw)) { XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBG2)); XDrawLine(dpy, cg->bgPixmap, gc, i-j,j, i-j-ll,j+ll); XDrawLine(dpy, cg->bgPixmap, gc, i-j+picH,j, i-j-ll+picH,j+ll); XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBGLIT2)); XDrawLine(dpy, cg->bgLitPixmap, gc, i-j,j, i-j-ll,j+ll); XDrawLine(dpy, cg->bgLitPixmap, gc, i-j+picH,j, i-j-ll+picH,j+ll); XSetForeground(dpy, gc, butEnv_color(cg->env, CGBUTS_COLORBGSHAD2)); XDrawLine(dpy, cg->bgShadPixmap, gc, i-j,j, i-j-ll,j+ll); XDrawLine(dpy, cg->bgShadPixmap, gc, i-j+picH,j, i-j-ll+picH,j+ll); } } butEnv_stdFill(cg->env); } } static bool checkRules(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i >= 0) && (i < goRules_num)); } static bool checkSize(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i >= 2) && (i <= GOBOARD_MAXSIZE)); } static bool checkKomi(ClpEntry *ce) { bool err; double i; i = clpEntry_iGetDouble(ce, &err); return(!err && (i >= -999.5) && (i <= 999.5) && (i * 2.0 == (double)((int)(i * 2.0)))); } static bool checkHandicap(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i >= 0) && (i <= 27)); } static bool checkTimeType(ClpEntry *ce) { bool err; GoTimeType t; t = (GoTimeType)clpEntry_iGetInt(ce, &err); return(!err && (t <= goTime_ing)); } static bool checkTimeValue(ClpEntry *ce) { bool err; int time; time = goTime_parseChars(clpEntry_iGetStr(ce, NULL), FALSE, &err); return ((time >= 0) && !err); } static bool checkBYStones(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i >= 1)); } static bool checkBProp(ClpEntry *ce) { bool err; double d; d = clpEntry_iGetDouble(ce, &err); return(!err && (d >= 1.0)); } static bool checkGmpOption(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i >= 0) && (i <= 4)); } static bool checkPortNum(ClpEntry *ce) { bool err; int i; i = clpEntry_iGetInt(ce, &err); return(!err && (i <= 65535) && (i > 0)); } ButOut cgoban_createHelpWindow(But *but) { Cgoban *cg; const Help *helpInfo; int x, y, w, h; bool err; cg = butEnv_packet(butWin_env(but_win(but))); assert(MAGIC(cg)); helpInfo = but_packet(but); assert(helpInfo != NULL); if (cg->help) { abutHelp_newPages(cg->help, helpInfo->menuTitle, helpInfo->pages, helpInfo->numPages); } else { x = clpEntry_iGetInt(clp_lookup(cg->clp, "help.x"), &err); if (err) { x = BUT_NOCHANGE; y = BUT_NOCHANGE; } else y = clp_getInt(cg->clp, "help.y"); w = (int)(cg->fontH * clp_getDouble(cg->clp, "help.w") + 0.5); h = (int)(cg->fontH * clp_getDouble(cg->clp, "help.h") + 0.5); cg->help = abutHelp_create(cg->abut, "Cgoban Help", helpInfo->menuTitle, helpInfo->pages, helpInfo->numPages, x, y, w, h, 8 * cg->fontH, 8 * cg->fontH); abutHelp_setDestroyCallback(cg->help, helpDead, cg); } return(0); } static ButOut helpDead(AbutHelp *help, void *packet) { Cgoban *cg = packet; assert(MAGIC(cg)); cg->help = NULL; clp_setInt(cg->clp, "help.x", butWin_x(help->win)); clp_setInt(cg->clp, "help.y", butWin_y(help->win)); clp_setDouble(cg->clp, "help.w", (double)butWin_w(help->win) / (double)cg->fontH); clp_setDouble(cg->clp, "help.h", (double)butWin_h(help->win) / (double)cg->fontH); return(0); } goban-1.1.orig/src/snd.c0000644000175000017500000001614510270056676012711 0ustar alal/* * wmslib/src/wms/snd.c, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #if SUN_SOUND #include #elif LINUX_SOUND #if !HAVE_GETDTABLESIZE #include #endif #include #include #endif #if SUN_SOUND #define sound_dev_name "/dev/audio" #elif LINUX_SOUND #define sound_dev_name "/dev/dsp" #endif #if SUN_SOUND #define SND_PHYSMAXVOL 255 #elif LINUX_SOUND #define SND_PHYSMAXVOL 261 #endif #ifndef SUN_SOUND #define SUN_SOUND 0 #endif #ifndef LINUX_SOUND #define LINUX_SOUND 0 #endif const bool sndAvail = (SUN_SOUND || LINUX_SOUND); static int sound_dev = -1, volume = 0; static SndState state = sndState_off; #if SUN_SOUND static audio_info_t old_ai; #elif LINUX_SOUND static Snd *cvtlist = NULL; static pid_t child; static int ulaw_to_16bit(uchar ulawbyte); static void audio_child(int in, int out); #endif void (*snd_errHandler)(SndInit errType, char *errStr) = NULL; char snd_error[1000] = "Sound functioning properly."; static void snd_deinitChild(void); #if SUN_SOUND || LINUX_SOUND SndInit snd_init(SndState newState, int newVolume) { #if SUN_SOUND audio_info_t ai; #endif /* SUN_SOUND */ SndInit result = sndInit_ok; assert((newVolume >= -1) && (newVolume <= SND_MAXVOL)); if (newVolume >= 0) newVolume = ((newVolume * SND_PHYSMAXVOL + SND_MAXVOL/2) / SND_MAXVOL); if (state == sndState_iOff) return(sndInit_broken); if (state == sndState_iWantOpen) { if (newState == sndState_oldState) newState = sndState_fullOpen; state = sndState_off; } if (newVolume == -1) newVolume = volume; if (volume != newVolume) { if (volume == 0) { if (newState == sndState_oldState) newState = state; state = sndState_off; } #if LINUX_SOUND /* Free up all old converted sound buffers. */ while (cvtlist != NULL) { cvtlist->converted = FALSE; wms_free(cvtlist->cvtdata.dsp); cvtlist = cvtlist->next; } #endif /* LINUX_SOUND */ volume = newVolume; } if (volume == 0) snd_deinit(); if ((newState != sndState_oldState) && (newState != state)) { snd_deinit(); state = newState; if ((volume == 0) || (state < sndState_fullOpen)) { /* * Try to open it, just to make sure that we can. */ sound_dev = open(sound_dev_name, O_WRONLY|O_NDELAY); if (sound_dev != -1) { close(sound_dev); sound_dev = -1; return(result); } } else sound_dev = open(sound_dev_name, O_WRONLY|O_NDELAY); if (sound_dev == -1) { /* Can't open the sound device. Drag. */ if (errno == EBUSY) { result = sndInit_busy; if (state == sndState_fullOpen) state = sndState_iWantOpen; /* Somebody else has it open! Print an error and try again. */ sprintf(snd_error, "Sound device \"%s\" is busy.", sound_dev_name); } else { /* Some other reason...give up forever. */ result = sndInit_broken; volume = 0; state = sndState_iOff; sprintf(snd_error, "Couldn't open sound device \"%s\". " "Error code: \"%s\".", sound_dev_name, strerror(errno)); } return(result); } if (state == sndState_fullOpen) { #if LINUX_SOUND /* Sound device opened successfully. Spawn the audio child. */ int pipes[2], i; pipe(pipes); child = fork(); if (child == 0) { int maxFiles = getdtablesize(); /* * Close off all file descriptors that the audio child doesn't need. */ for (i = 2; i < maxFiles; ++i) { if ((i != pipes[0]) && (i != sound_dev)) close(i); } audio_child(pipes[0], sound_dev); } else { close(pipes[0]); close(sound_dev); sound_dev = pipes[1]; } #endif /* LINUX_SOUND */ } } #if SUN_SOUND /* Cofigure the device for us. */ ioctl(sound_dev, AUDIO_GETINFO, &ai); old_ai = ai; AUDIO_INITINFO(&ai); ai.play.sample_rate = 8000; ai.play.channels = 1; ai.play.precision = 8; ai.play.encoding = AUDIO_ENCODING_ULAW; if (volume != -1) ai.play.gain = (volume * AUDIO_MAX_GAIN + SND_MAXVOL/2) / SND_MAXVOL; if (ioctl(sound_dev, AUDIO_SETINFO, &ai) == -1) { sprintf(snd_error, "Sound device \"%s\" cannot use desired " "data format.", sound_dev_name); result = sndInit_broken; volume = 0; close(sound_dev); state = sndState_iOff; } #endif /* SUN_SOUND */ return(result); } void snd_play(Snd *sound) { if ((volume == 0) || (state <= sndState_off)) return; #if LINUX_SOUND if (!sound->converted) { int i; sound->cvtdata.dsp = wms_malloc(sound->len); sound->cvtlen = sound->len; for (i = 0; i < sound->len; ++i) sound->cvtdata.dsp[i] = ((ulaw_to_16bit(sound->data[i]) * volume) >> 16) + 128; sound->converted = TRUE; sound->next = cvtlist; cvtlist = sound; } #endif /* LINUX_SOUND */ if (state == sndState_partOpen) snd_init(sndState_iTempOpen, -1); if (sound_dev != -1) write(sound_dev, #if SUN_SOUND sound->data, sound->len #elif LINUX_SOUND sound->cvtdata.dsp, sound->cvtlen #endif ); if (state == sndState_iTempOpen) { #if LINUX_SOUND if (sound_dev != -1) ioctl(sound_dev, SNDCTL_DSP_SYNC, NULL); #endif snd_deinitChild(); state = sndState_partOpen; } } void snd_deinit(void) { #if LINUX_SOUND int status; #endif /* LINUX_SOUND */ if ((sound_dev != -1) && (state == sndState_fullOpen)) { #if SUN_SOUND ioctl(sound_dev, AUDIO_SETINFO, &old_ai); #endif /* SUN_SOUND */ close(sound_dev); #if LINUX_SOUND kill(child, SIGKILL); wait(&status); #endif /* LINUX_SOUND */ } sound_dev = -1; } static void snd_deinitChild(void) { if (sound_dev != -1) { #if SUN_SOUND ioctl(sound_dev, AUDIO_SETINFO, &old_ai); #endif /* SUN_SOUND */ close(sound_dev); } sound_dev = -1; } #if LINUX_SOUND static void audio_child(int in, int out) { size_t size_in; char buf[1024*8]; /* 1 second...should be enough! */ /* Make sure that we don't save OUR state! */ signal(SIGTERM, SIG_DFL); signal(SIGINT, SIG_DFL); signal(SIGPIPE, SIG_DFL); signal(SIGHUP, SIG_DFL); for (;;) { size_in = read(in, buf, 1024*8); if (size_in == 0) exit(0); if (size_in == -1) { perror("Pente sound demon: Error "); exit(1); } write(out, buf, size_in); ioctl(out, SNDCTL_DSP_SYNC, NULL); } } static int ulaw_to_16bit(uchar ulawbyte) { static int exp_lut[8] = { 0, 132, 396, 924, 1980, 4092, 8316, 16764 }; int sign, exponent, mantissa, sample; ulawbyte = ~ ulawbyte; sign = ( ulawbyte & 0x80 ); exponent = ( ulawbyte >> 4 ) & 0x07; mantissa = ulawbyte & 0x0F; sample = exp_lut[exponent] + ( mantissa << ( exponent + 3 ) ); if ( sign != 0 ) sample = -sample; return sample; } #endif /* LINUX_SOUND */ #else /* No audio. */ SndInit snd_init(SndState newstate, int vol) { sprintf(snd_error, "%s was compiled with sound turned off.", wms_progname); return(sndInit_broken); } void snd_play(Snd *sound) {} void snd_deinit(void) {} #endif /* SUN_SOUND || LINUX_SOUND */ goban-1.1.orig/src/player.c0000644000175000017500000005031610270070310013374 0ustar alal/* * src/client/player.c, part of Complete Goan (player program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include "msg.h" #include #include #include #include #include #ifdef _CLIENT_PLAYER_H_ Levelization Error. #endif #include "player.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void expandPlayers(CliPlayerList *gl, int playerNum); static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static void getListEl(CliPlayerList *gl, int gNum, Str *out); static ButOut sResize(ButWin *win); static void updatePlayer(CliPlayerList *pl, const char *playerInfo); static ButOut reload(But *but); static int cmpPlayers(const void *a, const void *b); static int getRankNum(const Str *rank); static ButOut newSort(But *but, int newSortType); static ButOut listPressed(But *but, int line); static void redrawLine(CliPlayerList *pl, int playerNum); static ButOut matchPressed(But *but); /********************************************************************** * Functions **********************************************************************/ CliPlayerList *cliPlayerList_init(CliPlayerList *gl, CliData *data) { MAGIC_SET(gl); gl->data = data; gl->maxPlayers = 0; gl->players = NULL; gl->sort = (CliPlayerSort)clp_getInt(data->cg->clp, "client.players.sort"); gl->sortEnd = 0; gl->win = NULL; gl->elfBugReported = FALSE; gl->match = NULL; return(gl); } CliPlayerList *cliPlayerList_deinit(CliPlayerList *gl) { Cgoban *cg; CliMatch *m; assert(MAGIC(gl)); cg = gl->data->cg; if (gl->players) wms_free(gl->players); if (gl->win) { clp_setDouble(cg->clp, "client.players.h", (double)butWin_h(gl->win) / (double)cg->fontH); clp_setInt(cg->clp, "client.players.x", butWin_x(gl->win)); clp_setInt(cg->clp, "client.players.y", butWin_y(gl->win)); butWin_setDestroy(gl->win, NULL); butWin_destroy(gl->win); } /* * Set all the match states to nil so they won't try to send declines * out a no-longer-valid conn! */ for (m = gl->match; m; m = m->next) m->state = cliMatch_nil; cliMatch_destroyChain(gl->match, NULL,NULL,NULL,NULL); MAGIC_UNSET(gl); return(gl); } void cliPlayerList_openWin(CliPlayerList *gl) { int winW, winH; Cgoban *cg; int i; bool err; Str winName; assert(MAGIC(gl)); if (gl->win) { XRaiseWindow(butEnv_dpy(gl->data->cg->env), butWin_xwin(gl->win)); return; } cliPlayerList_sort(gl); cg = gl->data->cg; winW = (butEnv_fontH(cg->env, 0) * 27) / 2 + 2 * cg->fontH + butEnv_stdBw(cg->env) * 8; winH = (clp_getDouble(cg->clp, "client.players.h") * cg->fontH + 0.5); str_init(&winName); str_print(&winName, "%s Player List", gl->data->serverName); gl->win = butWin_create(gl, cg->env, str_chars(&winName), winW, winH, unmap, map, resize, destroy); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.players.x"), &err); if (!err) butWin_setX(gl->win, i); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.players.y"), &err); if (!err) butWin_setY(gl->win, i); butWin_setMaxH(gl->win, 0); butWin_setMinH(gl->win, cg->fontH * 5); butWin_activate(gl->win); str_deinit(&winName); gl->bg = butBoxFilled_create(gl->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(gl->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); gl->swin = abutSwin_create(gl, gl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, sResize); gl->sBg = butPlain_create(gl->swin->win, 0, BUT_DRAWABLE, BUT_BG); gl->list = butList_create(listPressed, gl, gl->swin->win, 2, BUT_DRAWABLE|BUT_PRESSABLE); gl->sortType = butRadio_create(newSort, gl, gl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, gl->sort, 3); gl->nameSort = butText_create(gl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_name, butText_center); gl->rankSort = butText_create(gl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_braceRank, butText_center); gl->stateSort = butText_create(gl->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_state, butText_center); gl->titleBox = butBoxFilled_create(gl->win, 1, BUT_DRAWABLE); gl->title = butList_create(NULL, NULL, gl->win, 2, BUT_DRAWABLE); butList_setLen(gl->title, 1); butList_changeLine(gl->title, 0, msg_playerListDesc); gl->reload = butCt_create(reload, gl, gl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, "*"); for (i = 0; i < gl->maxPlayers; ++i) { if (gl->players[i].state != cliPlayer_noPlayer) { redrawLine(gl, i); } } butCan_resizeWin(gl->swin->win, 0, butList_len(gl->list) * butEnv_fontH(gl->data->cg->env, 0) + butEnv_stdBw(gl->data->cg->env) * 2, TRUE); } static void expandPlayers(CliPlayerList *gl, int playerNum) { int newMaxPlayers; CliPlayer *newPlayers; int i; if (playerNum >= gl->maxPlayers) { newMaxPlayers = (playerNum + 1) * 2; newPlayers = wms_malloc(newMaxPlayers * sizeof(CliPlayer)); for (i = 0; i < gl->maxPlayers; ++i) newPlayers[i] = gl->players[i]; for (; i < newMaxPlayers; ++i) { newPlayers[i].state = cliPlayer_noPlayer; newPlayers[i].sort = gl->sort; str_init(&newPlayers[i].name); str_init(&newPlayers[i].rank); str_init(&newPlayers[i].idleTime); newPlayers[i].match = NULL; newPlayers[i].gameIn = -1; } if (gl->players) wms_free(gl->players); gl->maxPlayers = newMaxPlayers; gl->players = newPlayers; } } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { int w, h; CliPlayerList *gl = butWin_packet(win); int bw = butEnv_stdBw(butWin_env(win)); int tabs[3]; static const ButTextAlign tabAligns[3] = {butText_center, butText_right, butText_right}; int fontH; int physFontH = butEnv_fontH(butWin_env(win), 0); int slideW = (physFontH * 3)/2; int centerAdd; assert(MAGIC(gl)); fontH = gl->data->cg->fontH; w = butWin_w(win); h = butWin_h(win); but_resize(gl->bg, 0, 0, w, h); but_resize(gl->sortType, bw*2 + slideW, bw*2, physFontH * 9, fontH * 2); but_resize(gl->nameSort, bw*2 + slideW, bw*2, (physFontH * 18 + 2) / 6, fontH * 2); but_resize(gl->rankSort, bw*2 + slideW + (physFontH * 18 + 2) / 6, bw*2, (physFontH * 18) / 2 - 2*(physFontH * 18 + 2) / 6, fontH * 2); but_resize(gl->stateSort, bw*2 + slideW + (physFontH * 18) / 2 - (physFontH * 18 + 2) / 6, bw*2, (physFontH * 18 + 2) / 6, fontH * 2); but_resize(gl->titleBox, bw*2 + slideW + physFontH * 9, bw*2, w - (bw*4 + slideW + physFontH * 9), fontH * 2); but_resize(gl->reload, bw*2, bw*2, slideW, fontH * 2); but_resize(gl->title, bw * 4 + slideW + (physFontH * 18) / 2, bw * 2 + (fontH * 2 - physFontH) / 2, w - (bw*2 + slideW + (physFontH * 18) / 2), physFontH); abutSwin_resize(gl->swin, bw*2, bw*2 + fontH*2, w - bw*4, h - bw*4 - fontH*2, slideW, physFontH); butCan_resizeWin(gl->swin->win, 0, butList_len(gl->list) * physFontH + bw * 2, TRUE); centerAdd = (physFontH * 3 + 1) / 4; tabs[0] = physFontH * 8; tabs[1] = (physFontH * 22) / 2; tabs[2] = (physFontH * 27) / 2; butList_setTabs(gl->list, tabs, tabAligns, 3); tabs[1] -= (physFontH * 18) / 2; tabs[2] -= (physFontH * 18) / 2; butList_setTabs(gl->title, tabs + 1, tabAligns + 1, 2); return(0); } static ButOut sResize(ButWin *win) { int w, h; AbutSwin *swin = butWin_packet(win); CliPlayerList *gl; int bw = butEnv_stdBw(butWin_env(win)); assert(MAGIC(swin)); gl = swin->packet; assert(MAGIC(gl)); w = butWin_w(win); h = butWin_h(win); but_resize(gl->sBg, 0, 0, w, h); butList_resize(gl->list, bw, bw, w - bw*2); return(0); } static ButOut destroy(ButWin *win) { CliPlayerList *gl = butWin_packet(win); Cgoban *cg = gl->data->cg; int i; assert(MAGIC(gl)); clp_setDouble(cg->clp, "client.players.h", (double)butWin_h(win) / (double)cg->fontH); clp_setInt(cg->clp, "client.players.x", butWin_x(win)); clp_setInt(cg->clp, "client.players.y", butWin_y(win)); gl->win = NULL; for (i = 0; i < gl->maxPlayers; ++i) { gl->players[i].match = NULL; } return(0); } static void getListEl(CliPlayerList *pl, int pNum, Str *out) { static const char desc[5] = {'?', 'X', 'O', '!', '-'}; char thisDesc, obPl, idleType; const char *idle = ""; int gameNum; CliPlayer *p = &pl->players[pNum]; if (p->state == cliPlayer_noPlayer) str_copyCharsLen(out, "", 0); thisDesc = desc[p->state]; if (p->gameIn >= 0) { thisDesc = 'X'; obPl = 'P'; gameNum = p->gameIn; } else if (p->gameOb >= 0) { obPl = 'O'; gameNum = p->gameOb; } else { obPl = ' '; gameNum = -1; } idleType = str_chars(&p->idleTime)[str_len(&p->idleTime) - 1]; if ((idleType != 's') || (atoi(str_chars(&p->idleTime)) >= 30)) idle = str_chars(&p->idleTime); if (gameNum >= 0) { str_print(out, "%s [%s]\t%c\t%s\t%c %d", str_chars(&p->name), str_chars(&p->rank), (int)thisDesc, idle, (int)obPl, gameNum); } else { str_print(out, "%s [%s]\t%c\t%s", str_chars(&p->name), str_chars(&p->rank), (int)thisDesc, idle); } } void cliPlayerList_whoOutput(CliPlayerList *pl, const char *buf) { char onePlayer[36]; if (buf[1] != 'I') { strncpy(onePlayer, buf, 35); onePlayer[35] = '\0'; updatePlayer(pl, onePlayer); if (strlen(buf) > 50) { strncpy(onePlayer, buf+37, 35); onePlayer[35] = '\0'; updatePlayer(pl, onePlayer); } } } static void updatePlayer(CliPlayerList *pl, const char *playerInfo) { char f1, f2, f3; char ob[40], play[40], name[40], idle[40], rank[40]; int args, playerNum; CliPlayer *p; args = sscanf(playerInfo, "%c%c%c %s %s %s %s %s", &f1, &f2, &f3, ob, play, name, idle, rank); if (args != 8) return; playerNum = cliPlayerList_lookupPlayer(pl, name); if (playerNum == -1) { for (playerNum = pl->sortEnd; playerNum < pl->maxPlayers; ++playerNum) { if (pl->players[playerNum].state == cliPlayer_noPlayer) break; } expandPlayers(pl, playerNum); } p = &pl->players[playerNum]; switch(f3) { case '!': p->state = cliPlayer_looking; break; case 'X': p->state = cliPlayer_closed; break; default: p->state = cliPlayer_open; break; } str_copyChars(&p->name, name); str_copyChars(&p->rank, rank); str_copyChars(&p->idleTime, idle); if (strcmp(ob, "--")) p->gameOb = atoi(ob); else p->gameOb = -1; if (strcmp(play, "--")) { p->gameIn = atoi(play); p->gameOb = -1; } else p->gameIn = -1; redrawLine(pl, playerNum); } int cliPlayerList_lookupPlayer(CliPlayerList *pl, const char *name) { int i; for (i = 0; i < pl->maxPlayers; ++i) { if (pl->players[i].state != cliPlayer_noPlayer) { if (!strcmp(str_chars(&pl->players[i].name), name)) return(i); } } return(-1); } void cliPlayerList_disconnected(CliPlayerList *pl, const char *buf) { char name[50]; int args, playerNum; args = sscanf(buf, "{%s ", name); assert(args == 1); playerNum = cliPlayerList_lookupPlayer(pl, name); if (playerNum >= 0) { pl->players[playerNum].state = cliPlayer_noPlayer; while ((pl->sortEnd > 0) && (pl->players[pl->sortEnd - 1].state == cliPlayer_noPlayer)) --pl->sortEnd; if (pl->win) { butList_changeLine(pl->list, playerNum, ""); if (pl->players[playerNum].match) { but_destroy(pl->players[playerNum].match); pl->players[playerNum].match = NULL; } } } } void cliPlayerList_connected(CliPlayerList *pl, const char *buf) { char name[50], rank[50]; int args, i, playerNum; CliPlayer *p; args = sscanf(buf, "{%s [ %[^]]", name, rank); if (args != 2) { if (!pl->elfBugReported) { pl->elfBugReported = TRUE; cgoban_createMsgWindow(pl->data->cg, "Cgoban Error", msg_gameBadElf); } return; } assert(args == 2); for (i = strlen(rank); i && (rank[i - 1] == ' '); --i); rank[i] = '\0'; playerNum = cliPlayerList_lookupPlayer(pl, name); if (playerNum == -1) { for (playerNum = pl->sortEnd; playerNum < pl->maxPlayers; ++playerNum) { if (pl->players[playerNum].state == cliPlayer_noPlayer) break; } expandPlayers(pl, playerNum); p = &pl->players[playerNum]; p->state = cliPlayer_unknown; str_copyChars(&p->name, name); str_copyChars(&p->rank, rank); str_copyChars(&p->idleTime, ""); p->gameIn = -1; p->gameOb = -1; redrawLine(pl, playerNum); } } static ButOut reload(But *but) { CliPlayerList *pl = but_packet(but); assert(MAGIC(pl)); cliConn_send(&pl->data->conn, "who\n"); return(0); } void cliPlayerList_sort(CliPlayerList *pl) { Str listEl; int i, physFontH, bw; ButEnv *env; qsort(pl->players, pl->maxPlayers, sizeof(CliPlayer), cmpPlayers); for (pl->sortEnd = 0; ((pl->sortEnd < pl->maxPlayers) && (pl->players[pl->sortEnd].state != cliPlayer_noPlayer)); ++pl->sortEnd); if (pl->win) { str_init(&listEl); env = pl->data->cg->env; physFontH = butEnv_fontH(env, 0); bw = butEnv_stdBw(env); for (i = 0; i < pl->maxPlayers; ++i) { if (pl->players[i].state == cliPlayer_noPlayer) break; getListEl(pl, i, &listEl); butList_changeLine(pl->list, i, str_chars(&listEl)); if (pl->players[i].match != NULL) but_resize(pl->players[i].match, bw + physFontH * 7, bw + physFontH * i, physFontH * 2, physFontH); } if (i == 0) i = 1; butList_setLen(pl->list, i); butCan_resizeWin(pl->swin->win, 0, i * butEnv_fontH(pl->data->cg->env, 0) + butEnv_stdBw(pl->data->cg->env) * 2, TRUE); str_deinit(&listEl); } } static int cmpPlayers(const void *a, const void *b) { const CliPlayer *pa = a; const CliPlayer *pb = b; int rankA, rankB; CliPlayerState stateA, stateB; if (pa->state == cliPlayer_noPlayer) return(1); else if (pb->state == cliPlayer_noPlayer) return(-1); if (pa->sort == cliPlayerSort_open) { stateA = pa->state; if (pa->gameIn >= 0) stateA = cliPlayer_closed; stateB = pb->state; if (pb->gameIn >= 0) stateB = cliPlayer_closed; if (stateA != stateB) return(stateB - stateA); } if (pa->sort >= cliPlayerSort_rank) { rankA = getRankNum(&pa->rank); rankB = getRankNum(&pb->rank); if (rankA != rankB) return(rankB - rankA); } return(strcasecmp(str_chars(&pa->name), str_chars(&pb->name))); } static int getRankNum(const Str *rank) { char class; int val; if (!strncmp(str_chars(rank), "NR", 2) || !strncmp(str_chars(rank), "?" "?" "?", 3)) /* Avoid the trigraphs. */ return(-100); class = str_chars(rank)[str_len(rank) - 1]; if (class == '*') { class = str_chars(rank)[str_len(rank) - 2]; } val = atoi(str_chars(rank)); if (class == 'k') return(-val); else if (class == 'd') return(val); else { assert(class == 'p'); return(val + 100); } } static ButOut newSort(But *but, int newSortType) { CliPlayerList *pl; int i; pl = but_packet(but); assert(MAGIC(pl)); clp_setInt(pl->data->cg->clp, "client.players.sort", newSortType); pl->sort = (CliPlayerSort)newSortType; for (i = 0; i < pl->maxPlayers; ++i) { pl->players[i].sort = (CliPlayerSort)newSortType; } cliPlayerList_sort(pl); return(0); } static ButOut listPressed(But *but, int line) { CliPlayerList *pl; pl = but_packet(but); assert(MAGIC(pl)); assert((line >= 0) && (line < pl->maxPlayers)); if (pl->players[line].state == cliPlayer_noPlayer) return(BUTOUT_ERR); str_print(&pl->data->cmdBuild, "stats %s\n", str_chars(&pl->players[line].name)); cliConn_send(&pl->data->conn, str_chars(&pl->data->cmdBuild)); return(0); } void cliPlayerList_playerInGame(CliPlayerList *pl, const char *player, int gameNum) { int playerNum; playerNum = cliPlayerList_lookupPlayer(pl, player); if (playerNum >= 0) { if (pl->players[playerNum].gameIn != gameNum) { pl->players[playerNum].gameIn = gameNum; pl->players[playerNum].gameOb = -1; if (pl->win) { redrawLine(pl, playerNum); } } } } void cliPlayerList_setState(CliPlayerList *pl, int playerNum, CliPlayerState state) { assert(MAGIC(pl)); assert((playerNum >= 0) && (playerNum < pl->maxPlayers)); assert(pl->players[playerNum].state != cliPlayer_noPlayer); pl->players[playerNum].state = state; redrawLine(pl, playerNum); } static void redrawLine(CliPlayerList *pl, int playerNum) { CliPlayer *p; ButEnv *env; int bw, lastPlayer, physFontH; char state[2]; assert(MAGIC(pl)); if (pl->win) { p = &pl->players[playerNum]; getListEl(pl, playerNum, &pl->data->cmdBuild); if (p->state == cliPlayer_noPlayer) { if (p->match) { but_destroy(p->match); p->match = NULL; } if (playerNum == butList_len(pl->list) - 1) { for (lastPlayer = playerNum - 1; ((lastPlayer >= 0) && (pl->players[lastPlayer].state == cliPlayer_noPlayer)); --lastPlayer); butList_setLen(pl->list, lastPlayer + 1); butCan_resizeWin(pl->swin->win, 0, (lastPlayer + 1) * butEnv_fontH(pl->data->cg->env, 0) + butEnv_stdBw(pl->data->cg->env) * 2, TRUE); } } else { if (playerNum >= butList_len(pl->list)) { butList_setLen(pl->list, playerNum + 1); butCan_resizeWin(pl->swin->win, 0, butList_len(pl->list) * butEnv_fontH(pl->data->cg->env, 0) + butEnv_stdBw(pl->data->cg->env) * 2, TRUE); } if (p->match == NULL) { if ((p->state != cliPlayer_closed) && (p->gameIn == -1)) { state[0] = "?XO! "[p->state]; state[1] = '\0'; p->match = butCt_create(matchPressed, pl, pl->swin->win, 3, BUT_DRAWABLE|BUT_PRESSABLE, state); env = pl->data->cg->env; physFontH = butEnv_fontH(env, 0); bw = butEnv_stdBw(env); but_resize(p->match, bw + physFontH * 7, bw + physFontH * playerNum, physFontH * 2, physFontH); } } else { if ((p->state == cliPlayer_closed) || (p->gameIn != -1)) { but_destroy(p->match); p->match = NULL; } else { state[0] = "?XO! "[p->state]; state[1] = '\0'; butCt_setText(p->match, state); } } } butList_changeLine(pl->list, playerNum, str_chars(&pl->data->cmdBuild)); } } static ButOut matchPressed(But *but) { CliPlayerList *pl = but_packet(but); int playerNum, oppRank, myRank; CliPlayer *p, *me; const char *rankStr; assert(MAGIC(pl)); /* * If there were lots of buttons, hashing the but *'s or something would * be a good idea. But for now, a linear search is probably OK. */ for (playerNum = 0; pl->players[playerNum].match != but; ++playerNum) { assert(playerNum < pl->maxPlayers); } p = &pl->players[playerNum]; for (playerNum = 0; (pl->players[playerNum].state == cliPlayer_noPlayer) || strcmp(str_chars(&pl->players[playerNum].name), str_chars(&pl->data->userName)); ++playerNum) { if (playerNum + 1 >= pl->maxPlayers) { /* We didn't find ourselves in the list. Ouch. */ cgoban_createMsgWindow(pl->data->cg, "Cgoban Error", msg_youDontExist); return(BUTOUT_ERR); } } me = &pl->players[playerNum]; if (isdigit(str_chars(&p->rank)[0]) && isdigit(str_chars(&me->rank)[0])) { oppRank = atoi(str_chars(&p->rank)); rankStr = str_chars(&p->rank); if ((rankStr[str_len(&p->rank) - 1] == 'k') || (rankStr[str_len(&p->rank) - 2] == 'k')) oppRank = -oppRank; myRank = atoi(str_chars(&me->rank)); rankStr = str_chars(&me->rank); if ((rankStr[str_len(&me->rank) - 1] == 'k') || (rankStr[str_len(&me->rank) - 2] == 'k')) myRank = -myRank; } else oppRank = myRank = 0; cliMatch_create(pl->data, str_chars(&p->name), &pl->match, myRank - oppRank); return(0); } extern const char *cliPlayerList_getRank(CliPlayerList *pl, const char *name) { int i; for (i = 0; i < pl->maxPlayers; ++i) { if (pl->players[i].state != cliPlayer_noPlayer) { if (!strcmp(name, str_chars(&pl->players[i].name))) return(str_chars(&pl->players[i].rank)); } } return(NULL); } goban-1.1.orig/src/sgf.c0000644000175000017500000003134210270056612012666 0ustar alal/* * src/sgf.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include "cgoban.h" #include "msg.h" #ifdef _SGF_H_ LEVELIZATION ERROR #endif #include "sgf.h" /********************************************************************** * Constants **********************************************************************/ #define POOLSIZE 100 /********************************************************************** * Data Types **********************************************************************/ typedef struct ElemPool_struct { struct ElemPool_struct *next; SgfElem elems[POOLSIZE]; MAGIC_STRUCT } ElemPool; /********************************************************************** * Globals **********************************************************************/ static ElemPool *elemPoolList = NULL; static SgfElem *freeElem = NULL; /********************************************************************** * Forward Declarations **********************************************************************/ static SgfElem *sgfElem_create(Sgf *mc, SgfType type); static void sgfElem_destroy(SgfElem *me); static void sgfElem_copy(Sgf *destSgf, SgfElem *dest, const SgfElem *src); /********************************************************************** * Functions **********************************************************************/ Sgf *sgf_create(void) { Sgf *mc; mc = wms_malloc(sizeof(Sgf)); MAGIC_SET(mc); MAGIC_SET(&(mc->top)); mc->longLoc = FALSE; mc->mode = sgfInsert_main; mc->top.type = sgfType_unknown; mc->top.childH = NULL; mc->top.childT = NULL; mc->top.activeChild = NULL; mc->top.sibling = NULL; mc->top.parent = NULL; mc->top.numChildren = 0; mc->top.mapX = -1; mc->top.mapY = -1; mc->active = &(mc->top); mc->moveNum = 0; return(mc); } void sgf_destroy(Sgf *mc) { SgfElem *me, *nextMe; assert(MAGIC(mc)); me = mc->top.childH; while (me) { assert(MAGIC(me)); nextMe = me->sibling; sgfElem_destroy(me); me = nextMe; } MAGIC_UNSET(mc); wms_free(mc); } void sgf_addCElem(Sgf *mc, SgfType type, GoStone gVal) { SgfElem *me; assert(MAGIC(mc)); me = sgfElem_create(mc, type); assert(MAGIC(me)); me->gVal = gVal; } void sgf_addCIElem(Sgf *mc, SgfType type, GoStone c, int i) { sgf_addCElem(mc, type, c); mc->active->iVal = i; if ((type == sgfType_size) && (i > 19)) mc->longLoc = TRUE; } void sgf_addCSElem(Sgf *mc, SgfType type, GoStone c, const char *s) { SgfElem *se; if (type == sgfType_comment) { se = sgfElem_findTypeInNode(mc->active, sgfType_comment); if (se) { str_copyChars(se->sVal, s); return; } } sgf_addCElem(mc, type, c); mc->active->sVal = str_createChars(s); } void sgf_catComment(Sgf *sgf, const char *s) { SgfElem *se; se = sgfElem_findTypeInNode(sgf->active, sgfType_comment); if (se) { str_catChars(se->sVal, s); } else { sgf_addCElem(sgf, sgfType_comment, goStone_empty); sgf->active->sVal = str_createChars(s); } } void sgf_addCLElem(Sgf *mc, SgfType type, GoStone c, const char *loc) { sgf_addCElem(mc, type, c); assert((strlen(loc) == 4) || (strlen(loc) == 2)); strcpy(mc->active->lVal, loc); } void sgf_addCLSElem(Sgf *mc, SgfType type, GoStone c, const char *loc, const char *str) { sgf_addCElem(mc, type, c); assert((strlen(loc) == 4) || (strlen(loc) == 2)); strcpy(mc->active->lVal, loc); mc->active->sVal = str_createChars(str); } static SgfElem *sgfElem_create(Sgf *mc, SgfType type) { ElemPool *newPool; int i; SgfElem *result, *parent, *childOfResult; if (freeElem == NULL) { newPool = wms_malloc(sizeof(ElemPool)); MAGIC_SET(newPool); newPool->next = elemPoolList; elemPoolList = newPool; for (i = 0; i < POOLSIZE; ++i) { newPool->elems[i].childH = &(newPool->elems[i+1]); newPool->elems[i].sVal = NULL; } newPool->elems[POOLSIZE - 1].childH = NULL; freeElem = &newPool->elems[0]; } result = freeElem; freeElem = freeElem->childH; result->type = type; result->childH = NULL; result->childT = NULL; result->sibling = NULL; result->activeChild = NULL; result->numChildren = 0; MAGIC_SET(result); parent = mc->active; result->mapX = parent->mapX; result->mapY = parent->mapY; result->parent = parent; #if DEBUG if (mc->mode != sgfInsert_inline) { if (type == sgfType_node) { assert((parent->childH == NULL) || (parent->childH->type == sgfType_node)); } else assert(parent->childH == NULL); } #endif /* DEBUG */ switch(mc->mode) { case sgfInsert_main: result->sibling = parent->childH; parent->childH = result; if (result->sibling == NULL) parent->childT = result; break; case sgfInsert_variant: if (parent->childH == NULL) parent->childH = result; else parent->childT->sibling = result; parent->childT = result; break; case sgfInsert_inline: result->childH = parent->childH; result->childT = parent->childT; result->activeChild = parent->activeChild; result->sibling = NULL; parent->childH = parent->childT = result; for (childOfResult = result->childH; childOfResult; childOfResult = childOfResult->sibling) { childOfResult->parent = result; } break; } parent->activeChild = result; assert((parent->childH != parent->childT) || (parent->activeChild == parent->childH)); mc->active = result; return(result); } static void sgfElem_destroy(SgfElem *me) { SgfElem *child, *nextChild; assert(MAGIC(me)); child = me->childH; while (child) { assert(MAGIC(child)); nextChild = child->sibling; sgfElem_destroy(child); child = nextChild; } if (me->sVal) { str_destroy(me->sVal); me->sVal = NULL; } MAGIC_UNSET(me); me->childH = freeElem; freeElem = me; } void sgfElem_destroyActiveChild(SgfElem *parent) { SgfElem *prevChild; SgfElem *deadChild = parent->activeChild; assert(MAGIC(parent)); assert(MAGIC(deadChild)); if (parent->childH == deadChild) { prevChild = NULL; parent->childH = deadChild->sibling; } else { for (prevChild = parent->childH; prevChild->sibling != deadChild; prevChild = prevChild->sibling); prevChild->sibling = deadChild->sibling; } if (parent->childT == deadChild) parent->childT = prevChild; sgfElem_destroy(deadChild); parent->activeChild = parent->childH; } void sgf_setDate(Sgf *mc) { time_t curTime; struct tm *tmTime; char dateStr[20]; time(&curTime); tmTime = localtime(&curTime); sprintf(dateStr, "%04d-%02d-%02d", tmTime->tm_year + 1900, tmTime->tm_mon + 1, tmTime->tm_mday); sgf_addCSElem(mc, sgfType_date, goStone_empty, dateStr); } /* * 0 = Before the first move. * 1 = The first move. * etc. */ void sgf_setActiveNodeNumber(Sgf *mc, int moveNum) { int curMove = 0; SgfElem *me; assert(MAGIC(mc)); me = &mc->top; for (;;) { assert(MAGIC(me)); if (me->activeChild == NULL) { assert(curMove == moveNum); break; } if (me->activeChild->type == sgfType_node) { ++curMove; if (curMove > moveNum) break; } me = me->activeChild; } mc->active = me; } SgfElem *sgf_findType(Sgf *mc, SgfType t) { SgfElem *me; assert(MAGIC(mc)); if (mc->active == &mc->top) return(NULL); for (me = mc->active; me; me = me->parent) { assert(MAGIC(me)); if (me->type == t) return(me); } return(NULL); } SgfElem *sgfElem_findTypeInNode(SgfElem *me, SgfType t) { assert(MAGICNULL(me)); while (me && (me->type != sgfType_node)) { assert(MAGIC(me)); if (me->type == t) return(me); me = me->parent; } return(NULL); } SgfElem *sgf_elemFindType(Sgf *mc, SgfElem *me, SgfType t) { SgfElem *result = NULL; assert(MAGIC(me)); if (me == mc->active) return(NULL); for (me = me->activeChild; (me != NULL) && (me != mc->active); me = me->activeChild) { assert(MAGIC(me)); if (me->type == t) result = me; } if ((me != NULL) && (me->type == t)) result = me; return(result); } SgfElem *sgfElem_findType(SgfElem *me, SgfType t) { SgfElem *result = NULL; assert(MAGIC(me)); for (me = me->activeChild; me != NULL; me = me->activeChild) { assert(MAGIC(me)); if (me->type == t) result = me; } return(result); } SgfElem *sgf_findFirstType(Sgf *mc, SgfType t) { SgfElem *me; assert(MAGIC(mc)); if (mc->active == &mc->top) return(NULL); if (mc->active->type == t) return(mc->active); for (me = mc->top.activeChild; me != mc->active; me = me->activeChild) { assert(MAGIC(me)); if (me->type == t) return(me); } return(NULL); } SgfElem *sgf_elemFindFirstType(Sgf *mc, SgfElem *me, SgfType t) { assert(MAGIC(me)); if (me == mc->active) return(NULL); for (me = me->activeChild; (me != NULL) && (me != mc->active); me = me->activeChild) { assert(MAGIC(me)); if (me->type == t) return(me); } if ((me != NULL) && (me->type == t)) return(me); return(NULL); } SgfElem *sgfElem_findFirstType(SgfElem *me, SgfType t) { assert(MAGIC(me)); for (me = me->activeChild; me != NULL; me = me->activeChild) { assert(MAGIC(me)); if (me->type == t) return(me); } return(NULL); } void sgfElem_newString(SgfElem *me, const char *str) { assert(MAGIC(me)); str_copyChars(me->sVal, str); } void sgfElem_snip(SgfElem *se, Sgf *sgf) { SgfElem *parent, *child, *sibling; if (sgf->active == se) sgf->active = se->parent; parent = se->parent; if (parent->activeChild == se) parent->activeChild = se->activeChild; if (parent->childH == se) { if (se->sibling) { if (se->childH) { se->childT->sibling = se->sibling; se->childT = parent->childT; } else { se->childH = se->sibling; se->childT = parent->childT; } } if (parent->childT == se) { parent->childH = se->childH; parent->childT = se->childT; } } else { for (sibling = parent->childH; sibling->sibling != se; sibling = sibling->sibling); if (se->childH) { sibling->sibling = se->childH; se->childT->sibling = se->sibling; } else { sibling->sibling = se->sibling; } } for (child = se->childH; child; child = child->sibling) { child->parent = parent; } se->childH = se->childT = NULL; sgfElem_destroy(se); } int sgfElem_findMove(SgfElem *se, const char *move, int dir) { int steps; assert(MAGIC(se)); assert((dir == 1) || (dir == -1)); if (dir == 1) steps = 0; else steps = -1; for (;;) { if (dir == 1) { se = se->activeChild; } else { if (steps >= 0) se = se->parent; } if (se == NULL) return(-1); switch(se->type) { case sgfType_node: ++steps; break; case sgfType_setBoard: if (se->gVal == goStone_empty) break; /* Fall through to sgfType_move. */ case sgfType_move: if (!strcmp(move, se->lVal)) { if (steps < 0) steps = 0; return(steps); } break; default: break; } if (steps < 0) steps = 0; } } void sgf_addHandicapStones(Sgf *sgf, GoBoard *board) { int i; for (i = 0; i < goBoard_area(board); ++i) { if (goBoard_stone(board, i) == goStone_black) { sgf_addStone(sgf, goStone_black, goBoard_loc2Sgf(board, i)); } } } void sgf_setHandicap(Sgf *sgf, int handicap) { if (handicap == 1) handicap = 0; sgf_addIElem(sgf, sgfType_handicap, handicap); } Sgf *sgf_copy(const Sgf *src) { Sgf *dest; dest = wms_malloc(sizeof(Sgf)); *dest = *src; dest->mode = sgfInsert_variant; dest->top.childH = dest->top.childT = dest->top.activeChild = NULL; sgfElem_copy(dest, &dest->top, &src->top); dest->active = &dest->top; while (dest->active->activeChild) { dest->active = dest->active->childH; assert(dest->active != NULL); } return(dest); } static void sgfElem_copy(Sgf *destSgf, SgfElem *dest, const SgfElem *src) { SgfElem *srcChild, *destChild; int i; for (srcChild = src->childH; srcChild; srcChild = srcChild->sibling) { destSgf->active = dest; sgfElem_create(destSgf, srcChild->type); destChild = destSgf->active; destChild->gVal = srcChild->gVal; destChild->iVal = srcChild->iVal; assert(destChild->sVal == NULL); if (srcChild->sVal != NULL) { destChild->sVal = str_createStr(srcChild->sVal); } for (i = 0; i < 5; ++i) { destChild->lVal[i] = srcChild->lVal[i]; } sgfElem_copy(destSgf, destChild, srcChild); } dest->activeChild = dest->childH; } goban-1.1.orig/src/i_snd.c0000644000175000017500000000234410270001351013171 0ustar alal/* * wmslib/src/but/i_snd.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #if X11_DISP #include #include static uchar butdown[] = { /* * Actual noise: The final click as you slam a pair of scissors * shut. */ 88,93,188,250,62,199,229,69,77,197,111,68,206,217,77,59,198,62, 79,203,216,95,207,188,167,199,35,78,89,159,163,45,155,177,106,47, 159,169,31,170,58,90,45,73,45,216,42,75,58,186,55,120,175,61,69, 191,121,44,181,122,86,64,189,93,74,187,189,100,185,183,239,196}; static uchar butup[] = { /* * Actual noise: The final click as you slam a pair of scissors * shut. * This is a slightly different sample than butdown; more echoish. */ 171,71,87,89,55,224,211,203,66,91,90,53,175,188,70,72,76,76,230, 190,174,56,55,213,79,91,193,216,77,87,202,199,220,95,79,70,58, 187,175,61,172,86,48,189,198,92,96,205,67,78,198,179,56,55,191, 44,207,180,54,186,206,69,180,185,43,187,184,67,195,93,164,208,71, 156,229,163,44,24,156,168,71,23,235,166,144,173,207,149,221,237, 30,49,26}; Snd but_downSnd = snd_define(butdown); Snd but_upSnd = snd_define(butup); #endif /* X11_DISP */ goban-1.1.orig/src/i_finder.h0000644000175000017500000000043606035353012013671 0ustar alal/* * wmslib/src/but/i_finder.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for i_finder.c */ #ifndef _BUT_I_FINDER_H_ #define _BUT_I_FINDER_H_ 1 #endif /* _BUT_I_FINDER_H_ */ goban-1.1.orig/src/conn.c0000644000175000017500000003063310270067433013051 0ustar alal/* * src/client/conn.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #if HAVE_NETINET_IN_H #include #endif #if HAVE_SYS_IN_H #include #endif #if HAVE_SYS_INET_H #include #endif #include #if HAVE_ARPA_NAMESER_H #include #endif #if HAVE_RESOLV_H #include #endif #include #include #include #include #include #include #include #include "cgoban.h" #include "msg.h" #include "server.h" #ifdef _CLIENT_CONN_H_ LEVELIZATION ERROR #endif #include "conn.h" /********************************************************************** * Constants **********************************************************************/ #define TRACELOG 0 static const int defaultInLen = (8 * 1024); static const int defaultOutLen = 1024; /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut newNetData(void *packet, int fd); static void expandBuf(char **buf, int *size, int len); static int telnetMunge(CliConn *cc, int amtRead); static ButOut writeData(void *packet, int fd); static void sendNextCommand(CliConn *conn); static void transmitData(CliConn *cc, const char *str, int strLen); static void sockConn(CliConn *conn); static void progConn(CliConn *conn); /********************************************************************** * Functions **********************************************************************/ CliConn *cliConn_init(CliConn *cc, Cgoban *cg, int serverNum, CliServer protocol, uchar loChar, uchar hiChar, void (*newData)(void *packet, const char *dataIn, int dataLen), void *packet) { const char *cliDirect; assert(MAGIC(cg)); MAGIC_SET(cc); cc->cg = cg; cc->fd = -1; cc->inBuf = NULL; cc->outBuf = NULL; cc->err = cliConnErr_ok; cc->serverNum = serverNum; cc->server = protocol; cc->loginMode = TRUE; if (protocol == cliServer_igs) str_init(&cc->outMsgs); cliDirect = clp_getStrNum(cg->clp, "client.direct", serverNum); cc->directConn = (cliDirect[0] == 't'); if (cc->directConn) { sockConn(cc); } else { assert(cliDirect[0] == 'f'); progConn(cc); } if (cc->err != cliConnErr_ok) return(cc); fcntl(cc->fd, F_SETFL, O_NONBLOCK); butEnv_addFile(cg->env, BUT_READFILE, cc->fd, cc, newNetData); cc->inLen = 0; cc->telnetState = 0; cc->inBuf = wms_malloc(cc->inSize = defaultInLen); cc->outLen = 0; cc->outBuf = wms_malloc(cc->outSize = defaultOutLen); cc->promptReady = TRUE; if (loChar <= '\r') /* DON'T pass those damn \r's! */ loChar = '\r' + 1; cc->loChar = loChar; cc->hiChar = hiChar; cc->newData = newData; cc->packet = packet; return(cc); } CliConn *cliConn_deinit(CliConn *cc) { assert(MAGIC(cc)); if (cc->fd >= 0) { butEnv_rmFile(cc->cg->env, BUT_READFILE, cc->fd); close(cc->fd); } if (cc->inBuf) wms_free(cc->inBuf); if (cc->outBuf) wms_free(cc->outBuf); if (cc->server == cliServer_igs) str_deinit(&cc->outMsgs); MAGIC_UNSET(cc); return(cc); } static ButOut newNetData(void *packet, int fd) { CliConn *cc = packet; int amtRead, totalAmtRead, readLen, lineStart, lineEnd; assert(MAGIC(cc)); totalAmtRead = 0; do { if (cc->inLen + totalAmtRead + 1 >= cc->inSize) expandBuf(&cc->inBuf, &cc->inSize, cc->inLen); readLen = cc->inSize - (cc->inLen + totalAmtRead + 1); amtRead = read(cc->fd, cc->inBuf + cc->inLen, readLen); if (amtRead < 0) { if (errno == EAGAIN) amtRead = 0; else { cc->newData(cc->packet, NULL, errno); return(0); } } else if (amtRead == 0) { cc->newData(cc->packet, NULL, errno); return(0); } totalAmtRead += amtRead; } while (amtRead == readLen); totalAmtRead = telnetMunge(cc, totalAmtRead); if (totalAmtRead < 0) { cc->newData(cc->packet, NULL, EPIPE); return(0); } if (totalAmtRead > 0) { cc->inLen += totalAmtRead; assert(cc->inLen < cc->inSize); lineStart = 0; for (;;) { lineEnd = lineStart; while ((lineEnd < cc->inLen) && (cc->inBuf[lineEnd] != '\n')) ++lineEnd; if ((lineEnd < cc->inLen) || (cc->loginMode && (((lineEnd - lineStart == 7) && !strncmp(cc->inBuf + lineStart, "Login: ", 7)) || ((lineEnd - lineStart == 10) && !strncmp(cc->inBuf + lineStart, "Password: ", 10)) || ((lineEnd - lineStart == 3) && !strncmp(cc->inBuf + lineStart, "#> ", 3))))) { cc->inBuf[lineEnd] = '\0'; #if TRACELOG printf("%s\n", cc->inBuf + lineStart); #endif cc->newData(cc->packet, cc->inBuf + lineStart, lineEnd - lineStart); lineStart = lineEnd + 1; } else break; } if (lineStart >= cc->inLen) { cc->inLen = 0; } else if (lineStart > 0) { memmove(cc->inBuf, cc->inBuf + lineStart, cc->inLen - lineStart); cc->inLen -= lineStart; } } return(0); } static void expandBuf(char **buf, int *size, int len) { char *newBuf; int newSize; newSize = *size * 2; newBuf = wms_malloc(newSize); memcpy(newBuf, *buf, len); if (*buf) wms_free(*buf); *buf = newBuf; *size = newSize; } /* * This returns the number of bytes left after stripping out \r's, telnet * escape codes, etc. */ static int telnetMunge(CliConn *cc, int amtRead) { unsigned char c; char *src, *dest; src = dest = cc->inBuf + cc->inLen; while (src < cc->inBuf + cc->inLen + amtRead) { c = (unsigned char)*(src++); switch (cc->telnetState) { case 0: /* Haven't skipped over any control chars or telnet commands */ if (c == IAC) { cc->telnetState = 1; } else if ((c == '\n') || ((c >= cc->loChar) && (c <= cc->hiChar))) { *(dest++) = c; } break; case 1: /* got telnet IAC */ if (c == IP) { return(-1); /* ^C = logout */ } else if (c == DO) { cc->telnetState = 4; } else if ((c == WILL) || (c == DONT) || (c == WONT)) { cc->telnetState = 3; /* this is cheesy, but we aren't using 'em */ } else { cc->telnetState = 0; } break; case 3: /* some telnet junk we're ignoring */ cc->telnetState = 0; break; case 4: /* got IAC DO */ /* * We really should handle this right. But it doesn't seem to matter * when you're connecting to one of the servers. I know that it * doesn't matter if you're using NNGS, because I wrote the NNGS * network code and I don't know what these escapes are supposed * to mean. */ cc->telnetState = 0; break; default: assert(0); } } return(dest - (cc->inBuf + cc->inLen)); } void cliConn_send(CliConn *conn, const char *str) { #if TRACELOG printf("***SEND {\n%s***SEND }\n", str); #endif if ((conn->server == cliServer_nngs) || conn->loginMode) { transmitData(conn, str, strlen(str)); } else { str_catChars(&conn->outMsgs, str); if (conn->promptReady) sendNextCommand(conn); } } void cliConn_prompt(CliConn *conn) { if (conn->server == cliServer_igs) { conn->promptReady = TRUE; sendNextCommand(conn); } } /* * The IGS has a bug where only the first command in a TCP packet is executed; * the rest are ignored. Yes, it really is that stupid. Here I take out * a single command and transmit it. If you're connected to the NNGS, then * this is all unnecessary so cliConn_send() would have jumped straight * to transmitData(). */ static void sendNextCommand(CliConn *conn) { const char *crPos; int sendLen; Str temp; assert(conn->server == cliServer_igs); assert(conn->promptReady); if (str_len(&conn->outMsgs)) { crPos = strchr(str_chars(&conn->outMsgs), '\n'); assert(crPos != NULL); sendLen = (crPos - str_chars(&conn->outMsgs)) + 1; transmitData(conn, str_chars(&conn->outMsgs), sendLen); if (sendLen == str_len(&conn->outMsgs)) { str_clip(&conn->outMsgs, 0); } else { str_initStr(&temp, &conn->outMsgs); str_copyCharsLen(&conn->outMsgs, str_chars(&temp) + sendLen, str_len(&temp) - sendLen); str_deinit(&temp); } conn->promptReady = FALSE; } } static void transmitData(CliConn *cc, const char *str, int strLen) { int amtWritten; assert(MAGIC(cc)); if (cc->outLen == 0) { amtWritten = write(cc->fd, str, strLen); if (amtWritten < 0) amtWritten = 0; } else amtWritten = 0; if (amtWritten < strLen) { while (cc->outLen + amtWritten > cc->outSize) expandBuf(&cc->outBuf, &cc->outSize, cc->outLen); memcpy(cc->outBuf + cc->outLen, str + amtWritten, strLen - amtWritten); if (cc->outLen == 0) { butEnv_addFile(cc->cg->env, BUT_WRITEFILE, cc->fd, cc, writeData); } cc->outLen += strLen - amtWritten; } } static ButOut writeData(void *packet, int fd) { CliConn *cc = packet; int amtWritten; assert(MAGIC(cc)); assert(cc->fd == fd); assert(cc->outLen > 0); amtWritten = write(fd, cc->outBuf, cc->outLen); if (amtWritten < 0) amtWritten = 0; if (amtWritten == cc->outLen) { cc->outLen = 0; butEnv_rmFile(cc->cg->env, BUT_WRITEFILE, cc->fd); } else { memmove(cc->outBuf, cc->outBuf + amtWritten, cc->outLen - amtWritten); cc->outLen -= amtWritten; } return(0); } static void sockConn(CliConn *conn) { Cgoban *cg = conn->cg; const char *address, *portStr; struct hostent *hp; struct sockaddr_in sa; int port; bool lookupNeeded; int matches, addrA, addrB, addrC, addrD; address = clp_getStrNum(cg->clp, "client.address", conn->serverNum); matches = sscanf(address, "%d.%d.%d.%d", &addrA, &addrB, &addrC, &addrD); lookupNeeded = (matches != 4); portStr = clp_getStrNum(cg->clp, "client.port", conn->serverNum); port = atoi(portStr); conn->fd = socket(AF_INET, SOCK_STREAM, 0); if (conn->fd < 0) { conn->err = cliConnErr_openSocket; conn->errOut.errNum = errno; return; } sa.sin_family = AF_INET; if (lookupNeeded) { if ((hp = gethostbyname(address)) == NULL) { close(conn->fd); conn->fd = -1; conn->err = cliConnErr_lookup; conn->errOut.serverName = address; return; } memcpy(&sa.sin_addr, hp->h_addr, hp->h_length); } else { sa.sin_addr.s_addr = htonl((addrA << IN_CLASSA_NSHIFT) | (addrB << IN_CLASSB_NSHIFT) | (addrC << IN_CLASSC_NSHIFT) | addrD); } sa.sin_port = htons(port); if (connect(conn->fd, (struct sockaddr *)&sa, sizeof(sa)) < 0) { close(conn->fd); conn->fd = -1; conn->err = cliConnErr_connect; conn->errOut.errNum = errno; return; } } static void progConn(CliConn *conn) { Cgoban *cg = conn->cg; const char *cmd; int sockets[2]; int result; int pid, fd; cmd = clp_getStrNum(cg->clp, "client.connCmd", conn->serverNum); result = socketpair(AF_UNIX, SOCK_STREAM, 0, sockets); if (result < 0) { conn->err = cliConnErr_connect; conn->errOut.errNum = errno; return; } pid = fork(); if (pid < 0) { close(sockets[0]); close(sockets[1]); conn->err = cliConnErr_connect; conn->errOut.errNum = errno; return; } if (pid == 0) { /* The child. */ for (fd = 0; fd < 100; ++fd) { if ((fd != 2) && /* Don't close stderr! */ (fd != sockets[1])) close(fd); } if (dup(sockets[1]) != 0) { fprintf(stderr, "I couldn't fdup into stdin!\n"); exit(1); } if (dup(sockets[1]) != 1) { fprintf(stderr, "I couldn't fdup into stdout!\n"); exit(1); } result = system(cmd); if (result != 0) { Str msg; str_init(&msg); str_print(&msg, msg_commandError, cmd, result); fprintf(stderr, "%s\n", str_chars(&msg)); /* * createMsgWindow doesn't work here, since I'm in a subprocess. * Oh well. * * cgoban_createMsgWindow(cg, "Cgoban Error", str_chars(&msg)); */ str_deinit(&msg); } exit(result); } else { close(sockets[1]); conn->fd = sockets[0]; } } goban-1.1.orig/src/look.h0000644000175000017500000000261210270070127013053 0ustar alal/* * src/client/look.h, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_LOOK_H_ #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _GOBAN_H_ #include "goban.h" #endif #ifndef _CLIENT_SERVER_H_ #include "server.h" #endif #ifdef _CLIENT_LOOK_H_ LEVELIZATION ERROR #endif #define _CLIENT_LOOK_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliLook_ready, cliLook_info, cliLook_body } CliLookStatus; typedef struct CliLook_struct { Cgoban *cg; CliServer server; int handicap, captures[2]; float komi; Str name[2], rank[2], boardData; CliLookStatus state; bool skip; MAGIC_STRUCT } CliLook; typedef struct CliLookChild_struct { Cgoban *cg; GoGame *game; Goban *goban; MAGIC_STRUCT } CliLookChild; /********************************************************************** * Functions **********************************************************************/ extern void cliLook_init(CliLook *look, Cgoban *cg, CliServer server); extern void cliLook_gotData(CliLook *look, const char *buf); extern void cliLook_deinit(CliLook *look); #endif /* _CLIENT_BOARD_H_ */ goban-1.1.orig/src/text.c0000644000175000017500000000771610270061557013107 0ustar alal/* * wmslib/src/but/text.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include /********************************************************************** * Data Structures **********************************************************************/ typedef struct Txt_struct { Str text; ButTextAlign align; int font; int color; bool stipple; } Txt; /********************************************************************** * Forward Declarations **********************************************************************/ static void draw(But *but, int x,int y, int w,int h); static ButOut destroy(But *but); /********************************************************************** * Globals **********************************************************************/ static const ButAction action = { NULL,NULL,NULL,NULL, NULL,NULL, draw, destroy, but_flags, NULL}; /********************************************************************** * Functions **********************************************************************/ But *butText_create(ButWin *win, int layer, int flags, const char *text, ButTextAlign align) { But *but; Txt *t; t = wms_malloc(sizeof(Txt)); but = but_create(win, t, &action); but->layer = layer; but->flags = flags; str_init(&t->text); t->align = align; t->font = 0; t->color = BUT_FG; t->stipple = FALSE; but_init(but); if (text != NULL) butText_set(but, text); return(but); } void butText_set(But *but, const char *text) { Txt *t = but->iPacket; assert(but->action == &action); if (text == NULL) text = ""; str_copyChars(&t->text, text); but_draw(but); } void butText_setFont(But *but, int fontnum) { Txt *t = but->iPacket; assert(but->action == &action); t->font = fontnum; but_draw(but); } void butText_setColor(But *but, int color, bool stipple) { Txt *t = but->iPacket; if (color == BUT_NOCHANGE) color = t->color; if ((color != t->color) || (stipple != t->stipple)) { t->color = color; t->stipple = stipple; but_draw(but); } } static ButOut destroy(But *but) { Txt *t = but->iPacket; str_deinit(&t->text); return(0); } static void draw(But *but, int x,int y, int w,int h) { Txt *t = but->iPacket; ButEnv *env = but->win->env; XFontStruct *fs = env->fonts[t->font]; int th; const char *text = str_chars(&t->text); if (t->stipple) { XSetFillStyle(env->dpy, env->gc, FillStippled); XSetForeground(env->dpy, env->gc, env->colors[t->color]); } else { butEnv_setXFg(env, t->color); } x = but->x; if (t->align == butText_center) x += (but->w - butEnv_textWidth(env, text, t->font)) / 2; else if (t->align == butText_right) x += (but->w - butEnv_textWidth(env, text, t->font)); th = fs->ascent + fs->descent; butWin_write(but->win, x, but->y + (but->h - th) / 2, text, t->font); if (t->stipple) { butEnv_stdFill(env); } } int butText_resize(But *but, int x, int y, int h) { Txt *txt = but->iPacket; int w = butEnv_textWidth(but->win->env, str_chars(&txt->text), txt->font); switch (txt->align) { case butText_left: break; case butText_center: x -= w/2; break; case butText_right: x -= w; break; default: break; } but_resize(but, x, y, w, h); return(w); } const char *butText_get(But *but) { Txt *t; assert(MAGIC(but)); assert(but->action == &action); t = but->iPacket; return(str_chars(&t->text)); } #endif goban-1.1.orig/src/menu.c0000644000175000017500000004611610270060147013056 0ustar alal/* * wmslib/src/but/menu.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. * * Known problems: * The first and last options MUST be text, not a divider. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include #include #include /********************************************************************** * Data structures **********************************************************************/ typedef struct Ol_struct { /* Option List */ Str text; int x,y,w,h; uint flags; } Ol; typedef struct menu_struct { int fgpic, bgpic; int cval, nvals, nbreaks, tval, xoff; int last_w, llayer; bool active, up, skip_clicks; bool menu_was_twitched; bool clickOpen; /* TRUE if it's open because of a click. */ Time pressTime; const char *title; Ol *options; But *child, *parent; ButOut (*callback)(But *but, int value); } Menu; /********************************************************************** * Forward Declarations **********************************************************************/ static int menu_width(But *but); static ButOut smmove(But *but, int x, int y); static ButOut smleave(But *but); static ButOut smpress(But *but, int butnum, int x, int y); static void sdraw(But *but, int x,int y, int w,int h); static ButOut sdestroy(But *but); static void snewflags(But *but, uint flags); static But *lcreate(But *smenu, bool local); static ButOut lmmove(But *but, int x, int y); static ButOut lmleave(But *but); static ButOut lmpress(But *but, int butnum, int x, int y); static ButOut lmrelease(But *but, int butnum, int x, int y); static void ldraw(But *but, int x,int y, int w,int h); static ButOut ldestroy(But *but); static void lnewflags(But *but, uint flags); static ButOut netMsg(But *but, void *msg, int msgLen); static But *create(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt, bool up); /********************************************************************** * Globals **********************************************************************/ static const ButAction saction = { smmove, smleave, smpress, NULL, NULL, NULL, sdraw, sdestroy, snewflags, netMsg}; static const ButAction laction = { lmmove, lmleave, lmpress, lmrelease, NULL, NULL, ldraw, ldestroy, lnewflags, NULL}; char butMenu_dummy = '\0'; /********************************************************************** * Functions **********************************************************************/ But *butMenu_upCreate(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt) { return(create(func, packet, win, layer, toplayer, flags, title, optlist, cur_opt, TRUE)); } But *butMenu_downCreate(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt) { return(create(func, packet, win, layer, toplayer, flags, title, optlist, cur_opt, FALSE)); } static But *create(ButOut (*callback)(But *but, int value), void *packet, ButWin *win, int layer, int toplayer, int flags, const char *title, const char *optlist[], int cur_opt, bool up) { Menu *m; But *but; int i; m = wms_malloc(sizeof(Menu)); but = but_create(win, m, &saction); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; m->callback = callback; m->fgpic = BUT_FG; m->bgpic = BUT_BG; m->cval = cur_opt; m->nbreaks = 0; for (i = 0; optlist[i] != BUTMENU_OLEND; ++i) if (optlist[i] == BUTMENU_OLBREAK) ++m->nbreaks; m->nvals = i; m->options = wms_malloc((i+1) * sizeof(Ol)); i = 0; do { if (optlist[i] == BUTMENU_OLBREAK) { str_init(&m->options[i].text); m->options[i].flags = BUTMENU_BREAK; } else if (optlist[i] == BUTMENU_OLEND) { str_init(&m->options[i].text); m->options[i].flags = BUTMENU_END; } else { str_initChars(&m->options[i].text, optlist[i]); m->options[i].flags = 0; } } while (optlist[i++] != BUTMENU_OLEND); m->llayer = toplayer; m->tval = 0; m->active = FALSE; m->up = up; m->menu_was_twitched = FALSE; m->title = title; m->last_w = 0; m->child = NULL; m->parent = but; but_init(but); return(but); } void butMenu_setText(But *but, const char *title, const char *optlist[], int newopt) { Menu *m = but->iPacket; int i; if (title == NULL) title = m->title; m->title = title; m->nbreaks = 0; for (i = 0; optlist[i] != BUTMENU_OLEND; ++i) if (optlist[i] == BUTMENU_OLBREAK) ++m->nbreaks; m->nvals = i; wms_free(m->options); m->options = wms_malloc((i+1) * sizeof(Ol)); i = 0; do { if (optlist[i] == BUTMENU_OLBREAK) { str_init(&m->options[i].text); m->options[i].flags = BUTMENU_BREAK; } else if (optlist[i] == BUTMENU_OLEND) { str_init(&m->options[i].text); m->options[i].flags = BUTMENU_END; } else { str_copyChars(&m->options[i].text, optlist[i]); m->options[i].flags = 0; } } while (optlist[i++] != BUTMENU_OLEND); if (newopt != BUT_NOCHANGE) m->cval = newopt; but_draw(but); } void butMenu_setFlags(But *but, int optnum, uint flags) { Menu *m = but->iPacket; m->options[optnum].flags = flags; but_draw(but); } /* Cannot be called when the menu is open. */ void butMenu_set(But *but, int new_opt) { Menu *m = but->iPacket; assert(but->action == &saction); m->cval = new_opt; but_draw(but); } int butMenu_get(But *but) { Menu *m = but->iPacket; return(m->cval); } void butMenu_setColor(But *but, int fg, int bg) { Menu *m = but->iPacket; assert(but->action == &saction); m->fgpic = fg; m->bgpic = bg; but_draw(but); } static ButOut smmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; int butbw = but->win->env->stdButBw; if ((x >= but->x + butbw) && (x < but->x + but->w - butbw) && (y >= but->y + butbw) && (y < but->y + but->h - butbw)) { newflags |= BUT_TWITCHED; } else { newflags &= ~BUT_TWITCHED; if (!newflags & BUT_LOCKED) retval &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut smleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) but_newFlags(but, newflags); return(BUTOUT_CAUGHT); } static ButOut smpress(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Menu *m = but->iPacket; if (!(newflags & BUT_TWITCHED)) retval &= ~BUTOUT_CAUGHT; else { if (butnum == 1) { newflags |= BUT_PRESSED; m->pressTime = but->win->env->eventTime; } else retval |= BUTOUT_ERR; } if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static void sdraw(But *but, int x,int y, int w,int h) { ButWin *win = but->win; Menu *m = but->iPacket; uint flags = but->flags; int bwdiff, sbw, bbw; if (m->child == NULL) { bbw = win->env->stdButBw; if (bbw == 0) bbw = 1; sbw = (bbw + 1) / 2; bwdiff = bbw - sbw; but_drawBox(win, but->x, but->y, but->w, but->h, 0, bwdiff, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); but_drawCt(win, flags, m->fgpic, m->bgpic, BUT_PBG, but->x+bwdiff, but->y+bwdiff, but->w-2*bwdiff, but->h/2 - bwdiff, sbw, m->title, BUT_SLEFT|BUT_SRIGHT, 0); but_drawCt(win, flags, BUT_FG,BUT_BG,BUT_PBG, but->x+bwdiff, but->y + but->h/2, but->w-2*bwdiff, but->h - but->h/2 - bwdiff, sbw, str_chars(&m->options[m->cval].text), BUT_SLEFT|BUT_SRIGHT, 0); } } static ButOut sdestroy(But *but) { Menu *m = but->iPacket; int i; if (m->child != NULL) but_destroy(m->child); for (i = 0; i <= m->nvals; ++i) { str_deinit(&m->options[i].text); } wms_free(m->options); wms_free(but->iPacket); return(0); } static void snewflags(But *but, uint flags) { Menu *m = but->iPacket; bool local; if (flags & (BUT_PRESSED|BUT_NETPRESS)) { if (m->child == NULL) { local = flags & BUT_PRESSED; but->flags = flags & ~(BUT_PRESSED|BUT_NETPRESS); m->child = lcreate(but, local); } } else { but->flags = flags; } } /* * If local is TRUE, then make the popup unpressable. */ static But *lcreate(But *smenu, bool local) { But *but; Menu *m = smenu->iPacket; int sh, i, x,y, w,h; ButWin *win = smenu->win; ButEnv *env = win->env; int butbw = env->stdButBw; h = (m->nvals - m->nbreaks) * (sh = (env->font0h + butbw * 2)) + butbw * 3 + smenu->h / 2 + m->nbreaks * ((butbw & ~1) + butbw); but = but_create(win, m, &laction); but->uPacket = smenu->uPacket; but->layer = m->llayer; but->x = smenu->x; but->y = smenu->y; if (m->up) but->y += smenu->h - h; but->w = smenu->w; but->h = h; but->flags = BUT_DRAWABLE | BUT_OPAQUE; if (local) but->flags |= BUT_PRESSABLE | BUT_PRESSED | BUT_LOCKED | BUT_TWITCHED; but->keys = NULL; x = but->x + env->stdButBw; y = but->y + m->parent->h/2 + 2*butbw; w = but->w - 2*env->stdButBw; h = env->font0h + env->stdButBw; for (i = 0; i < m->nvals; ++i) { if (m->options[i].flags & BUTMENU_BREAK) { y += (env->stdButBw & ~1) + env->stdButBw; } else { m->options[i].x = x; m->options[i].y = y; m->options[i].w = w; m->options[i].h = h; y += env->font0h + env->stdButBw * 2; } } m->tval = m->cval; m->last_w = 0; m->clickOpen = FALSE; if (local) { x = but->x + but->w/2; y = m->options[m->cval].y - butbw + sh/2; while (win->parent != NULL) { x += win->xOff; y += win->yOff; win = win->parent; } XWarpPointer(env->dpy, None, win->win, 0,0,0,0, x, y); } m->skip_clicks = TRUE; but_init(but); snd_play(&butMenu_openSnd); return(but); } static ButOut lmmove(But *but, int x, int y) { ButOut result = 0; int msel, m_y, newflags = but->flags, otval; Menu *m = but->iPacket; ButEnv *env = but->win->env; int butbw = env->stdButBw; bool click = TRUE; StdInt32 netNewVal; if (m->skip_clicks) { click = FALSE; } if (but->flags & BUT_PRESSED) result |= BUTOUT_CAUGHT; for (msel = 0; msel < m->nvals; ++msel) { if (!(m->options[msel].flags & BUTMENU_BREAK)) { m_y = m->options[msel].y - butbw; if ((y > m_y + butbw / 2) && (y <= m_y + butbw / 2 + 2*butbw + env->font0h)) break; } } if (msel < m->nvals) { if (msel == m->cval) m->skip_clicks = FALSE; if (m->options[msel].flags & BUTMENU_DISABLED) msel = m->nvals; } if (msel == m->nvals) newflags &= ~BUT_TWITCHED; else newflags |= BUT_TWITCHED; if (msel != m->tval) { if (m->parent->id >= 0) { netNewVal = int_stdInt32(msel); butRnet_butSpecSend(m->parent, &netNewVal, sizeof(netNewVal)); } otval = m->tval; m->tval = msel; if (((newflags ^ but->flags) & ~BUT_TWITCHED) == 0) { /* Otherwise, it will be drawn by the setflags call. */ if (otval != m->nvals) { butWin_redraw(but->win, m->options[otval].x,m->options[otval].y-butbw, m->options[otval].w,m->options[otval].h+butbw*2); } if (msel != m->nvals) { butWin_redraw(but->win, m->options[msel].x,m->options[msel].y-butbw, m->options[msel].w,m->options[msel].h+butbw*2); } } if (click) snd_play(&but_downSnd); } if (newflags != but->flags) but_newFlags(but, newflags); return(result); } static ButOut lmleave(But *but) { Menu *m = but->iPacket; StdInt32 msg; if (m->parent->id >= 0) { msg = int_stdInt32(-1); butRnet_butSpecSend(m->parent, &msg, sizeof(msg)); } but_destroy(but); snd_play(&butMenu_closeSnd); return(BUTOUT_CAUGHT); } static ButOut lmpress(But *but, int butnum, int x, int y) { Menu *m = but->iPacket; if (m->clickOpen) { m->clickOpen = FALSE; snd_play(&but_upSnd); return(BUTOUT_CAUGHT); } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } static ButOut lmrelease(But *but, int butnum, int x, int y) { int result = BUTOUT_CAUGHT; Menu *m = but->iPacket; StdInt32 msg; if (but->flags & BUT_PRESSABLE) { if (m->pressTime + BUT_DCLICK > but->win->env->eventTime) { /* Open this with a click. */ m->clickOpen = TRUE; return(BUTOUT_CAUGHT); } if (m->parent->id >= 0) { msg = int_stdInt32(-1); butRnet_butSpecSend(m->parent, &msg, sizeof(msg)); } } but_destroy(but); if (m->tval == m->nvals) { result |= BUTOUT_ERR; } else { m->cval = m->tval; if (m->callback != NULL) result |= m->callback(m->parent, m->cval); } snd_play(&butMenu_closeSnd); return(result); } static void ldraw(But *but, int x,int y, int w,int h) { Menu *m = but->iPacket; ButWin *win = but->win; ButEnv *env = win->env; But *sbut = m->parent; int tx, ty, tw, th, i; uint butbw = env->stdButBw; int new_y, old_y; if (butbw == 0) butbw = 1; /* If it resizes, you must recalculate how far into the button you should * start drawing the options. Start with last_w set to 0 to force * this to happen on the first redraw. */ if (m->last_w != but->w) { m->last_w = but->w; m->xoff = (but->w - menu_width(but)) / 2; } /* Draw the title. */ tw = sbut->w; th = sbut->h / 2; /* Don't forget: sbut is two boxes high! */ if (y < m->options[0].y) { but_drawCt(but->win, BUT_PRESSABLE, m->fgpic, m->bgpic, 0, but->x, but->y, tw, th, butbw, m->title, BUT_SLEFT|BUT_SRIGHT, 0); } /* The box around the options. */ if ((y < m->options[0].y-butbw) || (y+h > m->options[m->nvals-1].y + m->options[m->nvals-1].h+butbw) || (x < m->options[0].x-butbw) || (x > m->options[0].x + m->options[0].w+butbw)) { but_drawBox(win, but->x, but->y + th, but->w, but->h - th, 0, (butbw+1)/2, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); } new_y = but->y + th + butbw; /* Top of the current selection. */ old_y = but->y + th + (butbw+1) / 2; /* Fill in the background for the options. */ butEnv_setXFg(env, BUT_BG); XFillRectangle(env->dpy, win->win, env->gc, but->x + butbw - win->xOff, new_y - win->yOff, but->w - butbw * 2, but->y + but->h - new_y - butbw); for (i = 0; i <= m->nvals; ++i) { if (m->options[i].flags & (BUTMENU_BREAK | BUTMENU_END)) { /* Draw the inner box around a group of options. */ tx = but->x + (butbw+1)/2; ty = old_y; tw = but->w - ((butbw+1) & ~1); th = new_y - old_y + butbw + (butbw / 2); if ((ty < y+h) && (ty+th >= y) && ((ty+butbw/2 > y) || (ty+th-butbw/2 < y+h) || (tx+butbw/2 > x) || (tx+tw-butbw/2 < x+w))) but_drawBox(win, tx,ty, tw,th, 0, butbw / 2, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); old_y = new_y + butbw + butbw/2; new_y += (butbw & ~1) + butbw; } else { /* Draw the text for this option. */ /* If it's selected, highlight behind it. */ if (i == m->tval) { if ((m->options[i].y-butbw <= y+h) && (m->options[i].y+m->options[i].h+butbw > y)) { but_drawBox(win, but->x + butbw, new_y, but->w - 2*butbw, env->font0h + 3*butbw, 0, butbw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); butEnv_setXFg(env, BUT_HIBG); XFillRectangle(env->dpy, win->win, env->gc, but->x + 2*butbw - win->xOff, new_y + butbw - win->yOff, but->w - 4*butbw, env->font0h + butbw); } } if ((m->options[i].y <= y+h) && (m->options[i].y+m->options[i].h > y)) { if (m->options[i].flags & BUTMENU_DISABLED) { XSetFillStyle(env->dpy, env->gc, FillStippled); XSetForeground(env->dpy, env->gc, env->colors[BUT_FG]); } else butEnv_setXFg(env, BUT_FG); butWin_write(win, but->x + m->xoff, m->options[i].y + butbw/2, str_chars(&m->options[i].text), 0); if (m->options[i].flags & BUTMENU_DISABLED) { butEnv_stdFill(env); } } new_y += env->font0h + butbw*2; } } } static ButOut ldestroy(But *but) { ButWin *win = but->win; ButEnv *env = win->env; Menu *m = but->iPacket; But *sbut = m->parent; int x, y; int minX, minY; minX = but->x; minY = but->y; x = sbut->x + sbut->w/2; y = sbut->y + sbut->h/2; while (win->parent != NULL) { minX += win->xOff; x += win->xOff; minY += win->yOff; y += win->yOff; win = win->parent; } XWarpPointer(env->dpy, win->win, win->win, minX, minY, but->w, but->h, x, y); m->child = NULL; return(0); } static void lnewflags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if (((flags ^ ofl) & ~BUT_TWITCHED) != 0) but_draw(but); } static int menu_width(But *but) { Menu *m = but->iPacket; ButEnv *env = but->win->env; int i, maxw, tw; maxw = butEnv_textWidth(env, m->title, 0); for (i = 0; !(m->options[i].flags & BUTMENU_END); ++i) { if (!(m->options[i].flags & BUTMENU_BREAK)) { tw = butEnv_textWidth(env, str_chars(&m->options[i].text), 0); if (tw > maxw) maxw = tw; } } return(maxw); } static ButOut netMsg(But *but, void *msg, int msgLen) { StdInt32 *i = msg; int msgVal = stdInt32_int(*i); int ctval, butbw = butEnv_stdBw(but->win->env); Menu *m = but->iPacket; ButOut result = 0; assert(msgLen == sizeof(StdInt32)); if (msgVal < 0) result |= lmrelease(m->child, 0,0,0); else { snd_play(&but_downSnd); ctval = m->tval; m->tval = msgVal; if (ctval != m->nvals) { butWin_redraw(but->win, m->options[ctval].x, m->options[ctval].y-butbw, m->options[ctval].w,m->options[ctval].h+butbw*2); } if (msgVal != m->nvals) { butWin_redraw(but->win, m->options[msgVal].x, m->options[msgVal].y-butbw, m->options[msgVal].w, m->options[msgVal].h+butbw*2); } } return(result); } void butMenu_setOptionName(But *but, const char *new, int entryNum) { Menu *m; assert(but->action == &saction); m = but->iPacket; assert(entryNum < m->nvals); str_copyChars(&m->options[entryNum].text, new); if (entryNum == m->cval) but_draw(but); } #endif goban-1.1.orig/src/sgfMap.h0000644000175000017500000000506206055210446013334 0ustar alal/* * src/sgfMap.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SGFMAP_H_ #define _SGFMAP_H_ 1 #ifndef _CGBUTS_H_ #include "cgbuts.h" #endif #ifndef _SGF_H_ #include "sgf.h" #endif /********************************************************************** * Constants **********************************************************************/ /********************************************************************** * Data types **********************************************************************/ typedef enum { sgfMap_next, sgfMap_prev } SgfMapDirection; typedef enum { sgfMap_black, sgfMap_white, sgfMap_bPass, sgfMap_wPass, sgfMap_edit, sgfMap_none } SgfMapType; #define SGFMAPFLAGS_MARKED 0x01 #define SGFMAPFLAGS_MAIN 0x02 #define SGFMAPFLAGS_CONNL 0x04 #define SGFMAPFLAGS_CONNR 0x08 #define SGFMAPFLAGS_CONNU 0x10 #define SGFMAPFLAGS_CONND 0x20 #define SGFMAPFLAGS_CONNDR 0x40 #define SGFMAPFLAGS_CONNUL 0x80 #define SGFMAPFLAGS_CONN (SGFMAPFLAGS_CONNL | SGFMAPFLAGS_CONNR | \ SGFMAPFLAGS_CONNU | SGFMAPFLAGS_CONND | \ SGFMAPFLAGS_CONNDR | SGFMAPFLAGS_CONNUL) typedef struct SgfMapElem_struct { SgfElem *node; SgfMapType type; uint flags; int moveNum; } SgfMapElem; typedef struct SgfMap_struct { Cgbuts *cgbuts; ButOut (*callback)(But *but, int newNodeNum); int mapW, mapH, maxW, maxH; int activeX, activeY; /* [0,0] = ul node, [1,0] = next node, etc. */ int pressX, pressY; /* [0,0] = ul node, [1,0] = next node, etc. */ int activeCtrX, activeCtrY; /* In pixels. */ SgfMapElem *els; MAGIC_STRUCT } SgfMap; /********************************************************************** * Functions **********************************************************************/ extern But *sgfMap_create(Cgbuts *b, ButOut (*callback)(But *but, int newNodeNum), void *packet, ButWin *win, int layer, int flags, Sgf *sgf); extern void sgfMap_resize(But *but, int x, int y); extern void sgfMap_newActive(But *but, SgfElem *new); #define sgfMap_activeCtrX(b) (((SgfMap *)(b->iPacket))->activeCtrX) #define sgfMap_activeCtrY(b) (((SgfMap *)(b->iPacket))->activeCtrY) extern bool sgfMap_changeVar(But *but, SgfMapDirection dir); extern void sgfMap_remap(But *but, Sgf *sgf); extern bool sgfMap_newNode(But *but, SgfElem *new); extern void sgfMap_changeNode(But *but, SgfElem *changed); extern void sgfMap_setMapPointer(But *but, SgfElem *activeElem); #endif /* _sgfMap_H_ */ goban-1.1.orig/src/match.h0000644000175000017500000000427510270065364013221 0ustar alal/* * src/client/match.h, part of Complete Goban (player program) * Copyright (C) 1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_MATCH_H_ #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #define _CLIENT_MATCH_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef struct CliMatch_struct CliMatch; typedef enum { cliMatch_nil, cliMatch_sent, cliMatch_recvd } CliMatchState; struct CliMatch_struct { CliMatch *next, **prev; CliData *data; CliMatchState state; ButWin *win; But *bg; But *title; But *namesBox; But *wBox, *wTitle; But *bBox, *bTitle; But *swap; But *rulesBox; But *sizeStr, *sizeIn, *sizeDown, *sizeUp; But *hcapStr, *hcapIn, *hcapDown, *hcapUp; But *komiStr, *komiIn, *komiDown, *komiUp; int size, hcap; float komi; But *timeBox; But *mainStr, *mainIn, *mainDown1, *mainDown5, *mainUp1, *mainUp5; But *byStr, *byIn, *byDown1, *byDown5, *byUp1, *byUp5; But *freeGame, *freeTitle; int mainTime, byTime; But *help, *ok, *cancel; Str wName, bName; bool meFirst; MAGIC_STRUCT }; /********************************************************************** * Functions **********************************************************************/ extern CliMatch *cliMatch_create(CliData *data, const char *oppName, CliMatch **next, int rankDiff); extern CliMatch *cliMatch_matchCommand(CliData *data, const char *command, CliMatch **next, int rankDiff); extern void cliMatch_declineCommand(CliMatch *match, const char *buf); extern void cliMatch_destroy(CliMatch *match); /* * If oppName is non-NULL, then destroyChain will fill in hcap etc. with * the game results if it finds the appropriate match form. * It returns TRUE if it does find the right form, FALSE otherwise. */ extern bool cliMatch_destroyChain(CliMatch *match, const char *oppName, int *hcap, float *komi, bool *free); extern void cliMatch_extraInfo(CliMatch *match, const char *oppName, int hcap, float komi, bool free); #endif /* _CLIENT_MATCH_H_ */ goban-1.1.orig/src/client_main.h0000644000175000017500000000424210270065364014401 0ustar alal/* * src/client/main.h, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_MAIN_H_ #ifndef _CGOBAN_H_ #include "../cgoban.h" #endif #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _CLIENT_BOARD_H_ #include "board.h" #endif #ifndef _CLIENT_GAME_H_ #include "game.h" #endif #ifndef _CLIENT_PLAYER_H_ #include "player.h" #endif #ifndef _CLIENT_LOOK_H_ #include "look.h" #endif #ifdef _CLIENT_MAIN_H_ #error LEVELIZATION ERROR #endif #define _CLIENT_MAIN_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define MAIN_HISTORYMAXLEN 100 /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliMain_idle, cliMain_inFile, cliMain_gotWho } CliMainState; typedef struct CliMain_struct { CliData *data; ButWin *win; But *bg, *quit, *help, *games, *players, *tin; But *userState, *looking, *open, *closed; AbutTerm *script; AbutMsg *message; CliGameList gameList; CliPlayerList playerList; CliMainState state; bool promptVisible; CliLook look; Str outStr; const char *fileEnd; ButWin *iWin; But *iBg, *iPic; Str history[MAIN_HISTORYMAXLEN]; int historyLen, historyBeingFilled, historyBeingViewed; void (*destroyCallback)(struct CliMain_struct *main, void *packet); void *packet; MAGIC_STRUCT } CliMain; /********************************************************************** * Functions **********************************************************************/ extern CliMain *cliMain_create(CliData *cd, void (*destroyCallback)(CliMain *main, void *packet), void *packet); extern void cliMain_activate(CliMain *main); extern void cliMain_message(CliMain *main, const char *message); extern void cliMain_clearMessage(CliMain *main); extern void cliMain_destroy(CliMain *cm); extern void cliMain_log(CliMain *main, const char *str); #endif /* _CLIENT_MAIN_H_ */ goban-1.1.orig/src/editTool.h0000644000175000017500000000426706065074341013713 0ustar alal/* * src/editTool.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _EDITTOOL_H_ #define _EDITTOOL_H_ 1 #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _SGF_H_ #include "sgf.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef enum { editTool_play, editTool_changeBoard, editTool_score, editTool_triangle, editTool_square, editTool_circle, editTool_letter, editTool_number } EditTool; #define editTool_max (editTool_number + 1) typedef struct EditToolWin_struct { Cgoban *cg; bool modified; ButWin *toolWin, *toolIWin; AbutSwin *mapWin; But *toolBg, *toolIBg, *toolIPic; But *toolSel, *selDesc[editTool_max]; But *toolBox, *toolName, *toolDesc1, *toolDesc2; But *help, *killNode, *moveNode; But *mapBg, *sgfMap, *prevVar, *nextVar; EditTool tool; GoStone lastColor; /* Color of the editTool_play icon. */ Sgf *sgf; void (*quitRequested)(void *packet); ButOut (*newToolCallback)(void *packet); ButOut (*mapCallback)(void *packet, int nodeNum); void *packet; MAGIC_STRUCT } EditToolWin; /********************************************************************** * Functions **********************************************************************/ extern void editToolWin_init(EditToolWin *etw, Cgoban *cg, Sgf *sgf, void (*quitRequested)(void *packet), ButOut (*newToolCallback)(void *packet), ButOut (*newActiveNode)(void *packet, int nodeNum), void *packet); extern void editToolWin_deinit(EditToolWin *etw); extern void editToolWin_newColor(EditToolWin *etw, GoStone color); extern void editToolWin_newTool(EditToolWin *etw, EditTool tool, bool propagate); extern void editToolWin_newActiveNode(EditToolWin *etw, SgfElem *newNode); extern void editToolWin_nodeAdded(EditToolWin *etw, SgfElem *newNode); extern ButOut editToolWin_shiftUpPressed(But *but, bool press); extern ButOut editToolWin_shiftDownPressed(But *but, bool press); #endif /* _EDITTOOL_H_ */ goban-1.1.orig/src/box.h0000644000175000017500000000350210270000151012664 0ustar alal/* * wmslib/src/but/box.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for but.c */ #ifndef _BUT_BOX_H_ #ifndef _BUT_BUT_H_ #include #endif #define _BUT_BOX_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define BUT_ALEFT 0x01 /* Arrows on left/right. */ #define BUT_ARIGHT 0x02 #define BUT_RLEFT 0x04 /* Rounded edges on left/right. */ #define BUT_RRIGHT 0x08 #define BUT_SLEFT 0x10 /* Square edges on left/right. */ #define BUT_SRIGHT 0x20 /********************************************************************** * Functions **********************************************************************/ /* Public. */ extern But *butBox_create(ButWin *win, int layer, int flags); extern void butBox_setColors(But *but, int ul, int lr); extern void butBox_setPixmaps(But *but, Pixmap ul, Pixmap lr); extern But *butBoxFilled_create(ButWin *win, int layer, int flags); extern void butBoxFilled_setColors(But *but, int ul, int lr, int c); extern void butBoxFilled_setPixmaps(But *but, Pixmap ul, Pixmap lr, Pixmap c); /* Private. */ extern void but_drawCtb(ButWin *win, int flags, int fgpic, int bgpic, int pbgpic, int x, int y, int w, int h, int bw, int angles); extern void but_drawCt(ButWin *win, int flags, int fgpic, int bgpic, int pbgpic, int x, int y, int w, int h, int bw, const char *text, int angles, int fontnum); /* If bstate is nonzero, invert the ul and lr colors. */ extern void but_drawBox(ButWin *win, int x, int y, int w, int h, int bstate, int bw, int angles, int ulcolor, int lrcolor, Pixmap ulmap, Pixmap lrmap); #endif /* _BUT_BOX_H_ */ goban-1.1.orig/src/canvas.c0000644000175000017500000003274010270001051013350 0ustar alal/* * wmslib/src/but/canvas.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #ifdef _BUT_CANVAS_H_ Levelization Error. #endif #include "canvas.h" /********************************************************************** * Data Types **********************************************************************/ typedef struct Can_struct { bool grabbed; int grab_mx,grab_my, grab_ox,grab_oy; ButWin *parent, *win; But *but; Pixmap pmap; void (*change)(void *packet, int xOff, int yOff, int w, int h, int viewW, int viewH); MAGIC_STRUCT } Can; /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static ButOut kpress(But *but, const char *keystr, KeySym sym); static ButOut krelease(But *but, const char *keystr, KeySym sym); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static bool reviseDims(Can *can); /********************************************************************** * Globals **********************************************************************/ static const ButAction action = { mmove, mleave, mpress, mrelease, kpress, krelease, draw, destroy, but_flags, NULL}; /********************************************************************** * Functions **********************************************************************/ ButWin *butCan_create(void *packet, ButWin *parent, int layer, ButWinFunc *resize, ButWinFunc *destroy, void (*change)(void *packet, int xOff, int yOff, int w, int h, int viewW, int viewH)) { ButEnv *env; ButWin *win; But *but; Can *can; assert(MAGIC(parent)); env = parent->env; assert(MAGIC(env)); win = wms_malloc(sizeof(ButWin)); can = wms_malloc(sizeof(Can)); but = but_create(parent, can, &action); MAGIC_SET(win); MAGIC_SET(can); MAGIC_SET(&win->butsNoDraw); win->parent = parent; win->parentBut = but; win->packet = packet; win->iPacket = can; win->win = None; win->physWin = butCan_xWin(parent); win->iconWin = NULL; win->name = NULL; win->iconic = FALSE; win->isIcon = FALSE; win->x = 0; win->y = 0; win->w = win->minW = win->maxW = win->logicalW = 0; win->h = win->minH = win->maxH = win->logicalH = 0; win->wStep = 1; win->hStep = 1; win->xOff = 0; win->yOff = 0; win->minWRatio = win->minHRatio = win->maxWRatio = win->maxHRatio = 0; win->resized = FALSE; win->resizeNeeded = FALSE; win->redrawReady = TRUE; win->redraws = NULL; win->numRedraws = win->maxRedraws = 0; win->id = 0; win->mapped = TRUE; win->unmap = NULL; win->map = NULL; win->resize = resize; win->destroy = destroy; win->quit = NULL; win->env = env; win->minLayer = 1; win->maxLayer = 0; win->butsNoDraw.buts = NULL; win->butsNoDraw.numButs = 0; win->butsNoDraw.maxButs = 0; win->butsNoDraw.dynamic = TRUE; win->lock = NULL; win->butIn = NULL; win->keyBut = NULL; win->numCols = 0; win->maxCols = 0; win->cols = NULL; butWin_addToTable(win); but->uPacket = packet; but->layer = layer; but->flags = BUT_DRAWABLE|BUT_PRESSABLE|BUT_OPAQUE; can->grabbed = FALSE; can->parent = parent; can->win = win; can->but = but; can->pmap = None; can->change = change; but_init(but); return(win); } void butCan_resizeView(ButWin *win, int x, int y, int w, int h, bool propagate) { int oldh, oldw, oldx, oldy; Can *can = win->iPacket; But *but = can->but; assert(MAGIC(win)); assert(MAGIC(can)); win->resized = TRUE; oldx = but->x; oldy = but->y; oldw = but->w; oldh = but->h; if (x == BUT_NOCHANGE) x = oldx; if (y == BUT_NOCHANGE) y = oldy; if (w == BUT_NOCHANGE) w = oldw; if (h == BUT_NOCHANGE) h = oldh; /* * Check to see if the porthole size has changed. If it has, hit it * with a redraw. Not real necessary for these, but what the heck. */ if ((w != oldw) || (h != oldh)) { win->w = w; win->h = h; reviseDims(can); if (win->resize != NULL) { win->resize(win); } if (can->pmap != None) { butWin_rmFromTable(win); XFreePixmap(win->env->dpy, can->pmap); } can->pmap = XCreatePixmap(win->env->dpy, win->physWin, w, h, win->env->depth); win->win = can->pmap; butWin_addToTable(win); but_resize(but, x,y, w,h); butWin_redraw(win, win->xOff,win->yOff, w,h); if (propagate && can->change) { can->change(can->but->uPacket, win->xOff, win->yOff, win->logicalW, win->logicalH, win->w, win->h); } } else if ((x != oldx) || (y != oldy)) { /* Check if the porthole geometry has changed, necessitating a redraw. */ but_resize(but, x,y, w,h); } } void butCan_slide(ButWin *win, int xOff, int yOff, bool propagate) { int oldox, oldoy; Can *can = win->iPacket; int csx, csy, cdx, cdy, cw, ch; int rdx, rdw; assert(MAGIC(win)); assert(MAGIC(can)); oldox = win->xOff; oldoy = win->yOff; if (xOff != BUT_NOCHANGE) win->xOff = xOff; if (yOff != BUT_NOCHANGE) win->yOff = yOff; reviseDims(can); if (((oldox == win->xOff) && (oldoy == win->yOff)) || (win->win == None)) return; if (win->xOff > oldox) { csx = win->xOff - oldox; cdx = 0; cw = win->w - csx; } else if (win->xOff == oldox) { csx = 0; cdx = 0; cw = win->w; } else { /* win->xOff < oldox */ csx = 0; cdx = oldox - win->xOff; cw = win->w - csx; } if (win->yOff > oldoy) { csy = win->yOff - oldoy; cdy = 0; ch = win->h - csy; } else if (win->yOff == oldoy) { csy = 0; cdy = 0; ch = win->h; } else { /* win->yOff < oldoy */ csy = 0; cdy = oldoy - win->yOff; ch = win->h - csy; } if ((cw < 0) || (ch < 0)) { /* Must redraw entire pixmap. */ butWin_redraw(win, win->xOff, win->yOff, win->w, win->h); } else { XCopyArea(win->env->dpy, can->pmap, can->pmap, win->env->gc, csx,csy, cw,ch, cdx,cdy); if (cdx > csx) { butWin_redraw(win, win->xOff, win->yOff, cdx-csx, win->h); rdx = win->xOff+cdx-csx; rdw = win->w - (cdx-csx); if (rdw < 0) rdw = 0; } else if (cdx == csx) { rdx = win->xOff; rdw = win->w; } else { /* cdx < csx */ butWin_redraw(win, win->xOff+win->w-(csx-cdx), win->yOff, csx-cdx, win->h); rdx = win->xOff; rdw = win->w - (csx - cdx); if (rdw < 0) rdw = 0; } if (cdy > csy) { butWin_redraw(win, rdx, win->yOff, rdw, cdy-csy); } else if (cdy < csy) { butWin_redraw(win, rdx, win->yOff+win->h-(csy-cdy), rdw, csy-cdy); } } but_draw(can->but); if (propagate) { can->change(can->but->uPacket, win->xOff, win->yOff, win->logicalW, win->logicalH, win->w, win->h); } if (can->parent->butIn == can->but) { butWin_mMove(win->env->last_mwin, win->env->last_mx, win->env->last_my); } } void butCan_destroy(ButWin *win) { } static ButOut mmove(But *but, int x, int y) { Can *can = but->iPacket; ButWin *win = can->win; ButEnv *env = but->win->env; ButOut result; int new_ox, new_oy; assert(MAGIC(but)); assert(MAGIC(can)); if (can->grabbed) { if (env->last_mwin != but->win) { return(0); } new_ox = can->grab_ox + 10*(can->grab_mx - x); new_oy = can->grab_oy + 10*(can->grab_my - y); if ((new_ox != win->xOff) || (new_oy != win->yOff)) { butCan_slide(can->win, new_ox, new_oy, TRUE); } env->last_mwin = but->win; env->last_mx = x - but->x + win->xOff; env->last_my = y - but->y + win->yOff; return(BUTOUT_CAUGHT); } else { result = butWin_mMove(can->win, x-but->x+win->xOff, y-but->y+win->yOff); return(result | BUTOUT_CAUGHT | BUTOUT_IGNORE); } } static ButOut mleave(But *but) { /* * This isn't quite right...not sure how to handle this. * I don't want to get a "leave" when I propogate a mouse move down * to the area below, but I get one anyway! * can_t *can = but->iPacket; * int result; * * assert(MAGIC(can)); * result = but_mmove(but->win->env, can->win, 1,-1); * return(result); */ return(0); } static ButOut mpress(But *but, int butnum, int x, int y) { Can *can = but->iPacket; ButWin *win = can->win; int result; assert(MAGIC(can)); if (butnum == 3) { can->grabbed = TRUE; can->grab_mx = x; can->grab_my = y; can->grab_ox = win->xOff; can->grab_oy = win->yOff; butEnv_setCursor(but->win->env, but, butCur_grab); but_newFlags(but, but->flags | BUT_LOCKED); return(BUTOUT_CAUGHT); } else { result = butWin_mPress(can->win, x - but->x + win->xOff, y - but->y + win->yOff, butnum); return(result); } } static ButOut mrelease(But *but, int butnum, int x, int y) { Can *can = but->iPacket; ButWin *win = can->win; ButOut result; assert(MAGIC(can)); if (butnum == 3) { can->grabbed = FALSE; but_newFlags(but, but->flags & ~BUT_LOCKED); butEnv_setCursor(but->win->env, but, butCur_idle); return(BUTOUT_CAUGHT); } else { result = butWin_mRelease(can->win, x - but->x + win->xOff, y - but->y + win->yOff, butnum); return(result); } } static ButOut kpress(But *but, const char *keystr, KeySym sym) { Can *can = but->iPacket; ButOut result; assert(MAGIC(can)); result = butWin_kPress(can->win, keystr, sym); return(result); } static ButOut krelease(But *but, const char *keystr, KeySym sym) { Can *can = but->iPacket; ButOut result; assert(MAGIC(can)); result = butWin_kRelease(can->win, keystr, sym); return(result); } static void draw(But *but, int x, int y, int w, int h) { Can *can = but->iPacket; ButWin *win = but->win; ButEnv *env = win->env; int csx,csy, cdx,cdy, cw,ch; assert(MAGIC(can)); assert(MAGIC(win)); csx = 0; csy = 0; cdx = but->x; cdy = but->y; cw = but->w; ch = but->h; if (x > cdx) { csx += x - cdx; cw -= x - cdx; cdx = x; } if (y > cdy) { csy += y - cdy; ch -= y - cdy; cdy = y; } if (x+w < cdx+cw) cw = x+w-cdx; if (y+h < cdy+ch) ch = y+h-cdy; if ((cw > 0) && (ch > 0)) XCopyArea(env->dpy, can->pmap, win->win, env->gc, csx,csy, cw,ch, cdx,cdy); } void butCan_redrawn(ButWin *win, int x,int y, int w,int h) { Can *can = win->iPacket; assert(MAGIC(win)); if (can == NULL) return; assert(MAGIC(can)); if (can->but == NULL) return; assert(MAGIC(can->but)); assert(MAGIC(can->parent)); if (x < win->xOff) { w -= win->xOff - x; x = win->xOff; } if (y < win->yOff) { h -= win->yOff - y; y = win->yOff; } if (x + w > win->xOff + win->w) w = win->xOff + win->w - x; if (y + h > win->yOff + win->h) h = win->yOff + win->h - y; butWin_redraw(can->parent, can->but->x + x - win->xOff, can->but->y + y - win->yOff, w, h); } static ButOut destroy(But *but) { Can *can = but->iPacket; assert(MAGIC(but)); assert(MAGIC(can)); assert((can->win == NULL) || MAGIC(can->win)); can->but = NULL; but->iPacket = NULL; if (can->win == NULL) { MAGIC_UNSET(can); wms_free(can); } else butWin_destroy(can->win); return(0); } void butCan_winDead(ButWin *win) { Can *can = win->iPacket; assert(MAGIC(win)); assert(MAGIC(can)); assert((can->but == NULL) || MAGIC(can->but)); can->win = NULL; win->iPacket = NULL; if (can->but == NULL) { MAGIC_UNSET(can); wms_free(can); } else but_destroy(can->but); } void butCan_resizeWin(ButWin *win, int w, int h, bool propagate) { Can *can = win->iPacket; int oldW, oldH; assert(MAGIC(win)); assert(MAGIC(can)); oldW = win->logicalW; oldH = win->logicalH; if (w < win->w) w = win->w; if (h < win->h) h = win->h; win->logicalW = w; win->logicalH = h; reviseDims(can); if ((win->logicalW <= 0) || (win->logicalH <= 0)) return; if ((win->logicalW != oldW) || (win->logicalH != oldH)) { win->resize(win); if (propagate && can->change) { can->change(can->but->uPacket, win->xOff, win->yOff, win->logicalW, win->logicalH, win->w, win->h); } } } Window butCan_xWin(ButWin *win) { assert(MAGIC(win)); while (win->parent) { win = win->parent; assert(MAGIC(win)); } return(win->win); } static bool reviseDims(Can *can) { ButWin *win = can->win; bool change = FALSE; if (win->logicalW < win->w) { change = TRUE; win->logicalW = win->w; } if (win->logicalH < win->h) { change = TRUE; win->logicalH = win->h; } if (win->xOff < 0) { change = TRUE; win->xOff = 0; } else if (win->xOff + win->w > win->logicalW) { change = TRUE; win->xOff = win->logicalW - win->w; } if (win->yOff < 0) { change = TRUE; win->yOff = 0; } else if (win->yOff + win->h > win->logicalH) { change = TRUE; win->yOff = win->logicalH - win->h; } return(change); } #endif /* X11_DISP */ goban-1.1.orig/src/goTime.c0000644000175000017500000001577210270001002013323 0ustar alal/* * src/gotime.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include "goTime.h" int goTime_parseChars(const char *t, bool ignoreExtra, bool *err) { bool dummy; int numScans; int v1, v2, v3; char c1, c2, c3; if (err == NULL) err = &dummy; numScans = sscanf(t, "%d%c%d%c%d%c", &v1, &c1, &v2, &c2, &v3, &c3); if (ignoreExtra) { if ((numScans > 1) && (c1 != ':')) { numScans = 1; } else if ((numScans > 3) && (c2 != ':')) { numScans = 3; } else if (numScans > 5) numScans = 5; } switch(numScans) { case 1: /* Format "mm" */ if (v1 >= 0) { *err = FALSE; return(v1 * 60); } break; case 3: /* Format "mm:ss" */ if ((c1 == ':') && (v1 >= 0) && (v2 >= 0) && (v2 < 60)) { *err = FALSE; return(v1 * 60 + v2); } break; case 5: /* Format "hh:mm:ss" */ if ((c1 == ':') && (c2 == ':') && (v1 >= 0) && (v2 >= 0) && (v3 >= 0) && (v2 < 60) && (v3 < 60)) { *err = FALSE; return(v1*60*60 + v2*60 + v3); } break; default: break; } *err = TRUE; return(0); } void goTime_str(int time, Str *out) { assert(time >= 0); if (time < 60*60) { str_print(out, "%d:%02d", time/60, time%60); } else { str_print(out, "%d:%02d:%02d", time/(60*60), (time/60)%60, time%60); } } void goTime_describeStr(const GoTime *time, Str *out) { Str tmp; switch(time->type) { case(goTime_none): str_copyChar(out, '-'); break; case(goTime_absolute): goTime_str(time->main, out); break; case(goTime_canadian): str_init(&tmp); goTime_str(time->main, out); goTime_str(time->by, &tmp); str_catChar(out, '+'); str_cat(out, &tmp); str_catChar(out, '/'); str_catInt(out, time->aux); str_deinit(&tmp); break; case(goTime_japanese): str_init(&tmp); goTime_str(time->main, out); goTime_str(time->by, &tmp); str_catChar(out, '('); str_catInt(out, time->aux); str_catChar(out, 'x'); str_cat(out, &tmp); str_catChar(out, ')'); str_deinit(&tmp); break; case(goTime_ing): str_init(&tmp); goTime_str(time->main, out); goTime_str(time->by, &tmp); str_catChar(out, '+'); str_cat(out, &tmp); str_catChar(out, 'x'); str_catInt(out, time->aux); str_deinit(&tmp); break; default: assert(0); break; } } void goTime_parseDescribeChars(GoTime *time, const char *desc) { if (isdigit(desc[0])) { time->main = goTime_parseChars(desc, TRUE, NULL); for (;;) { switch(*(++desc)) { case '\0': time->type = goTime_absolute; return; case '+': ++desc; time->by = goTime_parseChars(desc, TRUE, NULL); while (*desc && (*desc != '/') && (*desc != 'x')) ++desc; switch(*desc) { case '/': time->type = goTime_canadian; ++desc; time->aux = wms_atoi(desc, NULL); break; case 'x': time->type = goTime_ing; ++desc; time->aux = wms_atoi(desc, NULL); break; default: time->type = goTime_none; break; } return; break; case '(': time->type = goTime_japanese; ++desc; /* Can't use wms_atoi here, it will report an error and return 0. */ time->aux = atoi(desc); while (*desc && (*desc != 'x')) ++desc; if (*desc == 'x') { time->by = goTime_parseChars(desc+1, TRUE, NULL); } else { time->type = goTime_none; } return; break; default: break; } } } else time->type = goTime_none; } void goTime_remainStr(const GoTime *time, const GoTimer *timer, Str *out) { int tLeft; tLeft = timer->timeLeft; if (timer->usLeft) ++tLeft; if (tLeft < 0) tLeft = 0; switch(time->type) { case(goTime_none): str_copyChar(out, '-'); break; case(goTime_absolute): goTime_str(tLeft, out); break; case(goTime_canadian): goTime_str(tLeft, out); str_catChar(out, '/'); if (timer->aux == 0) { str_catChar(out, '-'); } else { str_catInt(out, timer->aux); } break; case(goTime_japanese): goTime_str(tLeft, out); if (tLeft <= time->aux * time->by) { str_catChar(out, '('); if (tLeft < 0) str_catChar(out, '0'); else str_catInt(out, (tLeft + time->by - 1) / time->by); str_catChar(out, ')'); } break; case(goTime_ing): goTime_str(tLeft, out); if (timer->aux > 0) { str_catChar(out, '+'); str_catInt(out, timer->aux); } break; default: assert(0); break; } } void goTimer_init(GoTimer *timer, const GoTime *time) { timer->timeLeft = time->main; if (time->type == goTime_ing) timer->aux = time->aux; else timer->aux = 0; timer->usLeft = 0; } void goTime_startTimer(const GoTime *time, GoTimer *timer) { struct timezone tzone; gettimeofday(&timer->startTime, &tzone); } /* * goTime_checkTimer() returns FALSE if you are out of time. * Call it whenever you want the clock to be updated. Every second is nice. */ bool goTime_checkTimer(const GoTime *time, GoTimer *timer) { struct timeval now; struct timezone tzone; gettimeofday(&now, &tzone); timer->usLeft -= (now.tv_usec - timer->startTime.tv_usec); while (timer->usLeft <= 0) { timer->usLeft += 1000000; --timer->timeLeft; } timer->timeLeft -= (now.tv_sec - timer->startTime.tv_sec); timer->startTime = now; if (timer->timeLeft < 0) { switch(time->type) { case goTime_none: timer->timeLeft = 1; break; case goTime_absolute: case goTime_japanese: timer->timeLeft = -1; timer->usLeft = 1000000; break; case goTime_canadian: if (timer->aux == 0) { timer->aux = time->aux; timer->timeLeft += time->by; if (timer->timeLeft < 0) { timer->timeLeft = -1; timer->usLeft = 1000000; } } else { timer->timeLeft = -1; timer->usLeft = 1000000; } break; case goTime_ing: while ((timer->timeLeft < 0) && (timer->aux > 0)) { timer->timeLeft += time->by; --timer->aux; } if ((timer->timeLeft < 0) && (timer->aux == 0)) { timer->timeLeft = -1; timer->usLeft = 1000000; } break; default: assert(0); break; } } return(timer->timeLeft >= 0); } bool goTime_endTimer(const GoTime *time, GoTimer *timer) { bool result; int left; result = goTime_checkTimer(time, timer); if (time->type == goTime_japanese) { left = timer->timeLeft; if (timer->usLeft) ++left; if ((left > 0) && (left <= time->aux * time->by)) { left = (left + time->by - 1); timer->timeLeft = left - (left % time->by); timer->usLeft = 0; } } else if (time->type == goTime_canadian) { if (timer->aux) { --timer->aux; if (timer->aux == 0) { timer->aux = time->aux; timer->timeLeft = time->by; timer->usLeft = 0; } } } return(result); } int goTime_ingPenalty(const GoTime *time, const GoTimer *timer) { if (time->type == goTime_ing) return(2 * (time->aux - timer->aux)); else return(0); } goban-1.1.orig/src/plasma.h0000644000175000017500000000113406342434100013362 0ustar alal/* * src/gogame.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _PLASMA_H_ #define _PLASMA_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define PLASMA_SIZE 512 /********************************************************************** * Functions **********************************************************************/ extern uchar *plasma(void); #endif /* _PLASMA_H_ */ goban-1.1.orig/src/drawStone.h0000644000175000017500000000176406520322424014067 0ustar alal/* * src/drawStone.h, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _DRAWSTONE_H_ #ifdef _DRAWSTONE_H_ Levelization Error. #endif #define _DRAWSTONE_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define DRAWSTONE_NUMWHITE 20 #define DRAWSTONE_YINYANG(x) (DRAWSTONE_NUMWHITE+(x)) #define DRAWSTONE_WORLDWEST(x) (DRAWSTONE_YINYANG(DRAWSTONE_NUMWHITE)+(x)) #define DRAWSTONE_WORLDEAST(x) (DRAWSTONE_WORLDWEST(DRAWSTONE_NUMWHITE)+(x)) /********************************************************************** * Functions **********************************************************************/ extern void drawStone_newPics(ButEnv *env, Rnd *rnd, int baseColor, Pixmap *stonePixmap, Pixmap *maskBitmap, int size, bool color); #endif /* _DRAWSTONE_H_ */ goban-1.1.orig/src/plain.c0000644000175000017500000001474010270060402013205 0ustar alal/* * wmslib/src/but/plain.c, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * File for "plain" buttons...pixmaps, solid colors, etc. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include static void pix_draw(But *but, int x, int y, int w, int h); static void plain_draw(But *but, int x, int y, int w, int h); static void dummy_draw(But *but, int x, int y, int w, int h); static void keytrap_draw(But *but, int x, int y, int w, int h); static ButOut pixmap_destroy(But *but); static ButOut plain_destroy(But *but); static ButOut dummy_destroy(But *but); static ButOut keytrap_destroy(But *but); static ButOut plain_mmove(But *but, int x, int y); static ButOut keytrap_kpress(But *but, const char *keystr, KeySym sym); static ButOut keytrap_krelease(But *but, const char *keystr, KeySym sym); static ButAction pix_action = { NULL, NULL, NULL, NULL, NULL, NULL, pix_draw, pixmap_destroy, but_flags, NULL}; static ButAction plain_action = { plain_mmove, NULL, NULL, NULL, NULL, NULL, plain_draw, plain_destroy, but_flags, NULL}; static ButAction dummy_action = { NULL, NULL, NULL, NULL, NULL, NULL, dummy_draw, dummy_destroy, but_flags, NULL}; static ButAction keytrap_action = { NULL, NULL, NULL, NULL, keytrap_kpress, keytrap_krelease, keytrap_draw, keytrap_destroy, but_flags, NULL}; typedef struct Pix_struct { Pixmap pic; int x,y; } Pix; typedef struct Plain_struct { int color; } Plain; typedef struct Keytrap_struct { ButOut (*callback)(But *but, int press); bool holdKey; } Keytrap; But *butPixmap_create(ButWin *win, int layer, int flags, Pixmap pic) { Pix *pix; But *but; pix = wms_malloc(sizeof(Pix)); but = but_create(win, pix, &pix_action); but->win = win; but->layer = layer; but->flags = flags | BUT_OPAQUE; pix->pic = pic; pix->x = 0; pix->y = 0; but_init(but); return(but); } void butPixmap_setPic(But *but, Pixmap pic, int x,int y) { Pix *pix = but->iPacket; assert(but->action == &pix_action); pix->pic = pic; pix->x = x; pix->y = y; but_draw(but); } static ButOut pixmap_destroy(But *but) { wms_free(but->iPacket); return(0); } static void pix_draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; Pix *pix = but->iPacket; if (pix->pic == None) { return; } XSetFillStyle(env->dpy, env->gc, FillTiled); XSetTile(env->dpy, env->gc, pix->pic); if ((but->x != pix->x + win->xOff) || (but->y != pix->y + win->yOff)) XSetTSOrigin(env->dpy, env->gc, but->x - pix->x - win->xOff, but->y - pix->y - win->yOff); if (but->x > x) { w -= but->x - x; x = but->x; } if (but->y > y) { h -= but->y - y; y = but->y; } if (but->x + but->w < x + w) w = but->x + but->w - x; if (but->y + but->h < y + h) h = but->y + but->h - y; XFillRectangle(env->dpy, win->win, env->gc, x - win->xOff, y - win->yOff, w, h); butEnv_stdFill(env); if ((but->x != pix->x) || (but->y != pix->y)) XSetTSOrigin(env->dpy, env->gc, 0,0); } But *butPlain_create(ButWin *win, int layer, int flags, int cnum) { Plain *plain; But *but; plain = wms_malloc(sizeof(Plain)); but = but_create(win, plain, &plain_action); but->layer = layer; but->flags = flags | BUT_OPAQUE; plain->color = cnum; but_init(but); return(but); } void butPlain_setColor(But *but, int cnum) { Plain *plain = but->iPacket; plain->color = cnum; but_draw(but); } static ButOut plain_destroy(But *but) { wms_free(but->iPacket); return(0); } static void plain_draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; Plain *color = but->iPacket; if (but->x > x) { w -= (but->x - x); x = but->x; } if (but->y > y) { h -= (but->y - y); y = but->y; } if (but->x+but->w < x+w) w = but->x+but->w - x; if (but->y+but->h < y+h) h = but->y+but->h - y; butEnv_setXFg(env, color->color); XFillRectangle(env->dpy, win->win, env->gc, x-win->xOff, y-win->yOff, w,h); } static ButOut plain_mmove(But *but, int x, int y) { return(BUTOUT_CAUGHT); } But *butDummy_create(ButWin *win, int layer, int flags) { But *but; but = but_create(win, NULL, &dummy_action); but->layer = layer; but->flags = flags | BUT_OPAQUE; but_init(but); return(but); } static ButOut dummy_destroy(But *but) { return(0); } static void dummy_draw(But *but, int x, int y, int w, int h) { } But *butKeytrap_create(ButOut (*func)(But *but, int press), void *uPacket, ButWin *win, int flags) { Keytrap *ktrap; But *but; but = but_create(win, NULL, &keytrap_action); ktrap = wms_malloc(sizeof(Keytrap)); but->uPacket = uPacket; but->iPacket = ktrap; ktrap->callback = func; ktrap->holdKey = TRUE; but->flags = flags; but->w = 1; but->h = 1; but_init(but); return(but); } static ButOut keytrap_destroy(But *but) { return(0); } void butKeytrap_setHold(But *but, bool hold) { Keytrap *k; assert(but->action == &keytrap_action); k = but->iPacket; k->holdKey = hold; } static ButOut keytrap_kpress(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; Keytrap *k = but->iPacket; if (!(but->flags & BUT_KEYPRESSED)) { snd_play(&but_downSnd); if (k->holdKey) but_newFlags(but, but->flags | BUT_KEYPRESSED|BUT_PRESSED|BUT_LOCKED); retval |= k->callback(but, TRUE); } return(retval); } static ButOut keytrap_krelease(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Keytrap *k = but->iPacket; if (!(newflags & BUT_KEYPRESSED) && k->holdKey) return(0); if (k->holdKey) { newflags &= ~(BUT_KEYPRESSED|BUT_PRESSED|BUT_LOCKED); if (newflags != but->flags) but_newFlags(but, newflags); } snd_play(&but_upSnd); if (keystr != NULL) { /* If keystr is NULL, the key wasn't released - we lost focus instead. */ retval |= k->callback(but, FALSE); } return(retval); } static void keytrap_draw(But *but, int x, int y, int w, int h) { } #endif /* X11_DISP */ goban-1.1.orig/src/screensaver.h0000644000175000017500000000221210271256161014430 0ustar alal/* * src/screensaver.h, part of Complete Goban (game program) * Copyright (C) 1998 Scott Draves. * See "configure.h.in" for more copyright information. */ #ifndef _SCREENSAVER_H_ #define _SCREENSAVER_H_ 1 #ifndef _SGF_H_ #include "sgf.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOPIC_H_ #include "goPic.h" #endif #ifndef _GOBAN_H_ #include "goban.h" #endif #ifndef _LOCAL_H_ #include "local.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef struct Screensaver_struct { Cgoban *cg; int move; GoGame *game; Goban *goban; Sgf *moves; double stonetime; double gametime; double acceleration; double mintime; char *game_dir; ButTimer *timer; MAGIC_STRUCT } Screensaver; /********************************************************************** * Functions **********************************************************************/ extern Screensaver *screensaver_create(Cgoban *cg); extern void screensaver_destroy(Screensaver *l); #endif /* _SCREENSAVER_H_ */ goban-1.1.orig/src/goban.h0000644000175000017500000001043510270066030013175 0ustar alal/* * src/goban.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOBAN_H_ #define _GOBAN_H_ 1 #ifndef _ABUT_TERM_H_ #include #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOPIC_H_ #include "goPic.h" #endif #ifndef _GOSCORE_H_ #include "goScore.h" #endif #ifndef _ABUT_MSG_H_ #include #endif /********************************************************************** * Data types **********************************************************************/ typedef enum { gobanOut_draw, gobanOut_noDraw, gobanOut_err } GobanOut; typedef struct GobanActions_struct { /* * Callbacks when buttons are pressed. Returns TRUE if you have to * update the grid afterwards. */ GobanOut (*gridPressed)(void *packet, int loc); GobanOut (*quitPressed)(void *packet); GobanOut (*passPressed)(void *packet); GobanOut (*rewPressed)(void *packet); GobanOut (*backPressed)(void *packet); GobanOut (*fwdPressed)(void *packet); GobanOut (*ffPressed)(void *packet); GobanOut (*donePressed)(void *packet); GobanOut (*disputePressed)(void *packet); GobanOut (*savePressed)(void *packet); GobanOut (*editPressed)(void *packet); GobanOut (*gameInfoPressed)(void *packet); Help *helpInfo; /* * Called when goban_destroy is called with propagate set to TRUE, or * when the window is suddenly destroyed. */ void (*destroyCallback)(void *packet); /* Returns TRUE if the specified button should be pressable. */ bool (*rewOk)(void *packet); bool (*backOk)(void *packet); bool (*fwdOk)(void *packet); bool (*ffwdOk)(void *packet); } GobanActions; typedef struct GobanPlayerInfo_struct { But *box, *stones[5], *capsLabel, *capsOut, *timeLabel, *timeOut; But *capsBox, *timeBox; } GobanPlayerInfo; typedef struct Goban_struct { Cgoban *cg; const GobanActions *actions; void *packet; bool propagateDestroy; GoGame *game; GoTimer timers[2]; GoStone activeTimer; GoScore score; int ingTimePenalties[2]; int lastMove; float lastScores[2]; ClpEntry *bProp, *clpX, *clpY; ButWin *win; But *bg; But *labelBox, *labelText; But *infoText; But *gameInfo; But *help; AbutTerm *comments; But *kibIn, *kibType, *kibSay, *kibBoth, *kibKib; GobanOut (*newKib)(void *packet, const char *txt); But *pass; But *resume; But *done; GobanPlayerInfo playerInfos[2]; But *save; But *edit; But *quit; But *rew, *back, *fwd, *ff; GoPic *pic; But *boardBox; ButWin *iWin; But *iBg, *iBoard, *iDec1, *iDec2; /* Icon Decorations. */ AbutMsg *msgBox; ButTimer *clock; MAGIC_STRUCT } Goban; /********************************************************************** * Functions **********************************************************************/ extern Goban *goban_create(Cgoban *cg, const GobanActions *actions, void *packet, GoGame *game, const char *bPropName, const char *title); #define goban_setTitle(g, n) butText_set((g)->labelText, (n)) #define goban_getComments(g) abutTerm_get((g)->comments) #define goban_setComments(g, c) abutTerm_set((g)->comments, (c)) #define goban_catComments(g, c) butTbin_insert((g)->comments->tbin, (c)) extern void goban_destroy(Goban *g, bool propagate); extern void goban_message(Goban *g, const char *message); extern void goban_noMessage(Goban *g); extern void goban_update(Goban *g); extern void goban_startTimer(Goban *g, GoStone whose); /* stopTimer returns TRUE if there is still time left. */ extern bool goban_stopTimer(Goban *g); #define goban_setHold(g, h) goPic_setButHold((g)->pic, h) #define goban_score(g, p) ((g)->score.scores[p] - (g)->ingTimePenalties[p]) #define goban_dame(g) ((g)->score.dame) #define goban_territory(g, p) ((g)->score.territories[p]) #define goban_livingStones(g, p) ((g)->score.livingStones[p]) #define goban_caps(g, p) (goGame_caps((g)->game, p) + \ (g)->score.deadStones[p]) extern void goban_setKibitz(Goban *g, GobanOut (*newKib)(void *packet, const char *txt), int kibVal); #define goban_kibType(g) butRadio_get((g)->kibType) extern void goban_updateTimeReadouts(Goban *g); #endif /* _GOBAN_H_ */ goban-1.1.orig/src/play.h0000644000175000017500000000341406415545224013070 0ustar alal/* * src/gmp/play.h, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GMP_PLAY_H_ #ifndef _SGF_H_ #include "../sgf.h" #endif #ifndef _GOGAME_H_ #include "../goGame.h" #endif #ifndef _GOPIC_H_ #include "../goPic.h" #endif #ifndef _GOBAN_H_ #include "../goban.h" #endif #ifndef _GMP_ENGINE_H_ #include "engine.h" #endif #define _GMP_PLAY_H_ 1 /********************************************************************** * Forward declarations **********************************************************************/ #ifndef _ABUT_FSEL_H_ #ifndef AbutFsel #define AbutFsel void #endif #endif #ifndef _ABUT_MSG_H_ #ifndef AbutMsg #define AbutMsg void #endif #endif /********************************************************************** * Data types **********************************************************************/ typedef struct GmpPlayInfo_struct { int in, out, pid; bool ready; GmpEngine *engine; } GmpPlayInfo; typedef struct GmpPlay_struct { Cgoban *cg; GmpPlayInfo players[2]; GoGame *game; Goban *goban; Sgf *moves; SgfElem *endGame; /* Used to backtrack after a dispute. */ SgfElem *lastComment; AbutFsel *fsel; MAGIC_STRUCT } GmpPlay; /********************************************************************** * Functions **********************************************************************/ extern GmpPlay *gmpPlay_create(Cgoban *cg, int inFiles[2], int outFiles[2], int pids[2], GoRules rules, int size, int hcap, float komi, const char *white, const char *black, GoTimeType timeType, int mainTime, int byTime, int auxTime); extern void gmpPlay_destroy(GmpPlay *l); #endif /* _GMP_PLAY_H_ */ goban-1.1.orig/src/swin.c0000644000175000017500000002747210270056733013104 0ustar alal/* * wmslib/src/abut/swin.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #if X11_DISP #include #include #include #include #include #include #ifdef _ABUT_SWIN_H_ Levelization Error. #endif #include "swin.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void draw_uparrow(void *packet, ButWin *win, int x, int y, int w, int h); static void draw_downarrow(void *packet, ButWin *win, int x, int y, int w, int h); static void draw_leftarrow(void *packet, ButWin *win, int x, int y, int w, int h); static void draw_rightarrow(void *packet, ButWin *win, int x, int y, int w, int h); static ButOut pressUp(But *but), pressDown(But *but); static ButOut pressLeft(But *but), pressRight(But *but); static ButOut releaseVArrow(But *but), releaseHArrow(But *but); static ButOut v_moved(But *but, int new_yoff, bool newPress); static ButOut hMoved(But *but, int new_xOff, bool newPress); static void redo_slider(void *packet, int xoff, int yoff, int w, int h, int viewW, int viewH); /********************************************************************** * Functions **********************************************************************/ AbutSwin *abutSwin_create(void *packet, ButWin *parent, int layer, uint flags, ButWinFunc resize) { AbutSwin *swin; ButEnv *env = butWin_env(parent); static ButKey upKeys[] = {{XK_Prior, 0, ShiftMask}, {0,0,0}}; static ButKey downKeys[] = {{XK_Next, 0, ShiftMask}, {0,0,0}}; static ButKey leftKeys[] = {{XK_Left, 0, ShiftMask}, {0,0,0}}; static ButKey rightKeys[] = {{XK_Right, 0, ShiftMask}, {0,0,0}}; butEnv_setChar(env, 1.0, ABUT_UPPIC, draw_uparrow, NULL); butEnv_setChar(env, 1.0, ABUT_DOWNPIC, draw_downarrow, NULL); butEnv_setChar(env, 1.0, ABUT_LEFTPIC, draw_leftarrow, NULL); butEnv_setChar(env, 1.0, ABUT_RIGHTPIC, draw_rightarrow, NULL); swin = wms_malloc(sizeof(AbutSwin)); MAGIC_SET(swin); if (flags & (ABUTSWIN_LSLIDE | ABUTSWIN_RSLIDE)) { swin->up = butAct_vCreate(pressUp, releaseVArrow, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, ABUT_UPPIC, BUT_SRIGHT|BUT_SLEFT); but_setKeys(swin->up, upKeys); swin->down = butAct_vCreate(pressDown, releaseVArrow, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, ABUT_DOWNPIC, BUT_SRIGHT|BUT_SLEFT); but_setKeys(swin->down, downKeys); swin->vSlide = butSlide_vCreate(v_moved, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, 100,10,10); } if (flags & (ABUTSWIN_TSLIDE | ABUTSWIN_BSLIDE)) { swin->left = butAct_vCreate(pressLeft, releaseHArrow, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, ABUT_LEFTPIC, BUT_SRIGHT|BUT_SLEFT); but_setKeys(swin->left, leftKeys); swin->right = butAct_vCreate(pressRight, releaseHArrow, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, ABUT_RIGHTPIC, BUT_SRIGHT|BUT_SLEFT); but_setKeys(swin->right, rightKeys); swin->hSlide = butSlide_hCreate(hMoved, swin, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, 100,10,10); } swin->box = butBox_create(parent, layer, BUT_DRAWABLE); butBox_setColors(swin->box, BUT_SHAD, BUT_LIT); swin->win = butCan_create(swin, parent, layer, resize, NULL, redo_slider); swin->flags = flags; swin->timer = NULL; swin->xCenter = swin->yCenter = 0.0; swin->packet = packet; return(swin); } void abutSwin_resize(AbutSwin *swin, int x, int y, int w, int h, int slideW, int lineH) { int bx, by, bw, bh; int canWinW, canWinH, canViewW, canViewH; int butbw = butEnv_stdBw(butWin_env(swin->win)); int new_yoff = 0, new_xoff = 0; float yratio = swin->yCenter, xratio = swin->xCenter; assert(MAGIC(swin)); if (x == BUT_NOCHANGE) x = swin->x; if (y == BUT_NOCHANGE) y = swin->y; if (w == BUT_NOCHANGE) w = swin->w; if (h == BUT_NOCHANGE) h = swin->h; if (slideW == BUT_NOCHANGE) slideW = swin->slideW; if (lineH == BUT_NOCHANGE) lineH = swin->lineH; swin->x = x; swin->y = y; swin->w = w; swin->h = h; swin->slideW = slideW; swin->lineH = lineH; bx = x; by = y; bw = w; bh = h; if (swin->flags & ABUTSWIN_LSLIDE) { bx += slideW; bw -= slideW; } else if (swin->flags & ABUTSWIN_RSLIDE) { bw -= slideW; } if (swin->flags & ABUTSWIN_TSLIDE) { by += slideW; bh -= slideW; } else if (swin->flags & ABUTSWIN_BSLIDE) { bh -= slideW; } butCan_resizeView(swin->win, bx+butbw,by+butbw, bw-2*butbw,bh-2*butbw, FALSE); canViewW = bw - butbw*2; canViewH = bh - butbw*2; canWinW = butWin_w(swin->win); canWinH = butWin_h(swin->win); if (swin->flags & (ABUTSWIN_TSLIDE|ABUTSWIN_BSLIDE)) { new_xoff = xratio * (canWinW - canViewW) + 0.5; } if (swin->flags & (ABUTSWIN_LSLIDE|ABUTSWIN_RSLIDE)) { new_yoff = yratio * (canWinH - canViewH) + 0.5; } if (new_xoff > canWinW - canViewW) new_xoff = canWinW - canViewW; if (new_yoff > canWinH - canViewH) new_yoff = canWinH - canViewH; if (new_xoff < 0) new_xoff = 0; if (new_yoff < 0) new_yoff = 0; if (swin->flags & ABUTSWIN_LSLIDE) { if (bh - 2*slideW < butbw * 5) { but_resize(swin->up, x, by, slideW, bh/2); but_resize(swin->down, x, by + bh/2, slideW, (bh + 1) / 2); but_resize(swin->vSlide, 0, 0, 0, 0); butSlide_set(swin->vSlide, canWinH - canViewH, new_yoff, canViewH); v_moved(swin->vSlide, new_yoff, FALSE); } else { but_resize(swin->up, x,by,slideW,slideW); but_resize(swin->down, x,by+bh-slideW,slideW,slideW); but_resize(swin->vSlide, x,by+slideW,slideW,bh-2*slideW); butSlide_set(swin->vSlide, canWinH - canViewH, new_yoff, canViewH); v_moved(swin->vSlide, new_yoff, FALSE); } } else if (swin->flags & ABUTSWIN_RSLIDE) { but_resize(swin->up, x+w-slideW,by,slideW,slideW); but_resize(swin->down, x+w-slideW,by+h-slideW,slideW,slideW); but_resize(swin->vSlide, x+w-slideW,by+slideW,slideW,bh-2*slideW); butSlide_set(swin->vSlide, canWinH - canViewH, new_yoff, canViewH); v_moved(swin->vSlide, new_yoff, FALSE); } if (swin->flags & ABUTSWIN_TSLIDE) { but_resize(swin->left, bx, y, slideW, slideW); but_resize(swin->right, bx + bw - slideW, y, slideW, slideW); but_resize(swin->hSlide, bx + slideW, y, bw - 2 * slideW, slideW); butSlide_set(swin->hSlide, canWinW - canViewW, new_xoff, canViewW); v_moved(swin->hSlide, new_xoff, FALSE); } else if (swin->flags & ABUTSWIN_BSLIDE) { but_resize(swin->left, bx, y + h - slideW, slideW, slideW); but_resize(swin->right, bx + bw - slideW, y + h - slideW, slideW, slideW); but_resize(swin->hSlide, bx + slideW, y + h - slideW, bw - 2 * slideW, slideW); butSlide_set(swin->hSlide, canWinW - canViewW, new_xoff, canViewW); v_moved(swin->hSlide, new_xoff, FALSE); } but_resize(swin->box, bx,by,bw,bh); swin->canButW = bw - butbw*2; swin->canButH = bh - butbw*2; } static void draw_uparrow(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[3]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x; points[0].y = y+h/2; points[1].x = x+w/2; points[1].y = y; points[2].x = x+w; points[2].y = y+h/2; XFillPolygon(dpy, xwin, gc, points, 3, Nonconvex, CoordModeOrigin); } static void draw_downarrow(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[3]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x; points[0].y = y+h/2; points[1].x = x+w/2; points[1].y = y+h; points[2].x = x+w; points[2].y = y+h/2; XFillPolygon(dpy, xwin, gc, points, 3, Nonconvex, CoordModeOrigin); } static void draw_leftarrow(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[3]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x; points[0].y = y+h/2; points[1].x = x+w/2; points[1].y = y; points[2].x = x+w/2; points[2].y = y+h; XFillPolygon(dpy, xwin, gc, points, 3, Nonconvex, CoordModeOrigin); } static void draw_rightarrow(void *packet, ButWin *win, int x, int y, int w, int h) { XPoint points[3]; Display *dpy = butEnv_dpy(butWin_env(win)); Window xwin = butWin_xwin(win); GC gc = butEnv_gc(butWin_env(win)); h &= ~1; w &= ~1; points[0].x = x+w; points[0].y = y+h/2; points[1].x = x+w/2; points[1].y = y; points[2].x = x+w/2; points[2].y = y+h; XFillPolygon(dpy, xwin, gc, points, 3, Nonconvex, CoordModeOrigin); } static ButOut pressUp(But *but) { AbutSwin *swin; swin = but_packet(but); assert(MAGIC(swin)); butSlide_startSlide(swin->vSlide, TRUE, -2*swin->lineH, TRUE); return(0); } static ButOut pressDown(But *but) { AbutSwin *swin; swin = but_packet(but); assert(MAGIC(swin)); butSlide_startSlide(swin->vSlide, TRUE, 2*swin->lineH, TRUE); return(0); } static ButOut pressLeft(But *but) { AbutSwin *swin; swin = but_packet(but); assert(MAGIC(swin)); butSlide_startSlide(swin->hSlide, TRUE, -2*swin->lineH, TRUE); return(0); } static ButOut pressRight(But *but) { AbutSwin *swin; swin = but_packet(but); assert(MAGIC(swin)); butSlide_startSlide(swin->hSlide, TRUE, 2*swin->lineH, TRUE); return(0); } static ButOut releaseVArrow(But *but) { AbutSwin *swin = but_packet(but); assert(MAGIC(swin)); butSlide_stopSlide(swin->vSlide); return(0); } static ButOut releaseHArrow(But *but) { AbutSwin *swin = but_packet(but); assert(MAGIC(swin)); butSlide_stopSlide(swin->hSlide); return(0); } void abutSwin_vMove(AbutSwin *swin, int newLoc) { butSlide_set(swin->vSlide, BUT_NOCHANGE, newLoc, BUT_NOCHANGE); v_moved(swin->vSlide, newLoc, FALSE); } static ButOut v_moved(But *but, int new_yoff, bool newPress) { AbutSwin *swin = but_packet(but); assert(MAGIC(swin)); if (butWin_viewH(swin->win) == butWin_h(swin->win)) swin->yCenter = 0.0; else swin->yCenter = (float)new_yoff / (float)(butWin_h(swin->win) - butWin_viewH(swin->win)); if (swin->yCenter > 1.0) swin->yCenter = 1.0; if (swin->yCenter < 0.0) swin->yCenter = 0.0; butCan_slide(swin->win, BUT_NOCHANGE, new_yoff, FALSE); return(0); } static ButOut hMoved(But *but, int newXOff, bool newPress) { AbutSwin *swin = but_packet(but); assert(MAGIC(swin)); if (butWin_viewW(swin->win) == butWin_w(swin->win)) swin->xCenter = 0.0; else swin->xCenter = (float)newXOff / (float)(butWin_w(swin->win) - butWin_viewW(swin->win)); if (swin->xCenter > 1.0) swin->xCenter = 1.0; if (swin->xCenter < 0.0) swin->xCenter = 0.0; butCan_slide(swin->win, newXOff, BUT_NOCHANGE, FALSE); return(0); } void abutSwin_destroy(AbutSwin *swin) { assert(MAGIC(swin)); MAGIC_UNSET(swin); wms_free(swin); } static void redo_slider(void *packet, int xoff, int yoff, int w, int h, int viewW, int viewH) { AbutSwin *swin = packet; assert(MAGIC(swin)); if (swin->flags & (ABUTSWIN_TSLIDE|ABUTSWIN_BSLIDE)) { butSlide_set(swin->hSlide, w-viewW, xoff, viewW); if (viewW == w) swin->xCenter = 0.0; else swin->xCenter = (float)xoff / (float)(w - viewW); } if (swin->flags & (ABUTSWIN_LSLIDE|ABUTSWIN_RSLIDE)) { butSlide_set(swin->vSlide, h-viewH, yoff, viewH); if (viewH == h) swin->yCenter = 0.0; else swin->yCenter = (float)yoff / (float)(h - viewH); } } #endif /* X11_DISP */ goban-1.1.orig/src/engine.h0000644000175000017500000000572010271270052013357 0ustar alal/* * src/gmp.h, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GMP_ENGINE_H_ #ifndef _BUT_BUT_H_ #include #endif #ifndef _GOBOARD_H_ #include "goBoard.h" #endif #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifdef _GMP_ENGINE_H_ #error Levelization Error. #endif #define _GMP_ENGINE_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define GMP_SENDBUFSIZE 16 #define GMP_EXECVEFAILED 127 /********************************************************************** * Data types **********************************************************************/ typedef struct GmpEngine_struct GmpEngine; typedef struct GmpActions_struct { ButOut (*newGame)(GmpEngine *ge, void *packet, int size, int handicap, float komi, bool chineseRules, bool iAmWhite); ButOut (*moveRecvd)(GmpEngine *ge, void *packet, GoStone color, int x, int y); ButOut (*undoMoves)(GmpEngine *ge, void *packet, int numUndos); ButOut (*errorRecvd)(GmpEngine *ge, void *packet, const char *errStr); } GmpActions; struct GmpEngine_struct { bool stopped; /* Prevents you from reading stuff after the game ends. */ int inFile, outFile; ButTimer *heartbeat; int boardSize; int handicap; float komi; bool chineseRules; bool iAmWhite; /* send white's moves out, get black's moves in. */ int queriesAcked, lastQuerySent; bool gameStarted; int recvSoFar, sendsQueued, sendFailures; bool waitingHighAck; time_t lastSendTime; int myLastSeq, hisLastSeq; unsigned char recvData[4]; /* Store up 1024 cmds. Should be enough. */ unsigned char sendData[4]; struct { int cmd, val; } sendsPending[GMP_SENDBUFSIZE]; Cgoban *cg; ButEnv *env; void *packet; const GmpActions *actions; MAGIC_STRUCT }; /********************************************************************** * Fuctions **********************************************************************/ extern GmpEngine *gmpEngine_init(Cgoban *cg, GmpEngine *ge, int inFile, int outFile, const GmpActions *actions, void *packet); #define gmpEngine_create(e, i, o, a, p) \ gmpEngine_init(e, wms_malloc(sizeof(GmpEngine)), i, o, a, p) #define gmpEngine_stop(e) ((e)->stopped = TRUE) extern GmpEngine *gmpEngine_deinit(GmpEngine *ge); #define gmpEngine_destroy(ge) wms_free(gmpEngine_deinit(ge)) extern void gmpEngine_startGame(GmpEngine *ge, int size, int handicap, float komi, bool chineseRules, bool iAmWhite); extern void gmpEngine_sendPass(GmpEngine *ge); extern void gmpEngine_sendMove(GmpEngine *ge, int x, int y); extern void gmpEngine_sendUndo(GmpEngine *ge, int numUndos); extern int gmp_forkProgram(Cgoban *cg, int *inFile, int *outFile, const char *progName, int mainTime, int byTime); #endif /* _GMP_ENGINE_H_ */ goban-1.1.orig/src/client_setup.c0000644000175000017500000000774610270065551014622 0ustar alal/* * src/cliSetup.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include "cgoban.h" #include "client_setup.h" #include "msg.h" #include "login.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut loginDestroyed(void *packet); static ButOut cancelPressed(But *but); static ButOut okPressed(But *but); static ButOut newUser(But *but, const char *user); static ButOut newPassword(But *but, const char *pass); /********************************************************************** * Functions **********************************************************************/ CliSetup *cliSetup_create(Cgoban *cg, int serverNum) { CliSetup *c; Str title; AbutMsgTin tins[2]; AbutMsgOpt buttons[3]; /* Necessary reference to server.c. See "server.h" for an explanation. */ cliServer_create(); assert(MAGIC(cg)); str_init(&title); c = wms_malloc(sizeof(CliSetup)); MAGIC_SET(c); c->cd = cliData_create(cg, serverNum, NULL, NULL); c->userClp = clp_lookup(cg->clp, "client.username"); c->passwordClp = clp_lookup(cg->clp, "client.password"); c->serverNum = serverNum; str_print(&title, "%s Setup", c->cd->serverName); tins[0].name = msg_usernameColon; tins[0].def = clpEntry_getStrNum(c->userClp, serverNum); tins[0].callback = newUser; tins[0].flags = 0; tins[1].name = msg_passwordColon; tins[1].def = clpEntry_getStrNum(c->passwordClp, serverNum); tins[1].callback = newPassword; tins[1].flags = abutMsgTinFlags_secret; buttons[0].name = msg_help; buttons[0].callback = cgoban_createHelpWindow; buttons[0].packet = &help_cliSetup; buttons[0].keyEq = cg_help; buttons[1].name = msg_cancel; buttons[1].callback = cancelPressed; buttons[1].packet = c; buttons[1].keyEq = NULL; buttons[2].name = msg_ok; buttons[2].callback = okPressed; buttons[2].packet = c; buttons[2].keyEq = cg_return; c->login = abutMsg_winOptInCreate(cg->abut, str_chars(&title), msg_loginDesc[c->cd->server], loginDestroyed, c, 3, buttons, 2, tins); str_deinit(&title); return(c); } static ButOut newUser(But *but, const char *user) { CliSetup *setup = but_packet(but); assert(MAGIC(setup)); but_setFlags(setup->login->tins[1], BUT_KEYED); return(0); } static ButOut newPassword(But *but, const char *pass) { CliSetup *setup = but_packet(but); assert(MAGIC(setup)); return(okPressed(setup->login->buts[2])); } void cliSetup_destroy(CliSetup *c) { assert(MAGIC(c)); if (c->login) { abutMsg_destroy(c->login, FALSE); c->login = NULL; } cliData_decRef(c->cd); MAGIC_UNSET(c); wms_free(c); } static ButOut loginDestroyed(void *packet) { CliSetup *c = packet; assert(MAGIC(c)); c->login = NULL; cliSetup_destroy(c); return(0); } static ButOut cancelPressed(But *but) { CliSetup *c = but_packet(but); assert(MAGIC(c)); butWin_destroy(c->login->win); return(0); } static ButOut okPressed(But *but) { CliSetup *c = but_packet(but); ButOut result = 0; const char *user, *pass; assert(MAGIC(c)); user = butTextin_get(abutMsg_tin(c->login, 0)); pass = butTextin_get(abutMsg_tin(c->login, 1)); clpEntry_setStrNum(c->userClp, user, c->serverNum); clpEntry_setStrNum(c->passwordClp, pass, c->serverNum); str_copyChars(&c->cd->userName, user); if (!cliLogin_create(c->cd, user, pass)) result = BUTOUT_ERR; cliSetup_destroy(c); return(result); } void cliSetup_createGmp(Cgoban *cg, int serverNum, const char *username, const char *password, const CliActions *actions, void *packet) { CliData *data; data = cliData_create(cg, serverNum, actions, packet); str_copyChars(&data->userName, username); cliLogin_create(data, username, password); } goban-1.1.orig/src/editInfo.c0000644000175000017500000002451610270000337013646 0ustar alal/* * src/editInfo.c, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include "sgf.h" #include "abut_msg.h" #include "msg.h" #include #include #ifdef _EDITINFO_H_ Levelization Error. #endif #include "editInfo.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut newTitle(But *but, const char *newStr); /********************************************************************** * Globals **********************************************************************/ static const struct { const char *title; SgfType type; GoStone color; } sgfVals[] = { {msg_gameTitle, sgfType_title, goStone_empty}, {msg_copyrightC, sgfType_copyright, goStone_empty}, {msg_wStoneName, sgfType_playerName, goStone_white}, {msg_bStoneName, sgfType_playerName, goStone_black}, {msg_wRank, sgfType_playerRank, goStone_white}, {msg_bRank, sgfType_playerRank, goStone_black}, {msg_handicapC, sgfType_handicap, goStone_empty}, {msg_komiC, sgfType_komi, goStone_empty}, {msg_time, sgfType_time, goStone_empty}, {msg_result, sgfType_result, goStone_empty}, {msg_date, sgfType_date, goStone_empty}, {msg_place, sgfType_place, goStone_empty}, {msg_event, sgfType_event, goStone_empty}, {msg_source, sgfType_source, goStone_empty}}; /********************************************************************** * Functions **********************************************************************/ EditInfo *editInfo_create(Cgoban *cg, Goban *goban, Sgf *sgf, void (*dCallback)(EditInfo *info, void *packet), void *packet) { int i, minW, minH, w, h, bw, fontH; ButEnv *env; EditInfo *info; bool err; EditInfoVal val; Str defValBuf; const char *defVal; SgfElem *elLookup; ButOut (*callback)(But *but, const char *newStr); info = wms_malloc(sizeof(EditInfo)); MAGIC_SET(info); env = cg->env; info->cg = cg; info->goban = goban; info->sgf = sgf; info->destroy = dCallback; info->packet = packet; fontH = cg->fontH; bw = butEnv_stdBw(env); minW = fontH * 24 + bw * 14; minH = minW; w = (double)minW * clp_getDouble(cg->clp, "edit.infoW") + 0.5; h = (double)minH * clp_getDouble(cg->clp, "edit.infoH") + 0.5; info->win = butWin_create(info, cg->env, "Cgoban Game Info", w, h, unmap, map, resize, destroy); i = clpEntry_iGetInt(clp_lookup(cg->clp, "edit.infoX"), &err); if (!err) butWin_setX(info->win, i); i = clpEntry_iGetInt(clp_lookup(cg->clp, "edit.infoY"), &err); if (!err) butWin_setY(info->win, i); butWin_setMinW(info->win, minW); butWin_setMinH(info->win, minH); butWin_setMaxW(info->win, 0); butWin_setMaxH(info->win, 0); butWin_activate(info->win); info->bg = butBoxFilled_create(info->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(info->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); info->winTitle = butText_create(info->win, 1, BUT_DRAWABLE, msg_editInfoTitle, butText_center); butText_setFont(info->winTitle, 2); str_init(&defValBuf); editInfoVal_iter(val) { info->infos[val].name = butText_create(info->win, 1, BUT_DRAWABLE, sgfVals[val].title, butText_left); defVal = ""; for (elLookup = &sgf->top; (elLookup != NULL) && (elLookup->type != sgfType_node); elLookup = elLookup->activeChild) { if ((elLookup->type == sgfVals[val].type) && ((sgfVals[val].color == goStone_empty) || (sgfVals[val].color == elLookup->gVal))) { switch(elLookup->type) { case sgfType_komi: str_print(&defValBuf, "%g", (double)elLookup->iVal / 2.0); defVal = str_chars(&defValBuf); break; case sgfType_handicap: str_print(&defValBuf, "%d", elLookup->iVal); defVal = str_chars(&defValBuf); break; default: defVal = str_chars(elLookup->sVal); break; } break; } } if (val == editInfo_gameTitle) callback = newTitle; else callback = NULL; info->infos[val].in = butTextin_create(callback, info, info->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, defVal, 1000); } str_deinit(&defValBuf); info->gameComment = abutTerm_create(cg->abut, info->win, 1, TRUE); for (elLookup = &sgf->top; (elLookup != NULL) && (elLookup->type != sgfType_node); elLookup = elLookup->activeChild) { if (elLookup->type == sgfType_gameComment) { abutTerm_set(info->gameComment, str_chars(elLookup->sVal)); break; } } return(info); } void editInfo_destroy(EditInfo *info, bool propagate) { Cgoban *cg; assert(MAGIC(info)); if (propagate) { info->destroy(info, info->packet); assert(MAGIC(info)); } if (info->win) { cg = info->cg; assert(MAGIC(cg)); clp_setDouble(cg->clp, "edit.infoW", (double)butWin_w(info->win) / (double)butWin_getMinW(info->win)); clp_setDouble(cg->clp, "edit.infoH", (double)butWin_h(info->win) / (double)butWin_getMinH(info->win)); clp_setInt(cg->clp, "edit.infoX", butWin_x(info->win)); clp_setInt(cg->clp, "edit.infoY", butWin_y(info->win)); butWin_setDestroy(info->win, NULL); butWin_destroy(info->win); } MAGIC_UNSET(info); wms_free(info); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { EditInfo *info = butWin_packet(win); int fontH, bw, w, h; int y; int w2; int lw, rw; EditInfoVal val; int textW, maxTextW; assert(MAGIC(info)); w = butWin_w(info->win); h = butWin_h(info->win); fontH = info->cg->fontH; bw = butEnv_stdBw(butWin_env(win)); but_resize(info->bg, 0, 0, w, h); but_resize(info->winTitle, bw*2, y = bw*2, w - bw*4, fontH*2); maxTextW = 0; editInfoVal_iter(val) { textW = butEnv_textWidth(info->cg->env, sgfVals[val].title, 0); if (textW > maxTextW) maxTextW = textW; } w2 = (w + bw) / 2; lw = w2 - bw * 3; rw = w - bw * 2 - w2; editInfoVal_iter(val) { if (val <= editInfo_copyright) { but_resize(info->infos[val].name, bw*2, y += bw + fontH*2, maxTextW, fontH*2); but_resize(info->infos[val].in, bw*3 + maxTextW, y, w - (bw*5 + maxTextW), fontH*2); } else { but_resize(info->infos[val].name, bw*2, y += bw + fontH*2, maxTextW, fontH*2); but_resize(info->infos[val].in, bw*3 + maxTextW, y, lw - (maxTextW + bw), fontH*2); ++val; but_resize(info->infos[val].name, w2, y, maxTextW, fontH*2); but_resize(info->infos[val].in, w2 + maxTextW + bw, y, rw - (maxTextW + bw), fontH*2); } } y += bw + fontH * 2; abutTerm_resize(info->gameComment, bw*2, y, w - bw*4, h - y - bw*2); return(0); } static ButOut destroy(ButWin *win) { EditInfo *info = butWin_packet(win); Cgoban *cg; assert(MAGIC(info)); editInfo_updateSgf(info); cg = info->cg; assert(MAGIC(cg)); clp_setDouble(cg->clp, "edit.infoW", (double)butWin_w(win) / (double)butWin_getMinW(win)); clp_setDouble(cg->clp, "edit.infoH", (double)butWin_h(win) / (double)butWin_getMinH(win)); clp_setInt(cg->clp, "edit.infoX", butWin_x(win)); clp_setInt(cg->clp, "edit.infoY", butWin_y(win)); info->win = NULL; editInfo_destroy(info, TRUE); return(0); } static ButOut newTitle(But *but, const char *newStr) { EditInfo *info = but_packet(but); assert(MAGIC(info)); assert(but == info->infos[editInfo_gameTitle].in); editInfo_updateSgf(info); butText_set(info->goban->labelText, newStr); return(0); } /* * This function is really badly structured. I should fix it up. */ void editInfo_updateSgf(EditInfo *info) { EditInfoVal val; const char *newVal; SgfElem *elLookup; int newIval; bool found, change, err; SgfInsert oldMode; newIval = 0; /* To shut up the warning from gcc. */ change = FALSE; /* To shut up the warning from gcc. */ assert(MAGIC(info)); editInfoVal_iter(val) { newVal = butTextin_get(info->infos[val].in); found = FALSE; for (elLookup = &info->sgf->top; (elLookup != NULL) && (elLookup->type != sgfType_node); elLookup = elLookup->activeChild) { if ((elLookup->type == sgfVals[val].type) && ((sgfVals[val].color == goStone_empty) || (sgfVals[val].color == elLookup->gVal))) { found = TRUE; break; } } err = FALSE; if (val == editInfo_komi) { newIval = (int)(wms_atof(newVal, &err) * 2.0); } else if (val == editInfo_handicap) { newIval = wms_atoi(newVal, &err); } if (!found) { if (newVal[0] != '\0') change = TRUE; } else { if ((val == editInfo_komi) || (val == editInfo_handicap)) { change = (newIval != elLookup->iVal); } else { change = strcmp(newVal, str_chars(elLookup->sVal)); } } if (change) { if (found) { if ((val == editInfo_komi) || (val == editInfo_handicap)) { if (!err) elLookup->iVal = newIval; } else { str_copyChars(elLookup->sVal, newVal); } } else { elLookup = info->sgf->active; info->sgf->active = info->sgf->top.activeChild; oldMode = info->sgf->mode; info->sgf->mode = sgfInsert_inline; if ((val == editInfo_komi) || (val == editInfo_handicap)) { if (!err) sgf_addCIElem(info->sgf, sgfVals[val].type, sgfVals[val].color, newIval); } else { sgf_addCSElem(info->sgf, sgfVals[val].type, sgfVals[val].color, newVal); } info->sgf->mode = oldMode; info->sgf->active = elLookup; } } } newVal = butTbin_get(info->gameComment->tbin); found = FALSE; for (elLookup = &info->sgf->top; (elLookup != NULL) && (elLookup->type != sgfType_node); elLookup = elLookup->activeChild) { if (elLookup->type == sgfType_gameComment) { found = TRUE; break; } } if (found) { if (strcmp(newVal, str_chars(elLookup->sVal))) { str_copyChars(elLookup->sVal, newVal); } } else { if (newVal[0] != '\0') { elLookup = info->sgf->active; info->sgf->active = info->sgf->top.activeChild; oldMode = info->sgf->mode; info->sgf->mode = sgfInsert_inline; sgf_addCSElem(info->sgf, sgfType_gameComment, goStone_empty, newVal); info->sgf->mode = oldMode; info->sgf->active = elLookup; } } } goban-1.1.orig/src/i_finder.c0000644000175000017500000004051710270072353013672 0ustar alal/* * wmslib/src/but/i_finder.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include static void addButToCol(ButCol *col, But *but, int y1, int y2); static void addButToRow(ButRow *row, But *but); static void copyCol(ButCol *dest, ButCol *src); static void copyRow(ButRow *dest, ButRow *src); static void findButSetInCol(ButCol *col, int x, int y, ButSet *butset); static void butDelFromCol(ButCol *col, But *but); static void butDelFromRow(ButRow *row, But *but); static bool colEq(ButCol *c1, ButCol *c2); static bool rowEq(ButRow *r1, ButRow *r2); static void colDel(ButWin *win, int col_num); static void rowDel(ButCol *col, int row_num); static int markForTable(But *but, void *packet); static int addToTable(But *but, void *packet); static int butcomp(const void *a, const void *b); #if 0 /* Useful sometimes for debugging. */ void printf_table(but_win_t *win); void printf_env(but_env_t *win); #endif void butWin_addToTable(ButWin *win) { ButEnv *env = win->env; ButWin **new_winlist; int i, j, new_pos; assert(MAGIC(win)); if (win->win != None) { /* * If win->win is None, then it is a canvas, which does not have to * be entered into the window table yet. */ if (env->wlmax == env->wllen) { new_winlist = wms_malloc(sizeof(ButWin *) * (env->wllen + 1) * 2); for (i = 0; i < env->wllen; ++i) new_winlist[i] = env->winlist[i]; if (env->winlist != NULL) wms_free(env->winlist); env->winlist = new_winlist; env->wlmax = (env->wllen + 1) * 2; } for (i = 0; (i < env->wllen) && (win->win > env->winlist[i]->win); ++i); new_pos = i; for (i = env->wllen; i > new_pos; --i) env->winlist[i] = env->winlist[i-1]; env->winlist[new_pos] = win; ++env->wllen; } if (win->numCols == 0) { /* * A canvas may call this function every time the pixmap changes, so * we have to make sure that we don't re-allocate all this stuff! */ win->numCols = 2; win->maxCols = 2; win->cols = wms_malloc(2 * sizeof(ButCol)); win->cols[0].startX = int_min; win->cols[1].startX = int_max; for (i = 0; i < 2; ++i) { MAGIC_SET(&win->cols[i]); win->cols[i].numRows = 2; win->cols[i].maxRows = 2; win->cols[i].rows = wms_malloc(2 * sizeof(ButRow)); win->cols[i].rows[0].startY = int_min; win->cols[i].rows[1].startY = int_max; for (j = 0; j < 2; ++j) { MAGIC_SET(&win->cols[i].rows[j]); win->cols[i].rows[j].numButs = 0; win->cols[i].rows[j].maxButs = 0; win->cols[i].rows[j].buts = NULL; } } } #if DEBUG for (i = 1; i < env->wllen; ++i) { assert(env->winlist[i]->win > env->winlist[i - 1]->win); } #endif /* DEBUG */ } void butWin_rmFromTable(ButWin *win) { ButEnv *env = win->env; int i; assert(MAGIC(win)); assert(MAGIC(env)); for (i = 0; (env->winlist[i] != win) && (i < env->wllen); ++i); if (i < env->wllen) { --env->wllen; while (i < env->wllen) { env->winlist[i] = env->winlist[i+1]; ++i; } } #if DEBUG for (i = 1; i < env->wllen; ++i) { assert(env->winlist[i]->win > env->winlist[i - 1]->win); } #endif /* DEBUG */ } void but_addToTable(But *but) { ButWin *win = but->win; int x1 = but->x, y1 = but->y, x2 = but->x + but->w, y2 = but->y + but->h; int i, src, dest; ButCol *new_cl = win->cols; int new_cll = win->numCols, new_clmax = win->maxCols; int x1done = 0, x2done = 0; assert(MAGIC(but)); assert(but->flags & BUT_DRAWABLE); butSet_delBut(&win->butsNoDraw, but); for (i = 0; i < new_cll; ++i) { assert(MAGIC(&new_cl[i])); if (new_cl[i].startX == x1) x1done = 1; else if (new_cl[i].startX == x2) x2done = 1; } new_cll += 2 - (x1done + x2done); if (new_cll > win->maxCols) { new_cl = wms_malloc(sizeof(ButCol) * (new_clmax = new_cll * 2)); for (i = 0; i < new_clmax; ++i) { MAGIC_SET(&new_cl[i]); new_cl[i].rows = NULL; } } for (src = win->numCols, dest = new_cll; src > 0;) { --src; --dest; assert(MAGIC(&win->cols[src])); if (!x2done && (win->cols[src].startX < x2)) { assert(MAGIC(&new_cl[dest])); copyCol(&new_cl[dest], &win->cols[src]); new_cl[dest--].startX = x2; x2done = 1; } if (!x1done && (win->cols[src].startX < x1)) { assert(MAGIC(&new_cl[dest])); copyCol(&new_cl[dest], &win->cols[src]); new_cl[dest].startX = x1; addButToCol(&new_cl[dest--], but, y1, y2); x1done = 1; } assert(MAGIC(&new_cl[dest])); new_cl[dest] = win->cols[src]; if ((new_cl[dest].startX < x2) && (new_cl[dest].startX >= x1)) addButToCol(&new_cl[dest], but, y1, y2); } if (win->cols != new_cl) { for (i = 0; i < win->maxCols; ++i) MAGIC_UNSET(&win->cols[i]); wms_free(win->cols); win->cols = new_cl; } win->maxCols = new_clmax; win->numCols = new_cll; } static void addButToCol(ButCol *col, But *but, int y1, int y2) { ButRow *new_rl = col->rows; int i, src, dest, new_rll = col->numRows, new_rlmax = col->maxRows; int y1done=0, y2done=0; assert(MAGIC(col)); assert(MAGIC(but)); for (i = 0; i < col->numRows; ++i) { assert(MAGIC(&col->rows[i])); if (col->rows[i].startY == y1) y1done = 1; if (col->rows[i].startY == y2) y2done = 1; } new_rll += 2 - (y1done + y2done); if (new_rll > col->maxRows) { new_rl = wms_malloc(sizeof(ButRow) * (new_rlmax = new_rll * 2)); for (i = 0; i < new_rlmax; ++i) { MAGIC_SET(&new_rl[i]); new_rl[i].buts = NULL; } } for (src = col->numRows, dest = new_rll; src > 0;) { --src; --dest; assert(MAGIC(&col->rows[src])); if (!y2done && (col->rows[src].startY < y2)) { assert(MAGIC(&new_rl[dest])); copyRow(&new_rl[dest], &col->rows[src]); new_rl[dest--].startY = y2; y2done = 1; } if (!y1done && (col->rows[src].startY < y1)) { assert(MAGIC(&new_rl[dest])); copyRow(&new_rl[dest], &col->rows[src]); new_rl[dest].startY = y1; addButToRow(&new_rl[dest--], but); y1done = 1; } assert(MAGIC(&new_rl[dest])); new_rl[dest] = col->rows[src]; if ((new_rl[dest].startY < y2) && (new_rl[dest].startY >= y1)) addButToRow(&new_rl[dest], but); } if (col->rows != new_rl) { if (col->rows != NULL) { wms_free(col->rows); for (i = 0; i < col->maxRows; ++i) MAGIC_UNSET(&col->rows[i]); } col->rows = new_rl; } col->maxRows = new_rlmax; col->numRows = new_rll; } static void addButToRow(ButRow *row, But *but) { int i, new_maxButs = row->maxButs, new_numButs = row->numButs + 1; But **new_bl = row->buts; assert(MAGIC(row)); assert(MAGIC(but)); if (new_numButs >= row->maxButs) { new_bl = wms_malloc(sizeof(But *) * (new_maxButs = new_numButs * 2)); for (i = 0; i < row->numButs; ++i) new_bl[i] = row->buts[i]; } for (i = row->numButs - 1; (i >= 0) && (but->layer < row->buts[i]->layer); --i) { assert(MAGIC(new_bl[i])); assert(new_bl[i] != but); new_bl[i+1] = new_bl[i]; } new_bl[i+1] = but; #if DEBUG for (; i >= 0; --i) assert(new_bl[i] != but); #endif if ((row->buts != NULL) && (row->buts != new_bl)) wms_free(row->buts); row->buts = new_bl; row->numButs = new_numButs; row->maxButs = new_maxButs; } static void copyCol(ButCol *dest, ButCol *src) { int i; assert(MAGIC(dest)); assert(MAGIC(src)); *dest = *src; dest->rows = wms_malloc(dest->maxRows * sizeof(ButRow)); for (i = 0; i < dest->maxRows; ++i) MAGIC_SET(&dest->rows[i]); for (i = 0; i < dest->numRows; ++i) copyRow(&dest->rows[i], &src->rows[i]); } static void copyRow(ButRow *dest, ButRow *src) { int i; assert(MAGIC(dest)); assert(MAGIC(src)); *dest = *src; dest->buts = wms_malloc(dest->maxButs * sizeof(But *)); for (i = 0; i < dest->numButs; ++i) dest->buts[i] = src->buts[i]; } void butWin_findButSet(ButWin *win, int x, int y, ButSet *butset) { unsigned hlen, result = 0, cllen = win->numCols; assert(MAGIC(win)); butset->dynamic = FALSE; while ((hlen = (cllen >> 1))) { assert(MAGIC(&win->cols[result+hlen])); if (win->cols[result+hlen].startX > x) { cllen = hlen; } else { cllen -= hlen; result += hlen; } } findButSetInCol(&win->cols[result], x, y, butset); } static void findButSetInCol(ButCol *col, int x, int y, ButSet *butset) { unsigned hlen, result = 0, rllen = col->numRows; assert(MAGIC(col)); while ((hlen = (rllen >> 1))) { assert(MAGIC(&col->rows[result+hlen])); if (col->rows[result+hlen].startY > y) { rllen = hlen; } else { rllen -= hlen; result += hlen; } } butset->numButs = col->rows[result].numButs; butset->buts = col->rows[result].buts; butset->dynamic = FALSE; } void but_delFromTable(But *but) { ButWin *win = but->win; int i; ButCol *cl = win->cols; assert(MAGIC(but)); assert(MAGIC(win)); for (i = 1; i < win->numCols - 1; ++i) { assert(MAGIC(&cl[i])); if ((cl[i].startX >= but->x) && (cl[i].startX < but->x + but->w)) { butDelFromCol(&cl[i], but); if (colEq(&cl[i-1], &cl[i])) { colDel(win, i); --i; } if ((i+1 < win->numCols - 1) && colEq(&cl[i], &cl[i+1])) colDel(win, i+1); } } } static bool colEq(ButCol *c1, ButCol *c2) { int i; assert(MAGIC(c1)); assert(MAGIC(c2)); if (c1->numRows != c2->numRows) return(FALSE); for (i = 0; i < c1->numRows; ++i) { if (!rowEq(&c1->rows[i], &c2->rows[i])) return(FALSE); } return(TRUE); } static bool rowEq(ButRow *r1, ButRow *r2) { int i; assert(MAGIC(r1)); assert(MAGIC(r2)); if (r1->numButs != r2->numButs) return(FALSE); for (i = 0; i < r1->numButs; ++i) { if (r1->buts[i] != r2->buts[i]) return(FALSE); } return(TRUE); } static void butDelFromCol(ButCol *col, But *but) { int i; ButRow *rl = col->rows; assert(MAGIC(col)); for (i = 1; i < col->numRows - 1; ++i) { assert(MAGIC(&rl[i])); if ((rl[i].startY >= but->y) && (rl[i].startY < but->y + but->h)) { butDelFromRow(&rl[i], but); if (rowEq(&rl[i-1], &rl[i])) { rowDel(col, i); --i; } if ((i+1 < col->numRows - 1) && rowEq(&rl[i], &rl[i+1])) rowDel(col, i+1); } } } static void butDelFromRow(ButRow *row, But *but) { int dest, src; assert(MAGIC(row)); for (dest = 0, src = 0; src < row->numButs; ++src) { assert(MAGIC(row->buts[src])); row->buts[dest] = row->buts[src]; if (row->buts[dest] != but) { ++dest; } else { assert(src == dest); } } assert(src == dest + 1); --row->numButs; assert(dest == row->numButs); } static void colDel(ButWin *win, int col_num) { int i; assert(MAGIC(win)); assert(MAGIC(&win->cols[col_num])); for (i = 0; i < win->cols[col_num].numRows; ++i) { assert(MAGIC(&win->cols[col_num].rows[i])); if (win->cols[col_num].rows[i].buts != NULL) wms_free(win->cols[col_num].rows[i].buts); } wms_free(win->cols[col_num].rows); --win->numCols; for (i = col_num; i < win->numCols; ++i) win->cols[i] = win->cols[i+1]; } static void rowDel(ButCol *col, int row_num) { int i; assert(MAGIC(col)); assert(MAGIC(&col->rows[row_num])); if (col->rows[row_num].buts != NULL) wms_free(col->rows[row_num].buts); --col->numRows; for (i = row_num; i < col->numRows; ++i) col->rows[i] = col->rows[i+1]; } void butWin_findButSetInRegion(ButWin *win, int x, int y, int w, int h, ButSet *butset) { assert(MAGIC(win)); butset->numButs = 0; butset->dynamic = TRUE; butWin_findButsInRegion(win, x,y, w,h, markForTable, butset); if (butset->numButs > 0) { butset->buts = wms_malloc(butset->numButs * sizeof(But *)); butset->maxButs = butset->numButs; butset->numButs = 0; butWin_findButsInRegion(win, x,y, w,h, addToTable, butset); qsort(butset->buts, butset->numButs, sizeof(But *), butcomp); } else { butset->dynamic = FALSE; butset->buts = NULL; } } static int markForTable(But *but, void *packet) { ButSet *butset = packet; assert(MAGIC(but)); if ((but->flags & (BUT_TABLED|BUT_DEAD|BUT_DRAWABLE)) == BUT_DRAWABLE) { ++butset->numButs; but->flags |= BUT_TABLED; } return(0); } static int addToTable(But *but, void *packet) { ButSet *butset = packet; assert(MAGIC(but)); if (but->flags & BUT_TABLED) { butset->buts[butset->numButs++] = but; assert(butset->numButs <= butset->maxButs); but->flags &= ~BUT_TABLED; } return(0); } static int butcomp(const void *a, const void *b) { const But *but_a = *(But **)a; const But *but_b = *(But **)b; assert(MAGIC(but_a)); assert(MAGIC(but_b)); if (but_a->layer != but_b->layer) return(but_a->layer - but_b->layer); else if (but_a > but_b) return(-1); else return(1); } ButWin *butEnv_findWin(ButEnv *env, Window win) { int wmin = 0, wmax = env->wllen, wnum; #if DEBUG for (wnum = 1; wnum < env->wllen; ++wnum) { assert(env->winlist[wnum]->win > env->winlist[wnum - 1]->win); } #endif /* DEBUG */ while (wmin < wmax) { wnum = (wmax + wmin) >> 1; assert(MAGIC(env->winlist[wnum])); if (env->winlist[wnum]->win == win) { return(env->winlist[wnum]); } if (env->winlist[wnum]->win > win) { wmax = wnum; } else { wmin = wnum + 1; } } return(NULL); } But *butWin_findButsInRegion(ButWin *win, int x,int y, int w,int h, bool (*action)(But *but, void *packet), void *packet) { int r, c, b; ButCol *col; ButRow *row; But *but; assert(MAGIC(win)); for (c = 1; c < win->numCols - 1; ++c) { col = &win->cols[c]; assert(MAGIC(col)); if ((col->startX < x+w) && (win->cols[c+1].startX > x)) { for (r = 1; r < col->numRows - 1; ++r) { row = &col->rows[r]; assert(MAGIC(row)); if ((row->startY < y+h) && (col->rows[r+1].startY > y)) { for (b = 0; b < row->numButs; ++b) { but = row->buts[b]; assert(MAGIC(but)); if (action(but, packet)) return(but); } } } } } return(NULL); } #if 0 /* Sometimes useful for debugging. */ void printf_env(but_env_t *env) { int i; printf("Env has %d (max %d) windows:\n", env->wllen, env->wlmax); for (i = 0; i < env->wllen; ++i) printf(" 0x%x (x win %d)\n", (int)env->winlist[i], (int)(env->winlist[i]->win)); } void printf_table(but_win_t *win) { int i, j, k; for (i = 0; i < win->numCols - 1; ++i) { printf("Col %d of %d: %d..%d\n", i+1, win->numCols - 1, win->cols[i].startX, win->cols[i+1].startX - 1); for (j = 0; j < win->cols[i].numRows - 1; ++j) { printf(" Row %d of %d: %d..%d\n", j+1, win->cols[i].numRows - 1, win->cols[i].rows[j].startY, win->cols[i].rows[j+1].startY - 1); if (win->cols[i].rows[j].numButs == 0) printf(" No buttons.\n"); else { for (k = 0; k < win->cols[i].rows[j].numButs; ++k) printf(" But 0x%x\n", (int)win->cols[i].rows[j].buts[k]); } } } printf("---\n"); } #endif void butSet_addBut(ButSet *butset, But *but) { int i, new_maxButs; But **newbuts; assert(MAGIC(butset)); assert(butset->dynamic); for (i = 0; i < butset->numButs; ++i) { if (butset->buts[i] == but) return; } if (butset->numButs == butset->maxButs) { new_maxButs = (butset->maxButs + 1) * 2; newbuts = wms_malloc(new_maxButs * sizeof(But *)); if (butset->buts != NULL) { memcpy(newbuts, butset->buts, butset->maxButs * sizeof(But *)); wms_free(butset->buts); } butset->buts = newbuts; butset->maxButs = new_maxButs; } butset->buts[butset->numButs++] = but; } void butSet_delBut(ButSet *butset, But *but) { int i; assert(MAGIC(butset)); for (i = 0; i < butset->numButs; ++i) { if (butset->buts[i] == but) { butset->buts[i] = butset->buts[--butset->numButs]; return; } } } #endif goban-1.1.orig/src/i_general.h0000644000175000017500000000045606035353012014041 0ustar alal/* * wmslib/src/but/i_general.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for auxiliary button code. */ #ifndef _BUT_I_GENERAL_H_ #define _BUT_I_GENERAL_H_ 1 #endif /* _BUT_I_GENERAL_H_ */ goban-1.1.orig/src/timer.c0000644000175000017500000001244110270072425013226 0ustar alal/* * wmslib/src/but/timer.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #include #include #include #include #include #include #include #include #include ButTimer *butTimer_create(void *packet, But *but, struct timeval delay, struct timeval period, bool winOnly, ButOut (*timerFunc)(ButTimer *timer)) { ButTimer *bt; struct timeval now; struct timezone tzone; bt = wms_malloc(sizeof(ButTimer)); MAGIC_SET(bt); bt->packet = packet; bt->eventNum = 0; bt->period = period; bt->state = butTimer_on; gettimeofday(&now, &tzone); bt->nextFiring = but_timerAdd(now, delay); if (but) bt->win = but->win; else bt->win = NULL; bt->but = but; bt->timerFunc = timerFunc; bt->winOnly = winOnly; bt->next = but_timerList; bt->freqCounter = FALSE; but_timerList = bt; return(bt); } ButTimer *butTimer_fCreate(void *packet, But *but, struct timeval delay, int frequency, bool winOnly, ButOut (*timerFunc)(ButTimer *timer)) { ButTimer *bt; struct timeval now; struct timezone tzone; int i; bt = wms_malloc(sizeof(ButTimer)); MAGIC_SET(bt); bt->packet = packet; bt->eventNum = 0; bt->period.tv_sec = 0; bt->winOnly = winOnly; if (frequency < BUTTIMER_MAXFREQ) { bt->period.tv_usec = 1000000 / frequency; bt->ticksPerPeriod = 1; } else { bt->period.tv_usec = 1000000 / BUTTIMER_STDFREQ; bt->ticksPerPeriod = (frequency + BUTTIMER_STDFREQ/2) / BUTTIMER_STDFREQ; } bt->state = butTimer_on; gettimeofday(&now, &tzone); bt->nextFiring = but_timerAdd(now, delay); if (but) bt->win = but->win; else bt->win = NULL; bt->but = but; bt->timerFunc = timerFunc; bt->next = but_timerList; bt->freqCounter = TRUE; for (i = 0; i < BUTTIMER_HIST; ++i) bt->lastRes[i] = 1; bt->resnum = 0; bt->ticksLeft = 0; but_timerList = bt; return(bt); } void butTimer_destroy(ButTimer *timer) { assert(MAGIC(timer)); timer->state = butTimer_dead; } void butTimer_reset(ButTimer *timer) { struct timeval now; struct timezone tzone; assert(MAGIC(timer)); timer->eventNum = 0; gettimeofday(&now, &tzone); timer->nextFiring = but_timerAdd(now, timer->period); } struct timeval but_timerAdd(struct timeval t1, struct timeval t2) { struct timeval r; r.tv_sec = t1.tv_sec + t2.tv_sec; if ((r.tv_usec = t1.tv_usec + t2.tv_usec) > 1000000) { r.tv_usec -= 1000000; ++r.tv_sec; } return(r); } struct timeval but_timerSub(struct timeval t1, struct timeval t2) { struct timeval r; r.tv_sec = t1.tv_sec - t2.tv_sec; if ((r.tv_usec = t1.tv_usec - t2.tv_usec) < 0) { r.tv_usec += 1000000; --r.tv_sec; } if (r.tv_sec < 0) r.tv_sec += 60*60*24; return(r); } int but_timerDiv(struct timeval t1, struct timeval t2, struct timeval *remainder) { int result; long it1, it2, irem; it1 = (t1.tv_sec*1000000L) + t1.tv_usec; it2 = (t2.tv_sec*1000000L) + t2.tv_usec; result = it1 / it2; if (remainder != NULL) { irem = it1 % it2; remainder->tv_usec = irem % 1000000; remainder->tv_sec = irem / 1000000; } return(result); } int butEnv_checkTimers(ButEnv *env, struct timeval *timeout) { struct timeval current_time, next_timer, timerem; struct timezone tzone; bool take_timer, timer_set = FALSE; ButTimer *bt, *bt2; int ticks, i, orig_ticks; int result = 0; /* First, kill off all the dead timers. */ for (bt = but_timerList; bt != NULL;) { if (bt->state == butTimer_dead) { if (bt == but_timerList) but_timerList = bt->next; else { for (bt2 = but_timerList; bt2->next != bt; bt2 = bt2->next); bt2->next = bt->next; } bt2 = bt->next; MAGIC_UNSET(bt); wms_free(bt); bt = bt2; } else { bt = bt->next; } } gettimeofday(¤t_time, &tzone); for (bt = but_timerList; bt != NULL; bt = bt->next) { if (bt->state == butTimer_on) { if (timercmp(&bt->nextFiring, ¤t_time, <)) { take_timer = TRUE; ticks = but_timerDiv(but_timerSub(current_time, bt->nextFiring), bt->period, &timerem) + 1 + bt->ticksLeft; take_timer = TRUE; orig_ticks = ticks; if (bt->freqCounter) { for (i = 0; i < BUTTIMER_HIST; ++i) { if (bt->lastRes[i] > ticks) { take_timer = FALSE; } } if (!bt->ticksLeft) { bt->lastRes[bt->resnum] = ticks; bt->resnum = (bt->resnum + 1) & (BUTTIMER_HIST - 1); } ticks *= bt->ticksPerPeriod; } bt->nextFiring = but_timerSub(but_timerAdd(current_time, bt->period), timerem); if (take_timer) { bt->eventNum += ticks; result |= bt->timerFunc(bt); XSync(env->dpy, False); bt->ticksLeft = 0; } else bt->ticksLeft += orig_ticks; } if (!timer_set || timercmp(&bt->nextFiring, &next_timer, <)) { timer_set = TRUE; next_timer = bt->nextFiring; } } } if (timer_set) *timeout = but_timerSub(next_timer, current_time); else { timeout->tv_usec = 0; timeout->tv_sec = 365*24*60*60; /* 1 spurious interrupt per year. */ } return(result); } #endif /* X11_DISP */ goban-1.1.orig/src/term.c0000644000175000017500000001234010270056746013063 0ustar alal/* * wmslib/src/abut/term.c, part of wmslib (Library functions) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. * * Source code for "term" scrolling terminal-like widgety thing. */ #include #include #include #include #include #include #ifdef _ABUT_TERM_H_ Levelization Error. #endif #include "term.h" /********************************************************************** * Forward declarations **********************************************************************/ static ButWinFunc resize; static void curOffWin(But *but, int activeLine, int passiveLine, int mouseY); /********************************************************************** * Functions **********************************************************************/ AbutTerm *abutTerm_create(Abut *abut, ButWin *parent, int layer, bool editable) { AbutTerm *term; assert(MAGIC(abut)); term = wms_malloc(sizeof(AbutTerm)); MAGIC_SET(term); term->abut = abut; term->swin = abutSwin_create(term, parent, layer, BUT_DRAWABLE|BUT_PRESSABLE, resize); if (editable) term->bg = butPlain_create(term->swin->win, 0, BUT_DRAWABLE, BUT_HIBG); else term->bg = butPlain_create(term->swin->win, 0, BUT_DRAWABLE, BUT_BG); term->tbin = butTbin_create(term->swin->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, ""); if (!editable) butTbin_setReadOnly(term->tbin, TRUE); butTbin_setOffWinCallback(term->tbin, curOffWin); term->state = abutTermState_steady; return(term); } void abutTerm_destroy(AbutTerm *term) { assert(MAGIC(term)); MAGIC_UNSET(term); } void abutTerm_set(AbutTerm *term, const char *text) { ButEnv *env; assert(MAGIC(term)); env = term->abut->env; butTbin_set(term->tbin, text); butCan_resizeWin(term->swin->win, 0, butTbin_numLines(term->tbin) * butEnv_fontH(env, 0) + butEnv_stdBw(env) * 2, TRUE); } void abutTerm_resize(AbutTerm *term, int x, int y, int w, int h) { int fontH = butEnv_fontH(term->abut->env, 0); int bw = butEnv_stdBw(term->abut->env); assert(MAGIC(term)); abutSwin_resize(term->swin, x, y, w, h, (fontH * 3) / 2, fontH); butCan_resizeWin(term->swin->win, 0, butTbin_numLines(term->tbin) * fontH + bw * 2, TRUE); } static ButOut resize(ButWin *win) { AbutSwin *swin = butWin_packet(win); AbutTerm *term = swin->packet; char *temp; int w, h, len; int bw; assert(MAGIC(swin)); assert(MAGIC(term)); w = butWin_w(win); h = butWin_h(win); but_resize(term->bg, 0,0, w,h); bw = butEnv_stdBw(term->abut->env); if (but_w(term->tbin) == w) { but_resize(term->tbin, 0,bw, w,h - bw); } else { /* * This is a mega-cheesy kludge to work around the non-resizability of * a tbin widget. Basically I cut the whole terminal script, clear it, * resize the tbin, then paste it all back in. Ugh. */ len = butTbin_len(term->tbin); temp = wms_malloc(len + 1); memcpy(temp, butTbin_get(term->tbin), len); temp[len] = '\0'; butTbin_set(term->tbin, ""); but_resize(term->tbin, 0,bw, w,h - bw); butTbin_set(term->tbin, temp); wms_free(temp); } return(0); } static void curOffWin(But *but, int activeLine, int passiveLine, int mouseY) { ButWin *win = but_win(but); ButEnv *env = butWin_env(win); AbutSwin *swin = butWin_packet(win); AbutTerm *term; int y, h, bw = butEnv_stdBw(env); int lines; AbutTermState newState; assert(MAGIC(swin)); term = swin->packet; assert(MAGIC(term)); newState = abutTermState_steady; h = butEnv_fontH(env, 0); y = activeLine * h + bw; if (passiveLine != activeLine) { if (y <= butCan_yOff(win) + bw) { if (mouseY < butCan_yOff(win) - h) newState = abutTermState_fastUp; else if (mouseY < butCan_yOff(win)) newState = abutTermState_slowUp; } else if (y + h + bw >= butCan_yOff(win) + butWin_viewH(win)) { if (mouseY > butCan_yOff(win) + butWin_viewH(win) + h) newState = abutTermState_fastDown; else if (mouseY > butCan_yOff(win) + butWin_viewH(win)) newState = abutTermState_slowDown; } } if (newState != term->state) { term->state = newState; switch(newState) { case abutTermState_fastUp: butSlide_startSlide(swin->vSlide, FALSE, -h*10, FALSE); break; case abutTermState_slowUp: butSlide_startSlide(swin->vSlide, FALSE, -h, FALSE); break; case abutTermState_steady: butSlide_stopSlide(swin->vSlide); break; case abutTermState_slowDown: butSlide_startSlide(swin->vSlide, FALSE, h, FALSE); break; case abutTermState_fastDown: butSlide_startSlide(swin->vSlide, FALSE, h*10, FALSE); break; } } if (passiveLine == activeLine) { lines = butTbin_numLines(but); if (activeLine >= lines) lines = activeLine + 1; if (lines * h + bw * 2 > butWin_h(win)) { butCan_resizeWin(swin->win, 0, lines * h + bw * 2, TRUE); } if (y < butCan_yOff(win)) { y -= bw; butCan_slide(win, BUT_NOCHANGE, y, TRUE); } else if (y + h > butCan_yOff(win) + butWin_viewH(win)) { y = y + h + bw - butWin_viewH(win); butCan_slide(win, BUT_NOCHANGE, y, TRUE); } } } goban-1.1.orig/src/rnd.h0000644000175000017500000000133606040315654012703 0ustar alal/* * wmslib/src/wms/rnd.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _WMS_RND_H_ #define _WMS_RND_H_ 1 #ifndef _WMS_H_ #include #endif #define RND_DATASIZE 31 #define RND_INDENT 3 typedef struct Rnd_struct { int indent; uint32 data[RND_DATASIZE]; MAGIC_STRUCT } Rnd; extern int rnd_int(Rnd *state); /* No negative numbers. */ extern uint rnd_uint(Rnd *state); /* Random bit field. */ extern int rnd_int32(Rnd *state); extern uint rnd_uint32(Rnd *state); extern Rnd *rnd_create(uint seed); extern void rnd_destroy(Rnd *state); extern float rnd_float(Rnd *state); #endif /* _WMS_RND_H_ */ goban-1.1.orig/src/client.c0000644000175000017500000001304310270066221013360 0ustar alal/* * src/gmp/setup.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "client.h" #include "gameSetup.h" #include "msg.h" #include "play.h" #include "client_setup.h" /********************************************************************** * Forward declarations **********************************************************************/ static void newGame(void *packet, GoStone localColor, int size, int handicap, float komi, int mainTime, int byTime, void *board); static void gotMoveFromServer(void *packet, GoStone color, int loc); static void endGame(void *packet); static void logout(void *packet); static void gotUndoFromServer(void *packet); static ButOut gotMoveFromProg(GmpEngine *ge, void *packet, GoStone color, int x, int y); static ButOut gotErrFromProg(GmpEngine *ge, void *packet, const char *errStr); static ButOut undoMoves(GmpEngine *ge, void *packet, int numUndos); /********************************************************************** * Functions **********************************************************************/ GmpClient *gmpClient_create(Cgoban *cg, const char *progName, CliServer server, const char *user, const char *password) { GmpClient *cli; static const CliActions actions = { newGame, gotMoveFromServer, gotUndoFromServer, endGame, logout}; assert(MAGIC(cg)); cli = wms_malloc(sizeof(GmpClient)); MAGIC_SET(cli); cli->cg = cg; cli->inGame = FALSE; str_initChars(&cli->progName, progName); cliSetup_createGmp(cg, server, user, password, &actions, cli); return(cli); } static void newGame(void *packet, GoStone localColor, int size, int handicap, float komi, int mainTime, int byTime, void *board) { static const GmpActions actions = {NULL, gotMoveFromProg, undoMoves, gotErrFromProg}; GmpClient *cli = packet; Str error; assert(MAGIC(cli)); if (cli->inGame) endGame(cli); cli->size = size; cli->cliBoard = board; cli->pid = gmp_forkProgram(cli->cg, &cli->inFile, &cli->outFile, str_chars(&cli->progName), mainTime, byTime); if (cli->pid < 0) { str_init(&error); str_print(&error, msg_progRunErr, strerror(errno), str_chars(&cli->progName)); cgoban_createMsgWindow(cli->cg, "Cgoban Error", str_chars(&error)); str_deinit(&error); close(cli->inFile); close(cli->outFile); } else { gmpEngine_init(cli->cg, &cli->ge, cli->inFile, cli->outFile, &actions, cli); cli->inGame = TRUE; gmpEngine_startGame(&cli->ge, size, handicap, komi, FALSE, (localColor != goStone_white)); } } static void gotMoveFromServer(void *packet, GoStone color, int loc) { GmpClient *gc = packet; assert(MAGIC(gc)); if (gc->inGame) { if (loc == 0) gmpEngine_sendPass(&gc->ge); else { gmpEngine_sendMove(&gc->ge, goBoard_loc2X(gc->cliBoard->game->board, loc), goBoard_loc2Y(gc->cliBoard->game->board, loc)); } } } static void endGame(void *packet) { GmpClient *gc = packet; int dummy; assert(MAGIC(gc)); if (gc->inGame) { gc->inGame = FALSE; kill(gc->pid, SIGTERM); waitpid(gc->pid, &dummy, 0); close(gc->inFile); close(gc->outFile); gmpEngine_deinit(&gc->ge); } } static void logout(void *packet) { GmpClient *gc = packet; assert(MAGIC(gc)); gmpClient_destroy(gc); } void gmpClient_destroy(GmpClient *gc) { assert(MAGIC(gc)); if (gc->inGame) endGame(gc); str_deinit(&gc->progName); MAGIC_UNSET(gc); wms_free(gc); } static ButOut gotMoveFromProg(GmpEngine *ge, void *packet, GoStone color, int x, int y) { GmpClient *gc = packet; assert(MAGIC(gc)); if (x >= 0) { cliBoard_gridPressed(gc->cliBoard, goBoard_xy2Loc(gc->cliBoard->game->board, x, y), TRUE); } else cliBoard_passPressed(gc->cliBoard); return(0); } static ButOut gotErrFromProg(GmpEngine *ge, void *packet, const char *errStr) { GmpClient *gc = packet; int exitStatus = 0; bool alreadyDead = FALSE; Str exitMsg; assert(MAGIC(gc)); alreadyDead = (waitpid(gc->pid, &exitStatus, WNOHANG) != 0); if (!alreadyDead) { kill(gc->pid, SIGKILL); waitpid(gc->pid, &exitStatus, 0); } close(gc->inFile); close(gc->outFile); gmpEngine_deinit(&gc->ge); gc->inGame = FALSE; if (alreadyDead) { str_init(&exitMsg); if (WIFEXITED(exitStatus) && (WEXITSTATUS(exitStatus) == GMP_EXECVEFAILED)) { str_print(&exitMsg, msg_gmpCouldntStart, str_chars(&gc->progName)); } else if (WIFSIGNALED(exitStatus)) { str_print(&exitMsg, msg_gmpProgKilled, str_chars(&gc->progName), WTERMSIG(exitStatus)); } else { str_print(&exitMsg, msg_gmpProgWhyDead, str_chars(&gc->progName)); } goban_message(gc->cliBoard->goban, str_chars(&exitMsg)); str_deinit(&exitMsg); } else goban_message(gc->cliBoard->goban, errStr); return(BUTOUT_ERR); } static void gotUndoFromServer(void *packet) { GmpClient *gc = packet; assert(MAGIC(gc)); gmpEngine_sendUndo(&gc->ge, 1); } static ButOut undoMoves(GmpEngine *ge, void *packet, int numUndos) { GmpClient *gc = packet; assert(MAGIC(gc)); goban_message(gc->cliBoard->goban, msg_noUndoFromGmpToClient); return(BUTOUT_ERR); } goban-1.1.orig/src/engine.c0000644000175000017500000004150510270067716013365 0ustar alal/* * src/gmp/engine.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. */ /* * This is based on David Fotland's go modem protocol code. I've pretty much * completely rewritten it though. */ #include #include #include #include #include "cgoban.h" #include "goBoard.h" #include "msg.h" #ifdef _GMP_ENGINE_H_ #error Levelization Error. #endif #include "engine.h" /********************************************************************** * Constants **********************************************************************/ #define GMP_NUMQUERIESTOASK 4 #define GMP_TIMEOUTSECS 60 /********************************************************************** * Data types **********************************************************************/ typedef enum { cmd_ack, cmd_deny, cmd_reset, cmd_query, cmd_respond, cmd_move, cmd_undo } Command; typedef enum { query_game, query_bufSize, query_protocol, query_stones, query_bTime, query_wTime, query_charSet, query_rules, query_handicap, query_boardSize, query_timeLimit, query_color, query_who } Query; /********************************************************************** * Globals **********************************************************************/ #if DEBUG static const char *cmdNames[] = { "ACK", "DENY", "RESET", "QUERY", "RESPOND", "MOVE", "UNDO"}; static bool showTransfers = TRUE; #endif /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut dataReadyForRecv(void *packet, int fd); static ButOut getPacket(GmpEngine *ge); static unsigned char checksum(unsigned char p[4]); static ButOut parsePacket(GmpEngine *ge); static ButOut processCommand(GmpEngine *ge, Command command, int val); static ButOut gotQueryResponse(GmpEngine *ge, int val); static ButOut putCommand(GmpEngine *ge, Command cmd, int val); static ButOut heartbeat(ButTimer *timer); static void respond(GmpEngine *ge, Query query); static void askQuery(GmpEngine *ge); static void processQ(GmpEngine *ge); static char **makeArgv(const char *cmdLine); /********************************************************************** * Functions **********************************************************************/ GmpEngine *gmpEngine_init(Cgoban *cg, GmpEngine *ge, int inFile, int outFile, const GmpActions *actions, void *packet) { struct timeval oneSecond; MAGIC_SET(ge); ge->stopped = FALSE; ge->inFile = inFile; ge->outFile = outFile; ge->boardSize = 0; ge->handicap = 0; ge->komi = 0.0; ge->chineseRules = TRUE; ge->iAmWhite = 0; ge->queriesAcked = 0; ge->lastQuerySent = 0; ge->recvSoFar = 0; ge->sendsQueued = 0; ge->sendFailures = 0; ge->waitingHighAck = FALSE; ge->lastSendTime = 0; ge->myLastSeq = 0; ge->hisLastSeq = 0; ge->cg = cg; ge->env = cg->env; ge->packet = packet; ge->actions = actions; butEnv_addFile(cg->env, BUT_READFILE, inFile, ge, dataReadyForRecv); oneSecond.tv_usec = 0; oneSecond.tv_sec = 1; ge->heartbeat = butTimer_create(ge, NULL, oneSecond, oneSecond, FALSE, heartbeat); return(ge); } GmpEngine *gmpEngine_deinit(GmpEngine *ge) { assert(MAGIC(ge)); butEnv_rmFile(ge->env, BUT_READFILE, ge->inFile); butTimer_destroy(ge->heartbeat); MAGIC_UNSET(ge); return(ge); } static ButOut dataReadyForRecv(void *packet, int fd) { GmpEngine *ge = packet; assert(MAGIC(ge)); assert(fd == ge->inFile); return(getPacket(ge)); } static ButOut getPacket(GmpEngine *ge) { unsigned char charsIn[4], c; int count = 0, cNum; Str errDesc; ButOut result = 0; count = read(ge->inFile, charsIn, 4 - ge->recvSoFar); if (ge->stopped) return(0); if (count < 0) { str_init(&errDesc); str_print(&errDesc, msg_gmpDead, strerror(errno)); ge->actions->errorRecvd(ge, ge->packet, str_chars(&errDesc)); str_deinit(&errDesc); return(BUTOUT_ERR); } else if (count == 0) return(0); for (cNum = 0; cNum < count; ++cNum) { c = charsIn[cNum]; if (!ge->recvSoFar) { /* idle, looking for start of packet */ if ((c & 0xfc) == 0) { /* start of packet */ ge->recvData[0] = c; ge->recvSoFar = 1; } } else { /* We're in the packet. */ if ((c & 0x80) == 0) { /* error */ ge->recvSoFar = 0; if ((c & 0xfc) == 0) { ge->recvData[ge->recvSoFar++] = c; } } else { /* A valid character for in a packet. */ ge->recvData[ge->recvSoFar++] = c; if (ge->recvSoFar == 4) { /* check for extra bytes */ assert(cNum + 1 == count); if (checksum(ge->recvData) == ge->recvData[1]) result = parsePacket(ge); ge->recvSoFar = 0; } } } } return(result); } static unsigned char checksum(unsigned char p[4]) { unsigned char sum; sum = p[0] + p[2] + p[3]; sum |= 0x80; /* set sign bit */ return(sum); } static ButOut parsePacket(GmpEngine *ge) { int seq, ack, val; Command command; ButOut result = 0; seq = ge->recvData[0] & 1; ack = (ge->recvData[0] & 2) >> 1; if (ge->recvData[2] & 0x08) /* Not-understood command. */ return(0); command = (ge->recvData[2] >> 4) & 7; #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: Command %s received from port %d:%d.\n", cmdNames[command], ge->inFile, ge->outFile); } #endif if ((command != cmd_deny) && (command != cmd_reset) && !ge->iAmWhite && !ge->gameStarted) { ge->gameStarted = TRUE; if (ge->actions->newGame != NULL) ge->actions->newGame(ge, ge->packet, ge->boardSize, ge->handicap, ge->komi, ge->chineseRules, ge->iAmWhite); } val = ((ge->recvData[2] & 7) << 7) | (ge->recvData[3] & 0x7f); if (!ge->waitingHighAck) { if ((command == cmd_ack) || /* An ack. We don't need an ack now. */ (ack != ge->myLastSeq)) { /* He missed my last message. */ #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: ACK does not match myLastSeq.\n"); } #endif return(0); } else if (seq == ge->hisLastSeq) { /* Seen this one before. */ #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: Repeated packet.\n"); } #endif putCommand(ge, cmd_ack, ~0); } else { ge->hisLastSeq = seq; ge->sendFailures = 0; result = processCommand(ge, command, val); } } else { /* Waiting for OK. */ if (command == cmd_ack) { if ((ack != ge->myLastSeq) || (seq != ge->hisLastSeq)) { /* Sequence error. */ return(result); } ge->sendFailures = 0; ge->waitingHighAck = FALSE; processQ(ge); } else if (seq == ge->hisLastSeq) { /* His command is old. */ } else if (ack == ge->myLastSeq) { ge->sendFailures = 0; ge->waitingHighAck = FALSE; ge->hisLastSeq = seq; result = processCommand(ge, command, val); processQ(ge); } else { /* Conflict with opponent. */ #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: Received a packet, expected an ACK.\n"); } #endif /* * This code seems wrong. * * ge->myLastSeq = 1 - ge->myLastSeq; * ge->waitingHighAck = FALSE; * processQ(ge); */ } } return(result); } static ButOut processCommand(GmpEngine *ge, Command command, int val) { int s, x, y; ButOut result = 0; switch(command) { case cmd_deny: return(putCommand(ge, cmd_ack, ~0)); break; case cmd_query: respond(ge, val); break; case cmd_reset: /* New game. */ ge->queriesAcked = 0; askQuery(ge); break; case cmd_undo: /* Take back moves. */ result = putCommand(ge, cmd_ack, ~0); assert(ge->actions->undoMoves != NULL); result |= ge->actions->undoMoves(ge, ge->packet, val); return(result); break; case cmd_move: s = val & 0x1ff; if (s == 0) { x = -1; y = 0; } else { --s; x = (s % ge->boardSize); y = ge->boardSize - 1 - (s / ge->boardSize); } result = putCommand(ge, cmd_ack, ~0); if (val & 0x200) result |= ge->actions->moveRecvd(ge, ge->packet, goStone_white, x, y); else result |= ge->actions->moveRecvd(ge, ge->packet, goStone_black, x, y); return(result); break; case cmd_respond: return(gotQueryResponse(ge, val)); break; default: /* Don't understand command. */ return(putCommand(ge, cmd_deny, 0)); break; } return(0); } static ButOut putCommand(GmpEngine *ge, Command cmd, int val) { int writeResult; if (ge->waitingHighAck && (cmd != cmd_ack) && (cmd != cmd_respond) && (cmd != cmd_deny)) { if (ge->sendsQueued < GMP_SENDBUFSIZE) { ge->sendsPending[ge->sendsQueued].cmd = cmd; ge->sendsPending[ge->sendsQueued].val = val; ++ge->sendsQueued; } else { return(ge->actions->errorRecvd(ge, ge->packet, msg_gmpSendBufFull)); } return(0); } if ((cmd == cmd_ack) && (ge->sendsQueued)) { ge->waitingHighAck = FALSE; processQ(ge); return(0); } if (cmd != cmd_ack) ge->myLastSeq ^= 1; ge->sendData[0] = ge->myLastSeq | (ge->hisLastSeq << 1); ge->sendData[2] = 0x80 | (cmd << 4) | ((val >> 7) & 7); ge->sendData[3] = 0x80 | val; ge->sendData[1] = checksum(ge->sendData); ge->lastSendTime = time(NULL); #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: Writing command %s to port %d:%d.\n", cmdNames[cmd], ge->inFile, ge->outFile); } #endif writeResult = write(ge->outFile, ge->sendData, 4); assert(writeResult == 4); ge->waitingHighAck = (cmd != cmd_ack); return(0); } static void respond(GmpEngine *ge, Query query) { int response; if (query & 0x200) { /* * Oops! This really means "do you support this extended command." * I don't support any extended commands, so the response should always * be zero. */ response = 0; /* * * Do you support this query? * * * query &= ~0x200; * if ((query == query_game) || (query == query_rules) || * (query == query_handicap) || (query == query_boardSize) || * (query == query_color)) * response = 15; * Yes. * * else * response = 0; * No. * */ } else { ge->waitingHighAck = TRUE; switch(query) { case query_game: response = 1; /* GO */ break; case query_rules: if (ge->chineseRules) response = 2; else response = 1; break; case query_handicap: response = ge->handicap; if (response == 0) response = 1; break; case query_boardSize: response = ge->boardSize; break; case query_color: if (ge->iAmWhite) response = 1; else response = 2; break; default: response = 0; break; } } putCommand(ge, cmd_respond, response); } static void askQuery(GmpEngine *ge) { static const Query queryList[GMP_NUMQUERIESTOASK] = { query_rules, query_handicap, query_boardSize, query_color}; int query; assert(ge->queriesAcked < GMP_NUMQUERIESTOASK); query = queryList[ge->queriesAcked]; ge->lastQuerySent = query; putCommand(ge, cmd_query, query); } static ButOut gotQueryResponse(GmpEngine *ge, int val) { static const char *ruleNames[] = {"Japanese", "Chinese"}; static const char *colorNames[] = {"Black", "White"}; Str err; ButOut result = 0; switch(ge->lastQuerySent) { case query_handicap: if (val <= 1) --val; if ((val != -1) && (val != ge->handicap)) { str_init(&err); str_print(&err, "Handicaps do not agree; I want %d, he wants %d.", ge->handicap, val); result |= ge->actions->errorRecvd(ge, ge->packet, str_chars(&err)); str_deinit(&err); } break; case query_boardSize: assert(ge->boardSize != 0); if ((val != 0) && (val != ge->boardSize)) { str_init(&err); str_print(&err, "Board sizes do not agree; I want %d, he wants %d.", ge->boardSize, val); result |= ge->actions->errorRecvd(ge, ge->packet, str_chars(&err)); str_deinit(&err); } break; case query_rules: if (val != 0) { if (ge->chineseRules != (val == 2)) { str_init(&err); str_print(&err, "Rule sets do not agree; I want %s, he wants %s.", ruleNames[ge->chineseRules], ruleNames[val == 2]); result |= ge->actions->errorRecvd(ge, ge->packet, str_chars(&err)); str_deinit(&err); } } break; case query_color: if (val != 0) { if (ge->iAmWhite == (val == 1)) { str_init(&err); str_print(&err, "Colors sets do not agree; we both want to be %s.", colorNames[ge->iAmWhite]); result |= ge->actions->errorRecvd(ge, ge->packet, str_chars(&err)); str_deinit(&err); } } } if ((result & BUTOUT_ERR) == 0) { ++ge->queriesAcked; if (ge->queriesAcked < GMP_NUMQUERIESTOASK) askQuery(ge); else { result |= putCommand(ge, cmd_ack, ~0); if (ge->actions->newGame != NULL) ge->actions->newGame(ge, ge->packet, ge->boardSize, ge->handicap, ge->komi, ge->chineseRules, ge->iAmWhite); } } return(result); } static ButOut heartbeat(ButTimer *timer) { GmpEngine *ge = butTimer_packet(timer); int writeResult; assert(MAGIC(ge)); if (ge->waitingHighAck && (time(NULL) != ge->lastSendTime)) { if (++ge->sendFailures > GMP_TIMEOUTSECS) { return(ge->actions->errorRecvd(ge, ge->packet, msg_gmpTimeout)); } else { ge->lastSendTime = time(NULL); #if DEBUG if (showTransfers) { fprintf(stderr, "GMP: Writing command %s to port %d:%d (retry %d).\n", cmdNames[(ge->sendData[2] >> 4) & 7], ge->inFile, ge->outFile, ge->sendFailures); } #endif writeResult = write(ge->outFile, ge->sendData, 4); assert(writeResult == 4); } } return(0); } void gmpEngine_startGame(GmpEngine *ge, int size, int handicap, float komi, bool chineseRules, bool iAmWhite) { ge->boardSize = size; ge->handicap = handicap; ge->komi = komi; ge->chineseRules = chineseRules; ge->iAmWhite = iAmWhite; ge->gameStarted = FALSE; if (!iAmWhite) { putCommand(ge, cmd_reset, 0); } } void gmpEngine_sendPass(GmpEngine *ge) { int arg; assert(MAGIC(ge)); if (ge->iAmWhite) arg = 0x200; else arg = 0; putCommand(ge, cmd_move, arg); } void gmpEngine_sendMove(GmpEngine *ge, int x, int y) { int val; assert(MAGIC(ge)); val = x + ge->boardSize * (ge->boardSize - 1 - y) + 1; if (ge->iAmWhite) val |= 0x200; putCommand(ge, cmd_move, val); } void gmpEngine_sendUndo(GmpEngine *ge, int numUndos) { assert(MAGIC(ge)); putCommand(ge, cmd_undo, numUndos); } static void processQ(GmpEngine *ge) { int i; if (!ge->waitingHighAck && ge->sendsQueued) { putCommand(ge, ge->sendsPending[0].cmd, ge->sendsPending[0].val); --ge->sendsQueued; for (i = 0; i < ge->sendsQueued; ++i) { ge->sendsPending[i] = ge->sendsPending[i + 1]; } } } int gmp_forkProgram(Cgoban *cg, int *inFile, int *outFile, const char *progName, int mainTime, int byTime) { int pid, result, fd; int cgToProg[2], progToCg[2]; int i; char **argv; Str cmdLine; result = pipe(cgToProg); if (result) return(-1); result = pipe(progToCg); if (result) { close(cgToProg[0]); close(cgToProg[1]); return(-1); } pid = fork(); if (pid < 0) { close(cgToProg[0]); close(cgToProg[1]); close(progToCg[0]); close(progToCg[1]); return(-1); } if (pid == 0) { /* The child. */ for (fd = 0; fd < 100; ++fd) { if ((fd != 2) && /* Don't close stderr! */ (fd != cgToProg[0]) && (fd != progToCg[1])) close(fd); } if (dup(cgToProg[0]) != 0) { fprintf(stderr, "I couldn't fdup into stdin!\n"); exit(1); } if (dup(progToCg[1]) != 1) { fprintf(stderr, "I couldn't fdup into stdout!\n"); exit(1); } str_init(&cmdLine); str_print(&cmdLine, progName, mainTime, byTime); argv = makeArgv(str_chars(&cmdLine)); i = execve(argv[0], argv, cg->envp); /* * If we got here, then the execve() must have failed. * No need to clean up, free cmdLine, etc...we're dead! */ exit(GMP_EXECVEFAILED); } else { close(cgToProg[0]); close(progToCg[1]); *inFile = progToCg[0]; *outFile = cgToProg[1]; return(pid); } } static char **makeArgv(const char *cmdLine) { char *buf; char **args; int i, numWords, len; len = strlen(cmdLine); buf = wms_malloc(len + 1); strcpy(buf, cmdLine); numWords = 1; for (i = 1; i < len; ++i) { if ((buf[i - 1] == ' ') && (buf[i] != ' ')) ++numWords; } args = wms_malloc((numWords + 1) * sizeof(char *)); args[0] = buf; numWords = 1; for (i = 1; i < len; ++i) { if (buf[i] == ' ') buf[i] = '\0'; if ((buf[i - 1] == '\0') && (buf[i] != '\0')) { args[numWords++] = buf + i; } } args[numWords++] = NULL; return(args); } goban-1.1.orig/src/radio.c0000644000175000017500000001552510270071345013212 0ustar alal/* * wmslib/src/but/checkbox.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #ifdef _BUT_RADIO_H_ LEVELIZATION ERROR #endif #include typedef struct Radio_struct { int val, maxVal; int pVal; /* The pressed down value. */ ButOut (*press)(But *but, int value); } Radio; static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static void flags(But *but, uint flags); static void redrawOpt(But *but, Radio *radio, int opt); static ButAction action = { mmove, mleave, mpress, mrelease, NULL, NULL, draw, destroy, flags, NULL}; But *butRadio_create(ButOut (*func)(But *but, bool value), void *packet, ButWin *win, int layer, int flags, int val, int maxVal) { But *but; Radio *radio; radio = wms_malloc(sizeof(Radio)); but = but_create(win, radio, &action); MAGIC_SET(but); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; radio->val = val; radio->maxVal = maxVal; radio->pVal = -1; radio->press = func; but_init(but); return(but); } int butRadio_get(But *but) { Radio *radio = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); return(radio->val); } void butRadio_set(But *but, int val, bool propagate) { Radio *radio = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); if (radio->val != val) { redrawOpt(but, radio, val); redrawOpt(but, radio, radio->val); radio->val = val; but_draw(but); if (propagate && (radio->press != NULL)) radio->press(but, val); } } static ButOut destroy(But *but) { Radio *radio = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); wms_free(radio); return(0); } static void draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; Radio *radio = but->iPacket; uint flags = but->flags; ButEnv *env = win->env; int i, ix, ix2, iy, iw, ih; assert(but->action == &action); assert(MAGIC(but)); ix2 = but->x; for (i = 0; i < radio->maxVal; ++i) { ix = ix2; ix2 = but->x + ((i + 1) * but->w + (radio->maxVal>>1)) / radio->maxVal; iy = but->y; iw = ix2 - ix; ih = but->h; but_drawBox(win, ix,iy, iw,ih, (flags & BUT_PRESSED) && (i == radio->pVal), env->stdButBw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); if (i == radio->pVal) butEnv_setXFg(env, BUT_PBG); else if (i == radio->val) butEnv_setXFg(env, BUT_CHOICE); else butEnv_setXFg(env, BUT_BG); XFillRectangle(env->dpy, win->win, env->gc, ix + env->stdButBw - win->xOff, iy + env->stdButBw - win->yOff, iw - env->stdButBw * 2, ih - env->stdButBw * 2); } } static void flags(But *but, uint flags) { uint ofl = but->flags; Radio *radio; but->flags = flags; if ((flags & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED)) != (ofl & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED))) { radio = but->iPacket; if (radio->pVal >= 0) redrawOpt(but, radio, radio->pVal); } } static ButOut mmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; ButEnv *env = but->win->env; if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if ((x >= but->x + env->stdButBw) && (y >= but->y + env->stdButBw) && (x < but->x + but->w - env->stdButBw) && (y < but->y + but->h - env->stdButBw)) newflags |= BUT_TWITCHED; else { newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } static ButOut mleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { Radio *radio = but->iPacket; ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; if (!newflags & BUT_TWITCHED) retval &= ~BUTOUT_CAUGHT; else { if (butnum == 1) { newflags |= BUT_PRESSED | BUT_LOCKED; radio->pVal = ((x - but->x) * radio->maxVal) / but->w; } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } if (!(but->flags & BUT_PRESSED) && (newflags & BUT_PRESSED)) snd_play(&but_downSnd); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut mrelease(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Radio *radio = but->iPacket; int oldPVal, newPVal; oldPVal = radio->pVal; if (oldPVal >= 0) redrawOpt(but, radio, oldPVal); radio->pVal = -1; if (butnum != 1) { if (but->flags & BUT_TWITCHED) return(BUTOUT_CAUGHT); else return(0); } if (!(but->flags & BUT_PRESSED)) return(0); if (but->flags & BUT_TWITCHED) { newPVal = ((x - but->x) * radio->maxVal) / but->w; if (newPVal != oldPVal) oldPVal = -1; } else { oldPVal = -1; retval |= BUTOUT_ERR; } newflags &= ~(BUT_PRESSED|BUT_LOCKED); if ((but->flags & BUT_PRESSED) && !(newflags & BUT_PRESSED) && !(retval & BUTOUT_ERR)) snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); if (oldPVal != -1) { redrawOpt(but, radio, oldPVal); redrawOpt(but, radio, radio->val); radio->val = oldPVal; if (radio->press) radio->press(but, oldPVal); } else retval |= BUTOUT_ERR; return(retval); } static void redrawOpt(But *but, Radio *radio, int opt) { int x1, x2; if ((opt >= 0) && (opt < radio->maxVal)) { x1 = (but->w * opt + (radio->maxVal >> 1)) / radio->maxVal; x2 = (but->w * (opt + 1) + (radio->maxVal >> 1)) / radio->maxVal; butWin_redraw(but->win, but->x + x1, but->y, x2 - x1, but->h); } } #endif goban-1.1.orig/src/timer.h0000644000175000017500000000457506055433163013252 0ustar alal/* * wmslib/src/but/timer.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for timer.c */ #ifndef _BUT_TIMER_H_ #define _BUT_TIMER_H_ 1 /********************************************************************** * Constants **********************************************************************/ #define BUTTIMER_HIST 4 #define BUTTIMER_MAXFREQ 400 /* Hz...the most we'll ever allow. */ #define BUTTIMER_STDFREQ 100 /* Hz...the "standard" value. */ /********************************************************************** * Data types **********************************************************************/ typedef enum { butTimer_on, butTimer_off, butTimer_dead } ButTimerState; /* Private. */ struct ButTimer_struct { void *packet; int eventNum; struct timeval nextFiring, period; bool winOnly; /* False=shut off when iconified. */ ButTimerState state; struct ButWin_struct *win; But *but; ButOut (*timerFunc)(struct ButTimer_struct *timer); struct ButTimer_struct *next; int ticksPerPeriod; bool freqCounter; int lastRes[BUTTIMER_HIST]; int resnum, ticksLeft; MAGIC_STRUCT }; /********************************************************************** * Functions **********************************************************************/ /* Public. */ extern ButTimer *butTimer_create(void *packet, But *but, struct timeval delay, struct timeval period, bool win_only, ButOut (*timerfunc)(struct ButTimer_struct *timer)); extern ButTimer *butTimer_fCreate(void *packet, But *but, struct timeval delay, int frequency, bool win_only, ButOut (*timerfunc)(struct ButTimer_struct *timer)); extern void butTimer_destroy(ButTimer *timer); extern void butTimer_reset(ButTimer *timer); #define butTimer_ticks(bt) ((bt)->eventNum) #define butTimer_setTicks(bt, v) ((bt)->eventNum = (v)) #define butTimer_packet(bt) ((bt)->packet) /* Private. */ extern struct timeval but_timerAdd(struct timeval t1, struct timeval t2); extern struct timeval but_timerSub(struct timeval t1, struct timeval t2); extern int but_timerDiv(struct timeval t1, struct timeval t2, struct timeval *remainder); extern int butEnv_checkTimers(ButEnv *env, struct timeval *timeout); #endif /* _BUT_TIMER_H_ */ goban-1.1.orig/src/fsel.c0000644000175000017500000004301710270000520013025 0ustar alal/* * src/fsel.c, part of wmslib library * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ #include /* * Here goes the dirent kludge. Ugh. The things I go through for portability. */ #if HAVE_DIRENT_H # include # define NAMLEN(dirent) strlen((dirent)->d_name) #else # define dirent direct # define NAMLEN(dirent) (dirent)->d_namlen # if HAVE_SYS_NDIR_H # include # endif # if HAVE_SYS_DIR_H # include # endif # if HAVE_NDIR_H # include # endif #endif #include #include #include #include #include #include #include #include #ifdef _ABUT_FSEL_H_ #error Levelization Error. #endif #include /********************************************************************** * Globals **********************************************************************/ const char *abutFsel_pathMessage = NULL; const char *abutFsel_fileMessage = NULL; const char *abutFsel_maskMessage = NULL; const char *abutFsel_dirsMessage = NULL; const char *abutFsel_filesMessage = NULL; const char *abutFsel_dirErrMessage = NULL; /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut resize(ButWin *win); static ButOut dswinResize(ButWin *win), fswinResize(ButWin *win); static ButOut unmap(ButWin *win); static ButOut wDestroy(ButWin *win); static ButOut okPressed(But *but); static ButOut cancelPressed(But *but); static ButOut newName(But *but, const char *text); static ButOut newPath(But *but, const char *text); static ButOut newMask(But *but, const char *text); static bool dirScan(AbutFsel *f, const char *path); static ButOut dirPressed(But *but, int line); static ButOut filePressed(But *but, int line); static void fixPath(Str *pathOut, const char *pathIn); static void addCwd(Str *pathOut); static bool maskMatch(const char *mask, const char *fName, int fLen); static void dirError(AbutFsel *f, int errno, const char *badDir); static ButOut msgDead(void *packet); static ButOut msgOkBut(But *but); /********************************************************************** * Functions **********************************************************************/ AbutFsel *abutFsel_createDir(Abut *a, void (*callback)(AbutFsel *fsel, void *packet, const char *fname), void *packet, const char *app, const char *title, const char *startDir, const char *startName) { Str fullName; AbutFsel *result; if (strchr(startName, '/') == NULL) { str_initChars(&fullName, startDir); str_catChar(&fullName, '/'); str_catChars(&fullName, startName); result = abutFsel_create(a, callback, packet, app, title, str_chars(&fullName)); str_deinit(&fullName); return(result); } else { return(abutFsel_create(a, callback, packet, app, title, startName)); } } AbutFsel *abutFsel_create(Abut *a, void (*callback)(AbutFsel *fsel, void *packet, const char *fname), void *packet, const char *app, const char *title, const char *startName) { ButEnv *env; AbutFsel *f; int butH, bw; int i, minW, minH, w, h; Str titleString, pathString; bool err; assert(MAGIC(a)); assert(abutFsel_pathMessage != NULL); assert(abutFsel_fileMessage != NULL); assert(abutFsel_maskMessage != NULL); assert(abutFsel_dirsMessage != NULL); assert(abutFsel_filesMessage != NULL); assert(abutFsel_dirErrMessage != NULL); env = a->env; f = wms_malloc(sizeof(AbutFsel)); MAGIC_SET(f); f->abut = a; f->propagate = TRUE; f->callback = callback; f->packet = packet; str_init(&f->pathVal); f->msg = NULL; butH = a->butH; bw = butEnv_stdBw(env); minH = butH*10 + bw*10; minW = minH; if (a->clp) { w = (int)(minW * clp_getDouble(a->clp, "abut.fsel.w") + 0.5); h = (int)(minH * clp_getDouble(a->clp, "abut.fsel.h") + 0.5); if (w < minW) w = minW; if (h < minH) h = minH; } else { w = minW * 1.2; h = minH * 1.2; } str_initChars(&titleString, app); str_catChars(&titleString, " File Selector"); f->win = butWin_create(f, env, str_chars(&titleString), w, h, unmap, NULL, resize, wDestroy); i = clp_iGetInt(a->clp, "abut.fsel.x", &err); if (!err) butWin_setX(f->win, i); i = clp_iGetInt(a->clp, "abut.fsel.y", &err); if (!err) butWin_setY(f->win, i); butWin_setMinW(f->win, minW); butWin_setMinH(f->win, minH); butWin_setMaxW(f->win, 0); butWin_setMaxH(f->win, 0); butWin_activate(f->win); str_initChars(&pathString, startName); for (i = str_len(&pathString); (i > 0) && (str_chars(&pathString)[i - 1] != '/'); --i); str_copyChars(&titleString, str_chars(&pathString) + i); if (i > 0) str_clip(&pathString, i); else str_copyChars(&pathString, "./"); fixPath(&f->pathVal, str_chars(&pathString)); f->box = butBoxFilled_create(f->win, 0, BUT_DRAWABLE); butBoxFilled_setColors(f->box, a->ulColor, a->lrColor, a->bgColor); butBoxFilled_setPixmaps(f->box, a->ulPixmap, a->lrPixmap, a->bgPixmap); f->title = butText_create(f->win, 1, BUT_DRAWABLE, title, butText_left); f->path = butText_create(f->win, 1, BUT_DRAWABLE, abutFsel_pathMessage, butText_left); f->pathIn = butTextin_create(newPath, f, f->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, str_chars(&f->pathVal), 100); f->file = butText_create(f->win, 1, BUT_DRAWABLE, abutFsel_fileMessage, butText_left); f->in = butTextin_create(newName, f, f->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, str_chars(&titleString), 100); f->mask = butText_create(f->win, 1, BUT_DRAWABLE, abutFsel_maskMessage, butText_left); f->maskIn = butTextin_create(newMask, f, f->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, "*.sgf", 100); f->dirs = butText_create(f->win, 1, BUT_DRAWABLE, abutFsel_dirsMessage, butText_left); f->dSwin = abutSwin_create(f, f->win, 1, ABUTSWIN_LSLIDE, dswinResize); f->dlBg = butPlain_create(f->dSwin->win, 0, BUT_DRAWABLE, BUT_BG); f->dList = butList_create(dirPressed, f, f->dSwin->win, 1, BUT_DRAWABLE|BUT_PRESSABLE); f->files = butText_create(f->win, 1, BUT_DRAWABLE, abutFsel_filesMessage, butText_left); f->fSwin = abutSwin_create(f, f->win, 1, ABUTSWIN_LSLIDE, fswinResize); f->flBg = butPlain_create(f->fSwin->win, 0, BUT_DRAWABLE, BUT_BG); f->fList = butList_create(filePressed, f, f->fSwin->win, 1, BUT_DRAWABLE|BUT_PRESSABLE); f->ok = butCt_create(okPressed, f, f->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, a->ok); f->cancel = butCt_create(cancelPressed, f, f->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, a->cancel); str_deinit(&pathString); str_deinit(&titleString); dirScan(f, butTextin_get(f->pathIn)); return(f); } void abutFsel_destroy(AbutFsel *f, bool propagate) { assert(MAGIC(f)); f->propagate = propagate; butWin_destroy(f->win); } static ButOut resize(ButWin *win) { AbutFsel *f = butWin_packet(win); ButEnv *env = butWin_env(win); int butH, bw; int w, h; int textMaxW, textW; int dirsW, filesW; assert(MAGIC(f)); w = butWin_w(win); h = butWin_h(win); butH = f->abut->butH; bw = butEnv_stdBw(env); but_resize(f->box, 0,0, w,h); but_resize(f->title, bw*2,bw*2, w-bw*4,butH); textMaxW = butText_resize(f->path, bw*2, butH+bw*3, butH); textW = butText_resize(f->file, bw*2, butH*2+bw*4, butH); if (textW > textMaxW) textMaxW = textW; textW = butText_resize(f->mask, bw*2, butH*3+bw*5, butH); if (textW > textMaxW) textMaxW = textW; but_resize(f->pathIn, bw*3 + textMaxW, butH+bw*3, w - (bw*5 + textMaxW), butH); but_resize(f->in, bw*3 + textMaxW, butH*2+bw*4, w - (bw*5 + textMaxW), butH); but_resize(f->maskIn, bw*3 + textMaxW, butH*3+bw*5, w - (bw*5 + textMaxW), butH); dirsW = (w - bw*5) / 2; filesW = w - (bw*5 + dirsW); but_resize(f->dirs, bw*2, butH*4 + bw*6, dirsW, butH); abutSwin_resize(f->dSwin, bw*2, butH*5 + bw*7, dirsW, h - butH*6 - bw*10, 3 * butEnv_fontH(env, 0) / 2, butEnv_fontH(env, 0)); but_resize(f->files, bw*3 + dirsW, butH*4 + bw*6, filesW, butH); abutSwin_resize(f->fSwin, bw*3 + dirsW, butH*5 + bw*7, filesW, h - butH*6 - bw*10, 3 * butEnv_fontH(env, 0) / 2, butEnv_fontH(env, 0)); but_resize(f->cancel, bw*2, h-butH-bw*2, (w-bw*5)/2, butH); but_resize(f->ok, (w-bw*5)/2+bw*3, h-butH-bw*2, (w-bw*5+1)/2, butH); butCan_resizeWin(f->dSwin->win, 0, butList_len(f->dList) * butEnv_fontH(env, 0) + butEnv_stdBw(env) * 2, TRUE); butCan_resizeWin(f->fSwin->win, 0, butList_len(f->fList) * butEnv_fontH(env, 0) + butEnv_stdBw(env) * 2, TRUE); return(0); } static ButOut okPressed(But *but) { AbutFsel *f = but_packet(but); Str result; assert(MAGIC(f)); str_initChars(&result, butTextin_get(f->pathIn)); str_catChars(&result, butTextin_get(f->in)); if (f->callback) { f->callback(f, f->packet, str_chars(&result)); f->callback = NULL; } str_deinit(&result); butWin_destroy(f->win); return(0); } static ButOut cancelPressed(But *but) { AbutFsel *f = but_packet(but); assert(MAGIC(f)); if (f->callback) { f->callback(f, f->packet, NULL); f->callback = NULL; } butWin_destroy(f->win); return(0); } static ButOut unmap(ButWin *win) { butWin_destroy(win); return(0); } static ButOut wDestroy(ButWin *win) { AbutFsel *f = butWin_packet(win); assert(MAGIC(f)); if (f->abut->clp) { clp_setInt(f->abut->clp, "abut.fsel.x", butWin_x(win)); clp_setInt(f->abut->clp, "abut.fsel.y", butWin_y(win)); clp_setDouble(f->abut->clp, "abut.fsel.w", (double)butWin_w(win) / (double)butWin_getMinW(win)); clp_setDouble(f->abut->clp, "abut.fsel.h", (double)butWin_h(win) / (double)butWin_getMinH(win)); } if (f->callback && f->propagate) { f->callback(f, f->packet, NULL); f->callback = NULL; } abutSwin_destroy(f->dSwin); abutSwin_destroy(f->fSwin); str_deinit(&f->pathVal); if (f->msg) { abutMsg_destroy(f->msg, FALSE); f->msg = NULL; } MAGIC_UNSET(f); wms_free(f); return(0); } static ButOut newName(But *but, const char *text) { AbutFsel *f = but_packet(but); assert(MAGIC(f)); if (f->callback) { f->callback(f, f->packet, text); f->callback = NULL; } butWin_destroy(f->win); return(0); } static ButOut newPath(But *but, const char *text) { AbutFsel *f = but_packet(but); Str newDir; bool ok; uint result = 0; assert(MAGIC(f)); str_init(&newDir); fixPath(&newDir, butTextin_get(but)); ok = dirScan(f, str_chars(&newDir)); if (ok) { but_setFlags(but, BUT_NOKEY); butTextin_set(but, str_chars(&newDir), FALSE); str_copy(&f->pathVal, &newDir); } else { result = BUTOUT_ERR; } str_deinit(&newDir); return(result); } static ButOut newMask(But *but, const char *text) { AbutFsel *f = but_packet(but); assert(MAGIC(f)); but_setFlags(but, BUT_NOKEY); dirScan(f, str_chars(&f->pathVal)); return(0); } static ButOut dswinResize(ButWin *win) { AbutSwin *swin = butWin_packet(win); AbutFsel *f; int bw = butEnv_stdBw(butWin_env(win)); assert(MAGIC(swin)); f = swin->packet; assert(MAGIC(f)); but_resize(f->dlBg, 0, 0, butWin_w(win), butWin_h(win)); butList_resize(f->dList, bw, bw, butWin_w(win) - bw); return(0); } static ButOut fswinResize(ButWin *win) { AbutSwin *swin = butWin_packet(win); AbutFsel *f; int bw = butEnv_stdBw(butWin_env(win)); assert(MAGIC(swin)); f = swin->packet; assert(MAGIC(f)); but_resize(f->flBg, 0, 0, butWin_w(win), butWin_h(win)); butList_resize(f->fList, bw, bw, butWin_w(win) - bw); return(0); } static bool dirScan(AbutFsel *f, const char *path) { DIR *d; struct dirent *ent; struct stat fStat; Str fName; int pathLen, i; int numDirs = 0, maxDirs = 10, numFiles = 0, maxFiles = 10; Str *dirs, *files, *newList; d = opendir(path); if (d == NULL) { dirError(f, errno, path); return(FALSE); } dirs = wms_malloc(maxDirs * sizeof(Str)); files = wms_malloc(maxFiles * sizeof(Str)); str_init(&fName); pathLen = strlen(path); for (ent = readdir(d); ent != NULL; ent = readdir(d)) { str_copyCharsLen(&fName, path, pathLen); str_catCharsLen(&fName, ent->d_name, NAMLEN(ent)); if (stat(str_chars(&fName), &fStat) == 0) { if (S_ISDIR(fStat.st_mode)) { if ((NAMLEN(ent) != 1) || (ent->d_name[0] != '.')) { if (numDirs == maxDirs) { newList = wms_malloc(maxDirs * 2 * sizeof(Str)); memcpy(newList, dirs, maxDirs * sizeof(Str)); wms_free(dirs); dirs = newList; maxDirs *= 2; } assert(numDirs < maxDirs); str_initCharsLen(&dirs[numDirs++], ent->d_name, NAMLEN(ent)); } } else { if (maskMatch(butTextin_get(f->maskIn), ent->d_name, NAMLEN(ent))) { if (numFiles == maxFiles) { newList = wms_malloc(maxFiles * 2 * sizeof(Str)); memcpy(newList, files, maxFiles * sizeof(Str)); wms_free(files); files = newList; maxFiles *= 2; } assert(numFiles < maxFiles); str_initCharsLen(&files[numFiles++], ent->d_name, NAMLEN(ent)); } } } } closedir(d); if (numDirs > 1) { qsort(dirs, numDirs, sizeof(Str), str_alphaCmp); } if (numFiles > 1) { qsort(files, numFiles, sizeof(Str), str_alphaCmp); } butCan_resizeWin(f->dSwin->win, 0, numDirs * butEnv_fontH(f->abut->env, 0) + butEnv_stdBw(f->abut->env) * 2, TRUE); butList_setLen(f->dList, numDirs); for (i = 0; i < numDirs; ++i) { butList_changeLine(f->dList, i, str_chars(&dirs[i])); str_deinit(&dirs[i]); } wms_free(dirs); butCan_resizeWin(f->fSwin->win, 0, numFiles * butEnv_fontH(f->abut->env, 0) + butEnv_stdBw(f->abut->env) * 2, TRUE); butList_setLen(f->fList, numFiles); for (i = 0; i < numFiles; ++i) { butList_changeLine(f->fList, i, str_chars(&files[i])); str_deinit(&files[i]); } wms_free(files); return(TRUE); } static ButOut dirPressed(But *but, int line) { AbutFsel *f = but_packet(but); Str newDir; assert(MAGIC(f)); but_setFlags(f->pathIn, BUT_NOKEY); str_initChars(&newDir, str_chars(&f->pathVal)); str_catChars(&newDir, butList_get(but, line)); fixPath(&f->pathVal, str_chars(&newDir)); butTextin_set(f->pathIn, str_chars(&f->pathVal), FALSE); dirScan(f, str_chars(&f->pathVal)); str_deinit(&newDir); return(0); } static ButOut filePressed(But *but, int line) { AbutFsel *f = but_packet(but); assert(MAGIC(f)); if (strcmp(butTextin_get(f->in), butList_get(but, line))) { /* Change the default file name. */ butTextin_set(f->in, butList_get(but, line), FALSE); } else { /* Accept this file. */ okPressed(f->ok); } return(0); } static void fixPath(Str *pathOut, const char *pathIn) { int i; str_clip(pathOut, 0); if (pathIn[0] != '/') { addCwd(pathOut); } else ++pathIn; str_catChar(pathOut, '/'); assert(str_len(pathOut) > 0); while (*pathIn) { if ((pathIn[0] == '.') && (pathIn[1] == '.') && ((pathIn[2] == '/') || (pathIn[2] == '\0'))) { for (i = str_len(pathOut) - 1; (i >= 1) && (str_chars(pathOut)[i - 1] != '/'); --i); if (i >= 1) str_clip(pathOut, i); pathIn += 2; if (*pathIn) ++pathIn; } else if ((pathIn[0] == '.') && ((pathIn[1] == '/') || (pathIn[1] == '\0'))) { ++pathIn; if (*pathIn) ++pathIn; } else if (pathIn[0] == '/') { ++pathIn; } else { while ((*pathIn != '/') && (*pathIn != '\0')) { str_catChar(pathOut, *(pathIn++)); } str_catChar(pathOut, '/'); if (*pathIn) ++pathIn; } } assert(str_len(pathOut) > 0); assert(str_chars(pathOut)[0] == '/'); } static void addCwd(Str *pathOut) { char dirBuf[1024], *result, *tmpBuf; int len = sizeof(dirBuf); result = getcwd(dirBuf, sizeof(dirBuf)); if (result == NULL) { while (errno == ERANGE) { len *= 2; tmpBuf = wms_malloc(len); result = getcwd(tmpBuf, len); if (result != NULL) { str_catChars(pathOut, tmpBuf); wms_free(tmpBuf); return; } wms_free(tmpBuf); } /* Another error. We can't get the cwd. */ str_catChars(pathOut, "/"); return; } str_catChars(pathOut, dirBuf); } static bool maskMatch(const char *mask, const char *fName, int fLen) { assert(fLen >= 0); while (fLen > 0) { switch(*mask) { case '\0': return(FALSE); case '*': while (mask[1] == '*') ++mask; if (fLen == 1) { return(mask[1] == '\0'); } if (fName[1] == mask[1]) { if (maskMatch(mask + 1, fName + 1, fLen - 1)) return(TRUE); } break; default: if (*mask != *fName) return(FALSE); ++mask; break; } ++fName; --fLen; } return(*mask == '\0'); } static void dirError(AbutFsel *f, int errno, const char *badDir) { Str fullError; AbutMsgOpt okBut; if (f->msg) { abutMsg_destroy(f->msg, FALSE); f->msg = NULL; } okBut.name = f->abut->ok; okBut.callback = msgOkBut; okBut.packet = f; okBut.keyEq = NULL; str_init(&fullError); str_print(&fullError, abutFsel_dirErrMessage, strerror(errno), badDir); f->msg = abutMsg_optCreate(f->abut, f->win, 2, str_chars(&fullError), msgDead, f, 1, &okBut); } static ButOut msgDead(void *packet) { AbutFsel *f = packet; assert(MAGIC(f)); f->msg = NULL; return(0); } static ButOut msgOkBut(But *but) { AbutFsel *f = but_packet(but); assert(MAGIC(f)); abutMsg_destroy(f->msg, FALSE); f->msg = NULL; return(0); } goban-1.1.orig/src/snd.h0000644000175000017500000000431006040315556012700 0ustar alal/* * wmslib/include/snd.h, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _WMS_SND_H_ #define _WMS_SND_H_ 1 /********************************************************************** * Data types **********************************************************************/ /* Public. */ typedef enum { sndInit_ok, sndInit_busy, sndInit_broken } SndInit; /* * This is a public type, but the "sndState_i*" values should never be used * by the application - they are for internal use only. */ typedef enum { sndState_iOff, sndState_off, sndState_partOpen, sndState_iWantOpen, sndState_fullOpen, sndState_oldState, sndState_iTempOpen } SndState; /* Opaque. */ typedef struct Snd_struct { int len; uchar *data; bool converted; int cvtlen; union { uchar *dsp; ushort *dsp1; } cvtdata; struct Snd_struct *next; } Snd; /********************************************************************** * Global variables **********************************************************************/ /* * Feel free to set this pointer to point to any old handler. By default * it points to a routine that dumps errStr to stderr for the first * error then ignores the rest. * It gets called ONLY by snd_play; snd_init returns an error code that you * should check for. * errStr is always the same as snd_error. */ extern void (*snd_errHandler)(SndInit errType, char *errStr); extern char snd_error[]; /********************************************************************** * Functions **********************************************************************/ extern SndInit snd_init(SndState newState, int newVolume); extern void snd_play(Snd *sound); extern void snd_deinit(void); /********************************************************************** * Macros, constants, etc. **********************************************************************/ #define snd_define(data) {sizeof(data), data, FALSE,0,{NULL},NULL} #define SND_MAXVOL 10000 /* Just for kicks, you know? */ #if SUN_SOUND || LINUX_SOUND #define SND_AVAILABLE 1 #else #define SND_AVAILABLE 0 #endif #endif /* _WMS_SND_H_ */ goban-1.1.orig/src/ctext.h0000644000175000017500000000224210267775663013264 0ustar alal/* * wmslib/src/but/ctext.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for ctext.c */ #ifndef _BUT_CTEXT_H_ #define _BUT_CTEXT_H_ 1 #include /********************************************************************** * Functions **********************************************************************/ extern But *butCt_create(ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text); extern void butCt_setText(But *info, const char *text); extern But *butAct_create(ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text, int angleflags); extern But *butAct_vCreate(ButOut (*pfunc)(But *but), ButOut (*rfunc)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text, int angleflags); #define butAct_setText butCt_setText extern void butCt_setNetAction(But *but, bool netAction); #define butAct_setNetAction butCt_setNetAction extern void butCt_setTextLoc(But *but, int x, int y, int w, int h); #endif /* _BUT_CTEXT_H_ */ goban-1.1.orig/src/arena.c0000644000175000017500000000662610271267743013216 0ustar alal/* * src/arena.c, part of Complete Goban (game program) * Copyright (C) 1996-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "engine.h" #include "goScore.h" #ifdef _ARENA_H_ #error Levelization Error. #endif #include "arena.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void match(Arena *arena, int whitePlayer, int size, float komi, int handicap); static ButOut gotMove(GmpEngine *ge, void *packet, GoStone color, int x, int y); static ButOut gotErr(GmpEngine *ge, void *packet, const char *errStr); /********************************************************************** * Functions **********************************************************************/ void arena(Cgoban *cg, const char *prog1, const char *prog2, int size, float komi, int handicap) { Arena arena; int in, out; int i, numGames; static const GmpActions actions = {NULL, gotMove, NULL, gotErr}; MAGIC_SET(&arena); arena.cg = cg; numGames = clp_getInt(cg->clp, "arena.games"); gmp_forkProgram(cg, &in, &out, prog1, 0, 0); gmpEngine_init(cg, &arena.engines[0], in, out, &actions, &arena); gmp_forkProgram(cg, &in, &out, prog1, 0, 0); gmpEngine_init(cg, &arena.engines[1], in, out, &actions, &arena); for (i = 0; i < numGames; ++i) { match(&arena, i & 1, size, komi, handicap); } MAGIC_UNSET(&arena); } static void match(Arena *arena, int whitePlayer, int size, float komi, int handicap) { static const GoTime noTime = {goTime_none, 0, 0, 0}; GoScore score; int winner; arena->game = goGame_create(size, goRules_nz, handicap, komi, &noTime, FALSE); gmpEngine_startGame(&arena->engines[whitePlayer], size, handicap, komi, TRUE, TRUE); gmpEngine_startGame(&arena->engines[whitePlayer ^ 1], size, handicap, komi, TRUE, FALSE); butEnv_events(arena->cg->env); goScore_compute(&score, arena->game); if (score.scores[0] > score.scores[1]) winner = 0; else winner = 1; printf("%d %g\n", winner ^ whitePlayer, score.scores[winner] - score.scores[winner ^ 1]); goGame_destroy(arena->game); } static ButOut gotMove(GmpEngine *ge, void *packet, GoStone color, int x, int y) { Arena *arena = packet; int move, engineNum; assert(MAGIC(arena)); if (ge == &arena->engines[0]) engineNum = 0; else { assert(ge == &arena->engines[1]); engineNum = 1; } assert(color == arena->game->whoseMove); if (color == goStone_white) { assert(!arena->engines[engineNum].iAmWhite); } else { assert(arena->engines[engineNum].iAmWhite); } if (x < 0) { goGame_pass(arena->game, arena->game->whoseMove, NULL); gmpEngine_sendPass(&arena->engines[engineNum ^ 1]); } else { move = goBoard_xy2Loc(arena->game->board, x, y); if (!goGame_isLegal(arena->game, arena->game->whoseMove, move)) { fprintf(stderr, "Got an illegal move.\n"); exit(1); } goGame_move(arena->game, arena->game->whoseMove, move, NULL); gmpEngine_sendMove(&arena->engines[engineNum ^ 1], x, y); } if (arena->game->state == goGameState_play) return(0); else return(BUTOUT_STOPWAIT); } static ButOut gotErr(GmpEngine *ge, void *packet, const char *errStr) { fprintf(stderr, "Error \"%s\" happened.\n", errStr); exit(1); } goban-1.1.orig/src/editTool.c0000644000175000017500000003711310270000403013657 0ustar alal/* * src/editTool.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "editTool.h" #include "msg.h" #include "sgfMap.h" #include "sgf.h" #include "help.h" /********************************************************************** * Forward declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut iResize(ButWin *win); static ButOut mapResize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut newTool(But *but, int val); static ButOut windowQuit(ButWin *win); static ButOut mapCallback(But *but, int newNodeNum); static ButOut cutPressed(But *but); static ButOut movePressed(But *but); static void updateTreeButtons(EditToolWin *etw); /********************************************************************** * Functions **********************************************************************/ #define editW(bw, fontH) ((fontH*2 + bw*4) * editTool_max + bw * 4) void editToolWin_init(EditToolWin *etw, Cgoban *cg, Sgf *sgf, void (*quitRequested)(void *packet), ButOut (*newToolCallback)(void *packet), ButOut (*newActiveNode)(void *packet, int nodeNum), void *packet) { static const ButKey shiftUpKeys[] = {{XK_Up, ShiftMask, ShiftMask}, {0,0,0}}; static const ButKey shiftDownKeys[] = {{XK_Down, ShiftMask, ShiftMask}, {0,0,0}}; int w, h, minW, minH; But *b; int i, fontH; bool err; MAGIC_SET(etw); etw->cg = cg; etw->modified = FALSE; fontH = butEnv_fontH(cg->env, 0); minW = editW(butEnv_stdBw(cg->env), fontH); minH = minW * 0.70710678 + 0.5; w = (fontH * clp_getDouble(cg->clp, "edit.toolW") + 0.5); h = (fontH * clp_getDouble(cg->clp, "edit.toolH") + 0.5); if (w < minW) w = minW; if (h < minH) h = minH; etw->toolWin = butWin_iCreate(etw, cg->env, "Cgoban Tools", w, h, &etw->toolIWin, FALSE, 48, 48, unmap, map, resize, iResize, destroy); i = clp_iGetInt(cg->clp, "edit.toolX", &err); if (!err) butWin_setX(etw->toolWin, i); i = clp_iGetInt(cg->clp, "edit.toolY", &err); if (!err) butWin_setY(etw->toolWin, i); butWin_setMinW(etw->toolWin, minW); butWin_setMinH(etw->toolWin, minH); butWin_setMaxW(etw->toolWin, 0); butWin_setMaxH(etw->toolWin, 0); butWin_setQuit(etw->toolWin, windowQuit); butWin_activate(etw->toolWin); etw->toolBg = butBoxFilled_create(etw->toolWin, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(etw->toolBg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); etw->toolIBg = butBoxFilled_create(etw->toolIWin, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(etw->toolIBg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); etw->toolIPic = toolPic_create(&cg->cgbuts, etw->toolIWin, 1, BUT_DRAWABLE); etw->toolSel = butRadio_create(newTool, etw, etw->toolWin, 1, BUT_PRESSABLE|BUT_DRAWABLE, 0, editTool_max); etw->selDesc[editTool_play] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, etw->lastColor = goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setVersion(b, 0); etw->selDesc[editTool_changeBoard] = stoneGroup_create(&cg->cgbuts, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU); etw->selDesc[editTool_score] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setVersion(b, CGBUTS_YINYANG(1)); etw->selDesc[editTool_triangle] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setMark(b, goMark_triangle, 0); etw->selDesc[editTool_square] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setMark(b, goMark_square, 0); etw->selDesc[editTool_circle] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setMark(b, goMark_circle, 0); etw->selDesc[editTool_letter] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setMark(b, goMark_letter, 'A'); grid_setVersion(b, 1); etw->selDesc[editTool_number] = b = grid_create(&cg->cgbuts, NULL, NULL, etw->toolWin, 2, BUT_DRAWABLE|BUT_PRESSTHRU, 0); grid_setStone(b, goStone_black, FALSE); grid_setLineGroup(b, gridLines_none); grid_setMark(b, goMark_number, 1); grid_setVersion(b, 2); etw->mapWin = abutSwin_create(etw, etw->toolWin, 1, ABUTSWIN_LSLIDE|ABUTSWIN_BSLIDE, mapResize); etw->mapBg = butPixmap_create(etw->mapWin->win, 0, BUT_DRAWABLE, cg->boardPixmap); etw->sgfMap = sgfMap_create(&cg->cgbuts, mapCallback, etw, etw->mapWin->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, sgf); etw->prevVar = butKeytrap_create(editToolWin_shiftUpPressed, etw, etw->toolWin, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(etw->prevVar, shiftUpKeys); etw->nextVar = butKeytrap_create(editToolWin_shiftDownPressed, etw, etw->toolWin, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(etw->nextVar, shiftDownKeys); etw->sgf = sgf; etw->tool = editTool_play; etw->toolBox = butBoxFilled_create(etw->toolWin, 1, BUT_DRAWABLE); etw->toolName = butText_create(etw->toolWin, 2, BUT_DRAWABLE, msg_toolNames[etw->tool], butText_center); butText_setFont(etw->toolName, 2); etw->toolDesc1 = butText_create(etw->toolWin, 2, BUT_DRAWABLE, msg_toolDesc1[etw->tool], butText_center); etw->toolDesc2 = butText_create(etw->toolWin, 2, BUT_DRAWABLE, msg_toolDesc2[etw->tool], butText_center); etw->help = butCt_create(cgoban_createHelpWindow, &help_editTool, etw->toolWin, 1, BUT_DRAWABLE | BUT_PRESSABLE, msg_help); etw->killNode = butCt_create(cutPressed, etw, etw->toolWin, 1, BUT_DRAWABLE | BUT_PRESSABLE, msg_killNode); etw->moveNode = butCt_create(movePressed, etw, etw->toolWin, 1, BUT_DRAWABLE | BUT_PRESSABLE, msg_moveNode); etw->quitRequested = quitRequested; etw->newToolCallback = newToolCallback; etw->mapCallback = newActiveNode; etw->packet = packet; updateTreeButtons(etw); } void editToolWin_deinit(EditToolWin *etw) { int fontH; assert(MAGIC(etw)); if (etw->toolWin != NULL) { fontH = butEnv_fontH(etw->cg->env, 0); clp_setInt(etw->cg->clp, "edit.toolX", butWin_x(etw->toolWin)); clp_setInt(etw->cg->clp, "edit.toolY", butWin_y(etw->toolWin)); clp_setDouble(etw->cg->clp, "edit.toolW", (double)butWin_w(etw->toolWin) / (double)fontH); clp_setDouble(etw->cg->clp, "edit.toolH", (double)butWin_h(etw->toolWin) / (double)fontH); butWin_setPacket(etw->toolWin, NULL); butWin_destroy(etw->toolWin); } MAGIC_UNSET(etw); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { EditToolWin *etw = butWin_packet(win); ButEnv *env = butWin_env(win); int bw = butEnv_stdBw(env); int fontH = butEnv_fontH(env, 0), font2H = butEnv_fontH(env, 2); int butH; int w = butWin_w(win), h = butWin_h(win); EditTool tool; int x, x2, y, toolW; assert(MAGIC(etw)); butH = etw->cg->fontH * 2; but_resize(etw->toolBg, 0, 0, w, h); but_resize(etw->toolSel, bw * 2, bw * 2, w - bw * 4, fontH * 2 + bw * 4); x2 = bw * 2; toolW = fontH * 2; for (tool = 0; tool < editTool_max; ++tool) { x = x2; x2 = bw * 2 + ((tool + 1) * (w - bw * 4)) / editTool_max; but_resize(etw->selDesc[tool], (x + x2 - toolW) / 2, bw*4, toolW, toolW); } y = fontH * 2 + bw * 6; but_resize(etw->toolBox, bw * 2, y, w - bw * 4, bw * 4 + font2H + fontH * 2); but_resize(etw->toolName, bw * 4, y += bw * 2, w - bw * 8, font2H); but_resize(etw->toolDesc1, bw * 4, y += font2H, w - bw * 8, fontH); but_resize(etw->toolDesc2, bw * 4, y += fontH, w - bw * 8, fontH); but_resize(etw->help, bw*2, y += fontH + bw * 3, (w - bw * 6 + 1) / 3, butH); but_resize(etw->killNode, bw*3 + (w - bw * 6 + 1) / 3, y, w - bw * 6 - 2*(w - bw * 6 + 1) / 3, butH); but_resize(etw->moveNode, w - bw * 2 - (w - bw * 6 + 1) / 3, y, (w - bw * 6 + 1) / 3, butH); y += butH + bw; abutSwin_resize(etw->mapWin, bw * 2, y, w - bw * 4, h - bw * 2 - y, (fontH * 3) / 2, fontH * 3); sgfMap_resize(etw->sgfMap, 0, 0); butCan_resizeWin(etw->mapWin->win, but_w(etw->sgfMap), but_h(etw->sgfMap), TRUE); return(0); } static ButOut iResize(ButWin *win) { EditToolWin *etw = butWin_packet(win); int bw = butEnv_stdBw(win->env); assert(MAGIC(etw)); but_resize(etw->toolIBg, 0, 0, butWin_w(win), butWin_h(win)); but_resize(etw->toolIPic, bw*2, bw*2, butWin_w(win) - bw*4, butWin_h(win) - bw*4); return(0); } static ButOut mapResize(ButWin *win) { AbutSwin *swin = butWin_packet(win); EditToolWin *etw; assert(MAGIC(swin)); etw = swin->packet; assert(MAGIC(etw)); but_resize(etw->mapBg, 0, 0, butWin_w(win), butWin_h(win)); return(0); } static ButOut destroy(ButWin *win) { EditToolWin *etw = butWin_packet(win); if (etw) { assert(MAGIC(etw)); clp_setInt(etw->cg->clp, "edit.toolX", butWin_x(win)); clp_setInt(etw->cg->clp, "edit.toolY", butWin_y(win)); etw->toolWin = NULL; /* editToolWin_deinit(etw); */ } return(0); } static ButOut windowQuit(ButWin *win) { EditToolWin *etw = butWin_packet(win); assert(MAGIC(etw)); etw->quitRequested(etw->packet); return(0); } static ButOut newTool(But *but, int val) { EditToolWin *etw; etw = but_packet(but); assert(MAGIC(etw)); if ((EditTool)val != etw->tool) { etw->tool = (EditTool)val; butText_set(etw->toolName, msg_toolNames[val]); butText_set(etw->toolDesc1, msg_toolDesc1[val]); butText_set(etw->toolDesc2, msg_toolDesc2[val]); } return(etw->newToolCallback(etw->packet)); } void editToolWin_newColor(EditToolWin *etw, GoStone color) { if (color != etw->lastColor) { grid_setStone(etw->selDesc[editTool_play], etw->lastColor = color, FALSE); } } void editToolWin_newTool(EditToolWin *etw, EditTool tool, bool propagate) { butRadio_set(etw->toolSel, tool, propagate); } static ButOut mapCallback(But *but, int newNodeNum) { EditToolWin *etw = but_packet(but); ButOut result; assert(MAGIC(etw)); result = etw->mapCallback(etw->packet, newNodeNum); updateTreeButtons(etw); return(result); } void editToolWin_newActiveNode(EditToolWin *etw, SgfElem *newNode) { int w, h, loX, loY, hiX, hiY; int aX, aY; int slideX, slideY, newX, newY; sgfMap_newActive(etw->sgfMap, newNode); w = butWin_viewW(etw->mapWin->win); h = butWin_viewH(etw->mapWin->win); newX = slideX = butCan_xOff(etw->mapWin->win); newY = slideY = butCan_yOff(etw->mapWin->win); loX = slideX + (w + 1) / 4; loY = slideY + (h + 1) / 4; hiX = slideX + (w * 3 + 1) / 4; hiY = slideY + (h * 3 + 1) / 4; aX = sgfMap_activeCtrX(etw->sgfMap); aY = sgfMap_activeCtrY(etw->sgfMap); if (aX < loX) { newX = aX - (w + 1) / 4; if (newX < 0) newX = 0; } else if (aX > hiX) { newX = aX - (w * 3 + 1) / 4; if (newX + w > butWin_w(etw->mapWin->win)) newX = butWin_w(etw->mapWin->win) - w; } if (aY < loY) { newY = aY - (h + 1) / 4; if (newY < 0) newY = 0; } else if (aY > hiY) { newY = aY - (h * 3 + 1) / 4; if (newY + h > butWin_h(etw->mapWin->win)) newY = butWin_h(etw->mapWin->win) - h; } if ((newX != slideX) || (newY != slideY)) { butCan_slide(etw->mapWin->win, newX, newY, TRUE); } updateTreeButtons(etw); } static ButOut cutPressed(But *but) { EditToolWin *etw = but_packet(but); SgfElem *deadElem, *newActive; ButOut result; assert(MAGIC(etw)); etw->modified = TRUE; deadElem = etw->sgf->active->activeChild; if (deadElem == NULL) return(BUTOUT_ERR); newActive = deadElem->sibling; if (newActive) { sgfMap_changeVar(etw->sgfMap, sgfMap_next); } else { for (newActive = etw->sgf->active->childH; newActive && (newActive->sibling != deadElem); newActive = newActive->sibling); if (newActive) sgfMap_changeVar(etw->sgfMap, sgfMap_prev); } etw->sgf->active->activeChild = deadElem; assert(newActive != etw->sgf->active->activeChild); assert(MAGICNULL(newActive)); sgfElem_destroyActiveChild(etw->sgf->active); assert(MAGICNULL(newActive)); etw->sgf->active->activeChild = newActive; sgfMap_remap(etw->sgfMap, etw->sgf); butCan_resizeWin(etw->mapWin->win, but_w(etw->sgfMap), but_h(etw->sgfMap), TRUE); result = etw->mapCallback(etw->packet, etw->sgf->active->mapX); updateTreeButtons(etw); return(result); } static ButOut movePressed(But *but) { EditToolWin *etw = but_packet(but); SgfElem *active, *loSwap, *hiSwap, *prevChild; assert(MAGIC(etw)); etw->modified = TRUE; active = etw->sgf->active; assert(active->childH != active->childT); assert(active->childH != NULL); hiSwap = active->activeChild; if (active->childH == hiSwap) { loSwap = hiSwap; hiSwap = loSwap->sibling; } else { for (loSwap = active->childH; loSwap->sibling != hiSwap; loSwap = loSwap->sibling) assert(MAGIC(loSwap)); } if (active->childH == loSwap) { active->childH = hiSwap; } else { for (prevChild = active->childH; prevChild->sibling != loSwap; prevChild = prevChild->sibling); prevChild->sibling = hiSwap; } loSwap->sibling = hiSwap->sibling; hiSwap->sibling = loSwap; if (active->childT == hiSwap) active->childT = loSwap; sgfMap_remap(etw->sgfMap, etw->sgf); butCan_resizeWin(etw->mapWin->win, but_w(etw->sgfMap), but_h(etw->sgfMap), TRUE); return(0); } void editToolWin_nodeAdded(EditToolWin *etw, SgfElem *newNode) { bool addSuccessful; addSuccessful = sgfMap_newNode(etw->sgfMap, newNode); if (!addSuccessful) { sgfMap_remap(etw->sgfMap, etw->sgf); butCan_resizeWin(etw->mapWin->win, but_w(etw->sgfMap), but_h(etw->sgfMap), TRUE); } updateTreeButtons(etw); } ButOut editToolWin_shiftUpPressed(But *but, bool press) { EditToolWin *etw = but_packet(but); assert(MAGIC(etw)); if (press) { if (sgfMap_changeVar(etw->sgfMap, sgfMap_prev)) return(0); else return(BUTOUT_ERR); } else return(0); } ButOut editToolWin_shiftDownPressed(But *but, bool press) { EditToolWin *etw = but_packet(but); assert(MAGIC(etw)); if (press) { if (sgfMap_changeVar(etw->sgfMap, sgfMap_next)) return(0); else return(BUTOUT_ERR); } else return(0); } static void updateTreeButtons(EditToolWin *etw) { if (etw->sgf->active->childH) { but_setFlags(etw->killNode, BUT_PRESSABLE); if (etw->sgf->active->childH == etw->sgf->active->childT) { but_setFlags(etw->moveNode, BUT_NOPRESS); } else { but_setFlags(etw->moveNode, BUT_PRESSABLE); } } else { but_setFlags(etw->killNode, BUT_NOPRESS); but_setFlags(etw->moveNode, BUT_NOPRESS); } } goban-1.1.orig/src/local.h0000644000175000017500000000323306064701213013204 0ustar alal/* * src/local.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _LOCAL_H_ #define _LOCAL_H_ 1 #ifndef _SGF_H_ #include "sgf.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOPIC_H_ #include "goPic.h" #endif #ifndef _GOBAN_H_ #include "goban.h" #endif /********************************************************************** * Forward declarations **********************************************************************/ #ifndef _ABUT_FSEL_H_ #ifndef AbutFsel #define AbutFsel void #endif #endif #ifndef _ABUT_MSG_H_ #ifndef AbutMsg #define AbutMsg void #endif #endif /********************************************************************** * Data types **********************************************************************/ typedef struct Local_struct { Cgoban *cg; GoGame *game; bool modified; Goban *goban; Sgf *moves; SgfElem *endGame; /* Used to backtrack after a dispute. */ SgfElem *lastComment; AbutFsel *fsel; AbutMsg *reallyQuit; MAGIC_STRUCT } Local; /********************************************************************** * Functions **********************************************************************/ extern Local *local_create(Cgoban *cg, GoRules rules, int size, int hcap, float komi, const char *white, const char *black, GoTimeType timeType, int mainTime, int byTime, int auxTime); extern Local *local_createFile(Cgoban *cg, const char *fname); extern Local *local_createSgf(Cgoban *cg, Sgf *mc); extern void local_destroy(Local *l); #endif /* _LOCAL_H_ */ goban-1.1.orig/src/goban.c0000644000175000017500000006460510270566612013213 0ustar alal/* * src/goban.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "msg.h" #include "goGame.h" #include "cgbuts.h" #include "goPic.h" #ifdef _GOBAN_H_ #error Levelization Error. #endif #include "goban.h" /********************************************************************** * Forward references **********************************************************************/ static ButOut resize(ButWin *win); static ButOut iResize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut msgBoxKilled(But *okBut); static void startMoveTimer(Goban *g); static void stopMoveTimer(Goban *g); static ButOut newTime(ButTimer *t); static ButOut dispatchGrid(void *packet, int loc); static ButOut dispatchQuit(But *but); static ButOut dispatchPass(But *but); static ButOut dispatchRew(But *but); static ButOut dispatchBack(But *but); static ButOut dispatchFwd(But *but); static ButOut dispatchFf(But *but); static ButOut dispatchDone(But *but); static ButOut dispatchDispute(But *but); static ButOut dispatchSave(But *but); static ButOut dispatchEdit(But *but); static ButOut dispatchInfo(But *but); static ButOut gotKibitz(But *but, const char *value); static ButOut newKibVal(But *but, int value); /********************************************************************** * Functions **********************************************************************/ /* * This is an ugly kludge. */ #define WIN_W(fontH, bw) \ (fontH*3+bw*2 + fontH*12+bw*5 + \ (fontH*2+bw)*12+fontH*2+bw*6) Goban *goban_create(Cgoban *cg, const GobanActions *actions,void *packet, GoGame *game, const char *clpName, const char *title) { static ButKey rewKeys[] = {{XK_Home, 0,0}, {0,0,0}}; static ButKey backKeys[] = {{XK_Left, 0,0}, {0,0,0}}; static ButKey fwdKeys[] = {{XK_Right, 0,0}, {0,0,0}}; static ButKey ffKeys[] = {{XK_End, 0,0}, {0,0,0}}; Goban *g; int winSize, i; GoStone s; GobanPlayerInfo *pi; Str clpStrs; bool err; uint butFlags; assert(MAGIC(cg)); g = wms_malloc(sizeof(Goban)); MAGIC_SET(g); g->cg = cg; g->actions = actions; g->packet = packet; g->propagateDestroy = TRUE; g->game = game; goTimer_init(&g->timers[goStone_black], &game->time); goTimer_init(&g->timers[goStone_white], &game->time); g->activeTimer = goStone_empty; g->ingTimePenalties[goStone_black] = g->ingTimePenalties[goStone_white] = 0; g->lastMove = 0; g->lastScores[goStone_black] = g->lastScores[goStone_white] = 0.0; str_init(&clpStrs); str_print(&clpStrs, "%s.bProp", clpName); g->bProp = clp_lookup(cg->clp, str_chars(&clpStrs)); str_print(&clpStrs, "%s.x", clpName); g->clpX = clp_lookup(cg->clp, str_chars(&clpStrs)); str_print(&clpStrs, "%s.y", clpName); g->clpY = clp_lookup(cg->clp, str_chars(&clpStrs)); str_deinit(&clpStrs); { int x, y; const char *window_name; if (cg->screensaver) { x = cg->env->rootW; y = cg->env->rootH; window_name = "cgoban screensaver"; } else { x = WIN_W(cg->fontH, butEnv_stdBw(cg->env)); y = (int)(x * clpEntry_getDouble(g->bProp) + 0.5); winSize = x; window_name = title; } g->win = butWin_iCreate(g, cg->env, window_name, x, y, &g->iWin, FALSE, 64, 64, NULL, NULL, resize, iResize, destroy); } if (cg->screensaver) { g->win->isroot = clp_getBool(cg->clp, "root"); sscanf(clp_getStr(cg->clp, "window-id"), "%x", &g->win->window_id); if (g->win->isroot && g->win->window_id) { g->win->isroot = FALSE; } butWin_setX(g->win, 0); butWin_setY(g->win, 0); } else { i = clpEntry_iGetInt(g->clpX, &err); if (!err) { butWin_setX(g->win, i); } i = clpEntry_iGetInt(g->clpY, &err); if (!err) { butWin_setY(g->win, i); } butWin_setMinH(g->win, winSize); butWin_setMaxH(g->win, 0); butWin_setMinW(g->win, winSize / 2); butWin_setMaxW(g->win, 0); butWin_setWHRatios(g->win, 1, 1000, 1, 1); } butWin_activate(g->win); g->bg = butBoxFilled_create(g->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(g->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); g->labelBox = butBoxFilled_create(g->win, 1, BUT_DRAWABLE); g->labelText = butText_create(g->win, 2, BUT_DRAWABLE, title, butText_center); butText_setFont(g->labelText, 2); g->infoText = butText_create(g->win, 2, BUT_DRAWABLE, "", butText_center); if (actions->gameInfoPressed) butFlags = BUT_DRAWABLE | BUT_PRESSABLE; else butFlags = BUT_DRAWABLE; if (!cg->screensaver) { g->gameInfo = butCt_create(dispatchInfo, g, g->win, 1, butFlags, msg_gameInfo); g->help = butCt_create(cgoban_createHelpWindow, actions->helpInfo, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); g->pass = butCt_create(dispatchPass, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_pass); if ((game->rules == goRules_japanese) || (game->rules == goRules_tibetan)) g->resume = butCt_create(dispatchDispute, g, g->win, 1, BUT_DRAWABLE, msg_dispute); else g->resume = butCt_create(dispatchBack, g, g->win, 1, BUT_DRAWABLE, msg_resume); g->done = butCt_create(dispatchDone, g, g->win, 1, BUT_DRAWABLE, msg_done); g->rew = butAct_create(dispatchRew, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_REWCHAR, BUT_RLEFT|BUT_SRIGHT); but_setKeys(g->rew, rewKeys); g->back = butAct_create(dispatchBack, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_BACKCHAR, BUT_SLEFT|BUT_SRIGHT); but_setKeys(g->back, backKeys); g->fwd = butAct_create(dispatchFwd, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FWDCHAR, BUT_SLEFT|BUT_SRIGHT); but_setKeys(g->fwd, fwdKeys); g->ff = butAct_create(dispatchFf, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FFCHAR, BUT_SLEFT|BUT_RRIGHT); but_setKeys(g->ff, ffKeys); for (s = goStone_white; s <= goStone_black; ++s) { pi = &g->playerInfos[s]; pi->box = butBoxFilled_create(g->win, 1, BUT_DRAWABLE); for (i = 0; i < 5; ++i) { assert(i < CGBUTS_NUMWHITE); pi->stones[i] = grid_create(&g->cg->cgbuts, NULL, NULL, g->win, 2, BUT_DRAWABLE, 0); grid_setStone(pi->stones[i], s, FALSE); grid_setLineGroup(pi->stones[i], gridLines_none); grid_setVersion(pi->stones[i], i); } pi->capsLabel = butText_create(g->win, 2, BUT_DRAWABLE, msg_score, butText_left); pi->capsOut = butText_create(g->win, 3, BUT_DRAWABLE, "0", butText_right); butText_setColor(pi->capsOut, CGBUTS_COLORREDLED, FALSE); pi->capsBox = butBoxFilled_create(g->win, 2, BUT_DRAWABLE); butBoxFilled_setColors(pi->capsBox, BUT_SHAD,BUT_LIT,BUT_FG); pi->timeLabel = butText_create(g->win, 2, BUT_DRAWABLE, msg_time, butText_left); pi->timeOut = butText_create(g->win, 3, BUT_DRAWABLE, "", butText_right); butText_setColor(pi->timeOut, CGBUTS_COLORREDLED, FALSE); pi->timeBox = butBoxFilled_create(g->win, 2, BUT_DRAWABLE); butBoxFilled_setColors(pi->timeBox, BUT_SHAD,BUT_LIT,BUT_FG); } if (actions->savePressed) butFlags = BUT_DRAWABLE | BUT_PRESSABLE; else butFlags = BUT_DRAWABLE; g->save = butCt_create(dispatchSave, g, g->win, 1, butFlags, msg_saveGame); if (actions->editPressed) butFlags = BUT_DRAWABLE | BUT_PRESSABLE; else butFlags = BUT_DRAWABLE; g->edit = butCt_create(dispatchEdit, g, g->win, 1, butFlags, msg_editGame); g->quit = butCt_create(dispatchQuit, g, g->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_close); g->comments = abutTerm_create(cg->abut, g->win, 1, TRUE); g->kibIn = NULL; g->newKib = NULL; } g->boardBox = butPixmap_create(g->win, 1, BUT_DRAWABLE, cg->bgShadPixmap); butPixmap_setPic(g->boardBox, cg->bgShadPixmap, cg->fontH + butEnv_stdBw(cg->env) + cg->fontH / 2, cg->fontH + butEnv_stdBw(cg->env) + cg->fontH / 2); g->pic = goPic_create(cg, g, game, g->win, 2, dispatchGrid, goBoard_size(game->board)); g->iBg = butBoxFilled_create(g->iWin, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(g->iBg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); g->iBoard = gobanPic_create(&cg->cgbuts, g->iWin, 1, BUT_DRAWABLE); g->iDec1 = NULL; g->iDec2 = NULL; g->msgBox = NULL; g->clock = NULL; goban_update(g); return(g); } void goban_destroy(Goban *g, bool propagate) { assert(MAGIC(g)); goPic_destroy(g->pic); g->pic = NULL; g->propagateDestroy = propagate; butWin_destroy(g->win); } #define min(x,y) ((xcg; assert(MAGIC(cg)); bw = butEnv_stdBw(cg->env); winW = butWin_w(win); winH = butWin_h(win); fontH = cg->fontH; butW = fontH * 10 + bw*4; if (cg->screensaver) boardW = min(winW, winH) * 0.8; else boardW = winW - butW - fontH*3 - bw*2; clpEntry_setDouble(g->bProp, (double)winH / (double)butWin_getMinH(win)); butH = fontH * 2; butSpc = fontH * 2 + bw; butY = fontH*2 + bw + butH + butSpc; bigStoneW = fontH; boxH = butSpc*3 + bw*3; if (cg->screensaver) boardXPic = (winW - boardW) / 2; else boardXPic = fontH + bw; boardYPic = butY; butX = boardXPic + boardW + fontH; but_resize(g->bg, 0,0, winW,butWin_h(win)); but_resize(g->labelBox, boardXPic,bw + fontH, boardW,butH+butSpc); if (cg->screensaver) but_resize(g->labelText, bw*2, bw*2 + 2*fontH, winW-bw*2, (butH+butSpc-bw*2)/2); else but_resize(g->labelText, bw*2 + fontH,bw*2 + fontH, boardW-bw*2,(butH+butSpc-bw*2)/2); but_resize(g->infoText, bw*2 + fontH, bw*2 + fontH+(butH+butSpc-bw*2)/2, boardW-bw*2,(butH+butSpc-bw*2)/2); if (!cg->screensaver) { but_resize(g->gameInfo, butX, fontH + bw, butW,butH); but_resize(g->help, butX, fontH + bw + butSpc, butW,butH); but_resize(g->pass, butX,butY, butW,butH); but_resize(g->resume, butX,butY+butSpc, butW,butH); but_resize(g->done, butX,butY+2*butSpc, butW,butH); x = butX; w = butW/4; but_resize(g->rew, x,butY+3*butSpc, w,butH); x += w; w = butW/2 - w; but_resize(g->back, x,butY+3*butSpc, w,butH); x += w; w = butW - (w + butW/2); but_resize(g->fwd, x,butY+3*butSpc, w,butH); x += w; but_resize(g->ff, x,butY+3*butSpc, butW/4,butH); butY += 4*butSpc + fontH; x = butEnv_textWidth(win->env, msg_time, 0); w = butEnv_textWidth(win->env, msg_score, 0); if (x < w) x = w; w = butW - x - 5*bw; x += butX + bw*3; for (s = goStone_white; s <= goStone_black; ++s) { pi = &g->playerInfos[s]; but_resize(pi->box, butX,butY, butW,boxH); for (i = 0; i < 5; ++i) but_resize(pi->stones[i], butX+bw*2+bigStoneW*2*i + fontH/2, butY+bw*2 + fontH/2, fontH, fontH); butText_resize(pi->capsLabel, butX+bw*2,butY+butSpc+bw*2, butH); but_resize(pi->capsOut, x+bw*2,butY+bw*3+butSpc, w-bw*4,butH-bw*2); but_resize(pi->capsBox, x,butY+bw*2+butSpc, w,butH); butText_resize(pi->timeLabel, butX+bw*2,butY+butSpc*2+bw*2, butH); but_resize(pi->timeOut, x+bw*2,butY+butSpc*2+bw*3, w-bw*4,butH-bw*2); but_resize(pi->timeBox, x,butY+butSpc*2+bw*2, w,butH); butY += boxH+bw; } butY += fontH - bw; but_resize(g->save, butX,butY , butW,butH); but_resize(g->edit, butX,butY+butSpc , butW,butH); but_resize(g->quit, butX,butY+butSpc*2, butW,butH); butY += butSpc*3 + fontH - bw; if (butY < boardYPic + boardW + fontH) butY = boardYPic + boardW + fontH; if (g->kibIn == NULL) { abutTerm_resize(g->comments, fontH+bw,butY, winW - bw*2 - fontH*2, winH - butY - fontH - bw); } else { abutTerm_resize(g->comments, fontH+bw,butY, winW - bw*2 - fontH*2, winH - butY - fontH*3 - bw); but_resize(g->kibIn, fontH+bw, winH - fontH * 3 - bw, winW - bw*2 - fontH*2 - butW, fontH * 2); but_resize(g->kibType, butX, winH - fontH * 3 - bw, butW, fontH * 2); but_resize(g->kibSay, butX, winH - fontH * 3 - bw, (butW + 1) / 3, fontH * 2); but_resize(g->kibBoth, butX + (butW + 1) / 3, winH - fontH * 3 - bw, butW - ((butW + 1) / 3) * 2, fontH * 2); but_resize(g->kibKib, butX + butW - (butW + 1) / 3, winH - fontH * 3 - bw, (butW + 1) / 3, fontH * 2); } } but_resize(g->boardBox, boardXPic + fontH/2,boardYPic + fontH/2, boardW,boardW); goPic_resize(g->pic, boardXPic,boardYPic, boardW,boardW); return(0); } static ButOut iResize(ButWin *win) { Goban *g = butWin_packet(win); int bw = butEnv_stdBw(win->env); int w = butWin_w(win), h = butWin_h(win); assert(MAGIC(g)); but_resize(g->iBg, 0,0, butWin_w(win),butWin_h(win)); but_resize(g->iBoard, bw*2,bw*2, butWin_w(win)-bw*4,butWin_h(win)-bw*4); if (g->iDec1 && !g->iDec2) { but_resize(g->iDec1, (w * 1 + 2) / 5, (h + 4) / 10, (w * 3 + 2) / 5, (w * 3 + 2) / 5); } else if (g->iDec1 && g->iDec2) { but_resize(g->iDec1, bw*2, (h + 4) / 10, (w + 1) / 3, (w + 1) / 3); but_resize(g->iDec2, w - bw*2 - (w + 1) / 3, (h + 4) / 10, (w + 1) / 3, (w + 1) / 3); } return(0); } static ButOut destroy(ButWin *win) { Goban *g = butWin_packet(win); const GobanActions *actions; void *packet; bool propagate; assert(MAGIC(g)); propagate = g->propagateDestroy; actions = g->actions; packet = g->packet; g->win = NULL; /* It's dead already. */ clpEntry_setInt(g->clpX, butWin_x(win)); clpEntry_setInt(g->clpY, butWin_y(win)); if (g->pic) goPic_destroy(g->pic); if (g->msgBox) abutMsg_destroy(g->msgBox, FALSE); MAGIC_UNSET(g); wms_free(g); if (propagate) { actions->destroyCallback(packet); } return(0); } void goban_update(Goban *g) { Str newText; char newScore[40], locDesc[5]; const char *statusStr; GoStone color; float score; uint defaultPassFlags; assert(MAGIC(g)); str_init(&newText); if (g->game->state > goGameState_dispute) { goScore_compute(&g->score, g->game); } else { goScore_zero(&g->score); } goPic_update(g->pic); if (!g->cg->screensaver) { goban_updateTimeReadouts(g); goStoneIter(color) { if (g->game->state <= goGameState_dispute) { score = goGame_caps(g->game, color) - g->ingTimePenalties[color]; if (color == goStone_white) score += g->game->komi; } else { score = g->score.scores[color]; } if (score != g->lastScores[color]) { g->lastScores[color] = score; sprintf(newScore, "%g", score); butText_set(g->playerInfos[color].capsOut, newScore); } } if ((g->pic->allowedMoves & goPicMove_noPass) || ((g->game->whoseMove == goStone_white) && (g->pic->allowedMoves & goPicMove_noWhite)) || ((g->game->whoseMove == goStone_black) && (g->pic->allowedMoves & goPicMove_noBlack))) defaultPassFlags = BUT_NOPRESS; else defaultPassFlags = BUT_PRESSABLE; switch(g->game->state) { case goGameState_play: switch(g->game->moveNum) { case 0: str_copyChars(&newText, msg_gameStartDesc); break; case 1: goBoard_loc2Str(g->game->board, g->game->moves[0].move, locDesc); if (g->game->maxMoves == 1) { str_print(&newText, msg_move1Desc, (int)goStone_char(goGame_whoseTurnOnMove(g->game, 0)), locDesc); } else { str_print(&newText, msg_move1OfDesc, (int)goStone_char(goGame_whoseTurnOnMove(g->game, 0)), locDesc, g->game->maxMoves); } break; default: goBoard_loc2Str(g->game->board, g->game->moves[g->game->moveNum - 1].move, locDesc); if (g->game->maxMoves == g->game->moveNum) { str_print(&newText, msg_moveNDesc, g->game->moveNum, (int)goStone_char(goGame_whoseTurnOnMove(g->game, g->game->moveNum - 1)), locDesc); } else { str_print(&newText, msg_moveNOfDesc, g->game->moveNum, (int)goStone_char(goGame_whoseTurnOnMove(g->game, g->game->moveNum - 1)), locDesc, g->game->maxMoves); } break; } assert(goStone_isStone(goGame_whoseMove(g->game))); str_catChars(&newText, msg_stoneNames[goGame_whoseMove(g->game)]); str_catChars(&newText, msg_toPlay); butText_set(g->infoText, str_chars(&newText)); but_setFlags(g->pass, defaultPassFlags); but_setFlags(g->resume, BUT_NOPRESS); but_setFlags(g->done, BUT_NOPRESS); break; case goGameState_dispute: color = goGame_whoseMove(g->game); if (g->game->disputeAlive) statusStr = msg_alive; else statusStr = msg_dead; str_print(&newText, msg_disputeAnnounce, statusStr, msg_stoneNames[color]); butText_set(g->infoText, str_chars(&newText)); but_setFlags(g->pass, defaultPassFlags); but_setFlags(g->resume, BUT_NOPRESS); but_setFlags(g->done, BUT_NOPRESS); break; case goGameState_selectDead: butText_set(g->infoText, msg_selectDead); but_setFlags(g->pass, BUT_NOPRESS); if (g->actions->disputePressed) but_setFlags(g->resume, BUT_PRESSABLE); else but_setFlags(g->resume, BUT_NOPRESS); but_setFlags(g->done, BUT_PRESSABLE); break; case goGameState_selectDisputed: butText_set(g->infoText, msg_selectDisputed); but_setFlags(g->pass, BUT_NOPRESS); but_setFlags(g->resume, BUT_NOPRESS); but_setFlags(g->done, BUT_NOPRESS); break; case goGameState_done: if (!goTime_checkTimer(&g->game->time, &g->timers[g->game->whoseMove])) { str_print(&newText, msg_timeLossInfo, msg_stoneNames[g->game->whoseMove]); butText_set(g->infoText, str_chars(&newText)); } else if (g->lastScores[goStone_white] > g->lastScores[goStone_black]) butText_set(g->infoText, msg_whiteWon); else if ((g->lastScores[goStone_white] < g->lastScores[goStone_black]) || (g->game->rules == goRules_ing)) butText_set(g->infoText, msg_blackWon); else butText_set(g->infoText, msg_jigo); but_setFlags(g->pass, BUT_NOPRESS); but_setFlags(g->resume, BUT_NOPRESS); but_setFlags(g->done, BUT_NOPRESS); break; } if (g->actions->rewOk(g->packet)) but_setFlags(g->rew, BUT_PRESSABLE); else but_setFlags(g->rew, BUT_NOPRESS); if (g->actions->backOk(g->packet)) but_setFlags(g->back, BUT_PRESSABLE); else but_setFlags(g->back, BUT_NOPRESS); if (g->actions->fwdOk(g->packet)) { but_setFlags(g->fwd, BUT_PRESSABLE); } else { but_setFlags(g->fwd, BUT_NOPRESS); } if (g->actions->ffwdOk(g->packet)) { but_setFlags(g->ff, BUT_PRESSABLE); } else { but_setFlags(g->ff, BUT_NOPRESS); } str_deinit(&newText); } } static ButOut msgBoxKilled(But *okBut) { Goban *g = but_packet(okBut); assert(MAGIC(g)); abutMsg_destroy(g->msgBox, FALSE); g->msgBox = NULL; return(0); } void goban_message(Goban *g, const char *str) { AbutMsgOpt ok; assert(MAGIC(g)); ok.name = msg_ok; ok.callback = msgBoxKilled; ok.packet = g; ok.keyEq = cg_return; if (g->msgBox) abutMsg_destroy(g->msgBox, FALSE); g->msgBox = abutMsg_optCreate(g->cg->abut, g->win, 4, str, NULL, NULL, 1, &ok); } void goban_noMessage(Goban *g) { if (g->msgBox) { abutMsg_destroy(g->msgBox, FALSE); g->msgBox = NULL; } } static void startMoveTimer(Goban *g) { struct timeval delay, period; /* * If we are in passive mode, then time does not go down. This is used * when editing SGF files, etc. */ if (!g->game->passive) { stopMoveTimer(g); delay.tv_sec = 0; delay.tv_usec = g->timers[g->activeTimer].usLeft + 100000; while (delay.tv_usec >= 1000000) delay.tv_usec -= 1000000; period.tv_sec = 1; period.tv_usec = 0; g->clock = butTimer_create(g, g->bg, delay, period, FALSE, newTime); } } static void stopMoveTimer(Goban *g) { if (g->clock) { butTimer_destroy(g->clock); g->clock = NULL; } } static ButOut newTime(ButTimer *t) { Goban *g = butTimer_packet(t); int newIngPenalty; assert(MAGIC(g)); goTime_checkTimer(&g->game->time, &g->timers[g->activeTimer]); newIngPenalty = goTime_ingPenalty(&g->game->time, &g->timers[g->activeTimer]); if (newIngPenalty == g->ingTimePenalties[g->activeTimer]) goban_updateTimeReadouts(g); else { g->ingTimePenalties[g->activeTimer] = newIngPenalty; goban_update(g); } return(0); } void goban_updateTimeReadouts(Goban *g) { GoStone color; Str newText; assert(MAGIC(g)); str_init(&newText); goStoneIter(color) { goTime_remainStr(&g->game->time, &g->timers[color], &newText); if (strcmp(str_chars(&newText), butText_get(g->playerInfos[color].timeOut))) butText_set(g->playerInfos[color].timeOut, str_chars(&newText)); } str_deinit(&newText); } static ButOut dispatchGrid(void *packet, int loc) { Goban *g = packet; GobanOut out; assert(MAGIC(g)); out = g->actions->gridPressed(g->packet, loc); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchQuit(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->quitPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchPass(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->passPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchRew(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->rewPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchBack(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->backPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchFwd(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->fwdPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchFf(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->ffPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchDone(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->donePressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchDispute(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->disputePressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchSave(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->savePressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchEdit(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->editPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } static ButOut dispatchInfo(But *but) { Goban *g = but_packet(but); GobanOut out; assert(MAGIC(g)); out = g->actions->gameInfoPressed(g->packet); if (out == gobanOut_draw) goban_update(g); if (out == gobanOut_err) return(BUTOUT_ERR); else return(0); } void goban_setKibitz(Goban *g, GobanOut (*newKib)(void *packet, const char *txt), int kibVal) { uint kibFlags; assert(MAGIC(g)); if (kibVal == -1) { kibFlags = BUT_DRAWABLE; kibVal = 2; } else kibFlags = BUT_PRESSABLE|BUT_DRAWABLE; butTbin_setMaxLines(g->comments->tbin, 100); butTbin_setReadOnly(g->comments->tbin, TRUE); butPlain_setColor(g->comments->bg, BUT_BG); g->kibIn = butTextin_create(gotKibitz, g, g->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, "", 200); g->newKib = newKib; g->kibType = butRadio_create(newKibVal, g, g->win, 1, kibFlags, kibVal, 3); g->kibSay = butText_create(g->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_say, butText_center); g->kibBoth = butText_create(g->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_both, butText_center); g->kibKib = butText_create(g->win, 2, BUT_DRAWABLE|BUT_PRESSTHRU, msg_kib, butText_center); if (!(kibFlags & BUT_PRESSABLE)) { butText_setColor(g->kibSay, BUT_FG, TRUE); butText_setColor(g->kibBoth, BUT_FG, TRUE); } } static ButOut gotKibitz(But *but, const char *value) { Goban *g = but_packet(but); assert(MAGIC(g)); if (value[0] == '\0') { but_setFlags(g->kibIn, BUT_NOKEY); } else { g->newKib(g->packet, value); butTextin_set(g->kibIn, "", FALSE); } return(0); } static ButOut newKibVal(But *but, int value) { Goban *g = but_packet(but); assert(MAGIC(g)); clp_setInt(g->cg->clp, "client.saykib", value); return(0); } void goban_startTimer(Goban *g, GoStone whose) { goTime_startTimer(&g->game->time, &g->timers[whose]); g->activeTimer = whose; startMoveTimer(g); } /* stopTimer returns TRUE if there is still time left. */ bool goban_stopTimer(Goban *g) { GoStone color = g->activeTimer; if (color == goStone_empty) { /* Timers were never started! */ return(TRUE); } assert(goStone_isStone(color)); stopMoveTimer(g); g->activeTimer = goStone_empty; return(goTime_endTimer(&g->game->time, &g->timers[color])); } goban-1.1.orig/src/login.h0000644000175000017500000000226510270067357013236 0ustar alal/* * src/client/login.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_LOGIN_H_ #define _CLIENT_LOGIN_H_ 1 #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _CLIENT_SERVER_H_ #include "server.h" #endif #ifndef _CLIENT_MAIN_H_ #include "client_main.h" #endif /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliLogin_waitForUser, cliLogin_waitForPassword, cliLogin_waitForPrompt } CliLoginState; typedef struct CliLogin_struct { CliData *cd; CliMain *main; bool keepMainMessage; Str user, pass; CliLoginState state; MAGIC_STRUCT } CliLogin; /********************************************************************** * Functions **********************************************************************/ extern CliLogin *cliLogin_create(CliData *cd, const char *user, const char *pass); extern void cliLogin_destroy(CliLogin *cl, bool propagate); #endif /* _CLIENT_LOGIN_H_ */ goban-1.1.orig/src/i_snd.h0000644000175000017500000000041706035353012013205 0ustar alal/* * wmslib/src/but/i_snd.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for i_snd.c */ #ifndef _BUT_I_SND_H_ #define _BUT_I_SND_H_ 1 #endif /* _BUT_I_SND_H_ */ goban-1.1.orig/src/sgfMap.c0000644000175000017500000005364710270056631013341 0ustar alal/* * src/xio/sgfMap.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include "cgbuts.h" #include "sgfMap.h" /********************************************************************** * Forward declarations **********************************************************************/ static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butNum, int x, int y); static ButOut mrelease(But *but, int butNum, int x, int y); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static void relocate(But *but, SgfElem *elem, int x, int y, int numDiag, int moveNum, bool mainLine); static void resizeGraph(SgfMap *map, int newX, int newY); static int findSubtreeY(SgfMap *map, SgfElem *tree, int x0, int y0, int *numDiagOut); static void drawConn(But *but, uint flags, int x, int y, int fontH); static void newFlags(But *but, uint flags); static void redrawEl(But *but, int x, int y); static void newMain(But *but, SgfMap *map, int x, int y); /********************************************************************** * Functions **********************************************************************/ But *sgfMap_create(Cgbuts *b, ButOut (*callback)(But *but, int newNodeNum), void *packet, ButWin *win, int layer, int flags, Sgf *sgf) { static const ButAction action = { mmove, mleave, mpress, mrelease, NULL, NULL, draw, destroy, newFlags, NULL}; SgfMap *map; But *but; map = wms_malloc(sizeof(SgfMap)); MAGIC_SET(map); but = but_create(win, map, &action); but->uPacket = packet; but->layer = layer; but->flags = flags; map->cgbuts = b; map->callback = callback; map->mapW = map->mapH = 0; map->maxW = map->maxH = 1; map->activeX = map->activeY = 0; map->activeCtrX = map->activeCtrY = -1; map->els = wms_malloc(sizeof(SgfMapElem)); map->els[0].flags = 0; but_init(but); relocate(but, sgf->top.activeChild, 0, 0, 0, 0, TRUE); map->els[0].flags &= ~SGFMAPFLAGS_CONNL; return(but); } void sgfMap_destroy(But *but) { SgfMap *map = but->iPacket; assert(MAGIC(map)); wms_free(map); } void sgfMap_resize(But *but, int x, int y) { SgfMap *map; int fontH; map = but->iPacket; assert(MAGIC(map)); fontH = butEnv_fontH(but->win->env, 0); but_resize(but, x, y, map->mapW * 3 * fontH + fontH, map->mapH * 3 * fontH + fontH); } static ButOut mmove(But *but, int x, int y) { SgfMap *map = but->iPacket; ButEnv *env = but->win->env; int gx, gy; int gridSpc = butEnv_fontH(env, 0); int gridW = gridSpc * 3; uint newFlags = but->flags; ButOut result = BUTOUT_CAUGHT; bool overBut = TRUE; gx = (x - but->x - gridSpc / 2) / gridW; gy = (y - but->y - gridSpc / 2) / gridW; if ((gx < 0) || (gy < 0) || (gx >= map->mapW) || (gy >= map->mapH)) overBut = FALSE; else if (map->els[gx + gy * map->maxW].node == NULL) overBut = FALSE; else if ((but->flags & BUT_PRESSED) && ((gx != map->pressX) || (gy != map->pressY))) overBut = FALSE; if (overBut) newFlags |= BUT_TWITCHED; else { newFlags &= ~BUT_TWITCHED; if (!(newFlags & BUT_LOCKED)) result &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newFlags & BUT_TWITCHED)) butEnv_setCursor(env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newFlags & BUT_TWITCHED)) butEnv_setCursor(env, but, butCur_idle); if (newFlags != but->flags) { but_newFlags(but, newFlags); } return(result); } static ButOut mleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butNum, int x, int y) { SgfMap *map = but->iPacket; ButOut result = BUTOUT_CAUGHT; ButEnv *env = but->win->env; int gx, gy; int gridSpc = butEnv_fontH(env, 0); int gridW = gridSpc * 3; uint newFlags = but->flags; gx = (x - but->x - gridSpc / 2) / gridW; gy = (y - but->y - gridSpc / 2) / gridW; if (!(newFlags & BUT_TWITCHED)) result &= ~BUTOUT_CAUGHT; else { assert(gx >= 0); assert(gy >= 0); assert(gx < map->mapW); assert(gy < map->mapH); assert(map->els[gx + gy * map->maxW].node != NULL); if (butNum == 1) { map->pressX = gx; map->pressY = gy; newFlags |= BUT_PRESSED | BUT_LOCKED; } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } if (newFlags != but->flags) but_newFlags(but, newFlags); return(result); } static ButOut mrelease(But *but, int butNum, int x, int y) { ButOut result = BUTOUT_CAUGHT; bool makeCallback = FALSE; uint newFlags = but->flags; SgfMap *map = but->iPacket; if (butNum != 1) { if (but->flags & BUT_TWITCHED) return(BUTOUT_CAUGHT); else return(0); } if (!(but->flags & BUT_PRESSED)) return(0); if (but->flags & BUT_TWITCHED) { makeCallback = TRUE; } else { result |= BUTOUT_ERR; } newFlags &= ~(BUT_PRESSED|BUT_LOCKED); if (newFlags != but->flags) but_newFlags(but, newFlags); if (makeCallback && map->callback) { if (!(map->els[map->pressX + map->pressY * map->maxW].flags & SGFMAPFLAGS_MAIN)) { newMain(but, map, map->pressX, map->pressY); } result |= map->callback(but, map->pressX); } return(0); } static void draw(But *but, int dx, int dy, int dw, int dh) { ButWin *win = but->win; ButEnv *env = win->env; SgfMap *map = but->iPacket; SgfMapElem *el; int gridW, gridSize, gridSep, bw; int startY, endY, startX, endX; int x, y, locX0, stoneX, stoneY; GoStone stone = goStone_empty; bool mark = TRUE, grey; assert(MAGIC(env)); gridSep = butEnv_fontH(env, 0); gridSize = butEnv_fontH(env, 0) * 2; gridW = gridSep + gridSize; bw = butEnv_stdBw(env); startX = (dx - but->x - gridSep) / gridW; if (startX < 0) startX = 0; if (startX >= map->mapW) return; startY = (dy - but->y - gridSep) / gridW; if (startY < 0) startY = 0; if (startY >= map->mapH) return; endX = (dx + dw + gridSize - but->x) / gridW; if (endX < 1) return; if (endX > map->mapW) endX = map->mapW; endY = (dy + dh + gridSize - but->y) / gridW; if (endY < 1) return; if (endY > map->mapH) endY = map->mapH; if ((map->activeX >= startX) && (map->activeX < endX) && (map->activeY >= startY) && (map->activeY < endY)) { stoneX = map->activeX * gridW + gridSep + but->x; stoneY = map->activeY * gridW + gridSep + but->y; butEnv_setXFg(env, BUT_CHOICE); XFillRectangle(env->dpy, win->win, env->gc, stoneX - gridSep/2 + bw - win->xOff, stoneY - gridSep/2 + bw - win->yOff, gridW - bw*2, gridW - bw*2); but_drawBox(win, stoneX - gridSep/2, stoneY - gridSep/2, gridW, gridW, 0, bw, BUT_SRIGHT|BUT_SLEFT, BUT_LIT, BUT_SHAD, None, None); } if ((but->flags & BUT_PRESSED) && (but->flags & BUT_TWITCHED) && (map->pressX >= startX) && (map->pressX < endX) && (map->pressY >= startY) && (map->pressY < endY)) { stoneX = map->pressX * gridW + gridSep + but->x; stoneY = map->pressY * gridW + gridSep + but->y; butEnv_setXFg(env, BUT_PBG); XFillRectangle(env->dpy, win->win, env->gc, stoneX - gridSep/2 + bw - win->xOff, stoneY - gridSep/2 + bw - win->yOff, gridW - bw*2, gridW - bw*2); but_drawBox(win, stoneX - gridSep/2, stoneY - gridSep/2, gridW, gridW, 0, bw, BUT_SRIGHT|BUT_SLEFT, BUT_SHAD, BUT_LIT, None, None); } for (y = startY; y < endY; ++y) { locX0 = y * map->maxW; for (x = startX; x < endX; ++x) { stoneX = x * gridW + gridSep + but->x; stoneY = y * gridW + gridSep + but->y; el = &map->els[locX0 + x]; if (el->flags & SGFMAPFLAGS_CONN) drawConn(but, el->flags, stoneX, stoneY, gridSep); if (el->node == NULL) continue; switch(el->type) { case sgfMap_white: case sgfMap_wPass: mark = TRUE; stone = goStone_white; break; case sgfMap_black: case sgfMap_bPass: mark = TRUE; stone = goStone_black; break; case sgfMap_edit: mark = FALSE; break; case sgfMap_none: mark = TRUE; stone = goStone_empty; break; } grey = !(el->flags & SGFMAPFLAGS_MAIN); if (mark) { if (stone != goStone_empty) { cgbuts_drawp(map->cgbuts, win, stone, grey, stoneX, stoneY, gridSize, x % CGBUTS_NUMWHITE, dx, dy, dw, dh); } if (el->flags & SGFMAPFLAGS_MARKED) cgbuts_markPiece(map->cgbuts, win, stone, goMark_triangle, 0, stoneX, stoneY, gridSize, 1, dx, dy, dw, dh); else if (stone != goStone_empty) cgbuts_markPiece(map->cgbuts, win, stone, goMark_number, el->moveNum, stoneX, stoneY, gridSize, 1, dx, dy, dw, dh); } else { cgbuts_drawp(map->cgbuts, win, goStone_black, grey, stoneX, stoneY, gridSep, 1, dx, dy, dw, dh); cgbuts_drawp(map->cgbuts, win, goStone_white, grey, stoneX + gridSep, stoneY, gridSep, 2, dx, dy, dw, dh); cgbuts_drawp(map->cgbuts, win, goStone_white, grey, stoneX, stoneY + gridSep, gridSep, 3, dx, dy, dw, dh); cgbuts_drawp(map->cgbuts, win, goStone_black, grey, stoneX + gridSep, stoneY + gridSep, gridSep, 4, dx, dy, dw, dh); } } } } static void drawConn(But *but, uint flags, int x, int y, int fontH) { ButWin *win = but->win; ButEnv *env = win->env; int lineStart, lineEnd; int lineW; lineW = (fontH + 3) / 8; if (lineW < 1) lineW = 1; XSetLineAttributes(env->dpy, env->gc, lineW, LineSolid, CapButt, JoinMiter); butEnv_setXFg(but->win->env, BUT_BLACK); lineStart = lineEnd = y + fontH; if (flags & SGFMAPFLAGS_CONNU) lineStart = y; if (flags & SGFMAPFLAGS_CONND) lineEnd += fontH * 2; if (lineStart != lineEnd) XDrawLine(env->dpy, win->win, env->gc, x + fontH - win->xOff, lineStart - win->yOff, x + fontH - win->xOff, lineEnd - win->yOff); lineStart = lineEnd = x + fontH; if (flags & SGFMAPFLAGS_CONNL) lineStart = x; if (flags & SGFMAPFLAGS_CONNR) lineEnd += fontH * 2; if (lineStart != lineEnd) XDrawLine(env->dpy, win->win, env->gc, lineStart - win->xOff, y + fontH - win->yOff, lineEnd - win->xOff, y + fontH - win->yOff); lineStart = lineEnd = fontH; if (flags & SGFMAPFLAGS_CONNUL) lineStart = 0; if (flags & SGFMAPFLAGS_CONNDR) lineEnd += fontH * 2; if (lineStart != lineEnd) XDrawLine(env->dpy, win->win, env->gc, x + lineStart - win->xOff, y + lineStart - win->yOff, x + lineEnd - win->xOff, y + lineEnd - win->yOff); } static ButOut destroy(But *but) { return(0); } static void relocate(But *but, SgfElem *elem, int x, int y, int numDiag, int moveNum, bool mainLine) { SgfMap *map = but->iPacket; SgfMapElem *me; SgfElem *child; int connLoc; assert(MAGIC(map)); if (elem == NULL) return; resizeGraph(map, x, y); me = &map->els[x + y * map->maxW]; if (numDiag) { me->flags |= SGFMAPFLAGS_CONNUL; --numDiag; } else { me->flags |= SGFMAPFLAGS_CONNL; } if (mainLine) me->flags |= SGFMAPFLAGS_MAIN; me->type = sgfMap_none; while (elem->childH && (elem->childH->type != sgfType_node)) { elem->mapX = x; elem->mapY = y; assert(elem->childH == elem->childT); elem = elem->childH; switch(elem->type) { case sgfType_move: if (elem->gVal == goStone_white) me->type = sgfMap_white; else { assert(elem->gVal == goStone_black); me->type = sgfMap_black; } me->moveNum = ++moveNum; break; case sgfType_pass: if (elem->gVal == goStone_white) me->type = sgfMap_wPass; else { assert(elem->gVal == goStone_black); me->type = sgfMap_bPass; } me->moveNum = ++moveNum; break; case sgfType_triangle: case sgfType_comment: case sgfType_square: case sgfType_circle: case sgfType_label: me->flags |= SGFMAPFLAGS_MARKED; break; case sgfType_setBoard: me->type = sgfMap_edit; break; default: break; } } elem->mapX = x; elem->mapY = y; me->node = elem; if (elem->childH) { if (numDiag) { me->flags |= SGFMAPFLAGS_CONNDR; relocate(but, elem->childH, x + 1, y + 1, numDiag, moveNum, mainLine && (elem->childH == elem->activeChild)); } else { me->flags |= SGFMAPFLAGS_CONNR; relocate(but, elem->childH, x + 1, y, 0, moveNum, mainLine && (elem->childH == elem->activeChild)); } for (child = elem->childH->sibling; child; child = child->sibling) { connLoc = y; y = findSubtreeY(map, child, x, y, &numDiag); assert(numDiag > 0); while (connLoc < y) { map->els[x + connLoc * map->maxW].flags |= SGFMAPFLAGS_CONND; map->els[x + ++connLoc * map->maxW].flags |= SGFMAPFLAGS_CONNU; } map->els[x + y * map->maxW].flags |= SGFMAPFLAGS_CONNDR; relocate(but, child, x + 1, y + 1, numDiag, moveNum, mainLine && (child == elem->activeChild)); } } } static void resizeGraph(SgfMap *map, int newX, int newY) { SgfMapElem *newEls; int newMaxW, newMaxH; int x, y, oldX0, newX0; if ((newX >= map->maxW) || (newY >= map->maxH)) { newMaxW = (newX + 1) * 2; if (newMaxW < map->maxW) newMaxW = map->maxW; newMaxH = (newY + 1) * 2; if (newMaxH < map->maxH) newMaxH = map->maxH; newEls = wms_malloc(newMaxW * newMaxH * sizeof(SgfMapElem)); for (y = 0; y < map->maxH; ++y) { oldX0 = y * map->maxW; newX0 = y * newMaxW; for (x = 0; x < map->maxW; ++x) { newEls[newX0 + x] = map->els[oldX0 + x]; } for (x = map->maxW; x < newMaxW; ++x) { newEls[newX0 + x].node = NULL; newEls[newX0 + x].flags = 0; } } for (y = map->maxH; y < newMaxH; ++y) { newX0 = y * newMaxW; for (x = 0; x < newMaxW; ++x) { newEls[newX0 + x].node = NULL; newEls[newX0 + x].flags = 0; } } if (map->els != NULL) wms_free(map->els); map->els = newEls; map->maxW = newMaxW; map->maxH = newMaxH; } if (newX >= map->mapW) map->mapW = newX + 1; if (newY >= map->mapH) map->mapH = newY + 1; } static int findSubtreeY(SgfMap *map, SgfElem *tree, int x0, int y0, int *numDiagOut) { int x, y, numDiag; x = x0; y = y0 + 1; numDiag = 1; while (tree) { ++x; resizeGraph(map, x, y); while (map->els[y * map->maxW + x].node || map->els[y * map->maxW + x].flags) { ++y; ++numDiag; resizeGraph(map, x, y); } if (numDiag > x - x0) { numDiag = x - x0; } do { tree = tree->childH; } while (tree && (tree->type != sgfType_node)); } *numDiagOut = numDiag; return(y - numDiag); } void sgfMap_newActive(But *but, SgfElem *new) { SgfMap *map = but->iPacket; ButWin *win = but->win; int butSpc = butEnv_fontH(win->env, 0); assert(MAGIC(map)); assert(new->mapX >= 0); assert(new->mapY >= 0); assert(new->mapX < map->mapW); assert(new->mapY < map->mapH); if (map->activeX >= 0) { redrawEl(but, map->activeX, map->activeY); } map->activeX = new->mapX; map->activeY = new->mapY; if (map->activeX >= 0) { map->activeCtrX = but->x + butSpc * 3 * map->activeX + butSpc * 2; map->activeCtrY = but->y + butSpc * 3 * map->activeY + butSpc * 2; redrawEl(but, map->activeX, map->activeY); } } static void newFlags(But *but, uint flags) { SgfMap *map = but->iPacket; uint ofl = but->flags; but->flags = flags; if (((flags & BUT_PRESSED) != (ofl & BUT_PRESSED)) || (((flags & BUT_TWITCHED) != (ofl & BUT_TWITCHED)) && (flags & BUT_PRESSED))) { redrawEl(but, map->pressX, map->pressY); } } static void redrawEl(But *but, int x, int y) { int elSpc = butEnv_fontH(but->win->env, 0); butWin_redraw(but->win, but->x + x * elSpc * 3, but->y + y * elSpc * 3, elSpc * 4, elSpc * 4); } static void newMain(But *but, SgfMap *map, int x, int y) { SgfElem *node, *prevNode, *oldMain; int prevX, prevY; SgfMapElem *el; el = &map->els[x + y * map->maxW]; assert(MAGIC(el->node)); /* * First, go _down_ from the current active node, coloring all * links as "main". */ prevX = prevY = -1; for (node = el->node; node; node = node->activeChild) { if ((prevX != node->mapX) || (prevY != node->mapY)) { prevX = node->mapX; prevY = node->mapY; map->els[prevX + prevY * map->maxW].flags |= SGFMAPFLAGS_MAIN; redrawEl(but, prevX, prevY); } } /* * Now, go _up_ from the current active node, coloring all links as * "main". */ prevX = x; prevY = y; prevNode = el->node; for (node = prevNode->parent; ; node = node->parent) { oldMain = node->activeChild; node->activeChild = prevNode; assert(node == prevNode->parent); assert((node->childH != node->childT) || (node->activeChild == node->childH)); prevNode = node; if ((prevX != node->mapX) || (prevY != node->mapY)) { prevX = node->mapX; prevY = node->mapY; if (map->els[prevX + prevY * map->maxW].flags & SGFMAPFLAGS_MAIN) break; else { map->els[prevX + prevY * map->maxW].flags |= SGFMAPFLAGS_MAIN; redrawEl(but, prevX, prevY); } } } assert(oldMain != node->activeChild); /* * Now, make all the stuff that _used_ to be main as "non-main". */ for (; oldMain; oldMain = oldMain->activeChild) { if ((prevX != oldMain->mapX) || (prevY != oldMain->mapY)) { prevX = oldMain->mapX; prevY = oldMain->mapY; map->els[prevX + prevY * map->maxW].flags &= ~SGFMAPFLAGS_MAIN; redrawEl(but, prevX, prevY); } } } bool sgfMap_changeVar(But *but, SgfMapDirection dir) { SgfMap *map = but->iPacket; SgfElem *active, *curChild, *newChild; assert(MAGIC(map)); active = map->els[map->activeX + map->activeY * map->maxW].node; assert(MAGIC(active)); while ((active->childH != NULL) && (active->childH->type != sgfType_node)) { active = active->childH; assert(MAGIC(active)); } if ((active->childH == NULL) || (active->childH == active->childT)) return(FALSE); curChild = active->activeChild; assert(MAGIC(curChild)); if (dir == sgfMap_next) { newChild = curChild->sibling; if (!newChild) newChild = active->childH; } else { assert(dir == sgfMap_prev); if (curChild == active->childH) newChild = active->childT; else { for (newChild = active->childH; newChild->sibling != curChild; newChild = newChild->sibling); } } newMain(but, map, newChild->mapX, newChild->mapY); return(TRUE); } void sgfMap_remap(But *but, Sgf *sgf) { SgfMap *map = but->iPacket; int i, fontH = butEnv_fontH(but->win->env, 0); assert(MAGIC(map)); for (i = 0; i < map->maxW * map->maxH; ++i) { map->els[i].node = NULL; map->els[i].flags = 0; map->els[i].type = sgfMap_none; } map->mapW = map->mapH = 0; relocate(but, sgf->top.activeChild, 0, 0, 0, 0, TRUE); map->els[0].flags &= ~SGFMAPFLAGS_CONNL; but_resize(but, but->x, but->y, map->mapW * 3 * fontH + fontH, map->mapH * 3 * fontH + fontH); but_draw(but); } bool sgfMap_newNode(But *but, SgfElem *new) { SgfMap *map = but->iPacket; int newX, newY; SgfMapElem *el; assert(MAGIC(map)); newX = new->mapX; newY = new->mapY; assert(newX < map->maxW); if (newX + 1 == map->mapW) return(FALSE); if (map->els[newX + newY * map->maxW].flags & (SGFMAPFLAGS_CONND | SGFMAPFLAGS_CONNDR | SGFMAPFLAGS_CONNR)) return(FALSE); if (map->els[newX + 1 + newY * map->maxW].flags) return(FALSE); map->els[newX + newY * map->maxW].flags |= SGFMAPFLAGS_CONNR | SGFMAPFLAGS_MAIN; el = &map->els[newX + 1 + newY * map->maxW]; ++newX; el->flags |= SGFMAPFLAGS_CONNL | SGFMAPFLAGS_MAIN; redrawEl(but, newX, newY); new->mapX = newX; new->mapY = newY; el->node = new; el->type = sgfMap_none; return(TRUE); } void sgfMap_changeNode(But *but, SgfElem *changed) { SgfMap *map = but->iPacket; SgfMapElem *me; int moveAdd = 0; assert(MAGIC(map)); assert(changed != NULL); me = &map->els[changed->mapX + changed->mapY * map->maxW]; me->type = sgfMap_none; while (changed->parent && (changed->type != sgfType_node)) { switch(changed->type) { case sgfType_move: if (changed->gVal == goStone_white) me->type = sgfMap_white; else { assert(changed->gVal == goStone_black); me->type = sgfMap_black; } moveAdd = 1; break; case sgfType_pass: if (changed->gVal == goStone_white) me->type = sgfMap_wPass; else { assert(changed->gVal == goStone_black); me->type = sgfMap_bPass; } moveAdd = 1; break; case sgfType_triangle: case sgfType_comment: case sgfType_square: case sgfType_circle: case sgfType_label: me->flags |= SGFMAPFLAGS_MARKED; break; case sgfType_setBoard: me->type = sgfMap_edit; break; default: break; } changed = changed->parent; assert(changed != NULL); } if (changed->parent) { changed = changed->parent; assert(changed != NULL); me->moveNum = map->els[changed->mapX + changed->mapY * map->maxW].moveNum + moveAdd; } else me->moveNum = moveAdd; assert(changed != NULL); redrawEl(but, changed->mapX, changed->mapY); } /* * Sometimes, in our frenzy of adding and deleting SgfElems, we could kill * the one that the map points to. So every time we change active nodes, * we first reset the map to point to the old active node. */ void sgfMap_setMapPointer(But *but, SgfElem *activeElem) { SgfMap *map = but->iPacket; int x, y; assert(MAGIC(map)); x = activeElem->mapX; y = activeElem->mapY; assert((x >= 0) && (x < map->mapW) && (y >= 0) && (y < map->mapH)); assert(map->els[x + y * map->maxW].node); map->els[x + y * map->maxW].node = activeElem; } goban-1.1.orig/src/abut.c0000644000175000017500000000262010267775023013051 0ustar alal/* * src/abut.c, part of wmslib library * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #ifdef _ABUT_ABUT_H_ Levelization Error. #endif #include /********************************************************************** * Functions **********************************************************************/ Abut *abut_create(ButEnv *env, const char *ok, const char *cancel) { Abut *a; a = wms_malloc(sizeof(Abut)); MAGIC_SET(a); a->env = env; a->ok = ok; a->cancel = cancel; a->butH = 0; a->ulColor = BUT_LIT; a->lrColor = BUT_SHAD; a->bgColor = BUT_BG; a->ulPixmap = None; a->lrPixmap = None; a->bgPixmap = None; a->clp = NULL; return(a); } void abut_destroy(Abut *a) { assert(MAGIC(a)); MAGIC_UNSET(a); wms_free(a); } void abut_setColors(Abut *a, int ul, int lr, int bg) { assert(MAGIC(a)); if (ul >= 0) { a->ulColor = ul; a->ulPixmap = None; } if (lr >= 0) { a->lrColor = lr; a->lrPixmap = None; } if (bg >= 0) { a->bgColor = bg; a->bgPixmap = None; } } void abut_setPixmaps(Abut *a, Pixmap ul, Pixmap lr, Pixmap bg) { if (ul != None) { a->ulColor = -1; a->ulPixmap = ul; } if (lr != None) { a->lrColor = -1; a->lrPixmap = lr; } if (bg != None) { a->bgColor = -1; a->bgPixmap = bg; } } goban-1.1.orig/src/player.h0000644000175000017500000000524410270065364013416 0ustar alal/* * src/client/player.h, part of Complete Goban (player program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_PLAYER_H_ #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _CLIENT_BOARD_H_ #include "board.h" #endif #ifndef _CLIENT_MATCH_H_ #include "match.h" #endif #ifdef _CLIENT_PLAYER_H_ Levelization Error. #endif #define _CLIENT_PLAYER_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef enum { /* * It is important to note that when a player list is sorted by state, they * will be sorted with the lowest valued state on the bottom of the * player list. In addition, there's a character array in the * getListEl() function that depends on the order of this enum type. */ cliPlayer_unknown, cliPlayer_closed, cliPlayer_open, cliPlayer_looking, cliPlayer_noPlayer } CliPlayerState; typedef enum { cliPlayerSort_alphabet, cliPlayerSort_rank, cliPlayerSort_open } CliPlayerSort; typedef struct CliPlayer_struct { CliPlayerState state; CliPlayerSort sort; /* Needed for the qsort. :-( */ Str name, rank, idleTime; But *match; int gameIn, gameOb; } CliPlayer; typedef struct CliPlayerList_struct { CliData *data; int maxPlayers; CliPlayer *players; CliPlayerSort sort; int sortEnd; CliMatch *match; ButWin *win; AbutSwin *swin; But *sortType, *nameSort, *rankSort, *stateSort; But *bg, *sBg, *list, *num, *titleBox, *title, *reload; bool elfBugReported; MAGIC_STRUCT } CliPlayerList; /********************************************************************** * Functions **********************************************************************/ extern CliPlayerList *cliPlayerList_init(CliPlayerList *gl, CliData *data); extern CliPlayerList *cliPlayerList_deinit(CliPlayerList *gl); extern void cliPlayerList_openWin(CliPlayerList *gl); extern void cliPlayerList_whoOutput(CliPlayerList *gl, const char *buf); extern void cliPlayerList_disconnected(CliPlayerList *pl, const char *buf); extern void cliPlayerList_connected(CliPlayerList *pl, const char *buf); extern void cliPlayerList_sort(CliPlayerList *pl); extern void cliPlayerList_playerInGame(CliPlayerList *pl, const char *player, int gameNum); extern int cliPlayerList_lookupPlayer(CliPlayerList *pl, const char *player); extern void cliPlayerList_setState(CliPlayerList *pl, int playerNum, CliPlayerState state); extern const char *cliPlayerList_getRank(CliPlayerList *pl, const char *name); #endif /* _CLIENT_MAIN_H_ */ goban-1.1.orig/src/list.h0000644000175000017500000000227110270067774013101 0ustar alal/* * wmslib/src/but/list.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for list.c */ #ifndef _BUT_LIST_H_ #define _BUT_LIST_H_ 1 #ifndef _BUT_TEXT_H_ #include #endif /********************************************************************** * Functions **********************************************************************/ extern But *butList_create(ButOut (*func)(But *but, int line), void *packet, ButWin *win, int layer, int flags); extern void butList_setTabs(But *but, const int *tabs, const ButTextAlign *tabAligns, int numTabs); extern void butList_changeLine(But *but, int line, const char *text); extern void butList_resize(But *list, int x, int y, int w); extern const char *butList_get(But *but, int line); /* * setPress is automatically set to TRUE when a changeLine to a nonempty * string is done, and set to FALSE when changeLine to an empty string * is done. */ extern void butList_setPress(But *but, int line, bool pressable); extern void butList_setLen(But *but, int newLen); extern int butList_len(But *but); #endif /* _BUT_LIST_H_ */ goban-1.1.orig/src/wms.h0000644000175000017500000001571210270072170012722 0ustar alal/* * wmslib/include/wms.h, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. * * This contains a bunch of definitions I always like to have. * This should ALWAYS be AFTER the last system include, BEFORE the first * local include. */ #ifndef _WMS_H_ #define _WMS_H_ 1 #include #define SIZEOF_INT 4 #define X11_DISP 1 #define STDC_HEADERS 1 #define HAVE_STRERROR 1 #define DATE "A Long Time Ago" #define HAVE_DIRENT_H 1 #define TIME_WITH_SYS_TIME 1 #define DEBUG 0 #define HAVE_SOCKETS 1 #ifdef STDC_HEADERS # include # include #endif /* STDC_HEADERS */ #include #include #include #include #if TIME_WITH_SYS_TIME # include # include #else /* !AC_TIME_WITH_SYS_TIME */ # if HAVE_SYS_TIME_H # include # else /* !HAVE_SYS_TIME_H */ # include # endif /* HAVE_SYS_TIME_H */ #endif /* AC_TIME_WITH_SYS_TIME */ #if X11_DISP # include # include # include #endif /* X11_DISP */ #if SUN_SOUND # include # include # include #endif /* SUN_SOUND */ /* Get all these headers out of the way here. */ #include #include #if HAVE_STDLIB_H # include #endif #if HAVE_UNISTD_H # include #endif /* HAVE_UNISTD_H */ #if HAVE_ASSERT_H && DEBUG /* * In my version of gdb, if the program takes an assertion, most of the time * the stack backtrace DOESN'T WORK! Grrr...but pressing ctrl-c always * seems to work, so my asserts print the assertion then wait patiently for * the ctrl-c. */ #define BROKEN_STUPID_ASSERT_WITH_GDB 0 #if BROKEN_STUPID_ASSERT_WITH_GDB || !HAVE_ASSERT_H #define assert(exp) do{if(!(exp)){fprintf(stderr,__FILE__":%d: Failed assertion %s\n",__LINE__,#exp);for(;;);}}while(0) #else /* assert works fine */ #include #endif #else #define assert(ignore) #endif /* HAVE_ASSERT_H && DEBUG */ #if STDC_HEADERS || HAVE_STRING_H #include /* An ANSI string.h and pre-ANSI memory.h might conflict. */ #if !STDC_HEADERS && HAVE_MEMORY_H #include #endif /* not STDC_HEADERS and HAVE_MEMORY_H */ #else /* not STDC_HEADERS and not HAVE_STRING_H */ #include #define memcpy(d,s,n) bcopy((s),(d),(n)) #define strchr index #define strrchr rindex #endif /* Not STDC_HEADERS and not HAVE_STRING_H */ #ifdef bool #undef bool #endif /* bool */ #define bool int #ifndef TRUE #define FALSE 0 #define TRUE 1 #endif /* int32 must be AT LEAT 32 bits. More is OK. */ #ifdef int32 #undef int32 #endif /* int32 */ #if (SIZEOF_INT >= 4) #define int32 int #else /* SIZEOF_INT < 4 */ #define int32 long #endif #ifdef uint32 #undef uint32 #endif /* uint32 */ #define uint32 unsigned int32 #ifdef uchar #undef uchar #endif /* uchar */ #define uchar unsigned char #ifdef ushort #undef ushort #endif /* ushort */ #define ushort unsigned short #ifdef uint #undef uint #endif /* uint */ #define uint unsigned int #ifdef ulong #undef ulong #endif #define ulong unsigned long #define int32_max 0x7fffffff #define int32_min (-int32_max-1) #define int_max ((int)((((1 << (8*(sizeof(int)-2)))-1)<<1)+1)) #define int_min (-int_max-1) #define uint_max ((((1U << (8*(sizeof(uint)-1)))-1)<<1)+1) #define long_max ((long)((((1L << (8*(sizeof(long)-2)))-1)<<1)+1)) #define long_min (-long_max-1) #define ulong_max ((((1UL << (8*(sizeof(ulong)-1)))-1)<<1)+1) /* * This atoi sets err to TRUE if there's an overflow or a non-digit * character around. If err is NULL it is just like regular atoi(). */ extern int wms_atoi(const char *str, bool *err); extern double wms_atof(const char *str, bool *err); /* * Debugging aide 1 - The MAGIC macros. * * In every dynamically allocated structure, add this: * #if DEBUG * int magic; * #endif / * DEBUG * / * Then, every time you alloc a structure, _immediately_ do a MAGIC_SET(foo) * on the newly freed buffer. Last thing before you free a structure, do * a MAGIC_UNSET(foo). Then, before you access a structure, always first * say "assert(MAGIC(foo))". This way, if you touch a structure after you * free it, an assertion will trip! And if debug is set to zero, the * checks all disappear and leave you with an efficient program. */ #if DEBUG #define MAGIC_NUM 31415927 /* Any random number will do. */ #define MAGIC_SET(x) ((x)->magic = MAGIC_NUM) #define MAGIC_UNSET(x) ((x)->magic = 0) #define MAGIC(x) ((x)->magic == MAGIC_NUM) #define MAGICNULL(x) (((x) == NULL) || ((x)->magic == MAGIC_NUM)) #define MAGIC_STRUCT int magic; #else #define MAGIC_SET(x) #define MAGIC_UNSET(x) #define MAGIC(x) 1 #define MAGIC_STRUCT #endif /* magic */ /* * Debugging aide 2 - The wms_malloc routines * * This makes it much easier to spot memory leaks and objects freed multiple * times. Basically, every time you call wms_alloc_stat(), you will see * how much memory is allocated. If this grows indefinitely, you know * that you have a memory leak. Doing wms_alloc_ring_show() will list * EVERY wms_malloc that hasn't yet been freed. Ugh. Probably way * more than you need to see. So when you call wms_alloc_ring_reset(), * the list gets cleared, so call wms_alloc_ring_reset(), do the stuff * that shouldn't leave buffers allocated but does, then call * wms_alloc_ring_show() and voila! The files and lines where your * memory leak is coming from! * As in the MAGIC macros, when DEBUG is set to zero this stuff all * disappears. Good thing, too, because it consumes bunches of memory and * a significant amount of CPU cycles. */ #if DEBUG extern void wms_free(void *deadbuf); extern void wms_alloc_stat(void); #define wms_malloc(x) wms_malloc_debug(x, __FILE__, __LINE__) extern void *wms_malloc_debug(uint bufsize, const char *file, int line); void wms_alloc_ring_reset(void); void wms_alloc_ring_show(void); #else #define wms_free free extern void *wms_malloc(uint bufsize); #endif extern const char *wms_progname; /* * A StdInt32 is an int that is exactly 4 bytes long and in little endian * format. */ #if SIZEOF_INT == 4 typedef int StdInt32; #elif SIZEOF_SHORT == 4 typedef short StdInt32; #elif SIZEOF_LONG == 4 typedef long StdInt32; #else #error You must have a 4 byte data type to compile this program! #endif #if !WORDS_BIGENDIAN #define stdInt32_int(i) (i) #define int_stdInt32(i) (i) #else /* Big endian machine. */ extern int stdInt32_int(StdInt32 i); extern StdInt32 int_stdInt32(int i); #endif #if !HAVE_STRERROR extern const char *strerror(int error); #endif #if !HAVE_STRCASECMP extern int strcasecmp(const char *s1, const char *s2); #endif #if !HAVE_MEMMOVE extern void *memmove(void *dest, const void *src, size_t n); #endif #if !HAVE_GETDTABLESIZE extern int getdtablesize(void); #endif #endif /* _WMS_H_ */ goban-1.1.orig/src/gameSetup.h0000644000175000017500000000372706062117540014056 0ustar alal/* * src/lsetup.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GAMESETUP_H_ #define _GAMESETUP_H_ 1 #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOTIME_H_ #include "goTime.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef struct GameSetup_struct { Cgoban *cg; void (*callback)(void *packet, struct GameSetup_struct *gs); void *packet; ButWin *win; But *bg; But *title; But *namesBox; But *wStr, *wIn; But *bStr, *bIn; But *rulesBox; But *rulesMenu; But *sizeStr, *sizeIn; But *hcapStr, *hcapIn; But *komiStr, *komiIn; GoRules rules; int size, hcap; float komi; bool sizeSet, hcapSet, komiSet; But *timeBox; But *timeMenu; But *mainStr, *mainIn; But *byStr, *byIn; But *auxStr, *auxIn; GoTimeType timeType; int numTimeArgs, mainTime, byTime, aux; But *help, *ok, *cancel; MAGIC_STRUCT } GameSetup; /********************************************************************** * Functions **********************************************************************/ extern GameSetup *gameSetup_create(Cgoban *cg, void (*callback)(void *packet, GameSetup *gs), void *packet); extern void gameSetup_destroy(GameSetup *ls); #define gameSetup_rules(gs) ((gs)->rules) #define gameSetup_size(gs) ((gs)->size) #define gameSetup_handicap(gs) ((gs)->hcap) #define gameSetup_komi(gs) ((gs)->komi) #define gameSetup_wName(gs) (butTextin_get((gs)->wIn)) #define gameSetup_bName(gs) (butTextin_get((gs)->bIn)) #define gameSetup_timeType(gs) ((gs)->timeType) #define gameSetup_mainTime(gs) ((gs)->mainTime) #define gameSetup_byTime(gs) ((gs)->byTime) #define gameSetup_timeAux(gs) ((gs)->aux) #endif /* _GAMESETUP_H_ */ goban-1.1.orig/src/lsetup.h0000644000175000017500000000370106333143214013426 0ustar alal/* * src/setup.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SETUP_H_ #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifdef _SETUP_H_ Levelization Error #endif #define _SETUP_H_ 1 /********************************************************************** * Constants **********************************************************************/ /* * If you change CONTROL_MAXSERVERS, you must also change the number of * entries in a lot of the "client." CLP entries found in * "src/cgoban.c". */ #define SETUP_MAXSERVERS 10 /********************************************************************** * Data types **********************************************************************/ typedef struct Setup_struct { Cgoban *cg; void (*destroyCallback)(struct Setup_struct *setup, void *packet); void (*newServerCallback)(struct Setup_struct *setup, void *packet); void *packet; ButWin *win; But *bg, *title; AbutSwin *swin; int srvNum; But *srvMenu; But *srvBox, *srvTitle, *srvName, *srvNameLabel; But *srvProto, *srvProtoLabel, *srvDirect, *srvDirectLabel; But *igsLabel, *nngsLabel; But *srvComp, *srvCompIn, *srvPort, *srvPortIn; But *srvCmd, *srvCmdLabel; But *miscBox, *miscTitle; But *coordLabel, *coord; But *hiLabel, *hi; But *numKibsLabel, *numKibs; But *noTypoLabel, *noTypo; But *help, *ok; MAGIC_STRUCT } Setup; /********************************************************************** * Functions **********************************************************************/ extern Setup *setup_create(Cgoban *cg, void (*destroyCallback)(Setup *setup, void *packet), void (*newServerCallback)(Setup *setup, void *packet), void *packet); extern void setup_destroy(Setup *setup, bool propagate); #endif /* _SETUP_H_ */ goban-1.1.orig/src/cgbuts.h0000644000175000017500000001202210270001312013360 0ustar alal/* * src/cgbuts.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CGBUTS_H_ #define _CGBUTS_H_ 1 #ifndef _GOBOARD_H_ #include "goBoard.h" #endif #ifndef _BUT_BUT_H_ #include #endif /********************************************************************** * Constants **********************************************************************/ #define CGBUTS_COLORBG1 (BUT_DCOLORS+0) #define CGBUTS_COLORBG2 (BUT_DCOLORS+1) #define CGBUTS_COLORBGLIT1 (BUT_DCOLORS+2) #define CGBUTS_COLORBGLIT2 (BUT_DCOLORS+3) #define CGBUTS_COLORBGSHAD1 (BUT_DCOLORS+4) #define CGBUTS_COLORBGSHAD2 (BUT_DCOLORS+5) #define CGBUTS_COLORREDLED (BUT_DCOLORS+6) #define CGBUTS_GREY(n) (BUT_DCOLORS+7+(n)) #define CGBUTS_COLORBOARD(n) (BUT_DCOLORS+7+256+(n)) #define CGBUTS_NUMCOLORS (COLOR_BOARD(256)) #define CGBUTS_REWCHAR "\1\1" #define CGBUTS_BACKCHAR "\1\2" #define CGBUTS_FWDCHAR "\1\3" #define CGBUTS_FFCHAR "\1\4" #define CGBUTS_WSTONECHAR "\1\5" #define CGBUTS_BSTONECHAR "\1\6" #define CGBUTS_NUMWHITE 20 #define CGBUTS_YINYANG(x) (CGBUTS_NUMWHITE+(x)) #define CGBUTS_WORLDWEST(x) (CGBUTS_YINYANG(CGBUTS_NUMWHITE)+(x)) #define CGBUTS_WORLDEAST(x) (CGBUTS_WORLDWEST(CGBUTS_NUMWHITE)+(x)) #define CGBUTS_HOLDTIME 500 /* ms */ /********************************************************************** * Data types **********************************************************************/ typedef struct CgbutsPics_struct { Pixmap stonePixmaps; Pixmap maskBitmaps; } CgbutsPic; typedef struct Cgbuts_struct { ButEnv *env; int dpyDepth; Window dpyRootWindow; int numPics; CgbutsPic *pics; Rnd *rnd; int color; /* TrueColor, PseudoColor, or GrayScale. */ bool hiContrast; bool interactive; bool holdEnabled; Time holdStart; MAGIC_STRUCT } Cgbuts; typedef enum { goMark_none, goMark_lastMove, goMark_ko, goMark_triangle, goMark_square, goMark_circle, goMark_letter, goMark_number, goMark_smWhite, goMark_smBlack } GoMarkType; #define goMark_max (goMark_ko + 1) typedef enum { gridLines_ul, gridLines_top, gridLines_ur, gridLines_left, gridLines_center, gridLines_right, gridLines_ll, gridLines_bottom, gridLines_lr, gridLines_none } GridLines; typedef struct Grid_struct { Cgbuts *b; ButOut (*callback)(But *but); GridLines lineGroup; bool starPoint; int pos; GoStone ptype; /* The piece at this point on the board. */ GoStone pressColor; /* The color to add when this button is pressed. */ int stoneVersion; bool grey, holdRequired; GoMarkType markType; int markAux; MAGIC_STRUCT } Grid; /********************************************************************** * Global Variables **********************************************************************/ extern const char *cgbuts_stoneChar[2]; /********************************************************************** * Functions **********************************************************************/ extern void cgbuts_init(Cgbuts *cgbuts, ButEnv *env, Rnd *rnd, int color, bool hold, bool hiContrast, bool interactive); extern But *grid_create(Cgbuts *b, ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, int pos); extern void grid_setStone(But *but, GoStone piece, bool grey); extern void grid_setMark(But *but, GoMarkType markType, int markAux); extern void grid_setPress(But *but, GoStone pressColor); #define grid_setHold(b, h) (((Grid *)((b)->iPacket))->holdRequired = (h)) #define grid_pressColor(b) (((Grid *)((b)->iPacket))->pressColor) #define grid_setLineGroup(b, g) (((Grid *)((b)->iPacket))->lineGroup = (g)) #define grid_setStarPoint(b, s) (((Grid *)((b)->iPacket))->starPoint = (s)) #define grid_pos(b) (((Grid *)((b)->iPacket))->pos) #define grid_stone(b) (((Grid *)((b)->iPacket))->ptype) #define grid_grey(b) (((Grid *)((b)->iPacket))->grey) #define grid_markType(b) (((Grid *)((b)->iPacket))->markType) #define grid_markAux(b) (((Grid *)((b)->iPacket))->markAux) #define grid_setVersion(b, v) (((Grid *)((b)->iPacket))->stoneVersion = v) #define goMarkType_stone2sm(s) \ ((GoMarkType)((s - goStone_white) + goMark_smWhite)) extern But *gobanPic_create(Cgbuts *b, ButWin *win, int layer, int flags); extern But *stoneGroup_create(Cgbuts *b, ButWin *win, int layer, int flags); extern But *computerPic_create(Cgbuts *b, ButWin *win, int layer, int flags); extern But *toolPic_create(Cgbuts *b, ButWin *win, int layer, int flags); extern void cgbuts_redraw(Cgbuts *b); /* Functions only for "friend" routines. */ extern void cgbuts_drawp(Cgbuts *b, ButWin *win, GoStone piece, bool grey, int x, int y, int size, int stoneVersion, int dx, int dy, int dw, int dh); extern void cgbuts_markPiece(Cgbuts *b, ButWin *win, GoStone piece, GoMarkType markType, int markAux, int x, int y, int w, int stoneVersion, int dx,int dy, int dw,int dh); #endif /* _CGBUTS_H_ */ goban-1.1.orig/src/abut_help.c0000644000175000017500000001510710267775637014100 0ustar alal/* * wmslib/src/abut/help.c, part of wmslib library * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include #ifdef _ABUT_HELP_H_ Levelization Error. #endif #include "help.h" /********************************************************************** * Forward declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut subWinResize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut ok(But *but); static ButOut newMenuOpt(But *but, int value); /********************************************************************** * Functions **********************************************************************/ AbutHelp *abutHelp_create(Abut *a, const char *title, const char *menuTitle, const AbutHelpPage *pages, int numPages, int x, int y, int w, int h, int minW, int minH) { AbutHelp *help; help = wms_malloc(sizeof(AbutHelp)); MAGIC_SET(help); help->abut = a; help->pages = pages; help->maxMenuOpts = 0; help->menuOpts = NULL; help->curPage = 0; help->numPages = 0; help->win = butWin_create(help, a->env, title, w, h, unmap, map, resize, destroy); if (x != BUT_NOCHANGE) { butWin_setX(help->win, x); butWin_setY(help->win, y); } if (minW != BUT_NOCHANGE) butWin_setMinW(help->win, minW); if (minH != BUT_NOCHANGE) butWin_setMinH(help->win, minH); butWin_setMaxW(help->win, 0); butWin_setMaxH(help->win, 0); butWin_activate(help->win); help->bg = butBoxFilled_create(help->win, 0, BUT_DRAWABLE); if (a->ulPixmap != None) butBoxFilled_setPixmaps(help->bg, a->ulPixmap, a->lrPixmap, a->bgPixmap); help->menu = NULL; help->swin = abutSwin_create(help, help->win, 1, ABUTSWIN_LSLIDE, subWinResize); help->swinW = 0; help->swinH = 0; help->subBg = butPlain_create(help->swin->win, 0, BUT_DRAWABLE, BUT_BG); help->ok = butCt_create(ok, NULL, help->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, a->ok); help->numTextButs = 0; help->maxTextButs = 0; help->textButs = NULL; help->destroyCallback = NULL; help->packet = NULL; abutHelp_newPages(help, menuTitle, pages, numPages); return(help); } void abutHelp_destroy(AbutHelp *help) { assert(MAGIC(help)); butWin_destroy(help->win); } void abutHelp_setDestroyCallback(AbutHelp *help, ButOut (*callback)(AbutHelp *help, void *packet), void *packet) { assert(MAGIC(help)); help->destroyCallback = callback; help->packet = packet; } void abutHelp_newPages(AbutHelp *help, const char *menuTitle, const AbutHelpPage *pages, int numPages) { int i, bw; assert(MAGIC(help)); if (help->menu != NULL) { but_destroy(help->menu); help->menu = NULL; } help->pages = pages; if (help->maxMenuOpts < numPages + 1) { if (help->menuOpts != NULL) wms_free(help->menuOpts); help->maxMenuOpts = numPages + 1; help->menuOpts = wms_malloc(help->maxMenuOpts * sizeof(const char *)); } for (i = 0; i < numPages; ++i) { if (pages[i].pageName == NULL) help->menuOpts[i] = BUTMENU_OLBREAK; else help->menuOpts[i] = pages[i].pageName; } help->menuOpts[i] = BUTMENU_OLEND; help->menu = butMenu_downCreate(newMenuOpt, help, help->win, 1, 2, BUT_DRAWABLE|BUT_PRESSABLE, menuTitle, help->menuOpts, 0); bw = butEnv_stdBw(butWin_env(help->win)); but_resize(help->menu, bw*2, bw*2, butWin_w(help->win) - bw*4, help->abut->butH * 2); abutHelp_newPage(help, 0); } void abutHelp_newPage(AbutHelp *help, int pageNum) { int i; int numTbs; assert(MAGIC(help)); abutSwin_vMove(help->swin, 0); help->curPage = pageNum; for (i = 0; i < help->numTextButs; ++i) but_destroy(help->textButs[i]); for (numTbs = 0; help->pages[pageNum].text[numTbs].text; ++numTbs); if (numTbs > help->maxTextButs) { if (help->textButs) wms_free(help->textButs); help->textButs = wms_malloc(numTbs * sizeof(But *)); help->maxTextButs = numTbs; } help->numTextButs = numTbs; for (i = 0; i < numTbs; ++i) { help->textButs[i] = butTblock_create(help->swin->win, 1, BUT_DRAWABLE, help->pages[pageNum].text[i].text, help->pages[pageNum].text[i].align); butTblock_setFont(help->textButs[i], help->pages[pageNum].text[i].fontNum); } help->swinW = 0; subWinResize(help->swin->win); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { AbutHelp *help = butWin_packet(win); int w, h; int bw = butEnv_stdBw(butWin_env(win)); int physFontH = butEnv_fontH(butWin_env(win), 0); assert(MAGIC(help)); w = butWin_w(win); h = butWin_h(win); but_resize(help->bg, 0, 0, w, h); but_resize(help->menu, bw*2, bw*2, w - bw*4, help->abut->butH * 2); abutSwin_resize(help->swin, bw*2, bw*3 + help->abut->butH * 2, w - bw*4, h - help->abut->butH * 3 - bw*6, (physFontH * 3) / 2, physFontH); butCan_resizeWin(help->swin->win, 0, butWin_w(help->swin->win), TRUE); but_resize(help->ok, bw*2, h - help->abut->butH - bw*2, w - bw*4, help->abut->butH); return(0); } static ButOut destroy(ButWin *win) { AbutHelp *help = butWin_packet(win); ButOut result = 0; assert(MAGIC(help)); if (help->destroyCallback) result = help->destroyCallback(help, help->packet); abutSwin_destroy(help->swin); MAGIC_UNSET(help); wms_free(help); return(result); } static ButOut subWinResize(ButWin *win) { AbutSwin *swin; AbutHelp *help; int i, bw, w, h, y; swin = butWin_packet(win); assert(MAGIC(swin)); help = swin->packet; assert(MAGIC(help)); w = butWin_w(win); h = butWin_h(win); but_resize(help->subBg, 0, 0, w, h); help->swinW = w; bw = butEnv_stdBw(butWin_env(win)); y = bw; for (i = 0; i < help->numTextButs; ++i) y += butTblock_resize(help->textButs[i], bw, y, w - bw*2); if ((help->swinH != y + bw) || (help->swinH != h)) { help->swinH = y + bw; butCan_resizeWin(help->swin->win, help->swinW, help->swinH, TRUE); } return(0); } static ButOut ok(But *but) { butWin_destroy(but_win(but)); return(0); } static ButOut newMenuOpt(But *but, int value) { AbutHelp *help = but_packet(but); assert(MAGIC(help)); if (value != help->curPage) { abutHelp_newPage(help, value); } return(0); } goban-1.1.orig/src/goPic.h0000644000175000017500000000321406415557466013175 0ustar alal/* * src/gopic.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOPIC_H_ #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _CGOBAN_H_ #include "cgoban.h" #endif #ifdef _GOPIC_H_ Levelization Error #endif #define _GOPIC_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef enum GoPicMoves_enum { goPicMove_legal = 0x01, goPicMove_empty = 0x02, goPicMove_stone = 0x04, goPicMove_forceWhite = 0x08, goPicMove_forceBlack = 0x10, goPicMove_noPass = 0x20, goPicMove_noWhite = 0x40, goPicMove_noBlack = 0x80 } GoPicMoves; typedef struct GoPic_struct { Cgoban *cg; GoGame *game; ButOut (*press)(void *packet, int loc); void *packet; int size; /* You must call goPic_update after changing this value. */ GoPicMoves allowedMoves; But *boardBg; But **boardButs; But **letters, **numbers; MAGIC_STRUCT } GoPic; /********************************************************************** * Functions **********************************************************************/ extern GoPic *goPic_create(Cgoban *cg, void *packet, GoGame *game, ButWin *win, int layer, ButOut pressed(void *packet, int loc), int size); extern void goPic_destroy(GoPic *p); extern void goPic_resize(GoPic *p, int x, int y, int w, int h); extern void goPic_setButHold(GoPic *p, bool hold); /* * Returns the color whose move it is. */ extern GoStone goPic_update(GoPic *p); #endif /* _GOPIC_H_ */ goban-1.1.orig/src/sgf.h0000644000175000017500000001412410270000124012655 0ustar alal/* * src/sgf.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SGF_H_ /* We need goboard.h for the GoStone type. */ #ifndef _WMS_STR_H_ #include #endif #ifndef _GOBOARD_H_ #include "goBoard.h" #endif #ifdef _SGF_H_ LEVELIZATION ERROR #endif #define _SGF_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef enum { sgfInsert_main, sgfInsert_variant, sgfInsert_inline } SgfInsert; typedef enum { sgfType_node, sgfType_unknown, sgfType_style, sgfType_size, sgfType_rules, sgfType_handicap, sgfType_komi, sgfType_time, sgfType_copyright, sgfType_playerName, sgfType_date, sgfType_place, sgfType_title, sgfType_playerRank, sgfType_event, sgfType_source, sgfType_gameComment, sgfType_whoseMove, sgfType_move, sgfType_pass, sgfType_timeLeft, sgfType_stonesLeft, sgfType_setBoard, sgfType_territory, sgfType_triangle, sgfType_square, sgfType_circle, sgfType_label, sgfType_comment, sgfType_result } SgfType; typedef struct SgfElem_struct { SgfType type; GoStone gVal; int iVal; Str *sVal; char lVal[5]; struct SgfElem_struct *childH, *childT, *activeChild; struct SgfElem_struct *sibling, *parent; int numChildren; int mapX, mapY; /* Accessed in "sgfMap.h" */ MAGIC_STRUCT } SgfElem; typedef struct Sgf_struct { SgfElem top; SgfElem *active; SgfInsert mode; bool longLoc; int moveNum; MAGIC_STRUCT } Sgf; /********************************************************************** * Functions **********************************************************************/ extern Sgf *sgf_create(void); extern void sgf_destroy(Sgf *mc); extern void sgf_addCElem(Sgf *mc, SgfType type, GoStone gVal); extern void sgf_addCIElem(Sgf *mc, SgfType type, GoStone c, int i); extern void sgf_addCSElem(Sgf *mc, SgfType type, GoStone gVal, const char *s); extern void sgf_addCLElem(Sgf *mc, SgfType type, GoStone gVal, const char *l); extern void sgf_addCLSElem(Sgf *mc, SgfType type, GoStone gVal, const char *l, const char *s); #define sgf_addElem(mc, t) sgf_addCElem(mc, t, goStone_empty) #define sgf_addIElem(mc, t, i) sgf_addCIElem(mc, t, goStone_empty, i) #define sgf_addSElem(mc, t, s) sgf_addCSElem(mc, t, goStone_empty, s) #define sgf_addLElem(mc, t, l) sgf_addCLElem(mc, t, goStone_empty, l) #define sgf_addLSElem(mc, t, l, s) sgf_addCLSElem(mc, t, goStone_empty, l, s) #define sgf_addNode(mc) sgf_addElem(mc, sgfType_node) #define sgf_style(mc, s) sgf_addSElem(mc, sgfType_style, s) #define sgf_setSize(mc, size) sgf_addIElem(mc, sgfType_size, size) #define sgf_setRules(mc, rules) sgf_addIElem(mc, sgfType_rules, (int)rules) extern void sgf_setHandicap(Sgf *sgf, int handicap); #define sgf_setKomi(mc, komi) \ sgf_addIElem(mc, sgfType_komi, (int)(komi * 2.0)) #define sgf_setTimeFormat(mc, time) sgf_addSElem(mc, sgfType_time, time) #define sgf_move(mc, color, loc) sgf_addCLElem(mc, sgfType_move, color, loc) #define sgf_pass(mc, color) sgf_addCElem(mc, sgfType_pass, color) #define sgf_timeLeft(mc, c, t) sgf_addCIElem(mc, sgfType_timeLeft, c, t) #define sgf_stonesLeft(mc, c, s) sgf_addCIElem(mc, sgfType_stonesLeft, c, s) #define sgf_addStone(mc, color, loc) \ sgf_addCLElem(mc, sgfType_setBoard, color, loc) #define sgf_addTerritory(mc, color, loc) \ sgf_addCLElem(mc, sgfType_territory, color, loc) #define sgf_addTriangle(mc, loc) sgf_addLElem(mc, sgfType_triangle, loc) #define sgf_addCircle(mc, loc) sgf_addLElem(mc, sgfType_circle, loc) #define sgf_addSquare(mc, loc) sgf_addLElem(mc, sgfType_square, loc) #define sgf_label(mc, loc, label) \ sgf_addLSElem(mc, sgfType_label, loc, label) #define sgf_rmStone(mc, loc) \ sgf_addCLElem(mc, sgfType_setBoard, goStone_empty, loc) #define sgf_copyright(mc, s) sgf_addSElem(mc, sgfType_copyright, s) #define sgf_setPlayerName(mc, color, name) \ sgf_addCSElem(mc, sgfType_playerName, color, name) #define sgf_setTitle(mc, title) sgf_addSElem(mc, sgfType_title, title) #define sgf_playerRank(mc, p, r) sgf_addCSElem(mc, sgfType_playerRank, p, r) #define sgf_event(mc, e) sgf_addSElem(mc, sgfType_event, e) #define sgf_source(mc, e) sgf_addSElem(mc, sgfType_source, e) #define sgf_gameComment(mc, e) sgf_addSElem(mc, sgfType_gameComment, e) #define sgf_setWhoseMove(mc, c) sgf_addCElem(mc, sgfType_whoseMove, c) #define sgf_comment(mc, comment) sgf_addSElem(mc, sgfType_comment, comment) #define sgf_result(mc, r) sgf_addSElem(mc, sgfType_result, r) #define sgf_unknown(mc, u) sgf_addSElem(mc, sgfType_unknown, u) #define sgf_place(mc, p) sgf_addSElem(mc, sgfType_place, p) extern void sgfElem_destroyActiveChild(SgfElem *me); extern void sgf_setDate(Sgf *mc); extern void sgf_setActiveNodeNumber(Sgf *mc, int sgfNum); extern SgfElem *sgf_findType(Sgf *mc, SgfType t); extern SgfElem *sgf_elemFindType(Sgf *mc, SgfElem *me, SgfType t); extern SgfElem *sgfElem_findType(SgfElem *me, SgfType t); extern SgfElem *sgfElem_findTypeInNode(SgfElem *me, SgfType t); extern SgfElem *sgf_findFirstType(Sgf *mc, SgfType t); extern SgfElem *sgf_elemFindFirstType(Sgf *mc, SgfElem *me, SgfType t); extern SgfElem *sgfElem_findFirstType(SgfElem *me, SgfType t); extern void sgf_catComment(Sgf *sgf, const char *comments); /* * sgfElem_snip leaves the children where the snipped node used to be. */ extern void sgfElem_snip(SgfElem *se, Sgf *sgf); /* * findMove returns how many nodes you had to step over to find the move. * dir = 1 means look ahead, dir = -1 means look back. * The return value is always positive, or -1 if it wasn't found. */ extern int sgfElem_findMove(SgfElem *se, const char *move, int dir); extern void sgfElem_newString(SgfElem *me, const char *str); #define sgf_setActiveToEnd(sgf) \ while ((sgf)->active->activeChild) \ (sgf)->active = (sgf)->active->activeChild extern void sgf_addHandicapStones(Sgf *sgf, GoBoard *board); extern Sgf *sgf_copy(const Sgf *src); #endif /* _SGF_H_ */ goban-1.1.orig/src/arena.h0000644000175000017500000000160310271267555013212 0ustar alal/* * src/arena.h, part of Complete Goban (game program) * Copyright (C) 1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _ARENA_H_ #ifndef _GMP_ENGINE_H_ #include "engine.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifdef _ARENA_H_ Levelization Error. #endif #define _ARENA_H_ 1 /********************************************************************** * Data Types **********************************************************************/ typedef struct Arena_struct { Cgoban *cg; GmpEngine engines[2]; GoGame *game; MAGIC_STRUCT } Arena; /********************************************************************** * Functions **********************************************************************/ extern void arena(Cgoban *cg, const char *prog1, const char *prog2, int size, float komi, int handicap); #endif goban-1.1.orig/src/tbin.h0000644000175000017500000000234306201233324013043 0ustar alal/* * wmslib/src/but/textin.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for textin.c */ #ifndef _BUT_TBIN_H_ #define _BUT_TBIN_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern But *butTbin_create(ButWin *win, int layer, int flags, const char *text); extern void butTbin_set(But *but, const char *str); extern void butTbin_setMaxLines(But *but, int maxLines); extern const char *butTbin_get(But *but); extern int butTbin_numLines(But *but); extern void butTbin_insert(But *but, const char *appText); extern void butTbin_delete(But *but, int delStart, int delLen); extern int butTbin_len(But *but); /* * The offWinCallback function will be called whenever your cursor leaves * the window. Useful if you're on a canvas and want the cursor to * stay on the canvas. */ extern void butTbin_setOffWinCallback(But *but, void (*func)(But *but, int activeLine, int passiveLine, int mouseY)); extern void butTbin_setReadOnly(But *but, bool ro); #endif /* _BUT_TBIN_H_ */ goban-1.1.orig/src/main.c0000644000175000017500000000661710270573014013042 0ustar alal/* * src/main.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include "cgoban.h" #include "control.h" #include "main.h" #include "editBoard.h" #include "crwin.h" #include "client_setup.h" #include "arena.h" #include "screensaver.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void stealth(int exitVal); #if !DEBUG static void *sigHandler(); #endif /* !DEBUG */ int main(int argc, char *argv[], char *envp[]) { Cgoban *cg; int retVal = 0; Control *ctrl; EditBoard *e; CliSetup *client; cg = cgoban_create(argc, argv, envp); if (cg == NULL) { fprintf(stderr, "cgoban: Couldn't open X display.\n"); return(1); } if (clp_getInt(cg->clp, "arena.games") > 0) { arena(cg, clp_getStr(cg->clp, "arena.prog1"), clp_getStr(cg->clp, "arena.prog2"), clp_getInt(cg->clp, "arena.size"), (float)clp_getDouble(cg->clp, "arena.komi"), clp_getInt(cg->clp, "arena.handicap")); exit(0); } #if !DEBUG /* XXX should test stealth, not screensaver */ if (!clp_getBool(cg->clp, "screensaver")) { signal(SIGTERM, sigHandler); /* Catch these signals gracefully. */ signal(SIGINT, sigHandler); signal(SIGHUP, sigHandler); } #endif /* * We have to always catch SIGPIPE. Otherwise the GMP will freak out * on us. */ signal(SIGPIPE, SIG_IGN); /* Seems like you can't catch a SIGPIPE. */ #ifdef DEBUG #define STEALTH_VALID (!(DEBUG)) #else #define STEALTH_VALID 1 #endif if (clp_getStr(cg->clp, "edit")[0]) { if ((e = editBoard_create(cg, clp_getStr(cg->clp, "edit"))) == NULL) { cg->env->minWindows = 0; retVal = 1; } else { crwin_create(cg, e->goban->win, 4); control_create(cg, TRUE); } } else if (clp_getBool(cg->clp, "nngs")) { if ((client = cliSetup_create(cg, cliServer_nngs)) == NULL) { cg->env->minWindows = 0; retVal = 1; } else { crwin_create(cg, client->login->win, 3); control_create(cg, TRUE); } } else if (clp_getBool(cg->clp, "igs")) { if ((client = cliSetup_create(cg, cliServer_igs)) == NULL) { cg->env->minWindows = 0; retVal = 1; } else { crwin_create(cg, client->login->win, 3); control_create(cg, TRUE); } } else if (clp_getBool(cg->clp, "screensaver")) { screensaver_create(cg); } else { ctrl = control_create(cg, clp_getBool(cg->clp, "iconic")); crwin_create(cg, ctrl->win, 3); } if (clp_getBool(cg->clp, "stealth") && STEALTH_VALID && !cg->screensaver) stealth(0); butEnv_events(cg->env); cgoban_destroy(cg); return(retVal); } static void stealth(int exitVal) { int pid; #ifdef TIOCNOTTY int tty; #endif pid = fork(); if (pid < 0) { perror("cgoban: fork() failed"); return; } else if (pid > 0) /* Parent just exits. */ exit(0); /* Go stealth (ditch our controlling tty). */ #ifdef TIOCNOTTY tty = open("/dev/tty", 0); if (tty < 0) return; ioctl(tty, TIOCNOTTY, 0); close(tty); #endif } #if !DEBUG static void * sigHandler() { fprintf(stderr, "Signal caught.\n"); assert(FALSE); } #endif /* !DEBUG */ goban-1.1.orig/src/sgfPlay.h0000644000175000017500000000176706113760111013526 0ustar alal/* * src/sgfPlay.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SGFPLAY_H_ #ifndef _SGF_H_ #include "sgf.h" #endif #ifndef _GOGAME_H_ #include "goGame.h" #endif #ifndef _GOPIC_H_ #include "goPic.h" #endif #ifdef _SGFPLAY_H_ Levelization Error. #endif #define _SGFPLAY_H_ 1 /********************************************************************** * Functions **********************************************************************/ /* * sgf_play will play until node terminator is hit or numNodes are passed. * If numNodes is -1, then it is played to the end. * In any case, it returns the node number it played to. This is * probably only useful if "numNodes" was -1. * If GoPic is non-NULL, then it will set the marks on the stones * appropriately. */ extern int sgf_play(Sgf *mc, GoGame *game, GoPic *pic, int numNodes, SgfElem *terminator); #endif /* _SGFPLAY_H_ */ goban-1.1.orig/src/gameSetup.c0000644000175000017500000004362710270000623014041 0ustar alal/* * src/lsetup.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "gameSetup.h" #include "msg.h" #include "help.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut newRules(But *but, int newVal); static ButOut newSize(But *but, const char *value); static ButOut newHcap(But *but, const char *value); static ButOut newKomi(But *but, const char *value); static ButOut newName(But *but, const char *value); static ButOut okPressed(But *but); static ButOut cancelPressed(But *but); static ButOut newTimeType(But *but, int newVal); static ButOut newMainTime(But *but, const char *value); static ButOut newBYTime(But *but, const char *value); static ButOut newAuxTime(But *but, const char *value); /********************************************************************** * Functions **********************************************************************/ GameSetup *gameSetup_create(Cgoban *cg, void (*callback)(void *packet, GameSetup *gs), void *packet) { GameSetup *ls; int w, h; char curText[10]; assert(MAGIC(cg)); ls = wms_malloc(sizeof(GameSetup)); MAGIC_SET(ls); ls->callback = callback; ls->packet = packet; ls->cg = cg; h = cg->fontH * 22 + butEnv_stdBw(cg->env) * 20; w = h * 1.618034 + 0.5; ls->win = butWin_create(ls, cg->env, "Game Setup", w,h, NULL, NULL, resize, destroy); butWin_activate(ls->win); ls->bg = butBoxFilled_create(ls->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(ls->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); ls->title = butText_create(ls->win, 1, BUT_DRAWABLE, msg_gSetup, butText_center); butText_setFont(ls->title, 2); ls->namesBox = butBox_create(ls->win, 1, BUT_DRAWABLE); butBox_setPixmaps(ls->namesBox, cg->bgLitPixmap, cg->bgShadPixmap); ls->wStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_wName, butText_left); ls->wIn = butTextin_create(newName, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "local.wName"), 30); ls->bStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_bName, butText_left); ls->bIn = butTextin_create(newName, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "local.bName"), 30); ls->rules = (GoRules)clp_getInt(cg->clp, "game.rules"); ls->size = clp_getInt(cg->clp, "game.size"); ls->hcap = clp_getInt(cg->clp, "game.handicap"); ls->komi = clp_getDouble(cg->clp, "game.komi"); ls->sizeSet = FALSE; ls->hcapSet = FALSE; ls->komiSet = FALSE; ls->rulesBox = butBox_create(ls->win, 1, BUT_DRAWABLE); butBox_setPixmaps(ls->rulesBox, cg->bgLitPixmap, cg->bgShadPixmap); ls->rulesMenu = butMenu_downCreate(newRules, ls, ls->win, 1, 2, BUT_PRESSABLE|BUT_DRAWABLE, msg_ruleSet, msg_ruleNames, ls->rules); butMenu_setFlags(ls->rulesMenu, (int)goRules_tibetan, BUTMENU_DISABLED); ls->sizeStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_boardSize, butText_center); sprintf(curText, "%d", ls->size); ls->sizeIn = butTextin_create(newSize, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, curText, 10); ls->hcapStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_handicap, butText_center); sprintf(curText, "%d", ls->hcap); ls->hcapIn = butTextin_create(newHcap, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, curText, 10); ls->komiStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_komi, butText_center); sprintf(curText, "%g", ls->komi); ls->komiIn = butTextin_create(newKomi, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, curText, 10); ls->timeBox = butBox_create(ls->win, 1, BUT_DRAWABLE); butBox_setPixmaps(ls->timeBox, cg->bgLitPixmap, cg->bgShadPixmap); ls->timeType = 2; ls->numTimeArgs = 3; ls->timeMenu = butMenu_downCreate(newTimeType, ls, ls->win, 1, 2, BUT_PRESSABLE|BUT_DRAWABLE, msg_timeSystem, msg_timeSystems, clp_getInt(cg->clp, "setup.timeType")); ls->mainStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_primaryTime, butText_center); ls->mainIn = butTextin_create(newMainTime, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "setup.mainTime"), 10); ls->byStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_byoYomi, butText_center); ls->byIn = butTextin_create(newBYTime, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "setup.igsBYTime"), 10); ls->auxStr = butText_create(ls->win, 1, BUT_DRAWABLE, msg_byoYomiStones, butText_center); ls->auxIn = butTextin_create(newAuxTime, ls, ls->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "setup.igsBYStones"), 10); ls->timeType = goTime_canadian; ls->mainTime = goTime_parseChars(butTextin_get(ls->mainIn), FALSE, NULL); ls->byTime = goTime_parseChars(butTextin_get(ls->byIn), FALSE, NULL); ls->aux = wms_atoi(butTextin_get(ls->auxIn), NULL); newTimeType(ls->timeMenu, butMenu_get(ls->timeMenu)); ls->help = butCt_create(cgoban_createHelpWindow, &help_gameSetup, ls->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); ls->ok = butCt_create(okPressed, ls, ls->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_ok); ls->cancel = butCt_create(cancelPressed, ls, ls->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_cancel); return(ls); } void gameSetup_destroy(GameSetup *ls) { assert(MAGIC(ls)); if (ls->callback) { ls->callback(ls->packet, NULL); ls->callback = NULL; } if (ls->win) butWin_destroy(ls->win); MAGIC_UNSET(ls); wms_free(ls); } static ButOut resize(ButWin *win) { GameSetup *ls = butWin_packet(win); Cgoban *cg; int w, butW, h, x, y; int bw, fh; ButEnv *env; int wStrSize, bStrSize; assert(MAGIC(ls)); cg = ls->cg; assert(MAGIC(cg)); env = cg->env; bw = butEnv_stdBw(env); fh = cg->fontH; w = butWin_w(win); h = butWin_h(win); butW = w/2-5*bw; but_resize(ls->bg, 0,0, w,h); butText_resize(ls->title, w/2,bw*2, fh*2); but_resize(ls->namesBox, bw,bw*3+fh*2, w-bw*2,bw*4+fh*2); wStrSize = butText_resize(ls->wStr, bw*3, bw*5+fh*2, fh*2); bStrSize = butText_resize(ls->bStr, w/2+bw*2, bw*5+fh*2, fh*2); if (bStrSize > wStrSize) wStrSize = bStrSize; but_resize(ls->wIn, bw*4+wStrSize, bw*5+fh*2, w/2 - (bw*6+wStrSize), fh*2); but_resize(ls->bIn, w/2+bw*3+wStrSize, bw*5+fh*2, w - (w/2+bw*6+wStrSize), fh*2); y = bw*7+fh*4; but_resize(ls->rulesBox, bw,y, w/2-bw,fh*16+bw*10); but_resize(ls->rulesMenu, bw*3,y+bw*2+fh*0, butW,fh*4); but_resize(ls->sizeStr, bw*3,y+bw*3+fh*4, butW,fh*2); but_resize(ls->sizeIn, bw*3,y+bw*4+fh*6, butW,fh*2); but_resize(ls->hcapStr, bw*3,y+bw*5+fh*8, butW,fh*2); but_resize(ls->hcapIn, bw*3,y+bw*6+fh*10, butW,fh*2); but_resize(ls->komiStr, bw*3,y+bw*7+fh*12, butW,fh*2); but_resize(ls->komiIn, bw*3,y+bw*8+fh*14, butW,fh*2); but_resize(ls->timeBox, w/2,y, w-bw-w/2,fh*16+bw*10); x = w/2 + bw*2; butW = w-x-bw*3; but_resize(ls->timeMenu, x,y+bw*2+fh*0, butW,fh*4); but_resize(ls->mainStr, x,y+bw*3+fh*4, butW,fh*2); but_resize(ls->mainIn, x,y+bw*4+fh*6, butW,fh*2); but_resize(ls->byStr, x,y+bw*5+fh*8, butW,fh*2); but_resize(ls->byIn, x,y+bw*6+fh*10, butW,fh*2); but_resize(ls->auxStr, x,y+bw*7+fh*12, butW,fh*2); but_resize(ls->auxIn, x,y+bw*8+fh*14, butW,fh*2); but_resize(ls->help, bw*2,y+bw*11+fh*16, (w-bw*6+1)/3,fh*2); but_resize(ls->cancel, bw*3+(w-bw*6+1)/3,y+bw*11+fh*16, w-2*(bw*3+(w-bw*6+1)/3),fh*2); but_resize(ls->ok, w-(bw*2+(w-bw*6+1)/3),y+bw*11+fh*16, (w-bw*6+1)/3,fh*2); return(0); } static ButOut destroy(ButWin *win) { GameSetup *ls = butWin_packet(win); assert(MAGIC(ls)); ls->win = NULL; /* It's dead already. */ gameSetup_destroy(ls); return(0); } static ButOut newRules(But *but, int newVal) { GameSetup *ls = but_packet(but); assert(MAGIC(ls)); clp_setInt(ls->cg->clp, "game.rules", newVal); if (!ls->sizeSet) { if (newVal != goRules_tibetan) { if ((ls->size != 9) && (ls->size != 13) && (ls->size != 19)) { butTextin_set(ls->sizeIn, "19", FALSE); clp_setInt(ls->cg->clp, "game.size", 19); ls->size = 19; } } else { butTextin_set(ls->sizeIn, "17", FALSE); clp_setInt(ls->cg->clp, "game.size", 17); ls->size = 17; } } if (!ls->komiSet && (ls->hcap == 0) && (((ls->rules == goRules_ing) && (ls->komi == 8.0)) || ((ls->rules != goRules_ing) && (ls->komi == 5.5)))) { if (newVal != goRules_ing) { butTextin_set(ls->komiIn, "5.5", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 5.5); ls->komi = 5.5; } else { butTextin_set(ls->komiIn, "8", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 8.0); ls->komi = 8.0; } } if (!ls->komiSet && (ls->hcap != 0) && (((ls->rules == goRules_ing) && (ls->komi == 0.0)) || ((ls->rules != goRules_ing) && (ls->komi == 0.5)))) { if (newVal != goRules_ing) { butTextin_set(ls->komiIn, "0.5", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 0.5); ls->komi = 0.5; } else { butTextin_set(ls->komiIn, "0", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 0.0); ls->komi = 0.0; } } ls->rules = newVal; return(0); } static ButOut newSize(But *but, const char *value) { GameSetup *ls = but_packet(but); int newSize; char curValue[200]; assert(MAGIC(ls)); newSize = atoi(value); if (!clp_setStr(ls->cg->clp, "game.size", value)) { sprintf(curValue, msg_badSize, value, GOBOARD_MAXSIZE); cgoban_createMsgWindow(ls->cg, "Cgoban Error", curValue); sprintf(curValue, "%d", ls->size); butTextin_set(but, curValue, FALSE); return(BUTOUT_ERR); } ls->sizeSet = TRUE; ls->size = newSize; but_setFlags(ls->hcapIn, BUT_KEYED); return(0); } static ButOut newHcap(But *but, const char *value) { GameSetup *ls = but_packet(but); int newVal = atoi(value); Str curValue; assert(MAGIC(ls)); if (!clp_setStr(ls->cg->clp, "game.handicap", value)) { str_init(&curValue); str_print(&curValue, msg_badHcap, value, 27); cgoban_createMsgWindow(ls->cg, "Cgoban Error", str_chars(&curValue)); str_print(&curValue, "%d", ls->hcap); butTextin_set(but, str_chars(&curValue), FALSE); str_deinit(&curValue); return(BUTOUT_ERR); } ls->hcapSet = TRUE; if ((newVal == 1) || (!ls->komiSet && (ls->hcap == 0) && (newVal != 0) && (((ls->rules == goRules_ing) && (ls->komi == 8.0)) || ((ls->rules != goRules_ing) && (ls->komi == 5.5))))) { ls->komiSet = FALSE; if (ls->rules == goRules_ing) { butTextin_set(ls->komiIn, "0", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 0.0); ls->komi = 0.0; } else { butTextin_set(ls->komiIn, "0.5", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 0.5); ls->komi = 0.5; } } if (!ls->komiSet && (ls->hcap > 0) && (newVal == 0) && ((ls->komi == 0.0) || (ls->komi == 0.5))) { if (ls->rules == goRules_ing) { butTextin_set(ls->komiIn, "8", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 8.0); ls->komi = 8.0; } else { butTextin_set(ls->komiIn, "5.5", FALSE); clp_setDouble(ls->cg->clp, "game.komi", 5.5); ls->komi = 5.5; } } ls->hcap = newVal; but_setFlags(ls->komiIn, BUT_KEYED); return(0); } static ButOut newKomi(But *but, const char *value) { GameSetup *ls = but_packet(but); char curValue[200]; bool komiErr; double newKomi; assert(MAGIC(ls)); newKomi = wms_atof(value, &komiErr); if (!clp_setStr(ls->cg->clp, "game.komi", value)) { sprintf(curValue, msg_badKomi, value); cgoban_createMsgWindow(ls->cg, "Cgoban Error", curValue); sprintf(curValue, "%g", ls->komi); butTextin_set(but, curValue, FALSE); return(BUTOUT_ERR); } ls->komiSet = TRUE; ls->komi = newKomi; but_setFlags(ls->komiIn, BUT_NOKEY); return(0); } static ButOut okPressed(But *but) { GameSetup *ls = but_packet(but); Clp *clp = ls->cg->clp; assert(MAGIC(ls)); if (newSize(ls->sizeIn, butTextin_get(ls->sizeIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (newHcap(ls->hcapIn, butTextin_get(ls->hcapIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (newKomi(ls->komiIn, butTextin_get(ls->komiIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (ls->numTimeArgs >= 1) if (newMainTime(ls->mainIn, butTextin_get(ls->mainIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (ls->numTimeArgs >= 2) if (newBYTime(ls->byIn, butTextin_get(ls->byIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (ls->numTimeArgs >= 3) if (newAuxTime(ls->auxIn, butTextin_get(ls->auxIn)) & BUTOUT_ERR) return(BUTOUT_ERR); clp_setInt(clp, "game.size", ls->size); clp_setInt(clp, "game.handicap", ls->hcap); clp_setDouble(clp, "game.komi", ls->komi); clp_setStr(clp, "local.wName", butTextin_get(ls->wIn)); clp_setStr(clp, "local.bName", butTextin_get(ls->bIn)); if (ls->callback) { ls->callback(ls->packet, ls); ls->callback = NULL; } butWin_destroy(but_win(but)); return(0); } static ButOut cancelPressed(But *but) { GameSetup *gs = but_packet(but); assert(MAGIC(gs)); if (gs->callback) { gs->callback(gs->packet, NULL); gs->callback = NULL; } butWin_destroy(but_win(but)); return(0); } static ButOut newName(But *but, const char *value) { GameSetup *ls = but_packet(but); assert(MAGIC(ls)); if (but == ls->wIn) { clp_setStr(ls->cg->clp, "local.wName", value); but_setFlags(ls->bIn, BUT_KEYED); } else { assert(but == ls->bIn); but_setFlags(but, BUT_NOKEY); clp_setStr(ls->cg->clp, "local.bName", value); } return(0); } static ButOut newTimeType(But *but, int newVal) { GameSetup *ls = but_packet(but); GoTimeType newTime = (GoTimeType)newVal; int nargs = 0; assert(MAGIC(ls)); if (newTime == ls->timeType) return(0); switch(ls->timeType = newTime) { case goTime_none: nargs = ls->numTimeArgs = 0; break; case goTime_absolute: nargs = ls->numTimeArgs = 1; ls->byTime = 0; /* Just to make things clear. */ break; case goTime_canadian: nargs = ls->numTimeArgs = 3; butTextin_set(ls->byIn, clp_getStr(ls->cg->clp, "setup.igsBYTime"), FALSE); butText_set(ls->auxStr, msg_byoYomiStones); butTextin_set(ls->auxIn, clp_getStr(ls->cg->clp, "setup.igsBYStones"), FALSE); break; case goTime_ing: nargs = ls->numTimeArgs = 3; butTextin_set(ls->byIn, clp_getStr(ls->cg->clp, "setup.ingBYTime"), FALSE); butText_set(ls->auxStr, msg_byoYomiCount); butTextin_set(ls->auxIn, clp_getStr(ls->cg->clp, "setup.ingBYPeriods"), FALSE); break; case goTime_japanese: nargs = ls->numTimeArgs = 3; butTextin_set(ls->byIn, clp_getStr(ls->cg->clp, "setup.jBYTime"), FALSE); butText_set(ls->auxStr, msg_byoYomiCount); butTextin_set(ls->auxIn, clp_getStr(ls->cg->clp, "setup.jBYPeriods"), FALSE); } if (nargs >= 1) { butText_setColor(ls->mainStr, BUT_FG, FALSE); but_setFlags(ls->mainIn, BUT_PRESSABLE); if (nargs >= 2) { butText_setColor(ls->byStr, BUT_FG, FALSE); but_setFlags(ls->byIn, BUT_PRESSABLE); if (nargs >= 3) { butText_setColor(ls->auxStr, BUT_FG, FALSE); but_setFlags(ls->auxIn, BUT_PRESSABLE); } } } if (nargs < 3) { butText_setColor(ls->auxStr, BUT_FG, TRUE); but_setFlags(ls->auxIn, BUT_NOPRESS|BUT_NOKEY); if (nargs < 2) { butText_setColor(ls->byStr, BUT_FG, TRUE); but_setFlags(ls->byIn, BUT_NOPRESS|BUT_NOKEY); if (nargs < 1) { butText_setColor(ls->mainStr, BUT_FG, TRUE); but_setFlags(ls->mainIn, BUT_NOPRESS|BUT_NOKEY); } } } clp_setInt(ls->cg->clp, "setup.timeType", newVal); return(0); } static ButOut newMainTime(But *but, const char *value) { GameSetup *ls = but_packet(but); Str errMsg; if (!clp_setStr(ls->cg->clp, "setup.mainTime", value)) { str_init(&errMsg); str_print(&errMsg, msg_badTime, value); cgoban_createMsgWindow(ls->cg, "Cgoban Error", str_chars(&errMsg)); goTime_str(ls->mainTime, &errMsg); butTextin_set(but, str_chars(&errMsg), FALSE); str_deinit(&errMsg); return(BUTOUT_ERR); } ls->mainTime = goTime_parseChars(value, FALSE, NULL); if (but_getFlags(ls->byIn) & BUT_PRESSABLE) but_setFlags(ls->byIn, BUT_KEYED); else but_setFlags(but, BUT_NOKEY); return(0); } static ButOut newBYTime(But *but, const char *value) { GameSetup *ls = but_packet(but); Str errMsg; if (!clp_setStr(ls->cg->clp, "setup.igsBYTime", value)) { str_init(&errMsg); str_print(&errMsg, msg_badTime, value); cgoban_createMsgWindow(ls->cg, "Cgoban Error", str_chars(&errMsg)); goTime_str(ls->byTime, &errMsg); butTextin_set(but, str_chars(&errMsg), FALSE); str_deinit(&errMsg); return(BUTOUT_ERR); } ls->byTime = goTime_parseChars(value, FALSE, NULL); but_setFlags(but, BUT_NOKEY); if (but_getFlags(ls->auxIn) & BUT_PRESSABLE) but_setFlags(ls->auxIn, BUT_KEYED); else but_setFlags(but, BUT_NOKEY); return(0); } static ButOut newAuxTime(But *but, const char *value) { GameSetup *ls = but_packet(but); Str errMsg; if (!clp_setStr(ls->cg->clp, "setup.igsBYStones", value)) { str_init(&errMsg); if (ls->timeType == goTime_ing) str_print(&errMsg, msg_badBYCount, value); else str_print(&errMsg, msg_badBYStones, value); cgoban_createMsgWindow(ls->cg, "Cgoban Error", str_chars(&errMsg)); str_print(&errMsg, "%d", ls->aux); butTextin_set(but, str_chars(&errMsg), FALSE); str_deinit(&errMsg); return(BUTOUT_ERR); } ls->aux = wms_atoi(value, NULL); but_setFlags(but, BUT_NOKEY); return(0); } goban-1.1.orig/src/match.c0000644000175000017500000005767010270070212013207 0ustar alal/* * src/client/match.c, part of Complete Goban (player program) * Copyright (C) 1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include "msg.h" #include #include #include #include #include #include #include "goTime.h" #ifdef _CLIENT_MATCH_H_ Levelization Error. #endif #include "match.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static ButOut newSize(But *but, const char *value); static ButOut newHcap(But *but, const char *value); static ButOut newKomi(But *but, const char *value); static ButOut newMainTime(But *but, const char *value); static ButOut newBYTime(But *but, const char *value); static ButOut okPressed(But *but); static ButOut cancelPressed(But *but); static ButOut newFree(But *but, bool newVal); static ButOut swapPressed(But *but); static CliMatch *playerLookup(CliMatch *chain, const char *player); static ButOut changeMain(But *but); static ButOut changeBy(But *but); static ButOut changeSize(But *but); static ButOut changeKomi(But *but); static ButOut changeHcap(But *but); /********************************************************************** * Functions **********************************************************************/ CliMatch *cliMatch_matchCommand(CliData *data, const char *command, CliMatch **next, int rankDiff) { char oppName[21]; char colorChar; int args, size, mainTime, byTime; CliMatch *match; args = sscanf(command, "Use ", oppName, &colorChar, &size, &mainTime, &byTime); assert(args == 5); assert((colorChar == 'W') || (colorChar == 'B')); match = playerLookup(*next, oppName); if (match == NULL) { /* Start up a new match window. */ match = cliMatch_create(data, oppName, next, rankDiff); if ((colorChar == 'B') != match->meFirst) swapPressed(match->swap); } else { /* Modify an old one. */ XRaiseWindow(butEnv_dpy(butWin_env(match->win)), butWin_xwin(match->win)); if ((colorChar == 'B') != match->meFirst) swapPressed(match->swap); } str_print(&data->cmdBuild, "%d", match->size = size); butTextin_set(match->sizeIn, str_chars(&data->cmdBuild), TRUE); goTime_str(match->mainTime = mainTime * 60, &data->cmdBuild); butTextin_set(match->mainIn, str_chars(&data->cmdBuild), TRUE); goTime_str(match->byTime = byTime * 60, &data->cmdBuild); butTextin_set(match->byIn, str_chars(&data->cmdBuild), TRUE); match->state = cliMatch_recvd; butText_set(match->title, msg_cliGameSetupRecvd); return(match); } CliMatch *cliMatch_create(CliData *data, const char *oppName, CliMatch **next, int rankDiff) { CliMatch *m; Cgoban *cg; int i, h, w; char curText[20]; bool err; uint flags; assert(MAGIC(data)); m = playerLookup(*next, oppName); if (m != NULL) { XRaiseWindow(butEnv_dpy(butWin_env(m->win)), butWin_xwin(m->win)); return(m); } cg = data->cg; m = wms_malloc(sizeof(CliMatch)); MAGIC_SET(m); m->next = *next; m->prev = next; *next = m; m->data = data; m->state = cliMatch_nil; if (rankDiff == 0) { m->meFirst = clp_getBool(cg->clp, "client.match.meFirst"); m->komi = 5.5; m->hcap = 0; } else if (rankDiff > 0) { m->meFirst = FALSE; m->komi = 0.5; m->hcap = 0; } else /* rankDiff < 0 */ { m->meFirst = TRUE; m->komi = 0.5; m->hcap = 0; } if (m->meFirst) { str_initChars(&m->wName, oppName); str_initChars(&m->bName, str_chars(&data->userName)); } else { str_initChars(&m->bName, oppName); str_initChars(&m->wName, str_chars(&data->userName)); } h = cg->fontH * 18 + butEnv_stdBw(cg->env) * 19; w = (h * 1.4142136) + 0.5; m->win = butWin_create(m, cg->env, "Server Game Setup", w, h, NULL, NULL, resize, destroy); if (m->next == NULL) { /* * We only want to set the window to the "standard" place if it is the * first one. Otherwise all the windows would stack up on each other, * which is kind of annoying. */ i = clp_iGetInt(cg->clp, "client.match.x", &err); if (!err) butWin_setX(m->win, i); i = clp_iGetInt(cg->clp, "client.match.y", &err); if (!err) butWin_setY(m->win, i); } butWin_activate(m->win); m->bg = butBoxFilled_create(m->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(m->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); m->title = butText_create(m->win, 1, BUT_DRAWABLE, msg_cliGameSetup, butText_center); butText_setFont(m->title, 2); m->namesBox = butBox_create(m->win, 1, BUT_DRAWABLE); butBox_setPixmaps(m->namesBox, cg->bgLitPixmap, cg->bgShadPixmap); m->wBox = butBoxFilled_create(m->win, 1, BUT_DRAWABLE); butBoxFilled_setColors(m->wBox, BUT_LIT, BUT_SHAD, BUT_BG); str_print(&data->cmdBuild, CGBUTS_WSTONECHAR " %s", str_chars(&m->wName)); m->wTitle = butText_create(m->win, 2, BUT_DRAWABLE, str_chars(&data->cmdBuild), butText_left); m->bBox = butBoxFilled_create(m->win, 1, BUT_DRAWABLE); butBoxFilled_setColors(m->bBox, BUT_LIT, BUT_SHAD, BUT_BG); str_print(&data->cmdBuild, CGBUTS_BSTONECHAR " %s", str_chars(&m->bName)); m->bTitle = butText_create(m->win, 2, BUT_DRAWABLE, str_chars(&data->cmdBuild), butText_left); m->swap = butAct_create(swapPressed, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_swapColors, BUT_ALEFT|BUT_ARIGHT); m->size = clp_getInt(cg->clp, "client.match.size"); m->mainTime = clp_getInt(cg->clp, "client.match.mainTime"); m->byTime = clp_getInt(cg->clp, "client.match.byTime"); m->rulesBox = butBox_create(m->win, 1, BUT_DRAWABLE); butBox_setPixmaps(m->rulesBox, cg->bgLitPixmap, cg->bgShadPixmap); m->sizeStr = butText_create(m->win, 1, BUT_DRAWABLE, msg_boardSize, butText_center); sprintf(curText, "%d", m->size); m->sizeIn = butTextin_create(newSize, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, curText, 10); flags = BUT_DRAWABLE; if (m->size < 19) flags |= BUT_PRESSABLE; m->sizeUp = butAct_create(changeSize, m, m->win, 1, flags, CGBUTS_FWDCHAR, BUT_RRIGHT|BUT_SLEFT); flags = BUT_DRAWABLE; if (m->size > 9) flags |= BUT_PRESSABLE; m->sizeDown = butAct_create(changeSize, m, m->win, 1, flags, CGBUTS_BACKCHAR, BUT_RLEFT|BUT_SRIGHT); m->hcapStr = butText_create(m->win, 1, BUT_DRAWABLE, msg_handicap, butText_center); sprintf(curText, "%d", m->hcap); m->hcapIn = butTextin_create(newHcap, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, curText, 10); flags = BUT_DRAWABLE; if (m->hcap < 9) flags |= BUT_PRESSABLE; m->hcapUp = butAct_create(changeHcap, m, m->win, 1, flags, CGBUTS_FWDCHAR, BUT_RRIGHT|BUT_SLEFT); flags = BUT_DRAWABLE; if (m->hcap > 0) flags |= BUT_PRESSABLE; m->hcapDown = butAct_create(changeHcap, m, m->win, 1, flags, CGBUTS_BACKCHAR, BUT_RLEFT|BUT_SRIGHT); m->komiStr = butText_create(m->win, 1, BUT_DRAWABLE, msg_komi, butText_center); sprintf(curText, "%g", m->komi); m->komiIn = butTextin_create(newKomi, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, curText, 10); m->komiUp = butAct_create(changeKomi, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FWDCHAR, BUT_RRIGHT|BUT_SLEFT); m->komiDown = butAct_create(changeKomi, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_BACKCHAR, BUT_RLEFT|BUT_SRIGHT); m->timeBox = butBox_create(m->win, 1, BUT_DRAWABLE); butBox_setPixmaps(m->timeBox, cg->bgLitPixmap, cg->bgShadPixmap); m->mainStr = butText_create(m->win, 1, BUT_DRAWABLE, msg_primaryTime, butText_center); m->mainIn = butTextin_create(newMainTime, m, m->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "client.match.mainTime"), 10); m->mainUp1 = butAct_create(changeMain, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FWDCHAR, BUT_SRIGHT|BUT_SLEFT); flags = BUT_DRAWABLE; m->mainTime = goTime_parseChars(butTextin_get(m->mainIn), FALSE, NULL); if (m->mainTime > 0) flags |= BUT_PRESSABLE; m->mainDown1 = butAct_create(changeMain, m, m->win, 1, flags, CGBUTS_BACKCHAR, BUT_SRIGHT|BUT_SLEFT); m->mainUp5 = butAct_create(changeMain, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FFCHAR, BUT_RRIGHT|BUT_SLEFT); m->mainDown5 = butAct_create(changeMain, m, m->win, 1, flags, CGBUTS_REWCHAR, BUT_RLEFT|BUT_SRIGHT); m->byStr = butText_create(m->win, 1, BUT_DRAWABLE, msg_byoYomi, butText_center); m->byIn = butTextin_create(newBYTime, m, m->win, 1, BUT_PRESSABLE|BUT_DRAWABLE, clp_getStr(cg->clp, "client.match.byTime"), 10); m->byTime = goTime_parseChars(butTextin_get(m->byIn), FALSE, NULL); m->byUp1 = butAct_create(changeBy, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FWDCHAR, BUT_SRIGHT|BUT_SLEFT); flags = BUT_DRAWABLE; if (m->byTime > 0) flags |= BUT_PRESSABLE; m->byDown1 = butAct_create(changeBy, m, m->win, 1, flags, CGBUTS_BACKCHAR, BUT_SRIGHT|BUT_SLEFT); m->byUp5 = butAct_create(changeBy, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, CGBUTS_FFCHAR, BUT_RRIGHT|BUT_SLEFT); m->byDown5 = butAct_create(changeBy, m, m->win, 1, flags, CGBUTS_REWCHAR, BUT_RLEFT|BUT_SRIGHT); m->freeTitle = butText_create(m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_freeGame, butText_center); m->freeGame = butCb_create(newFree, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, clp_getBool(cg->clp, "client.match.free")); m->help = butCt_create(cgoban_createHelpWindow, &help_cliMatch, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); m->ok = butCt_create(okPressed, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_ok); m->cancel = butCt_create(cancelPressed, m, m->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_cancel); return(m); } void cliMatch_destroy(CliMatch *match) { assert(MAGIC(match)); butWin_destroy(match->win); } bool cliMatch_destroyChain(CliMatch *match, const char *oppName, int *hcap, float *komi, bool *free) { bool result = FALSE; /* * This code wouldn't work if things were done right in the but library * and the windows were destroyed as soon as I asked for it. But since * the library is too broken for me to fix right now I'll have to do it * this way. The second assert in the loop will fail when the but library * is rewritten to do things right. */ while (match != NULL) { assert(MAGIC(match)); if (oppName != NULL) { if (!strcmp(oppName, str_chars(&match->wName)) || !strcmp(oppName, str_chars(&match->bName))) { result = TRUE; *hcap = match->hcap; *komi = match->komi; *free = butCb_get(match->freeGame); match->state = cliMatch_nil; } } cliMatch_destroy(match); assert(MAGIC(match)); match = match->next; } return(result); } static ButOut resize(ButWin *win) { CliMatch *m = butWin_packet(win); Cgoban *cg; int w, butW, h, x, y; int bw, fh; ButEnv *env; assert(MAGIC(m)); cg = m->data->cg; assert(MAGIC(cg)); env = cg->env; bw = butEnv_stdBw(env); fh = cg->fontH; w = butWin_w(win); h = butWin_h(win); butW = w/2-5*bw; but_resize(m->bg, 0,0, w,h); but_resize(m->title, 0,bw*2, w, fh*2); but_resize(m->namesBox, bw,bw*3+fh*2, w-bw*2,bw*4+fh*2); but_resize(m->wBox, bw*3, bw*5+fh*2, w/2 - (bw * 4 + fh * 4), fh * 2); but_resize(m->wTitle, bw * 5, bw * 5 + fh * 2, w/2 - (bw * 8 + fh * 4), fh * 2); but_resize(m->bBox, w/2 + bw + fh*4, bw*5+fh*2, w - (w/2+bw*4 + fh * 4), fh*2); but_resize(m->bTitle, w/2 + bw * 3 + fh*4, bw*5+fh*2, w - (w/2+bw*8 + fh * 4), fh*2); but_resize(m->swap, w/2 - fh * 4, bw*5+fh*2, fh * 8, fh * 2); y = bw*7+fh*4; but_resize(m->rulesBox, bw,y, w/2-bw,fh*12+bw*9); but_resize(m->sizeStr, bw*3,y+bw*2+fh*0, butW,fh*2); but_resize(m->sizeIn, bw*3+fh*2,y+bw*3+fh*2, butW-fh*4,fh*2); but_resize(m->sizeDown, bw*3,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->sizeUp, bw*3+butW-fh*2,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->hcapStr, bw*3,y+bw*4+fh*4, butW,fh*2); but_resize(m->hcapIn, bw*3+fh*2,y+bw*5+fh*6, butW-fh*4,fh*2); but_resize(m->hcapDown, bw*3,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->hcapUp, bw*3+butW-fh*2,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->komiStr, bw*3,y+bw*6+fh*8, butW,fh*2); but_resize(m->komiIn, bw*3+fh*2,y+bw*7+fh*10, butW-fh*4,fh*2); but_resize(m->komiDown, bw*3,y+bw*7+fh*10, fh*2,fh*2); but_resize(m->komiUp, bw*3+butW-fh*2,y+bw*7+fh*10, fh*2,fh*2); but_resize(m->timeBox, w/2,y, w-bw-w/2,fh*12+bw*9); x = w/2 + bw*2; butW = w-x-bw*3; but_resize(m->mainStr, x,y+bw*2+fh*0, butW,fh*2); but_resize(m->mainIn, x+fh*4,y+bw*3+fh*2, butW-fh*8,fh*2); but_resize(m->mainDown5, x,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->mainDown1, x+fh*2,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->mainUp1, x+butW-fh*4,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->mainUp5, x+butW-fh*2,y+bw*3+fh*2, fh*2,fh*2); but_resize(m->byStr, x,y+bw*4+fh*4, butW,fh*2); but_resize(m->byIn, x+fh*4,y+bw*5+fh*6, butW-fh*8,fh*2); but_resize(m->byDown5, x,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->byDown1, x+fh*2,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->byUp1, x+butW-fh*4,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->byUp5, x+butW-fh*2,y+bw*5+fh*6, fh*2,fh*2); but_resize(m->freeTitle, x,y+bw*6+fh*8, butW,fh*2); but_resize(m->freeGame, x + butW/2 - fh,y+bw*7+fh*10, fh*2,fh*2); but_resize(m->help, bw*2,y+bw*10+fh*12, (w-bw*6+1)/3,fh*2); but_resize(m->cancel, bw*3+(w-bw*6+1)/3,y+bw*10+fh*12, w-2*(bw*3+(w-bw*6+1)/3),fh*2); but_resize(m->ok, w-(bw*2+(w-bw*6+1)/3),y+bw*10+fh*12, (w-bw*6+1)/3,fh*2); return(0); } static ButOut destroy(ButWin *win) { CliMatch *m; Clp *clp; Str *opp; m = butWin_packet(win); assert(MAGIC(m)); if (m->state != cliMatch_nil) { if (m->meFirst) opp = &m->wName; else opp = &m->bName; str_print(&m->data->cmdBuild, "decline %s\n", str_chars(opp)); cliConn_send(&m->data->conn, str_chars(&m->data->cmdBuild)); } clp = m->data->cg->clp; clp_setInt(clp, "client.match.x", butWin_x(win)); clp_setInt(clp, "client.match.y", butWin_y(win)); clp_setBool(clp, "client.match.meFirst", m->meFirst); str_deinit(&m->wName); str_deinit(&m->bName); *(m->prev) = m->next; MAGIC_UNSET(m); wms_free(m); return(0); } static ButOut newSize(But *but, const char *value) { CliMatch *m = but_packet(but); int newSize; char curValue[3]; assert(MAGIC(m)); newSize = atoi(value); if ((newSize > 19) || !clp_setStr(m->data->cg->clp, "client.match.size", value)) { str_print(&m->data->cmdBuild, msg_badSize, value, 19); cgoban_createMsgWindow(m->data->cg, "Cgoban Error", str_chars(&m->data->cmdBuild)); sprintf(curValue, "%d", m->size); butTextin_set(but, curValue, FALSE); return(BUTOUT_ERR); } m->size = newSize; if (m->size > 9) { but_setFlags(m->sizeDown, BUT_PRESSABLE); } else { but_setFlags(m->sizeDown, BUT_NOPRESS); } if (m->size < 19) but_setFlags(m->sizeUp, BUT_PRESSABLE); else but_setFlags(m->sizeUp, BUT_NOPRESS); return(0); } static ButOut newHcap(But *but, const char *value) { CliMatch *m = but_packet(but); int newHcap; char curValue[2]; bool err; assert(MAGIC(m)); newHcap = wms_atoi(value, &err); if ((newHcap > 9) || (newHcap == 1) || (newHcap < 0) || err) { str_print(&m->data->cmdBuild, msg_badHcap, value, 9); cgoban_createMsgWindow(m->data->cg, "Cgoban Error", str_chars(&m->data->cmdBuild)); sprintf(curValue, "%d", m->hcap); butTextin_set(but, curValue, FALSE); return(BUTOUT_ERR); } m->hcap = newHcap; if (m->hcap > 0) { but_setFlags(m->hcapDown, BUT_PRESSABLE); } else { but_setFlags(m->hcapDown, BUT_NOPRESS); } if (m->hcap < 9) but_setFlags(m->hcapUp, BUT_PRESSABLE); else but_setFlags(m->hcapUp, BUT_NOPRESS); return(0); } static ButOut newKomi(But *but, const char *value) { CliMatch *m = but_packet(but); float newKomi; char curValue[7]; bool err; assert(MAGIC(m)); newKomi = wms_atof(value, &err); if ((newKomi > 999.5) || (newKomi < -999.5) || err || ((int)(newKomi * 2.0) != newKomi * 2.0)) { str_print(&m->data->cmdBuild, msg_badKomi, value); cgoban_createMsgWindow(m->data->cg, "Cgoban Error", str_chars(&m->data->cmdBuild)); sprintf(curValue, "%g", m->komi); butTextin_set(but, curValue, FALSE); return(BUTOUT_ERR); } m->komi = newKomi; if (m->komi > -99.5) { but_setFlags(m->hcapDown, BUT_PRESSABLE); } else { but_setFlags(m->hcapDown, BUT_NOPRESS); } if (m->hcap < 99.5) but_setFlags(m->hcapUp, BUT_PRESSABLE); else but_setFlags(m->hcapUp, BUT_NOPRESS); return(0); } static ButOut newMainTime(But *but, const char *value) { CliMatch *m = but_packet(but); Str errMsg; assert(MAGIC(m)); if (!clp_setStr(m->data->cg->clp, "client.match.mainTime", value)) { str_init(&errMsg); str_print(&errMsg, msg_badTime, value); cgoban_createMsgWindow(m->data->cg, "Cgoban Error", str_chars(&errMsg)); goTime_str(m->mainTime, &errMsg); butTextin_set(but, str_chars(&errMsg), FALSE); str_deinit(&errMsg); return(BUTOUT_ERR); } m->mainTime = goTime_parseChars(value, FALSE, NULL); if (but_getFlags(but) & BUT_KEYED) but_setFlags(m->byIn, BUT_KEYED); if (m->mainTime > 0) { but_setFlags(m->mainDown1, BUT_PRESSABLE); but_setFlags(m->mainDown5, BUT_PRESSABLE); } else { but_setFlags(m->mainDown1, BUT_NOPRESS); but_setFlags(m->mainDown5, BUT_NOPRESS); } return(0); } static ButOut newBYTime(But *but, const char *value) { CliMatch *m = but_packet(but); Str errMsg; assert(MAGIC(m)); if (!clp_setStr(m->data->cg->clp, "client.match.byTime", value)) { str_init(&errMsg); str_print(&errMsg, msg_badTime, value); cgoban_createMsgWindow(m->data->cg, "Cgoban Error", str_chars(&errMsg)); goTime_str(m->byTime, &errMsg); butTextin_set(but, str_chars(&errMsg), FALSE); str_deinit(&errMsg); return(BUTOUT_ERR); } m->byTime = goTime_parseChars(value, FALSE, NULL); but_setFlags(but, BUT_NOKEY); if (m->byTime > 0) { but_setFlags(m->byDown1, BUT_PRESSABLE); but_setFlags(m->byDown5, BUT_PRESSABLE); } else { but_setFlags(m->byDown1, BUT_NOPRESS); but_setFlags(m->byDown5, BUT_NOPRESS); } return(0); } static ButOut okPressed(But *but) { CliMatch *m = but_packet(but); const char *oppName, *myName; ButOut result; assert(MAGIC(m)); if (m->meFirst) { oppName = str_chars(&m->wName); myName = str_chars(&m->bName); } else { myName = str_chars(&m->wName); oppName = str_chars(&m->bName); } result = newSize(m->sizeIn, butTextin_get(m->sizeIn)) | newMainTime(m->mainIn, butTextin_get(m->mainIn)) | newBYTime(m->byIn, butTextin_get(m->byIn)); if (!(result & BUTOUT_ERR)) { str_print(&m->data->cmdBuild, "match %s %c %d %d %d\n" "tell %s CLIENT: match %s wants " "handicap %d, komi %g", oppName, (int)("wb"[m->meFirst]), m->size, (m->mainTime + 59) / 60, (m->byTime + 59) / 60, oppName, myName, m->hcap, m->komi); if (butCb_get(m->freeGame)) str_catChars(&m->data->cmdBuild, ", free\n"); else str_catChar(&m->data->cmdBuild, '\n'); cliConn_send(&m->data->conn, str_chars(&m->data->cmdBuild)); m->state = cliMatch_sent; butText_set(m->title, msg_cliGameSetupSent); } return(result); } static ButOut cancelPressed(But *but) { butWin_destroy(but_win(but)); return(0); } static ButOut newFree(But *but, bool newVal) { CliMatch *m; m = but_packet(but); assert(MAGIC(m)); clp_setBool(m->data->cg->clp, "client.match.free", newVal); return(0); } static ButOut swapPressed(But *but) { CliMatch *m; Str temp, *cmdBuild; m = but_packet(but); assert(MAGIC(m)); temp = m->wName; m->wName = m->bName; m->bName = temp; m->meFirst = !m->meFirst; cmdBuild = &m->data->cmdBuild; str_print(cmdBuild, CGBUTS_WSTONECHAR " %s", str_chars(&m->wName)); butText_set(m->wTitle, str_chars(cmdBuild)); str_print(cmdBuild, CGBUTS_BSTONECHAR " %s", str_chars(&m->bName)); butText_set(m->bTitle, str_chars(cmdBuild)); return(0); } void cliMatch_declineCommand(CliMatch *match, const char *buf) { char name[30]; sscanf(buf, "%s", name); match = playerLookup(match, name); if (match != NULL) { match->state = cliMatch_nil; butText_set(match->title, msg_cliGameSetupRej); } } static CliMatch *playerLookup(CliMatch *chain, const char *player) { while (chain != NULL) { if (!strcmp(player, str_chars(&chain->wName)) || !strcmp(player, str_chars(&chain->bName))) return(chain); chain = chain->next; } return(NULL); } static ButOut changeMain(But *but) { CliMatch *m = but_packet(but); assert(MAGIC(m)); if (newMainTime(m->mainIn, butTextin_get(m->mainIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->mainUp1) { m->mainTime += 60; } else if (but == m->mainUp5) { m->mainTime += 60 * 5; } else if (but == m->mainDown1) { m->mainTime -= 60; if (m->mainTime < 0) m->mainTime = 0; } else { assert(but == m->mainDown5); m->mainTime -= 60 * 5; if (m->mainTime < 0) m->mainTime = 0; } goTime_str(m->mainTime, &m->data->cmdBuild); butTextin_set(m->mainIn, str_chars(&m->data->cmdBuild), TRUE); return(0); } static ButOut changeBy(But *but) { CliMatch *m = but_packet(but); assert(MAGIC(m)); if (newBYTime(m->byIn, butTextin_get(m->byIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->byUp1) { m->byTime += 60; } else if (but == m->byUp5) { m->byTime += 60 * 5; } else if (but == m->byDown1) { m->byTime -= 60; if (m->byTime < 0) m->byTime = 0; } else { assert(but == m->byDown5); m->byTime -= 60 * 5; if (m->byTime < 0) m->byTime = 0; } goTime_str(m->byTime, &m->data->cmdBuild); butTextin_set(m->byIn, str_chars(&m->data->cmdBuild), TRUE); return(0); } static ButOut changeSize(But *but) { CliMatch *m = but_packet(but); char sizeStr[3]; assert(MAGIC(m)); if (newSize(m->sizeIn, butTextin_get(m->sizeIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->sizeUp) { if (m->size < 13) m->size = 13; else m->size = 19; } else { assert(but == m->sizeDown); if (m->size > 13) m->size = 13; else m->size = 9; } sprintf(sizeStr, "%d", m->size); butTextin_set(m->sizeIn, sizeStr, TRUE); return(0); } static ButOut changeKomi(But *but) { CliMatch *m = but_packet(but); char komiStr[10]; assert(MAGIC(m)); if (newKomi(m->komiIn, butTextin_get(m->komiIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->komiUp) { m->komi += 1.0; if (m->komi > 99.5) m->komi = 99.5; } else { assert(but == m->komiDown); m->komi -= 1.0; if (m->komi < -99.5) m->komi = -99.5; } sprintf(komiStr, "%g", m->komi); butTextin_set(m->komiIn, komiStr, TRUE); return(0); } static ButOut changeHcap(But *but) { CliMatch *m = but_packet(but); char hcapStr[3]; assert(MAGIC(m)); if (newHcap(m->hcapIn, butTextin_get(m->hcapIn)) & BUTOUT_ERR) return(BUTOUT_ERR); if (but == m->hcapUp) { ++m->hcap; if (m->hcap == 1) m->hcap = 2; if (m->hcap > 9) m->hcap = 9; } else { assert(but == m->hcapDown); --m->hcap; if (m->hcap == 1) m->hcap = 0; if (m->hcap < 0) m->hcap = 0; } sprintf(hcapStr, "%d", m->hcap); butTextin_set(m->hcapIn, hcapStr, TRUE); return(0); } void cliMatch_extraInfo(CliMatch *match, const char *oppName, int hcap, float komi, bool free) { char temp[20]; match = playerLookup(match, oppName); if (match != NULL) { sprintf(temp, "%d", hcap); butTextin_set(match->hcapIn, temp, TRUE); sprintf(temp, "%g", komi); butTextin_set(match->komiIn, temp, TRUE); match->komi = komi; butCb_set(match->freeGame, free, TRUE); } } goban-1.1.orig/src/cm2pm.c0000644000175000017500000000453410267777573013156 0ustar alal/* * src/xio/cm2pm.c, part of Complete Goban (game program) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include "cm2pm.h" Pixmap cm2Pm(ButEnv *env, uchar *cmap, uint cmapw,uint cmaph, uint w,uint h, int pic0, int npic, bool flat) { Pixmap pic; Display *dpy = butEnv_dpy(env); pic = XCreatePixmap(dpy, RootWindow(dpy, DefaultScreen(dpy)), w,h, DefaultDepth(dpy, DefaultScreen(dpy))); cm2OldPm(env, cmap, cmapw, cmaph, pic0, npic, pic, flat); return(pic); } void cm2OldPm(ButEnv *env, uchar *cmap, uint cmapw,uint cmaph, int pic0, int npic, Pixmap pic, bool flat) { Display *dpy; int i, x, y, div, cmx, cmy; int w, h; unsigned long clist[256]; XImage *im; int xaddmin, addstd, subextra, current; bool done = FALSE; int stripeSize = 4, stripeShift = 2; int pixVal, cmap1, cmap2, color1, color2; Window dummyWindow; unsigned int wUns, hUns, dummyBw, dummyDepth; dpy = butEnv_dpy(env); XGetGeometry(dpy, pic, &dummyWindow, &x, &y, &wUns, &hUns, &dummyBw, &dummyDepth); w = wUns; h = hUns; while (stripeSize * 400 < w) { stripeSize += stripeSize; ++stripeShift; } div = (256*1024) / npic; for (i = 0; i < 256; ++i) { clist[i] = butEnv_color(env, pic0 + (i*1024)/div); } if (flat) { XSetForeground(dpy, env->gc, clist[128]); XFillRectangle(dpy, pic, env->gc, 0, 0, w, h); } else { im = butEnv_imageCreate(env, w, h); xaddmin = cmapw / w; addstd = cmapw - (xaddmin * w); subextra = w; current = 0; if (!done) { for (y = 0; y < h; ++y) { cmy = ((y * cmaph) / h) * cmapw; cmx = 0; for (x = 0; x < w; ++x) { cmap1 = cmap[cmx + cmy]; if (x < w) cmap2 = cmap[cmx+1 + cmy]; else cmap2 = cmap[cmx+1-cmapw + cmy]; color1 = (x << 8) + (uint)(cmap1 << (stripeShift + 2)); color2 = (x << 8) + 128 + (uint)((cmap1 << (stripeShift + 1)) + (cmap2 << (stripeShift + 1))); pixVal = (((color1 >> stripeShift) & 255) + ((color2 >> stripeShift) & 255)) >> 1; XPutPixel(im, x, y, clist[pixVal]); cmx += xaddmin; current += addstd; if (current > 0) { ++cmx; current -= subextra; } } } } XPutImage(dpy, pic, env->gc, im, 0,0,0,0,w,h); butEnv_imageDestroy(im); } } goban-1.1.orig/src/checkbox.c0000644000175000017500000001636710270072536013712 0ustar alal/* * wmslib/src/but/checkbox.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include typedef struct Cb_struct { bool on; ButOut (*press)(But *but, bool value); } Cb; static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static ButOut kpress(But *but, const char *keystr, KeySym sym); static ButOut krelease(But *but, const char *keystr, KeySym sym); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static void flags(But *but, uint flags); static const ButAction action = { mmove, mleave, mpress, mrelease, kpress, krelease, draw, destroy, flags, NULL}; /********************************************************************** * Functions **********************************************************************/ But *butCb_create(ButOut (*func)(But *but, bool value), void *packet, ButWin *win, int layer, int flags, bool on) { But *but; Cb *cb; cb = wms_malloc(sizeof(Cb)); but = but_create(win, cb, &action); MAGIC_SET(but); but->uPacket = packet; but->layer = layer; but->flags = flags | BUT_OPAQUE; cb->on = on; cb->press = func; but_init(but); return(but); } bool butCb_get(But *but) { Cb *cb = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); return(cb->on); } void butCb_set(But *but, bool on, bool makeCallback) { Cb *cb = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); if (cb->on != on) { cb->on = on; but_draw(but); if (makeCallback && (cb->press != NULL)) cb->press(but, on); } } static ButOut destroy(But *but) { Cb *cb = but->iPacket; assert(but->action == &action); assert(MAGIC(but)); wms_free(cb); return(0); } static void draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; Cb *cb = but->iPacket; uint flags = but->flags; ButEnv *env = win->env; XPoint check[6]; int i, ix, iy, iw, ih, delta; assert(but->action == &action); assert(MAGIC(but)); ix = but->x + env->stdButBw - win->xOff; iy = but->y + env->stdButBw - win->yOff; iw = but->w - 2*env->stdButBw; ih = but->h - 2*env->stdButBw; but_drawBox(win, but->x,but->y, but->w,but->h, flags & BUT_PRESSED, env->stdButBw, BUT_SLEFT|BUT_SRIGHT, BUT_LIT, BUT_SHAD, None, None); if (flags & BUT_PRESSED) butEnv_setXFg(env, BUT_PBG); else { if (cb->on && (but->flags & BUT_PRESSABLE)) { butEnv_setXFg(env, BUT_CHOICE); } else butEnv_setXFg(env, BUT_BG); } XFillRectangle(env->dpy, win->win, env->gc, ix,iy, iw,ih); if (((flags & BUT_PRESSED) && !cb->on) || (!(flags & BUT_PRESSED) && cb->on)) { check[0].x = ix + (iw + 1) / 3; check[0].y = iy + ih; check[1].x = ix; check[1].y = iy + (2*ih + 1) / 3; check[2].x = ix + (iw + 3) / 6; check[2].y = iy + (3*ih + 3) / 6; check[3].x = check[0].x; check[3].y = check[1].y; check[4].x = ix + iw; check[4].y = iy + (ih + 1) / 3; check[5] = check[0]; if (flags & BUT_PRESSED) { delta = (env->stdButBw + 1) / 2; for (i = 1; i < 5; ++i) check[i].y += delta; check[0].x -= delta; check[5].x += delta; } butEnv_setXFg(env, BUT_FG); XFillPolygon(env->dpy, win->win, env->gc, check, 6, Nonconvex, CoordModeOrigin); } } static void flags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if (((flags & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED)) != (ofl & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED))) || (((flags & BUT_TWITCHED) != (ofl & BUT_TWITCHED)) && (flags & BUT_PRESSED))) but_draw(but); } static ButOut mmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; ButEnv *env = but->win->env; if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if ((x >= but->x + env->stdButBw) && (y >= but->y + env->stdButBw) && (x < but->x + but->w - env->stdButBw) && (y < but->y + but->h - env->stdButBw)) newflags |= BUT_TWITCHED; else { newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } static ButOut mleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; if (!newflags & BUT_TWITCHED) retval &= ~BUTOUT_CAUGHT; else { if (butnum == 1) newflags |= BUT_PRESSED | BUT_LOCKED; else return(BUTOUT_CAUGHT | BUTOUT_ERR); } if (!(but->flags & BUT_PRESSED) && (newflags & BUT_PRESSED)) snd_play(&but_downSnd); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut mrelease(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Cb *cb; if (butnum != 1) { if (but->flags & BUT_TWITCHED) return(BUTOUT_CAUGHT); else return(0); } if (!(but->flags & BUT_PRESSED)) return(0); if (but->flags & BUT_TWITCHED) { cb = but->iPacket; cb->on = !cb->on; if (cb->press != NULL) retval |= cb->press(but, cb->on); } else retval |= BUTOUT_ERR; newflags &= ~(BUT_PRESSED|BUT_LOCKED); if ((but->flags & BUT_PRESSED) && !(newflags & BUT_PRESSED) && !(retval & BUTOUT_ERR)) snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } static ButOut kpress(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; newflags |= BUT_KEYPRESSED; if (!(but->flags & BUT_KEYPRESSED)) { snd_play(&but_downSnd); but_newFlags(but, newflags); } return(retval); } static ButOut krelease(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Cb *cb = but->iPacket; newflags &= ~(BUT_KEYPRESSED); cb->on = !cb->on; if (cb->press != NULL) retval |= cb->press(but, cb->on); snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); return(retval); } #endif goban-1.1.orig/src/game.c0000644000175000017500000007253410270067760013036 0ustar alal/* * src/client/game.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ /* * Removed the bogus BadElf messages that were caused by messages from * the server that weren't being caught. Dan Niles (-DDN-) */ #include #include #include #include #include "msg.h" #include #include #include #include #ifdef _CLIENT_GAME_H_ LEVELIZATION ERROR #endif #include "game.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void expandGames(CliGameList *gl, int gameNum); static void boardDead(CliBoard *board, void *packet); static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static void getListEl(CliGameList *gl, int gNum, Str *out); static ButOut sResize(ButWin *win); static ButOut reload(But *but); static ButOut listPressed(But *but, int line); /********************************************************************** * Functions **********************************************************************/ CliGameList *cliGameList_init(CliGameList *gl, CliData *data, CliPlayerList *playerList) { MAGIC_SET(gl); gl->data = data; gl->playerList = playerList; gl->maxGames = 0; gl->games = NULL; gl->defaultGame = -1; gl->playGame = -1; gl->kibGame = -1; gl->win = NULL; gl->elfBugReported = FALSE; return(gl); } CliGameList *cliGameList_deinit(CliGameList *gl) { int i; Cgoban *cg; assert(MAGIC(gl)); cg = gl->data->cg; for (i = 0; i < gl->maxGames; ++i) { if (gl->games[i].board) { cliBoard_destroy(gl->games[i].board, FALSE); gl->games[i].board = NULL; } str_deinit(&gl->games[i].wName); str_deinit(&gl->games[i].bName); str_deinit(&gl->games[i].wRank); str_deinit(&gl->games[i].bRank); str_deinit(&gl->games[i].flags); } if (gl->games) wms_free(gl->games); if (gl->win) { clp_setInt(cg->clp, "client.games.w", (butWin_w(gl->win) - butWin_getMinW(gl->win)) / butWin_getWStep(gl->win)); clp_setDouble(cg->clp, "client.games.h2", ((double)butWin_h(gl->win) / (double)(butWin_getMinW(gl->win) + 6 * butWin_getWStep(gl->win)))); clp_setInt(cg->clp, "client.games.x", butWin_x(gl->win)); clp_setInt(cg->clp, "client.games.y", butWin_y(gl->win)); butWin_setDestroy(gl->win, NULL); butWin_destroy(gl->win); } MAGIC_UNSET(gl); return(gl); } void cliGameList_openWin(CliGameList *gl) { int winW, minWinW, winH; Cgoban *cg; int i; bool err; Str listEl; int physH, bw; double wHRatio; assert(MAGIC(gl)); str_init(&listEl); if (gl->win) { XRaiseWindow(butEnv_dpy(gl->data->cg->env), butWin_xwin(gl->win)); return; } cg = gl->data->cg; physH = butEnv_fontH(gl->data->cg->env, 0); bw = butEnv_stdBw(gl->data->cg->env); minWinW = physH * 18 + bw * 8; winW = minWinW + physH * 2 * clp_getInt(cg->clp, "client.games.w"); wHRatio = clp_getDouble(cg->clp, "client.games.h2"); winH = ((double)(minWinW + physH * 12) * wHRatio + 0.5); str_print(&listEl, "%s Game List", gl->data->serverName); gl->win = butWin_create(gl, cg->env, str_chars(&listEl), winW, winH, unmap, map, resize, destroy); butWin_setMinW(gl->win, minWinW); butWin_setMaxW(gl->win, minWinW + physH * 12); butWin_setWStep(gl->win, physH * 2); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.games.x"), &err); if (!err) butWin_setX(gl->win, i); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.games.y"), &err); if (!err) butWin_setY(gl->win, i); butWin_setMaxH(gl->win, 0); butWin_setMinH(gl->win, cg->fontH * 6); butWin_activate(gl->win); gl->bg = butBoxFilled_create(gl->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(gl->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); gl->swin = abutSwin_create(gl, gl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, sResize); gl->sBg = butPlain_create(gl->swin->win, 0, BUT_DRAWABLE, BUT_BG); gl->list = butList_create(listPressed, gl, gl->swin->win, 2, BUT_DRAWABLE|BUT_PRESSABLE); gl->titleBox = butBoxFilled_create(gl->win, 1, BUT_DRAWABLE); gl->title = butList_create(NULL, NULL, gl->win, 2, BUT_DRAWABLE); butList_setLen(gl->title, 1); butList_changeLine(gl->title, 0, msg_gameListDesc); gl->reload = butCt_create(reload, gl, gl->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, "*"); for (i = 1; i < gl->maxGames; ++i) { if (gl->games[i].state != cliGame_noGame) { getListEl(gl, i, &listEl); butList_setLen(gl->list, i); butList_changeLine(gl->list, i - 1, str_chars(&listEl)); if (gl->games[i].state == cliGame_over) { butList_setPress(gl->list, i - 1, FALSE); } } } butCan_resizeWin(gl->swin->win, 0, butList_len(gl->list) * butEnv_fontH(gl->data->cg->env, 0) + butEnv_stdBw(gl->data->cg->env) * 2, TRUE); str_deinit(&listEl); } void cliGameList_gotMove(CliGameList *gl, const char *buf) { int args; int moveNum, handicap; char color, locStr[6]; const char *oppName; GoStone stone; CliGame *g; int time1, time2, stonesLeft1, stonesLeft2; assert(MAGIC(gl)); if (buf[0] == 'G') { args = sscanf(buf, "Game %d %*s %*s (%*d %d %d) vs %*s (%*d %d %d)", &gl->defaultGame, &time1, &stonesLeft1, &time2, &stonesLeft2); assert(args == 5); expandGames(gl, gl->defaultGame); g = &gl->games[gl->defaultGame]; switch(g->state) { case cliGame_noGame: case cliGame_over: str_print(&gl->data->cmdBuild, "games %d\nmoves %d\n", gl->defaultGame, gl->defaultGame); cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); gl->defaultGame = -1; return; break; case cliGame_waitNoOb: gl->defaultGame = -1; return; break; default: if (g->board) { g->board->goban->timers[goStone_white].timeLeft = time1; g->board->goban->timers[goStone_black].timeLeft = time2; if (stonesLeft1 < 0) stonesLeft1 = 0; if (stonesLeft2 < 0) stonesLeft2 = 0; g->board->goban->timers[goStone_white].aux = stonesLeft1; g->board->goban->timers[goStone_black].aux = stonesLeft2; } else { /* * This code is also in gotGameInfo(). It really belongs here only * but a bug in NNGS forces me to put it in both places. */ g->state = cliGame_observing; g->board = cliBoard_create(gl->data, gl->defaultGame, &g->wName, &g->wRank, &g->bName, &g->bRank, g->size, g->handicap, g->komi, time1, g->byTime * 60, boardDead, gl); g->gamePressed = FALSE; g->fromMatch = FALSE; if (g->board->moveWhite || g->board->moveBlack) { gl->playGame = gl->defaultGame; if (gl->playerList->match) { if (g->board->moveWhite) oppName = str_chars(&g->bName); else oppName = str_chars(&g->wName); g->fromMatch = cliMatch_destroyChain(gl->playerList->match, oppName, &g->handicap, &g->komi, &g->free); } } str_print(&gl->data->cmdBuild, "moves %d\n", gl->defaultGame); cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); } break; } } else if (gl->defaultGame >= 0) { g = &gl->games[gl->defaultGame]; args = sscanf(buf, "%d(%c): %5s", &moveNum, &color, locStr); assert(args == 3); if (!strcmp(locStr, "Handi")) { sscanf(buf, "%*s %*s %d", &handicap); if (handicap != g->handicap) { g->handicap = handicap; goGame_destroy(g->board->game); g->board->game = goGame_create(g->size, goRules_japanese, g->handicap, g->komi, &g->board->timer, FALSE); g->board->goban->game = g->board->game; g->board->goban->pic->game = g->board->game; while (g->board->sgf->active->childH != NULL) { sgfElem_snip(g->board->sgf->active->childH, g->board->sgf); } sgf_setHandicap(g->board->sgf, handicap); sgf_addHandicapStones(g->board->sgf, g->board->game->board); g->board->gameEnd = g->board->sgf->active; g->board->onTrack = TRUE; goban_stopTimer(g->board->goban); goban_startTimer(g->board->goban, goGame_whoseMove(g->board->game)); goban_update(g->board->goban); } } if (color == 'W') { stone = goStone_white; } else { assert(color == 'B'); stone = goStone_black; } if (gl->games[gl->defaultGame].board->goban->timers[stone].aux > 0) ++gl->games[gl->defaultGame].board->goban->timers[stone].aux; if (!cliBoard_gotMove(gl->games[gl->defaultGame].board, locStr, stone, moveNum)) { Str errStr; str_init(&errStr); str_print(&errStr, msg_cliGameBadMove, locStr, gl->defaultGame); cgoban_createMsgWindow(gl->data->cg, "Client/Server Error Detected", str_chars(&errStr)); str_deinit(&errStr); } } } void cliGameList_gotGameInfo(CliGameList *gl, const char *buf) { int gameNum, move, size, handicap, byTime, observers; float komi; CliGame *g; char wName[41], bName[41], wRank[10], bRank[10], flags[5], temp[50]; int matches; if (buf[1] != '#') { /* It's not the header. */ matches = sscanf(buf, "[%d] %40s [ %[^] ] ] vs. %40s [ %[^] ] ] " "(%d %d %d %g %d %[^)]) (%d)", &gameNum, wName, wRank, bName, bRank, &move, &size, &handicap, &komi, &byTime, flags, &observers); if (matches != 12) { if (!gl->elfBugReported) { gl->elfBugReported = TRUE; cgoban_createMsgWindow(gl->data->cg, "Cgoban Error", msg_gameBadElf); } return; } assert(matches == 12); expandGames(gl, gameNum); g = &gl->games[gameNum]; if ((g->state == cliGame_noGame) || (g->state == cliGame_over)) g->state = cliGame_idle; str_copyChars(&g->wName, wName); str_copyChars(&g->bName, bName); str_copyChars(&g->wRank, wRank); str_copyChars(&g->bRank, bRank); str_copyChars(&g->flags, flags); cliPlayerList_playerInGame(gl->playerList, wName, gameNum); cliPlayerList_playerInGame(gl->playerList, bName, gameNum); g->moveNum = move; if (g->board && g->fromMatch && (move < 2)) { if (g->komi != komi) str_print(&gl->data->cmdBuild, "komi %g\n", g->komi); if (g->board->moveBlack) { if (g->free && (strchr(str_chars(&g->flags), 'F') == NULL)) str_catChars(&gl->data->cmdBuild, "free\n"); if (g->handicap > 0) { sprintf(temp, "handicap %d\n", g->handicap); str_catChars(&gl->data->cmdBuild, temp); } } cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); g->fromMatch = FALSE; } assert((size >= 1) && (size <= 38)); g->size = size; assert((handicap >= 0) && (handicap <= 27)); g->handicap = handicap; g->komi = komi; g->byTime = byTime; g->observers = observers; if (gl->win) { if (gameNum > butList_len(gl->list)) { butList_setLen(gl->list, gameNum); butCan_resizeWin(gl->swin->win, 0, butList_len(gl->list) * butEnv_fontH(gl->data->cg->env, 0) + butEnv_stdBw(gl->data->cg->env) * 2, TRUE); } getListEl(gl, gameNum, &gl->data->cmdBuild); butList_changeLine(gl->list, gameNum - 1, str_chars(&gl->data->cmdBuild)); } } } static void expandGames(CliGameList *gl, int gameNum) { int newMaxGames; CliGame *newGames; int i; if (gameNum >= gl->maxGames) { newMaxGames = (gameNum + 1) * 2; newGames = wms_malloc(newMaxGames * sizeof(CliGame)); for (i = 0; i < gl->maxGames; ++i) newGames[i] = gl->games[i]; for (; i < newMaxGames; ++i) { newGames[i].state = cliGame_noGame; newGames[i].gamePressed = FALSE; str_init(&newGames[i].wName); str_init(&newGames[i].bName); str_init(&newGames[i].wRank); str_init(&newGames[i].bRank); str_init(&newGames[i].flags); newGames[i].moveNum = 0; newGames[i].size = 0; newGames[i].handicap = 0; newGames[i].komi = 0.0; newGames[i].byTime = 0; newGames[i].observers = 0; newGames[i].board = NULL; } if (gl->games) wms_free(gl->games); gl->maxGames = newMaxGames; gl->games = newGames; } } static void boardDead(CliBoard *board, void *packet) { CliGameList *gl = packet; assert(MAGIC(gl)); assert(gl->games[board->gameNum].board == board); str_print(&gl->data->cmdBuild, "observe %d\n", board->gameNum); cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); gl->games[board->gameNum].board = NULL; gl->games[board->gameNum].state = cliGame_waitNoOb; if (gl->defaultGame == board->gameNum) gl->defaultGame = -1; } void cliGameList_notObserving(CliGameList *gl, const char *buf) { int args; int gameNum; args = sscanf(buf, "Removing game %d", &gameNum); assert(args == 1); assert(gameNum >= 0); assert(gameNum < gl->maxGames); assert(gl->games[gameNum].state == cliGame_waitNoOb); gl->games[gameNum].state = cliGame_idle; } void cliGameList_kibitz(CliGameList *gl, const char *buf) { int args; const char *kibitz; assert(MAGIC(gl)); if (buf[0] == 'K') { args = sscanf(buf, "Kibitz %40[^:]%*[^[][%d", gl->kibPlayer, &gl->kibGame); if (args != 2) { if (!gl->elfBugReported) { gl->elfBugReported = TRUE; cgoban_createMsgWindow(gl->data->cg, "Cgoban Error", msg_gameBadElf); } return; } assert(args == 2); expandGames(gl, gl->kibGame); } else { if ((gl->kibGame < 0) || (gl->games[gl->kibGame].state != cliGame_observing)) { return; } for (kibitz = buf; *kibitz == ' '; ++kibitz); if (clpEntry_getBool(gl->data->numKibitz)) str_print(&gl->data->cmdBuild, "%d %s: %s\n", gl->games[gl->kibGame].board->game->maxMoves, gl->kibPlayer, kibitz); else str_print(&gl->data->cmdBuild, "%s: %s\n", gl->kibPlayer, kibitz); cliBoard_addKibitz(gl->games[gl->kibGame].board, str_chars(&gl->data->cmdBuild)); } } void cliGameList_say(CliGameList *gl, const char *buf) { assert(MAGIC(gl)); if (gl->playGame >= 0) { if (clpEntry_getBool(gl->data->numKibitz)) str_print(&gl->data->cmdBuild, "%d %s\n", gl->games[gl->playGame].board->game->maxMoves, buf); else str_print(&gl->data->cmdBuild, "%s\n", buf); cliBoard_addKibitz(gl->games[gl->playGame].board, str_chars(&gl->data->cmdBuild)); } } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { int w, h; CliGameList *gl = butWin_packet(win); int bw = butEnv_stdBw(butWin_env(win)); int tabs[10]; static const ButTextAlign tabAligns[10] = {butText_right, butText_left, butText_left, butText_left, butText_right, butText_right, butText_right, butText_right, butText_right, butText_right}; int fontH; int physFontH = butEnv_fontH(butWin_env(win), 0); int slideW = (physFontH * 3)/2; int centerAdd; assert(MAGIC(gl)); fontH = gl->data->cg->fontH; w = butWin_w(win); h = butWin_h(win); but_resize(gl->bg, 0, 0, w, h); but_resize(gl->titleBox, bw*2 + slideW, bw*2, w - (bw*4 + slideW), fontH * 2); but_resize(gl->reload, bw*2, bw*2, slideW, fontH * 2); but_resize(gl->title, bw * 4 + slideW, bw * 2 + (fontH * 2 - physFontH) / 2, w - (bw * 8 + slideW), physFontH); abutSwin_resize(gl->swin, bw*2, bw*2 + fontH*2, w - bw*4, h - bw*4 - fontH*2, slideW, physFontH); butCan_resizeWin(gl->swin->win, 0, butList_len(gl->list) * physFontH + bw * 2, TRUE); centerAdd = (physFontH * 3 + 1) / 4; tabs[0] = (physFontH * 2) / 2; tabs[1] = (physFontH * 3) / 2; tabs[2] = (physFontH * 17) / 2; tabs[3] = (physFontH * 20) / 2; tabs[4] = (physFontH * 37) / 2; tabs[5] = (physFontH * 41) / 2; tabs[6] = (physFontH * 45) / 2; tabs[7] = (physFontH * 49) / 2; tabs[8] = (physFontH * 53) / 2; tabs[9] = (physFontH * 57) / 2; if (w < physFontH * 20 + bw * 8) tabs[4] += physFontH * 20; if (w < physFontH * 22 + bw * 8) tabs[5] += physFontH * 20; if (w < physFontH * 24 + bw * 8) tabs[6] += physFontH * 20; if (w < physFontH * 26 + bw * 8) tabs[7] += physFontH * 20; if (w < physFontH * 28 + bw * 8) tabs[8] += physFontH * 20; if (w < physFontH * 30 + bw * 8) tabs[9] += physFontH * 20; butList_setTabs(gl->title, tabs, tabAligns, 10); butList_setTabs(gl->list, tabs, tabAligns, 10); return(0); } static ButOut sResize(ButWin *win) { int w, h; AbutSwin *swin = butWin_packet(win); CliGameList *gl; int bw = butEnv_stdBw(butWin_env(win)); assert(MAGIC(swin)); gl = swin->packet; assert(MAGIC(gl)); w = butWin_w(win); h = butWin_h(win); but_resize(gl->sBg, 0, 0, w, h); butList_resize(gl->list, bw, bw, w - bw*2); return(0); } static ButOut destroy(ButWin *win) { CliGameList *gl = butWin_packet(win); Cgoban *cg = gl->data->cg; assert(MAGIC(gl)); clp_setInt(cg->clp, "client.games.w", (butWin_w(win) - butWin_getMinW(gl->win)) / butWin_getWStep(gl->win)); clp_setDouble(cg->clp, "client.games.h2", ((double)butWin_h(win) / (double)(butWin_getMinW(gl->win) + 6 * butWin_getWStep(gl->win)))); clp_setInt(cg->clp, "client.games.x", butWin_x(win)); clp_setInt(cg->clp, "client.games.y", butWin_y(win)); gl->win = NULL; return(0); } static void getListEl(CliGameList *gl, int gNum, Str *out) { switch(gl->games[gNum].state) { case cliGame_noGame: str_copyCharsLen(out, "", 0); break; case cliGame_over: str_print(out, "\t-\t%s [%s]\tvs.\t%s [%s]\t%d\t%d\t%d\t%g\t\t%s", str_chars(&gl->games[gNum].wName), str_chars(&gl->games[gNum].wRank), str_chars(&gl->games[gNum].bName), str_chars(&gl->games[gNum].bRank), gl->games[gNum].moveNum, gl->games[gNum].size, gl->games[gNum].handicap, gl->games[gNum].komi, str_chars(&gl->games[gNum].flags)); break; default: str_print(out, "\t%d\t%s [%s]\tvs.\t%s [%s]\t%d\t%d\t%d\t%g\t%s\t(%d)", gNum, str_chars(&gl->games[gNum].wName), str_chars(&gl->games[gNum].wRank), str_chars(&gl->games[gNum].bName), str_chars(&gl->games[gNum].bRank), gl->games[gNum].moveNum, gl->games[gNum].size, gl->games[gNum].handicap, gl->games[gNum].komi, str_chars(&gl->games[gNum].flags), gl->games[gNum].observers); break; } } void cliGameList_gameGone(CliGameList *gl, const char *buf, int bufLen) { int args, gameNum; Str gobanMessage, *winMsg; double bScore, wScore; CliBoard *board; GoStone winner = goStone_empty, loser; enum { adjourn, time, resign, score } endType; /* * 21 {Game 7: GoBot vs GoBot : Black resigns.} * 21 {Game 2: drwhat vs white : Black resigns. W 88.5 B 87.0} * 21 {Game 7: hunanren vs fine2 has adjourned.} * 21 {Game 34: waffle vs Benyu : W 55.5 B 72.0} * 21 {Game 36: ToLive vs bevin : Black forfeits on time.} * * Also found these. -DDN- * Note: It seems that IGS sends TWO messages at the end of a * request game. One of the next three, followed by an adjourn. * 21 {Game 37: otari* vs cleaner* : White lost by Resign} * 21 {Game 14: otari* vs ogre* : Black lost by 4.5} * 21 {Game 63: Okada* vs Girl* : Black lost by Time} */ args = sscanf(buf, "{Game %d", &gameNum); assert(args == 1); expandGames(gl, gameNum); cliPlayerList_playerInGame(gl->playerList, str_chars(&gl->games[gameNum].wName), -1); cliPlayerList_playerInGame(gl->playerList, str_chars(&gl->games[gameNum].bName), -1); /* Figure out exactly how the game ended. */ if (!strcmp(buf + bufLen - 10, " resigns.}")) { endType = resign; if (buf[bufLen - 11] == 'k') { winner = goStone_white; } else { assert(buf[bufLen - 11] == 'e'); winner = goStone_black; } /* Added to catch Resign in replayed games. -DDN- */ } else if (!strcmp(buf + bufLen - 16, " lost by Resign}")) { endType = resign; if (buf[bufLen - 17] == 'k') { winner = goStone_white; } else { assert(buf[bufLen - 17] == 'e'); winner = goStone_black; } } else if (!strcmp(buf + bufLen - 12, " adjourned.}")) { endType = adjourn; } else if (!strcmp(buf + bufLen - 19, " forfeits on time.}")) { endType = time; if (buf[bufLen - 20] == 'k') { winner = goStone_white; } else { assert(buf[bufLen - 20] == 'e'); winner = goStone_black; } /* Added to catch Time in replayed games. -DDN- */ } else if (!strcmp(buf + bufLen - 14, " lost by Time}")) { endType = time; if (buf[bufLen - 15] == 'k') { winner = goStone_white; } else { assert(buf[bufLen - 15] == 'e'); winner = goStone_black; } } else { endType = score; args = sscanf(buf, "{Game %*d: %*s vs %*s %*[^0-9]%lf B %lf", &wScore, &bScore); if (args != 2) { /* Check to see if it is the end of a replayed game. -DDN- */ char color[6]; args = sscanf(buf, "{Game %*d: %*s vs %*s : %5s lost by %lf", color, &bScore); if(args != 2) { if (!gl->elfBugReported) { gl->elfBugReported = TRUE; cgoban_createMsgWindow(gl->data->cg, "Cgoban Error", msg_gameBadElf); } return; } /* Set the score for the replayed game. -DDN- */ if (color[4] == 'k') { winner = goStone_white; wScore = bScore; bScore = 0.0; } else { assert(color[4] == 'e'); winner = goStone_black; wScore = 0.0; } } else if (wScore > bScore) { winner = goStone_white; } else { winner = goStone_black; } } /* Set up the flags field to describe the end of the game. */ if (gl->games[gameNum].state != cliGame_noGame) { winMsg = &gl->games[gameNum].flags; switch(endType) { case adjourn: str_copyChars(winMsg, "Adj."); break; case time: str_print(winMsg, "%c+Time", goStone_char(winner)); break; case resign: str_print(winMsg, "%c+Res.", goStone_char(winner)); break; case score: str_print(winMsg, "%c+%g", goStone_char(winner), fabs(wScore - bScore)); break; } gl->games[gameNum].state = cliGame_over; if (gl->win) { getListEl(gl, gameNum, &gl->data->cmdBuild); butList_changeLine(gl->list, gameNum - 1, str_chars(&gl->data->cmdBuild)); butList_setPress(gl->list, gameNum - 1, FALSE); } } if (gl->games[gameNum].board) { board = gl->games[gameNum].board; if (board->moveBlack || board->moveWhite) { board->moveBlack = FALSE; board->moveWhite = FALSE; but_setFlags(board->goban->save, BUT_NOPRESS); butCt_setText(board->goban->quit, msg_close); } str_init(&gobanMessage); loser = goStone_opponent(winner); switch(endType) { case resign: str_print(&gobanMessage, msg_gameGoneResign, msg_stoneNames[loser]); str_print(&board->result, msg_gameResultResign, board->game->maxMoves, msg_stoneNames[loser]); break; case adjourn: str_copyChars(&gobanMessage, msg_gameGoneAdjourn); str_print(&board->result, msg_gameResultAdjourn, board->game->maxMoves); break; case time: str_print(&gobanMessage, msg_gameGoneTime, msg_stoneNames[loser]); str_print(&board->result, msg_gameResultTime, board->game->maxMoves, msg_stoneNames[loser]); break; case score: str_print(&gobanMessage, msg_gameGoneScore, wScore, bScore, msg_stoneNames[winner]); if (wScore < bScore) { float temp; temp = wScore; wScore = bScore; bScore = temp; } str_print(&board->result, msg_gameResultScore, board->game->maxMoves, msg_stoneNames[winner], wScore, bScore); } if (gl->games[gameNum].board->goban->activeTimer != goStone_empty) goban_stopTimer(gl->games[gameNum].board->goban); goban_message(gl->games[gameNum].board->goban, str_chars(&gobanMessage)); cliBoard_update(board); str_deinit(&gobanMessage); gl->games[gameNum].board->destroy = NULL; gl->games[gameNum].board = NULL; } if (gameNum == gl->defaultGame) gl->defaultGame = -1; if (gameNum == gl->playGame) gl->playGame = -1; gl->games[gameNum].gamePressed = FALSE; } void cliGameList_gameStarts(CliGameList *gl, const char *buf) { int args, gameNum; args = sscanf(buf, "%*s %d", &gameNum); assert(args == 1); str_print(&gl->data->cmdBuild, "games %d\n", gameNum); cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); } void cliGameList_selectDead(CliGameList *gl, const char *buf) { CliGame *g; assert(MAGIC(gl)); assert(gl->playGame >= 0); g = &gl->games[gl->playGame]; if (g->board->gameEnd == g->board->sgf->active) { if (g->board->goban->activeTimer != goStone_empty) goban_stopTimer(g->board->goban); g->board->game->state = goGameState_selectDead; } g->board->gameEnded = TRUE; goban_update(g->board->goban); } /* This really should be in board.c, IMHO */ void cliGameList_deadStone(CliGameList *gl, const char *buf) { CliGame *g; char deadStone[5]; int args, oldMoveNum, loc; SgfElem *prevActive = NULL; GoBoardGroupIter group; assert(MAGIC(gl)); assert(gl->playGame >= 0); g = &gl->games[gl->playGame]; args = sscanf(buf, "Removing @ %s", deadStone); assert(args == 1); loc = goBoard_str2Loc(g->board->game->board, deadStone); if (g->board->gameEnd != g->board->sgf->active) { prevActive = g->board->sgf->active; g->board->sgf->active = g->board->gameEnd; g->board->sgf->mode = sgfInsert_main; } goBoardGroupIter(group, g->board->game->board, loc) { sgf_addStone(g->board->sgf, goStone_empty, goBoard_loc2Sgf(g->board->game->board, goBoardGroupIter_loc(group, g->board->game->board))); } g->board->gameEnd = g->board->sgf->active; if (prevActive != NULL) g->board->sgf->active = prevActive; if (g->board->onTrack) { if (g->board->game->moveNum < g->board->game->maxMoves) { oldMoveNum = g->board->game->moveNum; goGame_moveTo(g->board->game, g->board->game->maxMoves); if (g->board->goban->activeTimer != goStone_empty) goban_stopTimer(g->board->goban); g->board->game->state = goGameState_selectDead; goGame_markDead(g->board->game, loc); g->board->game->state = goGameState_play; goGame_moveTo(g->board->game, oldMoveNum); } else { goGame_markDead(g->board->game, loc); } } goban_update(g->board->goban); } void cliGameList_gotUndo(CliGameList *gl, const char *buf) { CliGame *g; int args, gameNum = -1; assert(MAGIC(gl)); args = sscanf(buf, "Undo in game %d", &gameNum); if (args == 0) { gameNum = gl->playGame; } else { assert(args == 1); } assert(gameNum >= 0); expandGames(gl, gameNum); g = &gl->games[gameNum]; if (g->board && (g->board->game->moveNum > 0)) { --g->board->lastMoveRead; if ((g->board->moveWhite || g->board->moveBlack) && gl->data->actions) { gl->data->actions->gotUndo(gl->data->packet); } while (g->board->gameEnd->type != sgfType_node) { g->board->gameEnd = g->board->gameEnd->parent; assert(g->board->gameEnd != NULL); } g->board->gameEnd = g->board->gameEnd->parent; assert(g->board->gameEnd != NULL); if (g->board->onTrack) { g->board->gameEnded = FALSE; if (g->board->game->moveNum == g->board->game->maxMoves) { goGame_moveTo(g->board->game, g->board->game->moveNum - 1); g->board->sgf->active = g->board->gameEnd; if (g->board->game->state > goGameState_play) { g->board->game->state = goGameState_play; } } --g->board->game->maxMoves; } goban_update(g->board->goban); } } static ButOut reload(But *but) { CliGameList *gl = but_packet(but); int i, newLen; bool lenChanged; assert(MAGIC(gl)); cliConn_send(&gl->data->conn, "games\n"); for (i = 0; i < gl->maxGames; ++i) { if (gl->games[i].state == cliGame_over) { gl->games[i].state = cliGame_noGame; butList_changeLine(gl->list, i - 1, ""); } } lenChanged = FALSE; for (newLen = butList_len(gl->list); (newLen > 1) && (gl->games[newLen].state == cliGame_noGame); --newLen) { lenChanged = TRUE; } if (lenChanged) { butList_setLen(gl->list, newLen); butCan_resizeWin(gl->swin->win, 0, newLen * butEnv_fontH(gl->data->cg->env, 0) + butEnv_stdBw(gl->data->cg->env) * 2, TRUE); } return(0); } static ButOut listPressed(But *but, int line) { CliGameList *gl; gl = but_packet(but); assert(MAGIC(gl)); ++line; assert((line > 0) && (line < gl->maxGames)); if (gl->games[line].state == cliGame_noGame) return(BUTOUT_ERR); if (gl->games[line].board) { XRaiseWindow(butEnv_dpy(gl->data->cg->env), butWin_xwin(gl->games[line].board->goban->win)); } else if (!gl->games[line].gamePressed) { gl->games[line].gamePressed = TRUE; str_print(&gl->data->cmdBuild, "observe %d\n", line); cliConn_send(&gl->data->conn, str_chars(&gl->data->cmdBuild)); } return(0); } bool cliGame_tellIsSay(CliGameList *list, Str *tell) { char tellerName[41]; int matches; if (list->playGame >= 0) { matches = sscanf(str_chars(tell), "*%40[^*]", tellerName); if (matches != 1) { if (!list->elfBugReported) { list->elfBugReported = TRUE; cgoban_createMsgWindow(list->data->cg, "Cgoban Error", msg_gameBadElf); } return(FALSE); } assert(matches == 1); if (!strcmp(str_chars(&list->games[list->playGame].wName), tellerName) || !strcmp(str_chars(&list->games[list->playGame].bName), tellerName)) { cliBoard_addKibitz(list->games[list->playGame].board, str_chars(tell)); return(TRUE); } } return(FALSE); } goban-1.1.orig/src/str.c0000644000175000017500000001721310270056713012722 0ustar alal/* * wmslib/src/wms/str.c, part of wmslib (Library functions) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include /********************************************************************** * Global variables **********************************************************************/ static char empty = '\0'; /********************************************************************** * Functions **********************************************************************/ Str *str_create(void) { Str *ret; ret = wms_malloc(sizeof(Str)); MAGIC_SET(ret); ret->len = ret->maxLen = 0; ret->chars = ∅ return(ret); } Str *str_createStr(const Str *s) { Str *ret; ret = wms_malloc(sizeof(Str)); MAGIC_SET(ret); ret->len = ret->maxLen = s->len; ret->chars = wms_malloc(ret->len + 1); strcpy(ret->chars, s->chars); assert(strlen(ret->chars) == ret->len); return(ret); } Str *str_createChars(const char *chars) { Str *ret; ret = wms_malloc(sizeof(Str)); MAGIC_SET(ret); ret->len = ret->maxLen = strlen(chars); ret->chars = wms_malloc(ret->len + 1); strcpy(ret->chars, chars); assert(strlen(ret->chars) == ret->len); return(ret); } Str *str_createChar(char c) { Str *ret; ret = wms_malloc(sizeof(Str)); MAGIC_SET(ret); ret->len = ret->maxLen = 1; ret->chars = wms_malloc(ret->len + 1); ret->chars[0] = c; ret->chars[1] = '\0'; assert(strlen(ret->chars) == ret->len); return(ret); } void str_destroy(Str *s) { assert(MAGIC(s)); if (s->chars != &empty) wms_free(s->chars); MAGIC_UNSET(s); wms_free(s); } void str_init(Str *s) { MAGIC_SET(s); s->len = s->maxLen = 0; s->chars = ∅ } void str_initStr(Str *s, const Str *src) { MAGIC_SET(s); s->len = s->maxLen = src->len; s->chars = wms_malloc(s->len + 1); strcpy(s->chars, src->chars); assert(strlen(s->chars) == s->len); } void str_initChars(Str *s, const char *src) { MAGIC_SET(s); s->len = s->maxLen = strlen(src); s->chars = wms_malloc(s->len + 1); strcpy(s->chars, src); assert(strlen(s->chars) == s->len); } void str_initCharsLen(Str *s, const char *src, int len) { assert(strlen(src) >= len); MAGIC_SET(s); s->len = s->maxLen = len; s->chars = wms_malloc(s->len + 1); strncpy(s->chars, src, len); s->chars[len] = '\0'; assert(strlen(s->chars) == s->len); } void str_deinit(Str *s) { assert(MAGIC(s)); if (s->chars != &empty) wms_free(s->chars); MAGIC_UNSET(s); } void str_copy(Str *dest, const Str *src) { char *newChars; assert(MAGIC(dest)); assert(MAGIC(src)); assert(strlen(src->chars) == src->len); if (src->len > dest->maxLen) { dest->maxLen = src->len * 2; newChars = wms_malloc(dest->maxLen + 1); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strcpy(dest->chars, src->chars); dest->len = src->len; assert(strlen(dest->chars) == dest->len); } void str_copyChars(Str *dest, const char *src) { int srcLen = strlen(src); char *newChars; assert(MAGIC(dest)); if (srcLen > dest->maxLen) { dest->maxLen = srcLen * 2; newChars = wms_malloc(dest->maxLen + 1); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strcpy(dest->chars, src); dest->len = srcLen; assert(strlen(dest->chars) == dest->len); } void str_copyCharsLen(Str *dest, const char *src, int srcLen) { char *newChars; assert(MAGIC(dest)); assert(strlen(src) >= srcLen); if (srcLen > dest->maxLen) { dest->maxLen = srcLen * 2; newChars = wms_malloc(dest->maxLen + 1); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strncpy(dest->chars, src, srcLen); dest->chars[dest->len = srcLen] = '\0'; assert(strlen(dest->chars) == dest->len); } void str_copyChar(Str *dest, char src) { char *newChars; assert(MAGIC(dest)); if (1 > dest->maxLen) { dest->maxLen = 32; newChars = wms_malloc(dest->maxLen + 1); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } dest->chars[0] = src; dest->chars[1] = '\0'; dest->len = 1; assert(src != '\0'); } void str_cat(Str *dest, const Str *src) { char *newChars; assert(MAGIC(dest)); assert(MAGIC(src)); assert(strlen(dest->chars) == dest->len); assert(strlen(src->chars) == src->len); if (dest->len + src->len > dest->maxLen) { dest->maxLen = (dest->len + src->len) * 2; newChars = wms_malloc(dest->maxLen + 1); strcpy(newChars, dest->chars); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strcpy(dest->chars + dest->len, src->chars); dest->len += src->len; assert(strlen(dest->chars) == dest->len); } void str_catChars(Str *dest, const char *src) { int srcLen = strlen(src); char *newChars; assert(MAGIC(dest)); assert(strlen(dest->chars) == dest->len); if (dest->len + srcLen > dest->maxLen) { dest->maxLen = (dest->len + srcLen) * 2; newChars = wms_malloc(dest->maxLen + 1); strcpy(newChars, dest->chars); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strcpy(dest->chars + dest->len, src); dest->len += srcLen; } void str_catCharsLen(Str *dest, const char *src, int srcLen) { char *newChars; assert(MAGIC(dest)); assert(strlen(dest->chars) == dest->len); assert(strlen(src) >= srcLen); if (dest->len + srcLen > dest->maxLen) { dest->maxLen = (dest->len + srcLen) * 2; newChars = wms_malloc(dest->maxLen + 1); strcpy(newChars, dest->chars); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; } strncpy(dest->chars + dest->len, src, srcLen); dest->len += srcLen; dest->chars[dest->len] = '\0'; } void str_catChar(Str *dest, char src) { char *newChars; assert(MAGIC(dest)); assert(strlen(dest->chars) == dest->len); if (dest->len + 1 > dest->maxLen) { dest->maxLen = (dest->len + 1) * 2; newChars = wms_malloc(dest->maxLen + 1); strcpy(newChars, dest->chars); if (dest->chars != &empty) wms_free(dest->chars); dest->chars = newChars; assert(strlen(dest->chars) == dest->len); } dest->chars[dest->len++] = src; dest->chars[dest->len] = '\0'; assert(strlen(dest->chars) == dest->len); } void str_catInt(Str *dest, int src) { char srcChars[SIZEOF_INT * 3 + 1]; assert(MAGIC(dest)); sprintf(srcChars, "%d", src); str_catChars(dest, srcChars); } void str_print(Str *dest, const char *fmt, ...) { va_list ap; char tmp[40]; static char tmpFmt[] = "%0xd"; double dval; const char *sVal; assert(MAGIC(dest)); str_copyChars(dest, ""); va_start(ap, fmt); while (*fmt) { if (*fmt != '%') str_catChar(dest, *fmt); else { ++fmt; switch(*fmt) { case '0': assert(fmt[2] == 'd'); tmpFmt[2] = fmt[1]; sprintf(tmp, tmpFmt, va_arg(ap, int)); str_catChars(dest, tmp); fmt += 2; break; case 'c': str_catChar(dest, (char)va_arg(ap, int)); break; case 'd': str_catInt(dest, va_arg(ap, int)); break; case 'g': dval = va_arg(ap, double); if ((int)dval == dval) { sprintf(tmp, "%d", (int)dval); } else { sprintf(tmp, "%.1f", dval); } str_catChars(dest, tmp); break; case 's': sVal = va_arg(ap, char *); assert(sVal != NULL); str_catChars(dest, sVal); break; default: str_catChar(dest, *fmt); break; } } ++fmt; } va_end(ap); } int str_alphaCmp(const void *a, const void *b) { const Str *sa = a, *sb = b; assert(MAGIC(sa)); assert(MAGIC(sb)); return(strcmp(sa->chars, sb->chars)); } goban-1.1.orig/src/radio.h0000644000175000017500000000126306046313403013211 0ustar alal/* * wmslib/src/but/radio.h, part of wmslib (Library functions) * Copyright (C) 1994-1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for radio.c */ #ifndef _BUT_RADIO_H_ #define _BUT_RADIO_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern But *butRadio_create(ButOut (*func)(But *but, int value), void *packet, ButWin *win, int layer, int flags, int val, int maxVal); extern int butRadio_get(But *but); extern void butRadio_set(But *but, int newVal, bool propagate); #endif /* _BUT_CHECKBOX_H_ */ goban-1.1.orig/src/goTime.h0000644000175000017500000000322610270070146013336 0ustar alal/* * src/gotime.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOTIME_H_ #define _GOTIME_H_ 1 #ifndef _WMS_STR_H_ #include #endif /********************************************************************** * Data types **********************************************************************/ typedef enum { goTime_none, goTime_absolute, goTime_japanese, goTime_canadian, goTime_ing } GoTimeType; typedef struct { GoTimeType type; int main; int by; int aux; } GoTime; typedef struct { int timeLeft, aux; int usLeft; struct timeval startTime; } GoTimer; /********************************************************************** * Functions **********************************************************************/ void goTime_str(int time, Str *out); int goTime_parseChars(const char *t, bool ignoreExtra, bool *err); void goTime_describeStr(const GoTime *time, Str *out); void goTime_parseDescribeChars(GoTime *time, const char *desc); void goTime_remainStr(const GoTime *time, const GoTimer *timer, Str *out); void goTimer_init(GoTimer *timer, const GoTime *time); void goTime_startTimer(const GoTime *time, GoTimer *timer); /* * goTime_checkTimer() and goTime_endTimer() return FALSE if you are out of * time. */ bool goTime_checkTimer(const GoTime *time, GoTimer *timer); bool goTime_endTimer(const GoTime *time, GoTimer *timer); int goTime_ingPenalty(const GoTime *time, const GoTimer *timer); #define goTime_out(tm, tmr) (((tm)->type != goTime_none) && \ ((tmr)->timeLeft < 0)) #endif /* _GOTIME_H_ */ goban-1.1.orig/src/login.c0000644000175000017500000001150410270070072013211 0ustar alal/* * src/client/login.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include "cgoban.h" #include "login.h" #include "msg.h" #include "conn.h" #include "main.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void cliLogin_dataIn(void *packet, const char *buf, int bufLen); static void mainDied(CliMain *main, void *packet); /********************************************************************** * Functions **********************************************************************/ CliLogin *cliLogin_create(CliData *cd, const char *user, const char *pass) { CliConn *conn; CliLogin *cl; Str errStr; XFontStruct *fs; cl = wms_malloc(sizeof(CliLogin)); MAGIC_SET(cl); cl->cd = cd; fs = butEnv_fontStr(cd->cg->env, 0); conn = cliConn_init(&cd->conn, cd->cg, cd->serverNum, cd->server, fs->min_char_or_byte2, fs->max_char_or_byte2, cliLogin_dataIn, cl); cd->connValid = TRUE; if (conn->err == cliConnErr_ok) { str_print(&cd->cmdBuild, msg_login, cd->serverName); cl->main = cliMain_create(cd, mainDied, cl); cliMain_message(cl->main, str_chars(&cd->cmdBuild)); cl->keepMainMessage = FALSE; cd->state = cliData_login; str_init(&cl->user); str_print(&cl->user, "%s\n", user); str_init(&cl->pass); str_print(&cl->pass, "%s\n", pass); cl->state = cliLogin_waitForUser; return(cl); } else { MAGIC_UNSET(cl); wms_free(cl); str_init(&errStr); switch(conn->err) { case cliConnErr_openSocket: str_print(&errStr, msg_cliOpenSocket, strerror(conn->errOut.errNum), cd->serverName); break; case cliConnErr_lookup: str_print(&errStr, msg_cliLookup, conn->errOut.serverName); break; case cliConnErr_connect: str_print(&errStr, msg_cliConnect, strerror(conn->errOut.errNum), cd->serverName); break; default: assert(0); break; } cgoban_createMsgWindow(cd->cg, "Cgoban Error", str_chars(&errStr)); str_deinit(&errStr); return(NULL); } } void cliLogin_destroy(CliLogin *cl, bool propagate) { assert(MAGIC(cl)); assert(MAGIC(cl->main)); str_deinit(&cl->user); str_deinit(&cl->pass); cl->main->destroyCallback = NULL; if (propagate && cl->cd->conn.loginMode) cliMain_destroy(cl->main); MAGIC_UNSET(cl); wms_free(cl); } static void cliLogin_dataIn(void *packet, const char *buf, int bufLen) { CliLogin *cl = packet; Str errStr; assert(MAGIC(cl)); assert(MAGIC(cl->cd)); assert(MAGIC(cl->cd->cg)); if (buf == NULL) { str_init(&errStr); str_print(&errStr, msg_cliHangup, cl->cd->serverName, strerror(bufLen)); abutMsg_winCreate(cl->cd->cg->abut, "Cgoban Error", str_chars(&errStr)); str_deinit(&errStr); cliLogin_destroy(cl, TRUE); return; } cliMain_log(cl->main, buf); cliMain_log(cl->main, "\n"); switch(cl->state) { case cliLogin_waitForUser: if (!strcmp(buf, "Login: ")) { cl->state = cliLogin_waitForPassword; cliConn_send(&cl->cd->conn, str_chars(&cl->user)); cliMain_log(cl->main, str_chars(&cl->user)); cliMain_log(cl->main, "\n"); } break; case cliLogin_waitForPassword: if (!strcmp(buf, "1 1") || !strcmp(buf, "Password: ")) { cl->state = cliLogin_waitForPrompt; if ((str_len(&cl->pass) == 0) && (cl->cd->server == cliServer_nngs)) { str_init(&errStr); str_print(&errStr, msg_notAGuest, str_chars(&cl->user)); cliMain_message(cl->main, str_chars(&errStr)); str_deinit(&errStr); cliLogin_destroy(cl, TRUE); return; } else { cliConn_send(&cl->cd->conn, str_chars(&cl->pass)); cliMain_log(cl->main, "******\n"); } } else if (!strcmp(buf, "#> ")) { cliConn_send(&cl->cd->conn, "toggle client 1\n"); cliMain_message(cl->main, msg_guest); cl->state = cliLogin_waitForPrompt; cl->keepMainMessage = TRUE; } break; case cliLogin_waitForPrompt: if (!strcmp(buf, "Login: ")) { cliMain_message(cl->main, msg_loginFailed); cliLogin_destroy(cl, TRUE); return; } else if (!strcmp(buf, "#> ")) { cliConn_send(&cl->cd->conn, "toggle client 1\n"); cliMain_log(cl->main, "toggle client 1\n"); } else if (!strcmp(buf, "1 5")) { if (!cl->keepMainMessage) cliMain_clearMessage(cl->main); cliMain_activate(cl->main); cliLogin_destroy(cl, TRUE); } break; } } static void mainDied(CliMain *main, void *packet) { CliLogin *login = packet; assert(MAGIC(login)); cliLogin_destroy(login, FALSE); } goban-1.1.orig/src/tbin.c0000644000175000017500000016600310270071261013043 0ustar alal/* * wmslib/src/but/tbin.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ /* * This is absolutely huge and disgusting. It is no longer a cute little * button. It has grown into a monstrosity. Some day I will break it off, * make it into its own module, that reads configuration files, etc. * Then it will be cool! Then it will be its own work processor, and I * will just have to wrap a few extra buttons around it to have my very * own beautiful wysiwyg word processor/editor! Yay! */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #include #include #include #include #include /********************************************************************** * Constants **********************************************************************/ #define MAX_PASTE (64*1024) /********************************************************************** * Data types **********************************************************************/ typedef enum { insert_none, insert_ok, insert_cr, insert_bad } Insert; typedef enum { break_loCur, break_eoLoCur, break_eol } BreakType; typedef struct Loc_struct { int tin, index; } Loc; typedef struct Tin_struct { int start, len; int width; /* In pixels. */ } Tin; typedef enum { tbin_loCur, tbin_hiCur, tbin_mouse, tbin_press } TbinLoc; #define tbin_numLocs (tbin_press + 1) #define tbinLoc_iter(i) for (i = 0; i < tbin_numLocs; ++i) typedef struct Tbin_struct { ButTimer *cTimer; int mouseX; Loc locs[tbin_numLocs]; bool mouseInBut; int clicks, prevClickNum; bool cursorVisible; bool readOnly; int lMargin, rMargin; int maxLines; /* If you exceed this, chop off the top. */ int numTins, maxTins, loTinBreak, hiTinBreak; Tin *tins; int bufLen, loBreak, hiBreak; char *buf; void (*offWinCallback)(But *but, int activeLine, int passiveLine, int mouseY); MAGIC_STRUCT } Tbin; static But *cut_butnum = NULL; static But *paste_butnum = NULL; /********************************************************************** * Forward declarations **********************************************************************/ static int locateMouse(XFontStruct *fs, const char *text, int textLen, int x, bool *rightSide); static void ti_cursor(But *but); static void ti_redrawCursor(But *but); static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static ButOut kpress(But *but, const char *keystr, KeySym sym); static void draw(But *but, int x,int y, int w,int h); static ButOut destroy(But *but); static Insert insert(ButEnv *env, const char *src, Tbin *but, int butW, bool *changePrev); static void cut(ButEnv *env, But *but); static void paste(ButEnv *env, But *but); static void enableCTimer(But *but); static void disableCTimer(But *but); static bool sreq(ButEnv *env, XSelectionRequestEvent *xsre); static int sclear(ButEnv *env); static int snotify(ButEnv *env, XSelectionEvent *xsre); static void flags(But *but, uint flags); static void wordsel_adjust(Tbin *tbin); static void tin_draw(But *but, Tbin *tb, int tinNum, int x, int y, int w, int h); static int calcTinNum(But *but, Tbin *tbin, int y); static void setMouseX(But *but, Tbin *tbin, int tin, int loc); static void checkOffWin(But *but, int mouseY, bool force); #define tinNum_next(tn, tb) (((tn)+1 == (tb)->loTinBreak) ? \ (tb)->hiTinBreak:(tn)+1) #define tinNum_prev(tn, tb) (((tn) == (tb)->hiTinBreak) ? \ (tb)->loTinBreak-1:(tn)-1) #define tinNum_line(tn, tb) ((tn) >= (tb)->loTinBreak ? \ (tn) + (tb)->loTinBreak - (tb)->hiTinBreak : \ (tn)) #define tinNum_line2TinNum(l, tb) \ ((l) >= (tb)->loTinBreak ? \ (l) + (tb)->hiTinBreak - (tb)->loTinBreak : \ (l)) #define tinNum_valid(tn, tb) (((tn) >= 0) && ((tn) < (tb)->maxTins) && \ (((tn) < (tb)->loTinBreak) || \ ((tn) >= (tb)->hiTinBreak))) #define loc_valid(l, tb) (tinNum_valid((l).tin, (tb)) && \ ((l).index >= 0) && \ ((l).index <= (tb)->tins[(l).tin].len)) #define loc_eq(a, b) (((a).index == (b).index) && ((a).tin == (b).tin)) static void adjustBreak(Tbin *tb, BreakType bType, int breakTin); static void addMoreBufferSpace(Tbin *tb); static void addMoreTins(Tbin *tb); static void breakLine(Tbin *tb, int tinNum, ButEnv *env, int butW); static int calcTinWidth(Tin *tin, const char *buf, ButEnv *env); static bool tryJoinLines(Tbin *tb, int tinNum, ButEnv *env, int butW); static bool resize(But *but, int oldX, int oldY, int oldW, int oldH); static void killTopLines(Tbin *tb, int lines); static void setLoc(Tbin *tb, TbinLoc locNum, int position); /********************************************************************** * Global variables **********************************************************************/ static ButAction action = { mmove, mleave, mpress, mrelease, kpress, NULL, draw, destroy, flags, NULL, resize}; But *butTbin_create(ButWin *win, int layer, int flags, const char *text) { But *but; Tbin *tb; TbinLoc tbinLoc; tb = wms_malloc(sizeof(Tbin)); MAGIC_SET(tb); but = but_create(win, tb, &action); but->layer = layer; but->flags = flags; if (text == NULL) text = ""; tb->cTimer = NULL; tb->mouseX = -1; tbinLoc_iter(tbinLoc) { tb->locs[tbinLoc].tin = 0; tb->locs[tbinLoc].index = 0; } tb->mouseInBut = FALSE; tb->clicks = tb->prevClickNum = 0; tb->cursorVisible = FALSE; tb->readOnly = FALSE; tb->lMargin = tb->rMargin = butEnv_stdBw(win->env); tb->maxLines = -1; tb->numTins = 1; tb->maxTins = 2; tb->tins = wms_malloc(tb->maxTins * sizeof(Tin)); tb->bufLen = 4 * 1024; tb->loBreak = 0; tb->hiBreak = tb->bufLen; tb->buf = wms_malloc(tb->bufLen); butTbin_set(but, text); tb->offWinCallback = NULL; return(but); } const char *butTbin_get(But *but) { Tbin *tb = but->iPacket; assert(but->action == &action); assert(MAGIC(tb)); adjustBreak(tb, break_eol, tinNum_prev(tb->maxTins, tb)); if (tb->loBreak == tb->hiBreak) addMoreBufferSpace(tb); tb->buf[tb->loBreak] = '\0'; return(tb->buf); } int butTbin_numLines(But *but) { Tbin *tbin = but->iPacket; assert(MAGIC(tbin)); return(tbin->numTins); } void butTbin_setOffWinCallback(But *but, void (*func)(But *but, int activeLine, int passiveLine, int mouseY)) { Tbin *tbin; assert(MAGIC(but)); tbin = but->iPacket; assert(MAGIC(tbin)); tbin->offWinCallback = func; } static ButOut destroy(But *but) { Tbin *tb = but->iPacket; ButEnv *env = but->win->env; assert(but->action == &action); assert(MAGIC(tb)); if (cut_butnum == but) { if (env->sClear == sclear) env->sClear = NULL; if (env->sReq == sreq) env->sReq = NULL; cut_butnum = NULL; } if (paste_butnum == but) { if (env->sNotify == snotify) env->sNotify = NULL; paste_butnum = NULL; } wms_free(tb->tins); wms_free(tb->buf); MAGIC_UNSET(tb); wms_free(tb); return(0); } static void draw(But *but, int x,int y, int w,int h) { Tbin *tb = but->iPacket; ButEnv *env = but->win->env; int fontH, i, startLine; int tinY; assert(but->action == &action); assert(MAGIC(tb)); fontH = butEnv_fontH(env, 0); XSetFont(env->dpy, env->gc, env->fonts[0]->fid); startLine = (y - fontH + 1 - but->y) / fontH; if (startLine < 0) startLine = 0; tinY = but->y + startLine * fontH; for (i = tinNum_line2TinNum(startLine, tb); (i < tb->maxTins) && (tinY < y + h); i = tinNum_next(i, tb)) { tin_draw(but, tb, i, but->x, tinY, but->w, fontH); tinY += fontH; } } static void tin_draw(But *but, Tbin *tb, int tinNum, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; Tin *ti = &tb->tins[tinNum]; XFontStruct *fs = env->fonts[0]; int loCur, hiCur; int blockL, blockW; butEnv_setXFg(env, BUT_FG); if (tb->locs[tbin_loCur].tin < tinNum) { loCur = -1; } else if (tb->locs[tbin_loCur].tin == tinNum) { loCur = tb->locs[tbin_loCur].index; } else { loCur = ti->len + 1; } if (tb->locs[tbin_hiCur].tin < tinNum) { hiCur = -1; } else if (tb->locs[tbin_hiCur].tin == tinNum) { hiCur = tb->locs[tbin_hiCur].index; } else { hiCur = ti->len + 1; } if (loCur != hiCur) { blockW = 0; assert(hiCur >= 0); if (loCur == -1) { if (hiCur == 0) blockL = x + tb->lMargin; else { blockL = x; blockW += tb->lMargin; } } else { assert((loCur >= 0) && (loCur <= ti->len)); blockL = x + tb->lMargin + XTextWidth(fs, tb->buf + ti->start, loCur); } if (hiCur <= ti->len) { blockW += XTextWidth(fs, tb->buf + ti->start + loCur, hiCur - loCur); } else { assert(hiCur == ti->len + 1); if (loCur == 0) blockL = x; blockW = w - blockL; } butEnv_setXFg(env, BUT_SELBG); XFillRectangle(env->dpy, win->win, env->gc, blockL-win->xOff, y-win->yOff, blockW, h); butEnv_setXFg(env, BUT_FG); } XDrawString(env->dpy, win->win, env->gc, x + tb->lMargin - win->xOff, y + fs->ascent - win->yOff, tb->buf + ti->start, ti->len); if (!(but->flags & BUT_PRESSABLE)) { butEnv_stdFill2(env); } if ((tb->locs[tbin_loCur].tin == tinNum) && (loCur == hiCur) && tb->cursorVisible && (but->flags & BUT_PRESSABLE)) ti_cursor(but); } static ButOut mmove(But *but, int x, int y) { Tbin *tb = but->iPacket; Tin *ti; int tinNum; ButWin *win = but->win; ButEnv *env = win->env; int newMousePress; bool rightSide; int oldLoTin = tb->locs[tbin_loCur].tin, oldLo = tb->locs[tbin_loCur].index; int oldHiTin = tb->locs[tbin_hiCur].tin, oldHi = tb->locs[tbin_hiCur].index; if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); if (!tb->mouseInBut) { tb->mouseInBut = TRUE; butEnv_setCursor(env, but, butCur_text); } tinNum = calcTinNum(but, tb, y); if ((tinNum >= 0) && (tinNum < tb->maxTins)) ti = &tb->tins[tinNum]; else ti = NULL; switch(tb->clicks) { case(0): break; case(1): case(2): if (ti) { if (y < but->y) { newMousePress = 0; rightSide = FALSE; } else newMousePress = locateMouse(env->fonts[0], tb->buf + ti->start, ti->len, x - (but->x+tb->lMargin), &rightSide); if (rightSide && (newMousePress == ti->len) && ((tinNum > tb->locs[tbin_press].tin) || ((tinNum == tb->locs[tbin_press].tin) && (tb->locs[tbin_press].index < newMousePress)))) { tinNum = tinNum_next(tinNum, tb); newMousePress = 0; if (tinNum >= tb->maxTins) { tinNum = tinNum_prev(tb->maxTins, tb); ti = NULL; } else { ti = &tb->tins[tinNum]; } } } else { newMousePress = 0; rightSide = FALSE; } if (ti && (tb->clicks == 2)) { if (rightSide && ((tinNum > tb->locs[tbin_press].tin) || ((tinNum == tb->locs[tbin_press].tin) && (newMousePress >= tb->locs[tbin_press].index))) && (newMousePress < ti->len) && (newMousePress > 0)) ++newMousePress; else if (!rightSide && ((tinNum < tb->locs[tbin_press].tin) || ((tinNum == tb->locs[tbin_press].tin) && (newMousePress <= tb->locs[tbin_press].index))) && (newMousePress > 0)) --newMousePress; } if ((newMousePress != tb->locs[tbin_mouse].index) || (tinNum != tb->locs[tbin_mouse].tin)) { tb->locs[tbin_mouse].index = newMousePress; tb->locs[tbin_mouse].tin = tinNum; assert(loc_valid(tb->locs[tbin_mouse], tb)); if ((tb->locs[tbin_mouse].tin < tb->locs[tbin_press].tin) || ((tb->locs[tbin_mouse].tin == tb->locs[tbin_press].tin) && (tb->locs[tbin_mouse].index < tb->locs[tbin_press].index))) { tb->locs[tbin_loCur] = tb->locs[tbin_mouse]; tb->locs[tbin_hiCur] = tb->locs[tbin_press]; } else { tb->locs[tbin_loCur] = tb->locs[tbin_press]; tb->locs[tbin_hiCur] = tb->locs[tbin_mouse]; } if (tb->clicks == 2) { wordsel_adjust(tb); } } break; case(3): /* Triple-click. */ tb->locs[tbin_mouse].tin = tinNum; tb->locs[tbin_mouse].index = 0; tb->locs[tbin_loCur].index = tb->locs[tbin_hiCur].index = 0; if (tb->locs[tbin_mouse].tin < tb->locs[tbin_press].tin) { tb->locs[tbin_loCur].tin = tb->locs[tbin_mouse].tin; tb->locs[tbin_hiCur].tin = tb->locs[tbin_press].tin; } else { tb->locs[tbin_loCur].tin = tb->locs[tbin_press].tin; tb->locs[tbin_hiCur].tin = tb->locs[tbin_mouse].tin; } if (tinNum_next(tb->locs[tbin_hiCur].tin, tb) < tb->maxTins) { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); } else tb->locs[tbin_hiCur].index = tb->tins[tb->locs[tbin_hiCur].tin].len; assert(loc_valid(tb->locs[tbin_mouse], tb)); break; default: assert(tb->clicks == 4); tb->locs[tbin_mouse].tin = tinNum; assert(loc_valid(tb->locs[tbin_mouse], tb)); break; } if (tb->clicks) { /* * We cannot call this if no clicks. Why? Because with no clicks, we * _could_ be doing a resize (due to a new line being added). * Resize calls mmove, which would call checkOffWin, which calls * resize, etc...boom! * Even this is a bit hairy. */ checkOffWin(but, y, TRUE); } if ((tb->locs[tbin_loCur].tin != oldLoTin) || (tb->locs[tbin_loCur].index != oldLo) || (tb->locs[tbin_hiCur].tin != oldHiTin) || (tb->locs[tbin_hiCur].index != oldHi)) but_draw(but); return(BUTOUT_CAUGHT); } static ButOut mleave(But *but) { Tbin *tb = but->iPacket; if (tb->mouseInBut) { tb->mouseInBut = FALSE; butEnv_setCursor(but->win->env, but, butCur_idle); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { Tbin *tb = but->iPacket; Tin *ti; ButEnv *env = but->win->env; static Time lastPressTime = -1; static int lastPressNum = -2; int rightSide; if (tb->cTimer) { butTimer_reset(tb->cTimer); tb->cursorVisible = TRUE; } tb->locs[tbin_mouse].tin = calcTinNum(but, tb, y); if ((tb->locs[tbin_mouse].tin >= 0) && (tb->locs[tbin_mouse].tin < tb->maxTins)) { ti = &tb->tins[tb->locs[tbin_mouse].tin]; if (y < but->y) { tb->locs[tbin_mouse].index = 0; rightSide = FALSE; } else tb->locs[tbin_mouse].index = locateMouse(env->fonts[0], tb->buf + ti->start, ti->len, x - (but->x+tb->lMargin), &rightSide); } else { ti = NULL; tb->locs[tbin_mouse].index = 0; } switch (butnum) { case 1: /* Button 1 selects, drags, etc. */ assert(loc_valid(tb->locs[tbin_mouse], tb)); tb->locs[tbin_loCur] = tb->locs[tbin_hiCur] = tb->locs[tbin_press] = tb->locs[tbin_mouse]; if (!tb->readOnly && !(but->flags & BUT_KEYED)) but_newFlags(but, but->flags | BUT_KEYED); but_newFlags(but, but->flags | BUT_LOCKED); if ((lastPressTime + BUT_DCLICK > env->eventTime) && (lastPressNum + 1 == env->eventNum)) { tb->clicks = tb->prevClickNum; if (tb->clicks == 1) { /* It's a double click! */ ++tb->clicks; if (rightSide) ++tb->locs[tbin_hiCur].index; else --tb->locs[tbin_loCur].index; wordsel_adjust(tb); } else if (tb->clicks == 2) { /* It's a triple click! */ ++tb->clicks; tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur].index = 0; if (tinNum_next(tb->locs[tbin_mouse].tin, tb) < tb->maxTins) tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); } else if (tb->clicks == 3) { /* Quadruple click! Mark everything! */ ++tb->clicks; tb->locs[tbin_loCur].tin = 0; tb->locs[tbin_hiCur].tin = tinNum_prev(tb->maxTins, tb); tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur].index = tb->tins[tb->locs[tbin_hiCur].tin].len; } else { /* Pentuple click! Restart! */ tb->clicks = 1; } } else { tb->clicks = 1; } lastPressTime = env->eventTime; lastPressNum = env->eventNum; but_draw(but); break; case 2: /* Paste! */ if (tb->readOnly) return(BUTOUT_ERR); else paste(env, but); break; default: /* * Weird. I don't know what to do with mice with more than 3 buttons * so I guess I might as well beep. I like beeping. */ return(BUTOUT_ERR); break; } checkOffWin(but, y, TRUE); return(BUTOUT_CAUGHT); } static ButOut mrelease(But *but, int butnum, int x, int y) { Tbin *tb = but->iPacket; if (tb->cTimer) { butTimer_reset(tb->cTimer); tb->cursorVisible = TRUE; } if ((butnum == 1) && tb->clicks) { tb->prevClickNum = tb->clicks; tb->clicks = 0; if ((tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin) || (tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index)) { cut(but->win->env, but); } but_newFlags(but, but->flags & ~BUT_LOCKED); } checkOffWin(but, y, TRUE); return(BUTOUT_CAUGHT); } static ButOut kpress(But *but, const char *newtext, KeySym keysym) { Tbin *tb = but->iPacket; ButEnv *env = but->win->env; bool need_draw = FALSE; ButOut result = 0; bool clearMouseX = TRUE; int drawLo = tb->locs[tbin_loCur].tin, drawHi = tb->locs[tbin_hiCur].tin; Insert insertResult = insert_none; bool changePrev = FALSE; assert(but->flags & BUT_KEYED); butTimer_reset(tb->cTimer); tb->cursorVisible = TRUE; if (((keysym >= XK_KP_Space) && (keysym <= XK_KP_9)) || ((keysym >= XK_space) && (keysym <= XK_ydiaeresis))) { need_draw = TRUE; switch(newtext[0]) { case '\001': /* Ctrl-A: Beginning of line. */ tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; break; case '\020': /* Ctrl-P: Up a line. */ clearMouseX = FALSE; if (tb->locs[tbin_loCur].tin == 0) { if (tb->locs[tbin_loCur].index || tb->locs[tbin_hiCur].index || tb->locs[tbin_hiCur].tin) { tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else { need_draw = FALSE; result |= BUTOUT_ERR; } } else { if (tb->mouseX == -1) setMouseX(but, tb, tb->locs[tbin_loCur].tin, tb->locs[tbin_loCur].index); tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = locateMouse(env->fonts[0], tb->buf + tb->tins[tb->locs[tbin_loCur].tin].start, tb->tins[tb->locs[tbin_loCur].tin].len, tb->mouseX, NULL); tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } break; case '\016': /* Ctrl-N: Down a line. */ clearMouseX = FALSE; if (tinNum_next(tb->locs[tbin_hiCur].tin, tb) == tb->maxTins) { if (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin) { tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } else { need_draw = FALSE; result |= BUTOUT_ERR; } } else { if (tb->mouseX == -1) setMouseX(but, tb, tb->locs[tbin_hiCur].tin, tb->locs[tbin_hiCur].index); tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = locateMouse(env->fonts[0], tb->buf + tb->tins[tb->locs[tbin_hiCur].tin].start, tb->tins[tb->locs[tbin_hiCur].tin].len, tb->mouseX, NULL); tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } break; case '\002': /* Ctrl-B: Back a character. */ if ((tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin) || (tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index)) { tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; need_draw = TRUE; } else if (tb->locs[tbin_loCur].index) { tb->locs[tbin_hiCur].index = --tb->locs[tbin_loCur].index; } else if (tb->locs[tbin_loCur].tin) { tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = tb->tins[tb->locs[tbin_loCur].tin].len; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else { need_draw = FALSE; result |= BUTOUT_ERR; } break; case '\004': /* Ctrl-D: Delete right. */ if ((tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index) || (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin)) { insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else if (tinNum_next(tb->locs[tbin_loCur].tin, tb) < tb->maxTins) { if (tb->locs[tbin_loCur].index < tb->tins[tb->locs[tbin_loCur].tin].len) ++tb->locs[tbin_hiCur].index; else if (tb->buf[tb->loBreak - 1] == '\n') { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = 0; } else { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = 1; } insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else result |= BUTOUT_ERR; break; case '\005': /* Ctrl-E: End of line. */ tb->locs[tbin_hiCur].index = tb->tins[tb->locs[tbin_hiCur].tin].len; tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; break; case '\006': /* Ctrl-F: Forward a character. */ need_draw = TRUE; if ((tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin) || (tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index)) { tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } else if (tb->locs[tbin_loCur].index < tb->tins[tb->locs[tbin_loCur].tin].len) { tb->locs[tbin_hiCur].index = ++tb->locs[tbin_loCur].index; } else if (tinNum_next(tb->locs[tbin_loCur].tin, tb) < tb->maxTins) { tb->locs[tbin_loCur].tin = tinNum_next(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else { result |= BUTOUT_ERR; need_draw = FALSE; } break; case '\013': /* Ctrl-K: Kill to end of line. */ need_draw = TRUE; if ((tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index) || (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin)) insertResult = insert(env, "", tb, but->w, &changePrev); else if (tinNum_next(tb->locs[tbin_loCur].tin, tb) < tb->maxTins) { if (tb->locs[tbin_loCur].index == tb->tins[tb->locs[tbin_loCur].tin].len) { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_hiCur].index = 0; } else { tb->locs[tbin_hiCur].tin = tb->locs[tbin_loCur].tin; tb->locs[tbin_hiCur].index = tb->tins[tb->locs[tbin_loCur].tin].len; } insertResult = insert(env, "", tb, but->w, &changePrev); } else { result |= BUTOUT_ERR; need_draw = FALSE; } break; case '\025': /* Ctrl-U: Kill from beginning of line. */ if ((tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index) || (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin)) insertResult = insert(env, "", tb, but->w, &changePrev); else if (tb->locs[tbin_loCur].index > 0) { tb->locs[tbin_hiCur].index = 0; tb->locs[tbin_hiCur].tin = tb->locs[tbin_loCur].tin; insertResult = insert(env, "", tb, but->w, &changePrev); } else { result |= BUTOUT_ERR; need_draw = FALSE; } break; default: insertResult = insert(env, newtext, tb, but->w, &changePrev); break; } } else if ((keysym >= XK_Shift_L) && (keysym <= XK_Hyper_R)) { } else if ((keysym >= XK_F1) && (keysym <= XK_F35)) { insertResult = insert(env, newtext, tb, but->w, &changePrev); } else if ((keysym == XK_BackSpace) || (keysym == XK_Delete)) { if ((tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index) || (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin)) { insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else if (tb->locs[tbin_loCur].index > 0) { --tb->locs[tbin_loCur].index; insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else if (tb->locs[tbin_loCur].tin > 0) { if (tb->buf[tb->tins[tb->locs[tbin_loCur].tin].start - 1] == '\n') { tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = tb->tins[tb->locs[tbin_loCur].tin].len; } else { tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = tb->tins[tb->locs[tbin_loCur].tin].len - 1; } insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else result |= BUTOUT_ERR; #if 0 /* People don't like my delete. :-( */ } else if (keysym == XK_Delete) { if ((tb->locs[tbin_loCur].index != tb->locs[tbin_hiCur].index) || (tb->locs[tbin_loCur].tin != tb->locs[tbin_hiCur].tin)) { insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else if (tinNum_next(tb->locs[tbin_loCur].tin, tb) < tb->maxTins) { if (tb->locs[tbin_loCur].index < tb->tins[tb->locs[tbin_loCur].tin].len) ++tb->locs[tbin_hiCur].index; else if (tb->buf[tb->loBreak - 1] == '\n') { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = 0; } else { tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = 1; } insertResult = insert(env, "", tb, but->w, &changePrev); need_draw = TRUE; } else result |= BUTOUT_ERR; #endif } else if (keysym == XK_Left) { need_draw = TRUE; if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) { tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else if (tb->locs[tbin_loCur].index) { tb->locs[tbin_hiCur].index = --tb->locs[tbin_loCur].index; } else if (tb->locs[tbin_loCur].tin) { tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = tb->tins[tb->locs[tbin_loCur].tin].len; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else result |= BUTOUT_ERR; } else if (keysym == XK_Right) { need_draw = TRUE; if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) { tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } else if (tb->locs[tbin_loCur].index < tb->tins[tb->locs[tbin_loCur].tin].len) { tb->locs[tbin_hiCur].index = ++tb->locs[tbin_loCur].index; } else if (tinNum_next(tb->locs[tbin_loCur].tin, tb) < tb->maxTins) { tb->locs[tbin_loCur].tin = tinNum_next(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = 0; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } else result |= BUTOUT_ERR; } else if (keysym == XK_Up) { clearMouseX = FALSE; if (tb->locs[tbin_loCur].tin == 0) { if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) { tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; need_draw = TRUE; } else result |= BUTOUT_ERR; } else { if (tb->mouseX == -1) setMouseX(but, tb, tb->locs[tbin_loCur].tin, tb->locs[tbin_loCur].index); tb->locs[tbin_loCur].tin = tinNum_prev(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = locateMouse(env->fonts[0], tb->buf + tb->tins[tb->locs[tbin_loCur]. tin].start, tb->tins[tb->locs[tbin_loCur]. tin].len, tb->mouseX, NULL); tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; need_draw = TRUE; } } else if (keysym == XK_Down) { clearMouseX = FALSE; assert(loc_valid(tb->locs[tbin_loCur], tb)); assert(loc_valid(tb->locs[tbin_hiCur], tb)); if (tinNum_next(tb->locs[tbin_hiCur].tin, tb) == tb->maxTins) { if (loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) result |= BUTOUT_ERR; else { tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } } else { if (tb->mouseX == -1) setMouseX(but, tb, tb->locs[tbin_hiCur].tin, tb->locs[tbin_hiCur].index); tb->locs[tbin_hiCur].tin = tinNum_next(tb->locs[tbin_hiCur].tin, tb); tb->locs[tbin_hiCur].index = locateMouse(env->fonts[0], tb->buf + tb->tins[tb->locs[tbin_hiCur].tin].start, tb->tins[tb->locs[tbin_hiCur].tin].len, tb->mouseX, NULL); tb->locs[tbin_loCur] = tb->locs[tbin_hiCur]; } need_draw = TRUE; } else if ((keysym == XK_Return) || (keysym == XK_Linefeed) || (keysym == XK_KP_Enter)) { insertResult = insert(env, "\n", tb, but->w, &changePrev); } else { result |= BUTOUT_ERR; } /* Void all mouse movement until it is pressed again. */ if (tb->clicks) { tb->clicks = 0; if (but->flags & BUT_LOCKED) but_newFlags(but, but->flags & ~BUT_LOCKED); } if (need_draw || (insertResult != insert_none)) { result |= BUTOUT_CAUGHT; if (tb->locs[tbin_loCur].tin < drawLo) drawLo = tb->locs[tbin_loCur].tin; if (tb->locs[tbin_hiCur].tin > drawHi) drawHi = tb->locs[tbin_hiCur].tin; if (changePrev && drawLo) { drawLo = tinNum_prev(drawLo, tb); } drawLo = tinNum_line(drawLo, tb) * butEnv_fontH(env, 0); if (insertResult == insert_cr) drawHi = but->h; else drawHi = (tinNum_line(drawHi, tb) + 1) * butEnv_fontH(env, 0); if (drawLo < but->h) { if (drawHi > but->h) drawHi = but->h; butWin_redraw(but->win, but->x,but->y+drawLo, but->w,drawHi - drawLo); } } if (clearMouseX) tb->mouseX = -1; if (insertResult == insert_bad) result |= BUTOUT_ERR; checkOffWin(but, 0, FALSE); return(result); } static Insert insert(ButEnv *env, const char *src, Tbin *tb, int butW, bool *drawLo) { int i, len, loTinWidthCheck; Insert result = insert_ok; bool lineBroken, dummy; if (drawLo == NULL) drawLo = &dummy; butW -= tb->lMargin + tb->rMargin; assert(tb->loTinBreak <= tb->hiTinBreak); assert(loc_valid(tb->locs[tbin_loCur], tb)); assert(loc_valid(tb->locs[tbin_hiCur], tb)); assert(tb->maxTins == tb->numTins + tb->hiTinBreak - tb->loTinBreak); adjustBreak(tb, break_loCur, 0); assert(tb->tins[tb->locs[tbin_loCur].tin].start + tb->locs[tbin_loCur].index == tb->loBreak); assert(loc_valid(tb->locs[tbin_loCur], tb)); assert(loc_valid(tb->locs[tbin_hiCur], tb)); assert(tb->maxTins == tb->numTins + tb->hiTinBreak - tb->loTinBreak); if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) { /* * Cut out any deleted text. */ assert(loc_valid(tb->locs[tbin_mouse], tb)); assert(loc_valid(tb->locs[tbin_press], tb)); if (tb->locs[tbin_hiCur].tin != tb->locs[tbin_loCur].tin) { result = insert_cr; i = tb->locs[tbin_hiCur].tin + 1 - tb->hiTinBreak; tb->numTins -= i, tb->hiTinBreak += i; } tb->tins[tb->locs[tbin_loCur].tin].len = tb->locs[tbin_loCur].index + tb->tins[tb->locs[tbin_hiCur].tin].len - tb->locs[tbin_hiCur].index; if (tb->locs[tbin_loCur].tin == tb->locs[tbin_hiCur].tin) { tb->hiBreak += tb->locs[tbin_hiCur].index - tb->locs[tbin_loCur].index; } else tb->hiBreak = tb->tins[tb->locs[tbin_hiCur].tin].start + tb->locs[tbin_hiCur].index; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; if (!loc_valid(tb->locs[tbin_mouse], tb)) tb->locs[tbin_mouse] = tb->locs[tbin_loCur]; if (!loc_valid(tb->locs[tbin_press], tb)) tb->locs[tbin_press] = tb->locs[tbin_loCur]; } assert(tb->tins[tb->locs[tbin_loCur].tin].start + tb->locs[tbin_loCur].index == tb->loBreak); assert(tb->loTinBreak <= tb->hiTinBreak); assert(tb->maxTins == tb->numTins + tb->hiTinBreak - tb->loTinBreak); if (src == NULL) { adjustBreak(tb, break_eoLoCur, 0); return(insert_bad); } len = strlen(src); /* * We must use <= in this next condition because we may add an extra \n to * the buffer at the end. */ while (tb->hiBreak - tb->loBreak <= len) { addMoreBufferSpace(tb); } assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); loTinWidthCheck = tb->locs[tbin_loCur].tin; for (i = 0; i < len; ++i) { assert(tb->loTinBreak <= tb->hiTinBreak); assert(tb->tins[tb->locs[tbin_loCur].tin].start + tb->locs[tbin_loCur].index == tb->loBreak); tb->buf[tb->loBreak++] = src[i]; if (src[i] == '\n') { /* * If the only line left is the mandatory blank line at the end, then * don't bother inserting the final '\n'. */ if ((i + 1 == len) && (tinNum_next(tb->locs[tbin_loCur].tin, tb) == tinNum_prev(tb->maxTins, tb)) && (tb->locs[tbin_loCur].index == tb->tins[tb->locs[tbin_loCur].tin].len)) { --tb->loBreak; tb->locs[tbin_loCur].tin = tinNum_next(tb->locs[tbin_loCur].tin, tb); tb->locs[tbin_loCur].index = 0; break; } result = insert_cr; if (tb->numTins == tb->maxTins) addMoreTins(tb); tb->tins[tb->locs[tbin_loCur].tin + 1].start = tb->loBreak; tb->tins[tb->locs[tbin_loCur].tin + 1].len = tb->tins[tb->locs[tbin_loCur].tin].len - tb->locs[tbin_loCur].index; tb->tins[tb->locs[tbin_loCur].tin].len = tb->locs[tbin_loCur].index; ++tb->numTins; ++tb->loTinBreak; ++tb->locs[tbin_loCur].tin; tb->locs[tbin_loCur].index = 0; } else { ++tb->locs[tbin_loCur].index; ++tb->tins[tb->locs[tbin_loCur].tin].len; } } assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); assert(tb->maxTins == tb->numTins + tb->hiTinBreak - tb->loTinBreak); if ((tb->hiBreak == tb->bufLen) && (tb->tins[tb->loTinBreak - 1].len > 0) && !tb->readOnly) { /* * Add an extra '\n' to make sure that there's always a blank line at * the end of the buffer. */ tb->buf[tb->loBreak++] = '\n'; result = insert_cr; if (tb->numTins == tb->maxTins) addMoreTins(tb); assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); tb->tins[tb->locs[tbin_loCur].tin + 1].start = tb->loBreak; tb->tins[tb->locs[tbin_loCur].tin + 1].len = 0; tb->tins[tb->locs[tbin_loCur].tin + 1].width = 0; ++tb->numTins; ++tb->loTinBreak; } tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; adjustBreak(tb, break_eoLoCur, 0); assert(loc_valid(tb->locs[tbin_loCur], tb)); assert(loc_valid(tb->locs[tbin_hiCur], tb)); assert(tb->maxTins == tb->numTins + tb->hiTinBreak - tb->loTinBreak); assert(tb->hiBreak <= tb->bufLen); assert(tb->loBreak <= tb->bufLen); assert(tb->hiBreak >= 0); assert(tb->loBreak >= 0); assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); /* * Now that the text is inserted, it is time to adjust the EOLs if we have * to. */ tryJoinLines(tb, loTinWidthCheck, env, butW); lineBroken = TRUE; for (i = loTinWidthCheck; (i < tb->maxTins) && ((i <= tb->locs[tbin_loCur].tin) || lineBroken); i = tinNum_next(i, tb)) { if (calcTinWidth(&tb->tins[i], tb->buf, env) > butW) { lineBroken = TRUE; breakLine(tb, i, env, butW); result = insert_cr; } } if (tryJoinLines(tb, tinNum_next(tb->locs[tbin_loCur].tin, tb), env, butW)) result = insert_cr; if ((tb->maxLines > 0) && (tb->numTins > tb->maxLines)) { killTopLines(tb, tb->numTins - tb->maxLines); } return(result); } /* * This routine attempts to join the line that you specify with the * previous line. * You cannot call this unless the current break is in the middle of neither * of these lines. It is OK to call this if the current break is in between * these lines. * The breakpoint may be changed while in this function. */ static bool tryJoinLines(Tbin *tb, int tinNum, ButEnv *env, int butW) { int prevTinNum, w, curChar; Tin *a, *b; XFontStruct *fs = env->fonts[0]; TbinLoc loc; if ((tinNum == 0) || (tinNum == tb->maxTins)) return(FALSE); prevTinNum = tinNum_prev(tinNum, tb); a = &tb->tins[prevTinNum]; b = &tb->tins[tinNum]; if (tinNum == tb->hiTinBreak) { if (b->start != tb->hiBreak) return(FALSE); } else { if (b->start != a->start + a->len) return(FALSE); } w = a->width; curChar = a->len - 1; while ((curChar >= 0) && (tb->buf[a->start + curChar] == ' ')) { --curChar; if (fs->per_char == NULL) w += fs->min_bounds.width; else w += fs->per_char[(uchar)tb->buf[a->start + curChar] - fs->min_char_or_byte2].width; } curChar = 0; while ((curChar < b->len) && (w <= butW)) { if (fs->per_char == NULL) w += fs->min_bounds.width; else w += fs->per_char[(uchar)tb->buf[b->start + curChar] - fs->min_char_or_byte2].width; ++curChar; } if (w > butW) { if (curChar) { --curChar; while (curChar && (tb->buf[b->start + curChar] != ' ')) --curChar; while ((curChar < b->len) && (tb->buf[b->start + curChar] == ' ')) ++curChar; } } if (!curChar) return(FALSE); if (curChar == b->len) { /* We can suck the whole damn line up. */ adjustBreak(tb, break_eol, tinNum); tinNum = tb->loTinBreak - 1; tbinLoc_iter(loc) { if (tb->locs[loc].tin == tinNum) { tb->locs[loc].index += tb->tins[tinNum - 1].len; --tb->locs[loc].tin; } } tb->tins[tinNum - 1].len += tb->tins[tinNum].len; calcTinWidth(&tb->tins[tinNum - 1], tb->buf, env); --tb->numTins; --tb->loTinBreak; assert((tb->loTinBreak == 0) || (tb->tins[tb->loTinBreak - 1].start < tb->loBreak)); } else { tbinLoc_iter(loc) { if (tb->locs[loc].tin == tinNum) { tb->locs[loc].index -= curChar; if (tb->locs[loc].index <= 0) { tb->locs[loc].tin = prevTinNum; tb->locs[loc].index += a->len + curChar; } } } a->len += curChar; b->len -= curChar; b->start += curChar; if (tb->hiTinBreak == tinNum) { adjustBreak(tb, break_eol, prevTinNum); calcTinWidth(&tb->tins[tb->loTinBreak - 1], tb->buf, env); calcTinWidth(&tb->tins[tb->hiTinBreak], tb->buf, env); } assert((tb->loTinBreak == 0) || (tb->tins[tb->loTinBreak - 1].start < tb->loBreak)); } return(TRUE); } static void breakLine(Tbin *tb, int tinNum, ButEnv *env, int butW) { XFontStruct *fs = env->fonts[0]; int breakPoint, w; TbinLoc loc; if (butW <= 0) { return; } assert(loc_valid(tb->locs[tbin_loCur], tb)); adjustBreak(tb, break_eol, tinNum); /* * I really should make my mark into a loc, but I'll cheese out instead. */ tinNum = tb->loTinBreak - 1; assert(loc_valid(tb->locs[tbin_loCur], tb)); breakPoint = tb->tins[tinNum].len; w = tb->tins[tinNum].width; assert(w > butW); while (tb->buf[tb->tins[tinNum].start + breakPoint - 1] == ' ') { --breakPoint; assert(breakPoint > 0); } while (breakPoint > 0) { if ((tb->buf[tb->tins[tinNum].start + breakPoint] == ' ') && (tb->buf[tb->tins[tinNum].start + breakPoint - 1] != ' ') && (w <= butW)) break; --breakPoint; if (fs->per_char == NULL) w -= fs->min_bounds.width; else w -= fs->per_char[(uchar)tb->buf[tb->tins[tinNum].start + breakPoint] - fs->min_char_or_byte2].width; } if (breakPoint == 0) { adjustBreak(tb, break_eoLoCur, 0); return; } while (tb->buf[tb->tins[tinNum].start + breakPoint] == ' ') ++breakPoint; if (tb->numTins == tb->maxTins) addMoreTins(tb); assert(tb->loTinBreak == tinNum + 1); if ((tb->hiTinBreak < tb->maxTins) && (tb->tins[tb->hiTinBreak].start == tb->hiBreak)) { /* * There is no '\n' here, so we can just shuffle the too-long characters * down to the next line. */ tb->tins[tb->hiTinBreak].len += tb->tins[tinNum].len - breakPoint; tb->tins[tb->hiTinBreak].start = tb->tins[tinNum].start + breakPoint; tb->tins[tb->hiTinBreak].width += XTextWidth(env->fonts[0], tb->buf + tb->tins[tb->hiTinBreak].start, tb->tins[tinNum].len - breakPoint); tb->tins[tb->loTinBreak] = tb->tins[tb->hiTinBreak]; ++tb->loTinBreak; ++tb->hiTinBreak; } else { tb->tins[tinNum + 1].start = tb->tins[tinNum].start + breakPoint; tb->tins[tinNum + 1].len = tb->tins[tinNum].len - breakPoint; ++tb->loTinBreak; ++tb->numTins; } tb->tins[tinNum].len = breakPoint; tb->tins[tinNum].width = w; tbinLoc_iter(loc) { if ((tb->locs[loc].tin == tinNum) && (tb->locs[loc].index > tb->tins[tinNum].len)) { tb->locs[loc].index -= tb->tins[tinNum].len; tb->locs[loc].tin = tinNum_next(tb->locs[loc].tin, tb); } } ++tinNum; calcTinWidth(&tb->tins[tinNum], tb->buf, env); assert(loc_valid(tb->locs[tbin_loCur], tb)); adjustBreak(tb, break_eoLoCur, 0); assert(loc_valid(tb->locs[tbin_loCur], tb)); } static void ti_cursor(But *but) { Tbin *tb = but->iPacket; Tin *ti = &tb->tins[tb->locs[tbin_loCur].tin]; ButWin *win = but->win; ButEnv *env = win->env; XFontStruct *fs = env->fonts[0]; int x, y; int rw, rh; if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur]) || !tb->cursorVisible) return; x = but->x + XTextWidth(fs, tb->buf + ti->start, tb->locs[tbin_loCur].index) + tb->lMargin; y = but->y + tinNum_line(tb->locs[tbin_loCur].tin, tb) * (fs->ascent + fs->descent); if ((rw = (fs->ascent + fs->descent + 10) / 20) < 1) rw = 1; x -= rw/2; if (x < but->x) { rw -= but->x - x; x = but->x; } else if (x+rw > but->x + but->w) { rw = but->x + but->w - x; } rh = fs->ascent + fs->descent; if (y + rh > but->y + but->h) rh = but->y + but->h - y; if ((rw <= 0) || (rh <= 0)) return; butEnv_setXFg(env, BUT_FG); XFillRectangle(env->dpy, win->win, env->gc, x-win->xOff, y-win->yOff, rw,rh); } static void ti_redrawCursor(But *but) { Tbin *tb = but->iPacket; Tin *ti = &tb->tins[tb->locs[tbin_loCur].tin]; ButWin *win = but->win; ButEnv *env = win->env; XFontStruct *fs = env->fonts[0]; int fontH = fs->ascent + fs->descent; int x, y; int rw; if (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur])) { return; } x = but->x + XTextWidth(fs, tb->buf + ti->start, tb->locs[tbin_loCur].index) + tb->lMargin; y = but->y + tinNum_line(tb->locs[tbin_loCur].tin, tb) * fontH; if ((rw = (fs->ascent + fs->descent + 10) / 20) < 1) rw = 1; x -= rw/2; if (x < but->x) { rw -= (but->x - x); x = but->x; } else if (x+rw > but->x + but->w) { rw = but->x + but->w - x; } if (rw <= 0) return; butWin_redraw(win, x,y, rw,fs->ascent + fs->descent); } static void cut(ButEnv *env, But *but) { Tbin *tbin = but->iPacket; int storeLen; adjustBreak(tbin, break_loCur, 0); if (tbin->locs[tbin_loCur].tin == tbin->locs[tbin_hiCur].tin) storeLen = tbin->locs[tbin_hiCur].index - tbin->locs[tbin_loCur].index; else storeLen = tbin->locs[tbin_hiCur].index + tbin->tins[tbin->locs[tbin_hiCur].tin].start - tbin->hiBreak; XStoreBytes(env->dpy, tbin->buf + tbin->hiBreak, storeLen); adjustBreak(tbin, break_eoLoCur, 0); if ((env->sReq == NULL) || ((env->sReq == sreq) && (cut_butnum == but))) XSetSelectionOwner(env->dpy, XA_PRIMARY, but->win->physWin, 0); else env->sClear(env); if (XGetSelectionOwner(env->dpy, XA_PRIMARY) == but->win->physWin) { env->sReq = sreq; env->sClear = sclear; cut_butnum = but; } } static bool sreq(ButEnv *env, XSelectionRequestEvent *xsre) { Tbin *tbin; int storeLen; if (xsre->target != XA_STRING) return(FALSE); tbin = cut_butnum->iPacket; adjustBreak(tbin, break_loCur, 0); if (tbin->locs[tbin_loCur].tin == tbin->locs[tbin_hiCur].tin) storeLen = tbin->locs[tbin_hiCur].index - tbin->locs[tbin_loCur].index; else storeLen = tbin->locs[tbin_hiCur].index + tbin->tins[tbin->locs[tbin_hiCur].tin].start - tbin->hiBreak; XChangeProperty(env->dpy, xsre->requestor, xsre->property, xsre->target, 8, PropModeReplace, tbin->buf + tbin->hiBreak, storeLen); adjustBreak(tbin, break_eoLoCur, 0); return(TRUE); } static int sclear(ButEnv *env) { Tbin *tbin = cut_butnum->iPacket; tbin->locs[tbin_hiCur] = tbin->locs[tbin_loCur]; but_draw(cut_butnum); env->sReq = NULL; env->sClear = NULL; return(0); } static void paste(ButEnv *env, But *but) { ButWin *topWin; paste_butnum = but; env->sNotify = snotify; topWin = but->win; while (topWin->parent != NULL) topWin = topWin->parent; XConvertSelection(env->dpy, XA_PRIMARY, XA_STRING, env->prop, topWin->physWin, 0); } static int snotify(ButEnv *env, XSelectionEvent *xsnot) { unsigned char *propbuf; unsigned long proplen, propleft; int blen; int pformat; Atom ptype; Tbin *tbin; char *pb2; tbin = paste_butnum->iPacket; if (xsnot->property != None) { XGetWindowProperty(env->dpy, xsnot->requestor, xsnot->property, 0, MAX_PASTE, True, AnyPropertyType, &ptype, &pformat, &proplen, &propleft, &propbuf); tbin->locs[tbin_loCur] = tbin->locs[tbin_hiCur] = tbin->locs[tbin_mouse]; if (insert(env, (char *)propbuf, tbin, paste_butnum->w, NULL) != insert_bad) but_draw(paste_butnum); else XBell(env->dpy, 0); XFree(propbuf); } else { tbin->locs[tbin_loCur] = tbin->locs[tbin_hiCur] = tbin->locs[tbin_mouse]; propbuf = (unsigned char *)XFetchBytes(env->dpy, &blen); if (blen > 0) { pb2 = (char *)wms_malloc(blen + 1); pb2[blen] = '\0'; memcpy(pb2, propbuf, blen); XFree(propbuf); if (insert(env, pb2, tbin, paste_butnum->w, NULL)) but_draw(paste_butnum); else XBell(env->dpy, 0); wms_free(pb2); } else XBell(env->dpy, 0); } env->sNotify = NULL; return(0); } /* * This adjusts your loc and your cutEnd for when you're in word select mode. */ static void wordsel_adjust(Tbin *tbin) { char *atp, *btp; int a, b, at, bt; a = tbin->locs[tbin_loCur].index; at = tbin->locs[tbin_loCur].tin; b = tbin->locs[tbin_hiCur].index; bt = tbin->locs[tbin_hiCur].tin; if ((at >= 0) && (at < tbin->numTins)) atp = tbin->buf + tbin->tins[at].start; else atp = NULL; if ((bt >= 0) && (bt < tbin->numTins)) btp = tbin->buf + tbin->tins[bt].start; else btp = NULL; if (atp) { for (;;) { if (a <= 0) { a = 0; break; } if (((isalnum(atp[a]) || (atp[a] == '_')) && (isalnum(atp[a-1]) || (atp[a-1] == '_'))) || (atp[a] == atp[a-1]) || (isdigit(atp[a]) && (atp[a-1] == '.') && (a >= 2) && isdigit(atp[a-2])) || (isdigit(atp[a+1]) && (atp[a] == '.') && isdigit(atp[a-1]))) --a; else break; } } if (btp && (b > 0)) { for (;;) { if (b >= tbin->tins[bt].len) { b = tbin->tins[bt].len; break; } if (((isalnum(btp[b-1]) || (btp[b-1] == '_')) && (isalnum(btp[b]) || (btp[b] == '_'))) || (btp[b-1] == btp[b]) || (isdigit(btp[b-1]) && (btp[b] == '.') && isdigit(btp[b+1])) || ((b >= 2) && isdigit(btp[b-2]) && (btp[b-1] == '.') && isdigit(btp[b]))) ++b; else break; } } tbin->locs[tbin_loCur].index = a; tbin->locs[tbin_hiCur].index = b; } /* Returns the index of the character just to the right of the cursor. */ static int locateMouse(XFontStruct *fs, const char *text, int textLen, int x, bool *rightSide) { int i; int prev_x = x; int spaceWidth; bool dummy; if (rightSide == NULL) rightSide = &dummy; for (i = 0; (x > 0) && (i < textLen); ++i) { prev_x = x; if (fs->per_char == NULL) /* Monospace font. */ x -= fs->min_bounds.width; else x -= fs->per_char[(uchar)text[i] - fs->min_char_or_byte2].width; } if (fs->per_char == NULL) spaceWidth = fs->min_bounds.width; else spaceWidth = fs->per_char[' ' - fs->min_char_or_byte2].width; if (x >= spaceWidth) *rightSide = TRUE; else if ((*rightSide = ((i > 0) && (x < 0) && (prev_x < -x)))) --i; return(i); } static void flags(But *but, uint flags) { Tbin *tb = but->iPacket; if ((but->flags & BUT_KEYED) != (flags & BUT_KEYED)) { if (flags & BUT_KEYED) { enableCTimer(but); tb->cursorVisible = TRUE; } else { tb->cursorVisible = FALSE; disableCTimer(but); } } assert((but->flags & BUT_PRESSABLE) || !(but->flags & BUT_KEYED)); but->flags = flags; but_draw(but); } static ButOut blinkCursor(ButTimer *timer) { But *but = butTimer_packet(timer); Tbin *tb = but->iPacket; tb->cursorVisible = !(butTimer_ticks(timer) & 1); ti_redrawCursor(but); return(0); } static void enableCTimer(But *but) { Tbin *tb = but->iPacket; struct timeval halfSec; assert(tb->cTimer == NULL); halfSec.tv_sec = 0; halfSec.tv_usec = 500000; tb->cTimer = butTimer_create(but, but, halfSec, halfSec, TRUE, blinkCursor); } static void disableCTimer(But *but) { Tbin *tb = but->iPacket; if (tb->cTimer != NULL) { butTimer_destroy(tb->cTimer); tb->cTimer = NULL; } } void butTbin_set(But *but, const char *newStr) { Tbin *tb = but->iPacket; assert(MAGIC(but)); assert(but->action == &action); if (but->flags & BUT_KEYED) but_setFlags(but, BUT_NOKEY); tb->numTins = 1; tb->loTinBreak = 1; tb->hiTinBreak = tb->maxTins; tb->locs[tbin_loCur].index = 0; tb->locs[tbin_loCur].tin = 0; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; tb->tins[0].len = 0; tb->tins[0].start = 0; tb->loBreak = 0; tb->hiBreak = tb->bufLen; insert(but->win->env, newStr, tb, but->w, NULL); but_draw(but); } static int calcTinNum(But *but, Tbin *tbin, int y) { int n; if (y < but->y) return(0); n = (y - but->y) / butEnv_fontH(but->win->env, 0); if (n >= tbin->loTinBreak) n += tbin->hiTinBreak - tbin->loTinBreak; if (n >= tbin->maxTins) n = tinNum_prev(tbin->maxTins, tbin); return(n); } static void setMouseX(But *but, Tbin *tbin, int tin, int loc) { assert((tin >= 0) && (tin < tbin->maxTins)); assert((loc >= 0) && (loc <= tbin->tins[tin].len)); tbin->mouseX = XTextWidth(but->win->env->fonts[0], tbin->buf + tbin->tins[tin].start, loc); } static void checkOffWin(But *but, int mouseY, bool force) { ButWin *win = but->win; Tbin *tbin = but->iPacket; int y, h, cy, ch, maxCy, loLineNum, hiLineNum; assert(MAGIC(but)); assert(MAGIC(tbin)); assert(tbin->maxTins == tbin->numTins + tbin->hiTinBreak - tbin->loTinBreak); assert(loc_valid(tbin->locs[tbin_loCur], tbin)); assert(loc_valid(tbin->locs[tbin_hiCur], tbin)); if (!loc_eq(tbin->locs[tbin_loCur], tbin->locs[tbin_hiCur]) && !tbin->clicks) { /* * The text is selected, but no mouse is moving around. Don't scroll * around! * Perhaps we should move around in this case if text is inserted or * something. Tough call, but probably we shouldn't since inserting * text will (of necessity) move around the cutEnd and the loc. */ return; } if (tbin->offWinCallback) { y = win->yOff; h = win->h; ch = butEnv_fontH(win->env, 0); if (tbin->clicks) { assert(loc_valid(tbin->locs[tbin_mouse], tbin)); cy = loLineNum = tinNum_line(tbin->locs[tbin_mouse].tin, tbin); hiLineNum = tinNum_line(tbin->locs[tbin_press].tin, tbin); } else { cy = loLineNum = hiLineNum = tinNum_line(tbin->locs[tbin_loCur].tin, tbin); mouseY = 0; } cy = but->y + cy * ch; maxCy = tbin->numTins * ch; if (force || (cy < y) || (cy + ch > y + h) || (maxCy + ch > but->h)) { tbin->offWinCallback(but, loLineNum, hiLineNum, mouseY); } } } static void adjustBreak(Tbin *tb, BreakType bType, int breakTin) { int newLoBreak, breakIndex = 0, newHiBreak; int origHiTinBreak, origLoTinBreak; int breakDiff; TbinLoc loc; assert(tb->hiBreak <= tb->bufLen); assert(tb->loBreak <= tb->bufLen); assert(tb->hiBreak >= 0); assert(tb->loBreak >= 0); switch(bType) { case break_loCur: assert(breakTin == 0); breakTin = tb->locs[tbin_loCur].tin; breakIndex = tb->locs[tbin_loCur].index; break; case break_eoLoCur: assert(breakTin == 0); breakTin = tb->locs[tbin_loCur].tin; breakIndex = tb->tins[tb->locs[tbin_loCur].tin].len; break; case break_eol: breakIndex = tb->tins[breakTin].len; break; } newLoBreak = tb->tins[breakTin].start; assert(newLoBreak >= 0); if (newLoBreak > tb->loBreak) { assert(newLoBreak >= tb->hiBreak); newLoBreak -= tb->hiBreak - tb->loBreak; } newLoBreak += breakIndex; assert(newLoBreak >= 0); assert(newLoBreak >= 0); assert(newLoBreak <= tb->loBreak + tb->bufLen - tb->hiBreak); breakDiff = tb->hiBreak - tb->loBreak; newHiBreak = newLoBreak + breakDiff; assert(newHiBreak <= tb->bufLen); if (newLoBreak < tb->loBreak) { memmove(tb->buf + newHiBreak, tb->buf + newLoBreak, tb->loBreak - newLoBreak); origHiTinBreak = tb->hiTinBreak; while (tb->loTinBreak > breakTin + 1) { --tb->loTinBreak; --tb->hiTinBreak; assert(tb->tins[tb->loTinBreak].start <= tb->loBreak); tb->tins[tb->hiTinBreak] = tb->tins[tb->loTinBreak]; tb->tins[tb->hiTinBreak].start += tb->hiBreak - tb->loBreak; if (breakTin == tb->loTinBreak) breakTin = tb->hiTinBreak; assert(tb->tins[tb->loTinBreak].start <= tb->bufLen); } assert(newLoBreak >= 0); tb->loBreak = newLoBreak; tb->hiBreak = newHiBreak; tbinLoc_iter(loc) { if ((tb->locs[loc].tin < origHiTinBreak) && (tb->locs[loc].tin >= tb->loTinBreak)) tb->locs[loc].tin += tb->hiTinBreak - tb->loTinBreak; } assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); assert((bType != break_loCur) || (tb->tins[tb->locs[tbin_loCur].tin].start + tb->locs[tbin_loCur].index == tb->loBreak)); } else /* newLoBreak >= tb->loBreak */ { if (newLoBreak != tb->loBreak) memmove(tb->buf + tb->loBreak, tb->buf + tb->hiBreak, newLoBreak - tb->loBreak); origLoTinBreak = tb->loTinBreak; while (tb->hiTinBreak <= breakTin) { assert(tb->tins[tb->hiTinBreak].start >= tb->hiBreak); tb->tins[tb->loTinBreak] = tb->tins[tb->hiTinBreak]; tb->tins[tb->loTinBreak].start -= tb->hiBreak - tb->loBreak; if (breakTin == tb->hiTinBreak) breakTin = tb->loTinBreak; assert(tb->tins[tb->loTinBreak].start >= 0); ++tb->loTinBreak; ++tb->hiTinBreak; } assert(newLoBreak >= 0); tb->loBreak = newLoBreak; tb->hiBreak = newHiBreak; tbinLoc_iter(loc) { if ((tb->locs[loc].tin >= origLoTinBreak) && (tb->locs[loc].tin < tb->hiTinBreak)) tb->locs[loc].tin -= tb->hiTinBreak - tb->loTinBreak; } assert(tb->tins[tb->locs[tbin_loCur].tin].start >= 0); assert((bType != break_loCur) || (tb->tins[tb->locs[tbin_loCur].tin].start + tb->locs[tbin_loCur].index == tb->loBreak)); } assert(tb->hiBreak <= tb->bufLen); assert(tb->loBreak <= tb->bufLen); assert(tb->hiBreak >= 0); assert(tb->loBreak >= 0); } static void addMoreBufferSpace(Tbin *tb) { char *newBuf; int newLen, i; int newHiBreak; newLen = tb->bufLen * 2; newBuf = wms_malloc(newLen); newHiBreak = tb->hiBreak + newLen - tb->bufLen; memcpy(newBuf, tb->buf, tb->loBreak); memcpy(newBuf + newHiBreak, tb->buf + tb->hiBreak, newLen - newHiBreak); for (i = tb->hiTinBreak; i < tb->maxTins; ++i) { tb->tins[i].start += newLen - tb->bufLen; } wms_free(tb->buf); tb->buf = newBuf; tb->hiBreak = newHiBreak; tb->bufLen = newLen; } static void addMoreTins(Tbin *tb) { Tin *newTins; int newMaxTins, i; int newHiBreak, tinDiff; newMaxTins = tb->maxTins * 2; newTins = wms_malloc(newMaxTins * sizeof(Tin)); newHiBreak = tb->hiTinBreak + newMaxTins - tb->maxTins; for (i = 0; i < tb->loTinBreak; ++i) { newTins[i] = tb->tins[i]; } tinDiff = newMaxTins - tb->maxTins; for (i = tb->hiTinBreak; i < tb->maxTins; ++i) { newTins[i + tinDiff] = tb->tins[i]; } if (tb->locs[tbin_mouse].tin >= tb->loTinBreak) tb->locs[tbin_mouse].tin += tinDiff; if (tb->locs[tbin_press].tin >= tb->loTinBreak) tb->locs[tbin_press].tin += tinDiff; if (tb->locs[tbin_loCur].tin >= tb->loTinBreak) tb->locs[tbin_loCur].tin += tinDiff; if (tb->locs[tbin_hiCur].tin >= tb->loTinBreak) tb->locs[tbin_hiCur].tin += tinDiff; wms_free(tb->tins); tb->tins = newTins; tb->hiTinBreak = newHiBreak; tb->maxTins = newMaxTins; } static int calcTinWidth(Tin *tin, const char *buf, ButEnv *env) { int textLen; textLen = tin->len; while ((textLen > 0) && (buf[tin->start + textLen - 1] == ' ')) --textLen; tin->width = XTextWidth(env->fonts[0], buf + tin->start, textLen); return(tin->width); } static bool resize(But *but, int oldX, int oldY, int oldW, int oldH) { Tbin *tb; int newW, i; if (oldW != but->w) { tb = but->iPacket; newW = but->w - (tb->rMargin + tb->lMargin); for (i = 0; i < tb->maxTins; i = tinNum_next(i, tb)) { if (tb->tins[i].width > newW) breakLine(tb, i, but->win->env, newW); } return(TRUE); } else return((but->x != oldX) || (but->y != oldY) || (but->h != oldH)); } static void killTopLines(Tbin *tb, int lines) { int charsDead, i; TbinLoc loc; assert(lines < tb->numTins); adjustBreak(tb, break_eol, tinNum_prev(tb->maxTins, tb)); charsDead = tb->tins[lines].start; memmove(tb->buf, tb->buf + charsDead, tb->loBreak - charsDead); tb->loBreak -= charsDead; tb->numTins -= lines; tb->loTinBreak -= lines; for (i = 0; i < tb->loTinBreak; ++i) { tb->tins[i].start = tb->tins[i + lines].start - charsDead; tb->tins[i].len = tb->tins[i + lines].len; tb->tins[i].width = tb->tins[i + lines].width; } tbinLoc_iter(loc) { tb->locs[loc].tin -= lines; if (tb->locs[loc].tin < 0) { tb->locs[loc].tin = 0; tb->locs[loc].index = 0; } } } void butTbin_insert(But *but, const char *appText) { bool saveOldCurs; Tbin *tb; assert(MAGIC(but)); tb = but->iPacket; assert(MAGIC(tb)); saveOldCurs = (!loc_eq(tb->locs[tbin_loCur], tb->locs[tbin_hiCur]) || (tinNum_next(tb->locs[tbin_loCur].tin, tb) != tb->maxTins)); if (saveOldCurs) { tb->locs[tbin_mouse] = tb->locs[tbin_loCur]; tb->locs[tbin_press] = tb->locs[tbin_hiCur]; tb->locs[tbin_loCur].tin = tinNum_prev(tb->maxTins, tb); tb->locs[tbin_loCur].index = tb->tins[tb->locs[tbin_loCur].tin].len; tb->locs[tbin_hiCur] = tb->locs[tbin_loCur]; } insert(but->win->env, appText, tb, but->w - (tb->lMargin + tb->rMargin), NULL); checkOffWin(but, 0, TRUE); if (saveOldCurs && !loc_eq(tb->locs[tbin_mouse], tb->locs[tbin_press])) { tb->locs[tbin_loCur] = tb->locs[tbin_mouse]; tb->locs[tbin_hiCur] = tb->locs[tbin_press]; } but_draw(but); } int butTbin_len(But *but) { Tbin *tb; assert(MAGIC(but)); tb = but->iPacket; assert(MAGIC(tb)); return(tb->bufLen - (tb->hiBreak - tb->loBreak)); } void butTbin_setMaxLines(But *but, int maxLines) { Tbin *tb = but->iPacket; assert(MAGIC(tb)); tb->maxLines = maxLines; } void butTbin_setReadOnly(But *but, bool ro) { Tbin *tb = but->iPacket; assert(MAGIC(tb)); tb->readOnly = ro; } void butTbin_delete(But *but, int delStart, int delLen) { Tbin *tb = but->iPacket; assert(but->action == &action); assert(MAGIC(tb)); tb->locs[tbin_mouse] = tb->locs[tbin_loCur]; tb->locs[tbin_press] = tb->locs[tbin_hiCur]; setLoc(tb, tbin_loCur, delStart); setLoc(tb, tbin_hiCur, delStart + delLen); insert(but->win->env, "", tb, but->w, NULL); tb->locs[tbin_loCur] = tb->locs[tbin_mouse]; tb->locs[tbin_hiCur] = tb->locs[tbin_press]; } static void setLoc(Tbin *tb, TbinLoc locNum, int position) { Loc *l = &tb->locs[locNum]; int i; if (position > tb->loBreak) position += (tb->hiBreak - tb->loBreak); i = 0; while (tb->tins[i].start + tb->tins[i].len < position) { i = tinNum_next(i, tb); assert(i < tb->maxTins); } l->tin = i; l->index = position - tb->tins[i].start; } #endif /* X11_DISP */ goban-1.1.orig/src/conn.h0000644000175000017500000000454010270065364013055 0ustar alal/* * src/client/conn.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_CONN_H_ #define _CLIENT_CONN_H_ 1 #ifndef _CLIENT_SERVER_H_ #include "server.h" #endif #ifndef _CGOBAN_H_ #include "../cgoban.h" #endif #ifndef _WMS_STR_H_ #include #endif /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliConnErr_openSocket, cliConnErr_lookup, cliConnErr_connect, cliConnErr_ok } CliConnErr; typedef struct CliConn_struct { Cgoban *cg; int fd; CliConnErr err; int serverNum; CliServer server; bool directConn; bool loginMode; union { int errNum; /* Only valid when err == openSocket or connect */ const char *serverName; /* Only valid when err = lookup */ } errOut; int inLen, inSize, outLen, outSize; int telnetState; /* Should probably be an enum. */ char *inBuf, *outBuf; Str outMsgs; bool promptReady; uchar loChar, hiChar; /* Bounds of chars you let through. */ void (*newData)(void *packet, const char *dataIn, int dataLen); void *packet; MAGIC_STRUCT } CliConn; /********************************************************************** * Functions **********************************************************************/ /* * newdata should return the amount of data that has been read and can * be thrown out of the buffer. 0 is a perfectly legitimate amount to * return, in which case you won't be bothered again until more data * shows up. * If newData is called with NULL as the dataIn value, then dataLen contains * the errno that killed the connection. */ extern CliConn *cliConn_init(CliConn *cc, Cgoban *cg, int serverNum, CliServer protocol, uchar loChar, uchar hiChar, void (*newData)(void *packet, const char *dataIn, int dataLen), void *packet); #define cliConn_create(cg, s, nd, p) \ cliConn_init(wms_malloc(sizeof(CliConn)), (cg), (s), (nd), (p)) extern CliConn *cliConn_deinit(CliConn *cc); #define cliConn_destroy(cc) wms_free(cliConn_deinit(cc)) extern void cliConn_send(CliConn *conn, const char *str); extern void cliConn_prompt(CliConn *conn); #endif /* _CLIENT_CONN_H_ */ goban-1.1.orig/src/clp.h0000644000175000017500000001113310267775624012707 0ustar alal/* * wmslib/src/wms/clp.h, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. * * Command Line Parse. */ #ifndef _WMS_CLP_H_ #ifndef _WMS_STR_H_ #include #endif #ifdef _WMS_CLP_H_ Levelization Error. #endif #define _WMS_CLP_H_ 1 /********************************************************************** * Data types. These are all visible to the application. **********************************************************************/ struct ClpEntry_struct; /* Public. */ #define CLPSETUP_BOOL 0x01 /* Is it "-[no]" or "- "? */ #define CLPSETUP_SHOWBOOL 0x02 /* Show "[no]" in the help. */ #define CLPSETUP_NOSAVE 0x04 #define CLPSETUP_ENDFLAG 0x08 #define CLPSETUP_HELP 0x10 /* This switch gives you help. */ typedef struct ClpSetup_struct { const char *name; /* NULL for just a label. */ const char *defVal; const char *desc; /* NULL if it doesn't show up in the help. */ uint flags; bool (*test)(struct ClpEntry_struct *entry); } ClpSetup; typedef enum { clpWhere_unset, clpWhere_rcfile, clpWhere_xdefs, clpWhere_cmdline, clpWhere_dup } ClpWhere; /* Private. */ typedef enum { clpDtype_int, clpDtype_double, clpDtype_bool, clpDtype_string, clpDtype_end } ClpDtype; typedef struct ClpEntry_struct { const char *name; const char *desc; uint flags; bool (*test)(struct ClpEntry_struct *entry); ClpWhere where; ClpDtype type; int numStrs, maxStrs; union { int ival; double dval; Str *strList; bool bval; } storage; MAGIC_STRUCT } ClpEntry; typedef struct Clp_struct { ClpEntry *infos; int numInfos; MAGIC_STRUCT } Clp; /********************************************************************** * Routines available **********************************************************************/ extern Clp *clp_create(const ClpSetup vars[]); extern void clp_destroy(Clp *clp); /* * clp_rCmdline returns the number of arguments left on the command * line, or CLP_ARGS_NOGOOD if there was an error. */ extern int clp_rCmdline(Clp *cltab, char *argv[]); /* * clp_rFile returns FALSE if it can't find the file at all. */ extern bool clp_rFile(Clp *cltab, const char *fname); extern void clp_wFile(Clp *cltab, const char *fname, const char *pname); extern ClpEntry *clp_lookup(Clp *clp, const char *varName); #define clp_where(clp, str) (clp_lookup(clp, str)->where) #define clpEntry_where(ce) ((ce)->where) extern int clpEntry_iGetInt(ClpEntry *ce, bool *err); #define clp_iGetInt(clp, str, e) clpEntry_iGetInt(clp_lookup(clp, str), e) #define clpEntry_getInt(ce) clpEntry_iGetInt(ce, NULL) #define clp_getInt(clp, str) clpEntry_getInt(clp_lookup(clp, str)) extern double clpEntry_iGetDouble(ClpEntry *ce, bool *err); #define clpEntry_getDouble(ce) clpEntry_iGetDouble(ce, NULL) #define clp_getDouble(clp, str) clpEntry_getDouble(clp_lookup(clp,str)) #define clpEntry_numStrs(ce) ((ce)->numStrs) extern const char *clpEntry_iGetStrNum(ClpEntry *ce, int num, bool *err); #define clpEntry_getStrNum(ce, n) clpEntry_iGetStrNum(ce, n, NULL) #define clp_getStrNum(clp, s, n) clpEntry_getStrNum(clp_lookup(clp, s), n) #define clpEntry_iGetStr(ce, e) clpEntry_iGetStrNum(ce, 0, e) #define clpEntry_getStr(ce) clpEntry_iGetStr(ce, NULL) #define clp_getStr(clp, str) clpEntry_getStr(clp_lookup(clp, str)) extern bool clpEntry_iGetBool(ClpEntry *ce, bool *err); #define clpEntry_getBool(ce) clpEntry_iGetBool(ce, NULL) #define clp_getBool(clp, str) clpEntry_getBool(clp_lookup(clp, str)) extern bool clpEntry_setInt(ClpEntry *ce, int val); #define clp_setInt(c, s, v) clpEntry_setInt(clp_lookup(c, s), v) extern bool clpEntry_setDouble(ClpEntry *ce, double val); #define clp_setDouble(c, s, v) clpEntry_setDouble(clp_lookup(c, s), v) extern bool clpEntry_setStrNum(ClpEntry *ce, const char *val, int num); #define clp_setStrNum(c, s, v, n) clpEntry_setStrNum(clp_lookup(c, s), v, n) #define clpEntry_setStr(ce, v) clpEntry_setStrNum(ce, v, 0) #define clp_setStr(c, s, v) clpEntry_setStr(clp_lookup(c, s), v) extern bool clpEntry_setBool(ClpEntry *ce, bool val); #define clp_setBool(c, s, v) clpEntry_setBool(clp_lookup(c, s), v) /********************************************************************** * Handy macros and constants. **********************************************************************/ #define CLPSETUP_MSG(message) {NULL, NULL, message, 0, NULL} #define CLPSETUP_END {NULL,NULL,NULL,CLPSETUP_ENDFLAG, NULL} #define CLP_ARGS_NOGOOD -1 #endif /* _WMS_CLP_H_ */ goban-1.1.orig/src/ctext.c0000644000175000017500000002613410270060470013236 0ustar alal/* * wmslib/src/but/ctext.c, part of wmslib (Library functions) * Copyright (C) 1994-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include /********************************************************************** * Data Types **********************************************************************/ typedef struct Ct_struct { char *str; int maxlen; int angles; ButOut (*pfunc)(But *but), (*rfunc)(But *but); bool netAction; int textX, textY, textW, textH; } Ct; /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut mmove(But *but, int x, int y); static ButOut mleave(But *but); static ButOut mpress(But *but, int butnum, int x, int y); static ButOut mrelease(But *but, int butnum, int x, int y); static ButOut kpress(But *but, const char *keystr, KeySym sym); static ButOut krelease(But *but, const char *keystr, KeySym sym); static void draw(But *but, int x, int y, int w, int h); static ButOut destroy(But *but); static bool mouse_over_but(But *but, int x, int y); static void flags(But *but, uint flags); static ButOut remPress(But *but, void *msg, int msgLen); /********************************************************************** * Globals **********************************************************************/ static ButAction action = { mmove, mleave, mpress, mrelease, kpress, krelease, draw, destroy, flags, remPress}; /********************************************************************** * Functions **********************************************************************/ But *butCt_create(ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text) { return(butAct_vCreate(NULL, func, packet, win, layer, flags, text, BUT_RLEFT|BUT_RRIGHT)); } But *butAct_create(ButOut (*func)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text, int angleflags) { return(butAct_vCreate(NULL, func, packet, win, layer, flags, text, angleflags)); } But *butAct_vCreate(ButOut (*pfunc)(But *but), ButOut (*rfunc)(But *but), void *packet, ButWin *win, int layer, int flags, const char *text, int angleflags) { Ct *ct; But *but; ct = wms_malloc(sizeof(Ct)); but = but_create(win, ct, &action); but->uPacket = packet; but->layer = layer; but->flags = flags; if (text == NULL) text = ""; ct->rfunc = rfunc; ct->maxlen = strlen(text); ct->str = (char *)wms_malloc(sizeof(char) * (ct->maxlen + 1)); strcpy(ct->str, text); ct->angles = angleflags; ct->pfunc = pfunc; ct->netAction = TRUE; ct->textW = ct->textH = 0; but_init(but); return(but); } void butCt_setText(But *but, const char *text) { Ct *ct = but->iPacket; int newlen; assert(but->action == &action); newlen = strlen(text); if (newlen > ct->maxlen) { wms_free(ct->str); ct->maxlen = newlen; ct->str = (char *)wms_malloc((newlen + 1) * sizeof(char)); } strcpy(ct->str, text); but_draw(but); } static ButOut destroy(But *but) { Ct *ct = but->iPacket; wms_free(ct->str); wms_free(ct); return(0); } void butCt_setTextLoc(But *but, int x, int y, int w, int h) { Ct *ct = but->iPacket; ct->textX = x; ct->textY = y; ct->textW = w; ct->textH = h; } static void draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; Ct *ct = but->iPacket; uint flags = but->flags; int tx, ty, tw, th; int textWidth; but_drawCtb(win, flags, BUT_FG, BUT_BG, BUT_PBG, but->x, but->y, but->w, but->h, env->stdButBw, ct->angles); tx = but->x; ty = but->y; if (ct->textW != 0) { tx += ct->textX; ty += ct->textY; tw = ct->textW; th = ct->textH; } else { tw = but->w; th = but->h; } if (!(but->flags & BUT_PRESSABLE)) { XSetFillStyle(env->dpy, env->gc, FillStippled); XSetForeground(env->dpy, env->gc, env->colors[BUT_FG]); } else butEnv_setXFg(env, BUT_FG); if ((but->flags & BUT_PRESSED) && (but->flags & BUT_TWITCHED)) { tx += env->stdButBw/2; ty += env->stdButBw/2; } textWidth = butEnv_textWidth(win->env, ct->str, 0); butWin_write(win, tx + (tw - textWidth) / 2, ty + (th - butEnv_fontH(win->env, 0))/2, ct->str, 0); if (!(but->flags & BUT_PRESSABLE)) { butEnv_stdFill(env); } } static void flags(But *but, uint flags) { uint ofl = but->flags; but->flags = flags; if ((flags & BUT_NETPRESS) && !(ofl & BUT_NETPRESS)) { snd_play(&but_downSnd); } if (((flags & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_NETPRESS)) != (ofl & (BUT_PRESSABLE|BUT_DRAWABLE|BUT_PRESSED|BUT_NETPRESS))) || (((flags & (BUT_TWITCHED|BUT_NETTWITCH)) != (ofl & (BUT_TWITCHED|BUT_NETTWITCH))) && (flags & (BUT_PRESSED|BUT_NETPRESS)))) but_draw(but); } static ButOut mmove(But *but, int x, int y) { ButOut retval = BUTOUT_CAUGHT; uint newflags = but->flags; if (mouse_over_but(but, x,y)) { if (!(but->flags & BUT_PRESSABLE)) return(BUTOUT_CAUGHT); newflags |= BUT_TWITCHED; } else { if (!(but->flags & BUT_PRESSABLE)) return(0); newflags &= ~BUT_TWITCHED; if (!(newflags & BUT_LOCKED)) retval &= ~BUTOUT_CAUGHT; } if (!(but->flags & BUT_TWITCHED) && (newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_twitch); else if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(retval); } static ButOut mleave(But *but) { int newflags = but->flags; newflags &= ~BUT_TWITCHED; if ((but->flags & BUT_TWITCHED) && !(newflags & BUT_TWITCHED)) butEnv_setCursor(but->win->env, but, butCur_idle); if (newflags != but->flags) { but_newFlags(but, newflags); } return(BUTOUT_CAUGHT); } static ButOut mpress(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; uint newflags = but->flags; Ct *ct = but->iPacket; bool pressPf = FALSE; if (!(newflags & BUT_TWITCHED)) retval &= ~BUTOUT_CAUGHT; else { if (butnum == 1) { newflags |= BUT_PRESSED | BUT_LOCKED; pressPf = TRUE; } else return(BUTOUT_CAUGHT | BUTOUT_ERR); } if (!(but->flags & BUT_PRESSED) && (newflags & BUT_PRESSED)) snd_play(&but_downSnd); if (newflags != but->flags) but_newFlags(but, newflags); if (pressPf && ct->pfunc) retval |= ct->pfunc(but); return(retval); } static ButOut mrelease(But *but, int butnum, int x, int y) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Ct *ct = but->iPacket; bool pressRf = FALSE; if (butnum != 1) { if (but->flags & BUT_TWITCHED) return(BUTOUT_CAUGHT); else return(0); } if (!(but->flags & BUT_PRESSED)) return(0); if (but->flags & BUT_TWITCHED) { pressRf = TRUE; } else { if (ct->pfunc != NULL) pressRf = TRUE; retval |= BUTOUT_ERR; } newflags &= ~(BUT_PRESSED|BUT_LOCKED); if ((but->flags & BUT_PRESSED) && !(newflags & BUT_PRESSED) && !(retval & BUTOUT_ERR)) snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); if (but->id >= 0) butRnet_butSpecSend(but, NULL, 0); if (pressRf && ct->rfunc) retval |= ct->rfunc(but); return(retval); } static ButOut kpress(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Ct *ct = but->iPacket; newflags |= BUT_KEYPRESSED|BUT_PRESSED|BUT_LOCKED; if (!(but->flags & BUT_KEYPRESSED)) { snd_play(&but_downSnd); but_newFlags(but, newflags); if (ct->pfunc != NULL) retval |= ct->pfunc(but); } return(retval); } static ButOut krelease(But *but, const char *keystr, KeySym sym) { ButOut retval = BUTOUT_CAUGHT; int newflags = but->flags; Ct *ct = but->iPacket; bool pressRf = FALSE; if (!(newflags & BUT_KEYPRESSED)) return(0); newflags &= ~(BUT_KEYPRESSED|BUT_PRESSED|BUT_LOCKED); if (keystr != NULL) { /* If keystr is NULL, the key wasn't released - we lost focus instead. */ pressRf = TRUE; } snd_play(&but_upSnd); if (newflags != but->flags) but_newFlags(but, newflags); if (but->id >= 0) butRnet_butSpecSend(but, NULL, 0); if (pressRf && ct->rfunc) retval |= ct->rfunc(but); return(retval); } static bool mouse_over_but(But *but, int x, int y) { int angleflags = ((Ct *)(but->iPacket))->angles; int radlimit, radius, dx, dy; if (x < but->x + but->w/2) { if (angleflags & BUT_ALEFT) { if ((y < but->y) || (y >= but->y + but->h)) return(0); if (y < but->y + but->h/2) if (x <= but->x + (but->y + but->h/2 - y)) return(0); else return(x > but->x + (y - (but->y + but->h/2))); } else if (angleflags & BUT_SLEFT) return((x >= but->x) && (y >= but->y) && (y < but->y + but->h)); } else { if (angleflags & BUT_ARIGHT) { if ((y < but->y) || (y >= but->y + but->h)) return(0); if (y < but->y + but->h/2) return(x < but->x + but->w - (but->y + but->h/2 - y)); else return(x < but->x + but->w - (y - (but->y + but->h/2))); } else if (angleflags & BUT_SRIGHT) return((x < but->x + but->w) && (y >= but->y) && (y < but->y + but->h)); } /* We're dealing with the tough case...rounded edges! */ radius = but->h / 4; radlimit = (radius + 1); radlimit *= radlimit; if (y < but->y + radius) { if (x < but->x + radius) { dx = but->x + radius - x; dy = but->y + radius - y; return(dx*dx + dy*dy < radlimit); } else if (x < but->x + but->w - radius) return(y >= but->y); else { dx = x - (but->x + but->w - radius - 1); dy = but->y + radius - y; return(dx*dx + dy*dy < radlimit); } } else if (y < but->y + but->h - radius) return((x >= but->x) && (x < but->x + but->w)); else { if (x < but->x + radius) { dx = but->x + radius - x; dy = y - (but->y + but->h - radius - 1); return(dx*dx + dy*dy < radlimit); } else if (x < but->x + but->w - radius) return(y < but->y + but->h); else { dx = x - (but->x + but->w - radius - 1); dy = y - (but->y + but->h - radius - 1); return(dx*dx + dy*dy < radlimit); } } } static ButOut remPress(But *but, void *msg, int msgLen) { Ct *ct = but->iPacket; ButOut res = 0; assert(msgLen == 0); snd_play(&but_upSnd); if ((ct->rfunc != NULL) && ct->netAction) res = ct->rfunc(but); return(res); } void butCt_setNetAction(But *but, bool netAction) { Ct *ct = but->iPacket; ct->netAction = netAction; } #endif goban-1.1.orig/src/goPic.c0000644000175000017500000002406310270000754013146 0ustar alal/* * src/gopic.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include "cgoban.h" #include "goPic.h" #include "goGame.h" #include "cgbuts.h" #include "plasma.h" #include "cm2pm.h" static ButOut gridPressed(But *but); GoPic *goPic_create(Cgoban *cg, void *packet, GoGame *game, ButWin *win, int layer, ButOut pressed(void *packet, int loc), int size) { GoPic *p; int i, x, y, loc; char label[3]; p = wms_malloc(sizeof(GoPic)); MAGIC_SET(p); p->cg = cg; p->game = game; p->press = pressed; p->packet = packet; p->size = size; /* * if (cg->cgbuts.color == GrayScale && 0) { * p->boardBg = butBoxFilled_create(win, layer, BUT_DRAWABLE); * butBoxFilled_setColors(p->boardBg, BUT_LIT, BUT_SHAD, BUT_LIT); * } */ p->boardBg = butPixmap_create(win, layer, BUT_DRAWABLE, None); butPixmap_setPic(p->boardBg, p->cg->boardPixmap, 0,0); p->size = size; p->allowedMoves = goPicMove_legal; p->boardButs = wms_malloc(goBoard_area(game->board) * sizeof(But *)); for (i = 0; i < goBoard_area(game->board); ++i) p->boardButs[i] = NULL; for (x = 0; x < size; ++x) { for (y = 0; y < size; ++y) { loc = goBoard_xy2Loc(game->board, x, y); p->boardButs[loc] = grid_create(&cg->cgbuts, gridPressed, p, win, layer+1, BUT_DRAWABLE, loc); } } grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, 0, 0)], gridLines_ul); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, size-1, 0)], gridLines_ur); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, 0, size-1)], gridLines_ll); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, size-1, size-1)], gridLines_lr); for (x = 1; x < size-1; ++x) { grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, x,0)], gridLines_top); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, 0,x)], gridLines_left); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, size-1,x)], gridLines_right); grid_setLineGroup(p->boardButs[goBoard_xy2Loc(game->board, x,size-1)], gridLines_bottom); } if (size == 19) { for (x = 3; x < 19; x += 6) { for (y = 3; y < 19; y += 6) { grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, x,y)], TRUE); } } } else if (size == 13) { for (x = 3; x < 12; x += 3) { for (y = 3; y < 12; y += 3) { grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, x,y)], TRUE); } } } else if (size == 9) { grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, 4,4)], TRUE); grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, 2,2)], TRUE); grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, 2,6)], TRUE); grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, 6,2)], TRUE); grid_setStarPoint(p->boardButs[goBoard_xy2Loc(game->board, 6,6)], TRUE); } assert(size < 50); p->letters = wms_malloc(size * 2 * sizeof(But *)); p->numbers = wms_malloc(size * 2 * sizeof(But *)); for (i = 0; i < size; ++i) { label[0] = 'A' + (i % 25); label[1] = '\0'; if (label[0] >= 'I') ++label[0]; if (i > 24) { label[1] = label[0]; label[2] = '\0'; } p->letters[i] = butText_create(win, layer+1, 0, label, butText_center); butText_setFont(p->letters[i], 1); p->letters[i+size] = butText_create(win, layer+1, 0, label, butText_center); butText_setFont(p->letters[i+size], 1); sprintf(label, "%d", size-i); p->numbers[i] = butText_create(win, layer+1, 0, label, butText_center); butText_setFont(p->numbers[i], 1); p->numbers[i+size] = butText_create(win, layer+1, 0, label, butText_center); butText_setFont(p->numbers[i+size], 1); } return(p); } void goPic_destroy(GoPic *p) { assert(MAGIC(p)); /* * I don't destroy the buttons. Kill the window to do that. */ wms_free(p->boardButs); wms_free(p->letters); wms_free(p->numbers); MAGIC_UNSET(p); wms_free(p); } void goPic_resize(GoPic *p, int x, int y, int w, int h) { int i, bx, by; int edgeLabelSize, stoneW, stoneH, stoneX0, stoneY0; int loc; assert(w == h); if (p->cg->showCoords) { edgeLabelSize = butEnv_fontH(p->cg->env, 1); i = butEnv_textWidth(p->cg->env, "00", 1); if (i > edgeLabelSize) edgeLabelSize = i; } else edgeLabelSize = 0; stoneW = (w - edgeLabelSize * 2) / p->size; if (stoneW < edgeLabelSize) { edgeLabelSize = 0; stoneW = (w - edgeLabelSize * 2) / p->size; } stoneH = (h - edgeLabelSize * 2) / p->size; stoneX0 = x + (w - stoneW * p->size) / 2; stoneY0 = y + (h - stoneH * p->size) / 2; but_resize(p->boardBg, x,y, w,h); for (bx = 0; bx < p->size; ++bx) { for (by = 0; by < p->size; ++by) { loc = goBoard_xy2Loc(p->game->board, bx, by); but_resize(p->boardButs[loc], bx*stoneW+stoneX0, by*stoneH+stoneY0, stoneW,stoneH); } } but_draw(p->boardBg); if (p->cg->showCoords) { for (i = 0; i < p->size*2; ++i) { but_setFlags(p->letters[i], BUT_DRAWABLE); but_setFlags(p->numbers[i], BUT_DRAWABLE); } } else { for (i = 0; i < p->size*2; ++i) { but_setFlags(p->letters[i], BUT_NODRAW); but_setFlags(p->numbers[i], BUT_NODRAW); } } for (i = 0; i < p->size; ++i) { but_resize(p->letters[i], i*stoneW + stoneX0, stoneY0 - edgeLabelSize, stoneW, edgeLabelSize); but_resize(p->letters[i+p->size], i*stoneW + stoneX0, stoneY0 + p->size*stoneW, stoneW, edgeLabelSize); but_resize(p->numbers[i], stoneX0 - edgeLabelSize, stoneY0 + i*stoneW, edgeLabelSize, stoneW); but_resize(p->numbers[i+p->size], stoneX0 + p->size*stoneW, stoneY0 + i*stoneW, edgeLabelSize, stoneW); } } void goPic_setButHold(GoPic *p, bool hold) { int i; for (i = 0; i < goBoard_area(p->game->board); ++i) { if (p->boardButs[i]) { grid_setHold(p->boardButs[i], hold); } } } GoStone goPic_update(GoPic *p) { int i; GoStone s, toMove; GoGame *game = p->game; GoBoard *board = game->board; bool setMove; GoMarkType mark; bool grey; int markAux; int whiteVersion; uint moveType, allowed; assert(MAGIC(p)); whiteVersion = rnd_int(p->cg->rnd) % CGBUTS_NUMWHITE; setMove = ((game->state == goGameState_play) || (game->state == goGameState_dispute)); allowed = p->allowedMoves; if (allowed & goPicMove_forceWhite) toMove = goStone_white; else if (allowed & goPicMove_forceBlack) toMove = goStone_black; else if (setMove) toMove = goGame_whoseMove(game); else toMove = goStone_empty; if ((toMove == goStone_white) && (allowed & goPicMove_noWhite)) allowed = 0; else if ((toMove == goStone_black) && (allowed & goPicMove_noBlack)) allowed = 0; for (i = 0; i < goBoard_area(board); ++i) { if (p->boardButs[i]) { s = goBoard_stone(board, i); mark = goMark_none; grey = FALSE; markAux = 0; switch(game->state) { case goGameState_dispute: if (game->flags[i] & GOGAMEFLAGS_DISPUTED) mark = goMark_triangle; /* Fall through to goGameState_play */ case goGameState_play: if (goGame_lastMove(game) == i) mark = goMark_lastMove; if (goGame_isHot(game, i)) mark = goMark_ko; break; case goGameState_selectDead: case goGameState_selectDisputed: case goGameState_done: if ((game->flags[i] & GOGAMEFLAGS_WANTDEAD) && (game->state != goGameState_done)) mark = goMark_triangle; if (game->flags[i] & GOGAMEFLAGS_MARKDEAD) grey = TRUE; if ((game->flags[i] & GOGAMEFLAGS_MARKDEAD) || (s == goStone_empty)) { if (((game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEBLACK) && ((game->rules != goRules_japanese) || (game->flags[i] & GOGAMEFLAGS_NOSEKI))) mark = goMark_smBlack; if (((game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEWHITE) && ((game->rules != goRules_japanese) || (game->flags[i] & GOGAMEFLAGS_NOSEKI))) mark = goMark_smWhite; } break; default: break; } /* * If it's a passive game, then we can't set the marks of the grid * ourselves. the sgfPlay module must do it instead. */ if (game->passive && (game->state != goGameState_selectDead)) { /* * If there's no other mark there and it's a mark for the last * move or a ko, then we draw the mark for the last move. * Otherwise sgfPlay's mark takes precedence. */ if (((mark != goMark_lastMove) && (mark != goMark_ko)) || (grid_markType(p->boardButs[i]) != goMark_none)) { grey = grid_grey(p->boardButs[i]); mark = grid_markType(p->boardButs[i]); markAux = grid_markAux(p->boardButs[i]); } } if (goStone_isStone(goBoard_stone(game->board, i))) moveType = goPicMove_stone; else moveType = goPicMove_empty; if ((s != grid_stone(p->boardButs[i])) || (grey != grid_grey(p->boardButs[i]))) { if (s == goStone_white) grid_setVersion(p->boardButs[i], (rnd_int(p->cg->rnd) % CGBUTS_NUMWHITE)); grid_setStone(p->boardButs[i], goBoard_stone(board, i), grey); } if (!p->cg->screensaver && ((mark != grid_markType(p->boardButs[i])) || (markAux != grid_markAux(p->boardButs[i])))) grid_setMark(p->boardButs[i], mark, markAux); if (allowed & goPicMove_legal) { if (goGame_isLegal(game, toMove, i)) moveType |= goPicMove_legal; } if (moveType & allowed) { if (setMove) { if ((toMove == goStone_white) && (grid_stone(p->boardButs[i]) == goStone_empty)) grid_setVersion(p->boardButs[i], whiteVersion); grid_setPress(p->boardButs[i], toMove); } else but_setFlags(p->boardButs[i], BUT_PRESSABLE); } else { but_setFlags(p->boardButs[i], BUT_NOPRESS); } } } return(toMove); } static ButOut gridPressed(But *but) { GoPic *p; p = but_packet(but); assert(MAGIC(p)); return(p->press(p->packet, grid_pos(but))); } goban-1.1.orig/src/sgfOut.h0000644000175000017500000000076406037343060013371 0ustar alal/* * src/sgfOut.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SGFOUT_H_ #define _MOVECHAIN_H_ 1 #ifndef _SGF_H_ #include "sgf.h" #endif /********************************************************************** * Functions **********************************************************************/ extern bool sgf_writeFile(Sgf *mc, const char *fname, int *err); #endif /* _SGFOUT_H_ */ goban-1.1.orig/src/abut_help.h0000644000175000017500000000366610267776146014110 0ustar alal/* * src/help.h, part of wmslib library * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _ABUT_HELP_H_ #define _ABUT_HELP_H_ 1 #ifndef _WMS_H_ #include #endif #ifndef _BUT_BUT_H_ #include #endif #ifndef _BUT_TEXT_H_ #include #endif #ifndef _ABUT_ABUT_H_ #include #endif #ifndef _ABUT_SWIN_H_ #include #endif /********************************************************************** * Types **********************************************************************/ typedef struct AbutHelpText_struct { ButTextAlign align; int fontNum; const char *text; } AbutHelpText; typedef struct AbutHelpPage_struct { const char *pageName; const AbutHelpText *text; } AbutHelpPage; typedef struct AbutHelp_struct { Abut *abut; const AbutHelpPage *pages; int maxMenuOpts, curPage; const char **menuOpts; int numPages; ButWin *win; AbutSwin *swin; int swinW, swinH; But *bg, *menu, *ok; int numTextButs, maxTextButs; But *subBg, **textButs; ButOut (*destroyCallback)(struct AbutHelp_struct *help, void *packet); void *packet; MAGIC_STRUCT } AbutHelp; /********************************************************************** * Functions **********************************************************************/ extern AbutHelp *abutHelp_create(Abut *a, const char *title, const char *menuTitle, const AbutHelpPage *pages, int numPages, int x, int y, int w, int h, int minW, int minH); extern void abutHelp_destroy(AbutHelp *help); extern void abutHelp_newPages(AbutHelp *help, const char *menuTitle, const AbutHelpPage *pages, int numPages); extern void abutHelp_setDestroyCallback(AbutHelp *help, ButOut (*callback)(AbutHelp *help, void *packet), void *packet); extern void abutHelp_newPage(AbutHelp *help, int pageNum); #endif /* _ABUT_HELP_H_ */ goban-1.1.orig/src/box.c0000644000175000017500000004266710270060333012706 0ustar alal/* * wmslib/src/but/box.c, part of wmslib (Library functions) * Copyright (C) 1994-1997 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include /********************************************************************** * Data Types **********************************************************************/ typedef struct Box_struct { Pixmap ulmap, lrmap; int ulcolor, lrcolor; } Box; typedef struct BoxFilled_struct { Pixmap ulmap, lrmap, cmap; int ulcolor, lrcolor, ccolor; } BoxFilled; /********************************************************************** * Foward Declarations **********************************************************************/ static void box_draw(But *but, int x, int y, int w, int h); static void boxFilled_draw(But *but, int x, int y, int w, int h); static ButOut curve(int x, int y, int radius, int start, int sweep, XPoint *pts); static ButOut box_destroy(But *but); static ButOut boxFilled_destroy(But *but); static bool boxFilled_resize(But *but, int oldX, int oldY, int oldW, int oldH); static ButOut box_mmove(But *but, int x, int y); #define CIRCLE 64 /* Points to make a full circle. */ /********************************************************************** * Globals **********************************************************************/ static ButAction box_action = { box_mmove, NULL, NULL, NULL, NULL, NULL, box_draw, box_destroy, but_flags, NULL, NULL}; static ButAction boxFilled_action = { NULL, NULL, NULL, NULL, NULL, NULL, boxFilled_draw, boxFilled_destroy, but_flags, NULL, boxFilled_resize}; /********************************************************************** * Functions **********************************************************************/ But *butBox_create(ButWin *win, int layer, int flags) { But *but; Box *box; box = (Box *)wms_malloc(sizeof(Box)); but = but_create(win, box, &box_action); but->layer = layer; but->flags = flags; box->ulcolor = BUT_LIT; box->lrcolor = BUT_SHAD; box->ulmap = None; box->lrmap = None; but_init(but); return(but); } void butBox_setColors(But *but, int ul, int lr) { Box *box = but->iPacket; assert(but->action == &box_action); if (ul >= 0) { box->ulcolor = ul; box->ulmap = None; } if (lr >= 0) { box->lrcolor = lr; box->lrmap = None; } but_draw(but); } void butBox_setPixmaps(But *but, Pixmap ul, Pixmap lr) { Box *box = but->iPacket; assert(but->action == &box_action); if (ul != None) box->ulmap = ul; if (lr != None) box->lrmap = lr; but_draw(but); } static void box_draw(But *but, int x, int y, int w, int h) { ButEnv *env = but->win->env; int butbw = env->stdButBw; Box *box = but->iPacket; if ((x < but->x + butbw) || (x+w > but->x + but->w - butbw) || (y < but->y + butbw) || (y+h > but->y + but->h - butbw)) { but_drawBox(but->win, but->x, but->y, but->w, but->h,0, butbw, 0, box->ulcolor, box->lrcolor, box->ulmap, box->lrmap); } } static ButOut box_destroy(But *but) { wms_free(but->iPacket); return(0); } void but_drawBox(ButWin *win, int x, int y, int w, int h, int bstate, int bw, int angles, int ulcolor, int lrcolor, Pixmap ulmap, Pixmap lrmap) { ButEnv *env = win->env; Display *dpy = env->dpy; XPoint points[(CIRCLE/8+1)*4 + (CIRCLE/4+1)*2 + 1]; int abw = (bw * 1448 + 511) / 1024, h2 = h/2; int rounding = env->font0h / 2; int pnum = 0; int xOff = win->xOff, yOff = win->yOff; bool forceTiled; /* For arrows: * a----- h2 = c.y - a.y * / b____ abw = d.x - c.x * / / * c_d * \ \ */ if (angles & BUT_ALEFT) { points[pnum ].x = x + abw + h2 - bw - xOff; points[pnum++].y = y + bw - yOff; points[pnum ].x = x + abw - xOff; points[pnum++].y = y + h2 - yOff; points[pnum ].x = x - xOff; points[pnum++].y = y + h2 - yOff; points[pnum ].x = x + h2 - xOff; points[pnum++].y = y - yOff; } else if (angles & BUT_RLEFT) { pnum += curve(x+rounding-xOff, y+ rounding-yOff, rounding-bw, 90,90, points+pnum); pnum += curve(x+rounding-xOff, y+h-rounding-yOff, rounding-bw, 180,45, points+pnum); pnum += curve(x+rounding-xOff, y+h-rounding-yOff, rounding, 225,-45, points+pnum); pnum += curve(x+rounding-xOff, y+ rounding-yOff, rounding, 180,-90, points+pnum); } else { /* Square left edge. */ points[pnum ].x = x + bw - xOff; points[pnum++].y = y + bw - yOff; points[pnum ].x = x + bw - xOff; points[pnum++].y = y + h - bw - yOff; points[pnum ].x = x - xOff; points[pnum++].y = y + h - yOff; points[pnum ].x = x - xOff; points[pnum++].y = y - yOff; } if (angles & BUT_ARIGHT) { points[pnum ].x = x + w - h2 - xOff; points[pnum++].y = y - yOff; points[pnum ].x = x + w - xOff; points[pnum++].y = y + h2 - yOff; points[pnum ].x = x + w - abw - xOff; points[pnum++].y = y + h2 - yOff; points[pnum ].x = x + w - (abw + h2) + (abw-bw) - xOff; points[pnum++].y = y + bw - yOff; } else if (angles & BUT_RRIGHT) { pnum += curve(x+w-rounding-xOff, y+rounding-yOff, rounding, 90,-45, points+pnum); pnum += curve(x+w-rounding-xOff, y+rounding-yOff, rounding-bw, 0,45, points+pnum); } else { /* Square right edge. */ points[pnum ].x = x + w - xOff; points[pnum++].y = y - yOff; points[pnum ].x = x + w - bw - xOff; points[pnum++].y = y + bw - yOff; } points[pnum] = points[0]; assert(pnum < sizeof(points) / sizeof(points[0])); forceTiled = FALSE; if (bstate == 0) { if (ulmap == None) { butEnv_setXFg(env, ulcolor); } else { forceTiled = TRUE; XSetFillStyle(env->dpy, env->gc, FillTiled); XSetTile(env->dpy, env->gc, ulmap); } } else { if (lrmap == None) { butEnv_setXFg(env, lrcolor); } else { forceTiled = TRUE; XSetFillStyle(env->dpy, env->gc, FillTiled); XSetTile(env->dpy, env->gc, lrmap); } } XFillPolygon(dpy, win->win, env->gc, points, pnum, Nonconvex, CoordModeOrigin); h2 = (h + 1) / 2; pnum = 0; if (angles & BUT_ALEFT) { points[pnum ].x = x + abw + h2 - bw - xOff; points[pnum++].y = y + h - bw - yOff; points[pnum ].x = x + abw - xOff; points[pnum++].y = y + h - h2 - yOff; points[pnum ].x = x - xOff; points[pnum++].y = y + h - h2 - yOff; points[pnum ].x = x + h2 - xOff; points[pnum++].y = y + h - yOff; } else if (angles & BUT_RLEFT) { pnum += curve(x+rounding-xOff, y+h-rounding-yOff, rounding-bw, 270,-45, points+pnum); pnum += curve(x+rounding-xOff, y+h-rounding-yOff, rounding, 225,45, points+pnum); } else { /* Square left edge. */ points[pnum ].x = x + bw - xOff; points[pnum++].y = y + h - bw - yOff; points[pnum ].x = x - xOff; points[pnum++].y = y + h - yOff; } if (angles & BUT_ARIGHT) { points[pnum ].x = x + w - h2 - xOff; points[pnum++].y = y + h - yOff; points[pnum ].x = x + w - xOff; points[pnum++].y = y + h - h2 - yOff; points[pnum ].x = x + w - abw - xOff; points[pnum++].y = y + h - h2 - yOff; points[pnum ].x = x + w - (abw + h2) + (abw-bw) - xOff; points[pnum++].y = y + h - bw - yOff; } else if (angles & BUT_RRIGHT) { pnum += curve(x+w-rounding-xOff, y+h-rounding-yOff, rounding, 270,90, points+pnum); pnum += curve(x+w-rounding-xOff, y+rounding-yOff, rounding, 0,45, points+pnum); pnum += curve(x+w-rounding-xOff, y+rounding-yOff, rounding-bw, 45,-45, points+pnum); pnum += curve(x+w-rounding-xOff, y+h-rounding-yOff, rounding-bw, 0,-90, points+pnum); } else { /* Square right edge. */ points[pnum ].x = x + w - xOff; points[pnum++].y = y + h - yOff; points[pnum ].x = x + w - xOff; points[pnum++].y = y - yOff; points[pnum ].x = x + w - bw - xOff; points[pnum++].y = y + bw - yOff; points[pnum ].x = x + w - bw - xOff; points[pnum++].y = y + h - bw - yOff; } points[pnum] = points[0]; assert(pnum < sizeof(points) / sizeof(points[0])); if (bstate == 0) { if (lrmap == None) { if (forceTiled) { XSetFillStyle(env->dpy, env->gc, FillSolid); forceTiled = FALSE; } butEnv_setXFg(env, lrcolor); } else { forceTiled = TRUE; XSetFillStyle(env->dpy, env->gc, FillTiled); XSetTile(env->dpy, env->gc, lrmap); } } else { if (ulmap == None) { if (forceTiled) { XSetFillStyle(env->dpy, env->gc, FillSolid); forceTiled = FALSE; } butEnv_setXFg(env, ulcolor); } else { if (!forceTiled) { XSetFillStyle(env->dpy, env->gc, FillTiled); forceTiled = TRUE; } XSetTile(env->dpy, env->gc, ulmap); } } XFillPolygon(dpy, win->win, env->gc, points, pnum, Nonconvex, CoordModeOrigin); if (forceTiled) butEnv_stdFill(env); } static ButOut curve(int x, int y, int radius, int start, int sweep, XPoint *pts) { const int circRadius = 2048; static const int cosine[CIRCLE] = { 2048, 2038, 2009, 1960, 1892, 1806, 1703, 1583, 1448, 1299, 1138, 965, 784, 595, 400, 201, 0, -201, -400, -595, -784, -965,-1138,-1299, -1448,-1583,-1703,-1806, -1892,-1960,-2009,-2038, -2048,-2038,-2009,-1960, -1892,-1806,-1703,-1583, -1448,-1299,-1138, -965, -784, -595, -400, -201, 0, 201, 400, 595, 784, 965, 1138, 1299, 1448, 1583, 1703, 1806, 1892, 1960, 2009, 2038}; int i, step, count = 0, limit, round, cv; start = (start * CIRCLE) / 360; sweep = (sweep * CIRCLE) / 360; if (sweep > 0) step = 1; else step = -1; limit = step*sweep; for (i = start, count = 0; count <= limit; i += step, ++count) { cv = cosine[i & (CIRCLE-1)]; if (cv < 0) round = -circRadius/2; else round = circRadius/2; pts[count].x = x + (cv * radius + round) / circRadius; cv = cosine[(CIRCLE/4 + i) & (CIRCLE-1)]; if (cv < 0) round = -circRadius/2; else round = circRadius/2; pts[count].y = y + (cv * radius + round) / circRadius; } return(count); } void but_drawCt(ButWin *win, int flags, int fgpic, int bgpic, int pbgpic, int x, int y, int w, int h, int bw, const char *text, int angles, int fontnum) { ButEnv *env = win->env; but_drawCtb(win, flags, fgpic, bgpic, pbgpic, x, y, w, h, bw, angles); if (!(flags & BUT_PRESSABLE)) { XSetFillStyle(env->dpy, env->gc, FillStippled); XSetForeground(env->dpy, env->gc, env->colors[fgpic]); } else butEnv_setXFg(env, fgpic); if ((flags & BUT_PRESSED) && (flags & BUT_TWITCHED)) { x += bw/2; y += bw/2; } butWin_write(win, x + (w - butEnv_textWidth(env, text, fontnum))/2, y + (h - butEnv_fontH(env, fontnum)) / 2, text, fontnum); if (!(flags & BUT_PRESSABLE)) { butEnv_stdFill(env); } } void but_drawCtb(ButWin *win, int flags, int fgpic, int bgpic, int pbgpic, int x, int y, int w, int h, int bw, int angles) { ButEnv *env = win->env; but_drawBox(win, x, y, w, h, flags & (BUT_PRESSED|BUT_NETPRESS), bw, angles, BUT_LIT, BUT_SHAD, None, None); if ((flags & (BUT_PRESSED|BUT_NETPRESS)) && (flags & (BUT_TWITCHED|BUT_NETTWITCH|BUT_KEYPRESSED|BUT_NETKEY))) bgpic = pbgpic; butEnv_setXFg(env, bgpic); x -= win->xOff; y -= win->yOff; if (angles) { XPoint points[CIRCLE + 5]; int npoints = 0, abw = (bw * 1448 + 511) / 1024, rnd = env->font0h / 2; if (angles & BUT_ALEFT) { points[npoints ].x = x + abw + h/2 - bw; points[npoints++].y = y + bw; points[npoints ].x = x + abw; points[npoints++].y = y + h/2; points[npoints ].x = x + abw + (h+1)/2 - bw; points[npoints++].y = y + h - bw; } else if (angles & BUT_RLEFT) { npoints += curve(x+rnd,y+rnd, rnd-bw, 90,90, points+npoints); npoints += curve(x+rnd,y+h-rnd, rnd-bw, 180,90, points+npoints); } else { points[npoints ].x = x + bw; points[npoints++].y = y + bw; points[npoints ].x = x + bw; points[npoints++].y = y + h - bw; } if (angles & BUT_ARIGHT) { points[npoints ].x = x + w - abw - (h+1)/2 + bw; points[npoints++].y = y + h - bw; points[npoints ].x = x + w - abw; points[npoints++].y = y + h/2; points[npoints ].x = x + w - abw - h/2 + bw; points[npoints++].y = y + bw; } else if (angles & BUT_RRIGHT) { npoints += curve(x+w-rnd,y+h-rnd, rnd-bw, 270,90, points+npoints); npoints += curve(x+w-rnd,y+rnd, rnd-bw, 0,90, points+npoints); } else { points[npoints ].x = x + w - bw; points[npoints++].y = y + h - bw; points[npoints ].x = x + w - bw; points[npoints++].y = y + bw; } points[npoints] = points[0]; assert(npoints < CIRCLE+5); XFillPolygon(env->dpy, win->win, env->gc, points, npoints, Convex, CoordModeOrigin); } else XFillRectangle(env->dpy, win->win, env->gc, x+bw, y+bw, w-2*bw, h-2*bw); } But *butBoxFilled_create(ButWin *win, int layer, int flags) { But *but; BoxFilled *box; box = (BoxFilled *)wms_malloc(sizeof(BoxFilled)); but = but_create(win, box, &boxFilled_action); but->layer = layer; but->flags = flags | BUT_OPAQUE; box->ulcolor = BUT_LIT; box->lrcolor = BUT_SHAD; box->ccolor = BUT_BG; box->ulmap = None; box->lrmap = None; box->cmap = None; but_init(but); return(but); } void butBoxFilled_setColors(But *but, int ul, int lr, int c) { BoxFilled *box = but->iPacket; assert(but->action == &boxFilled_action); if (ul >= 0) { box->ulcolor = ul; box->ulmap = None; } if (lr >= 0) { box->lrcolor = lr; box->lrmap = None; } if (c >= 0) { box->ccolor = c; box->cmap = None; } but_draw(but); } void butBoxFilled_setPixmaps(But *but, Pixmap ul, Pixmap lr, Pixmap c) { BoxFilled *box = but->iPacket; assert(but->action == &boxFilled_action); if (ul != None) box->ulmap = ul; if (lr != None) box->lrmap = lr; if (c != None) box->cmap = c; but_draw(but); } static void boxFilled_draw(But *but, int x, int y, int w, int h) { ButWin *win = but->win; ButEnv *env = win->env; int butbw = env->stdButBw; BoxFilled *box = but->iPacket; if ((x < but->x + butbw) || (x+w > but->x + but->w - butbw) || (y < but->y + butbw) || (y+h > but->y + but->h - butbw)) { but_drawBox(but->win, but->x, but->y, but->w, but->h,0, butbw, 0, box->ulcolor, box->lrcolor, box->ulmap, box->lrmap); } if ((x >= but->x + but->w - butbw) || (y >= but->y + but->h - butbw) || (x + w <= but->x + butbw) || (y+h <= but->y + butbw)) return; if (x < but->x + butbw) { w -= but->x + butbw - x; x = but->x + butbw; } if (y < but->y + butbw) { h -= but->y + butbw - y; y = but->y + butbw; } if (x+w > but->x + but->w - butbw) w = but->x + but->w - butbw - x; if (y+h > but->y + but->h - butbw) h = but->y + but->h - butbw - y; if (box->cmap == None) { butEnv_setXFg(env, box->ccolor); XFillRectangle(env->dpy, win->win, env->gc, x-win->xOff, y-win->yOff, w,h); } else { if (env->colorp) XSetFillStyle(env->dpy, env->gc, FillTiled); XSetTile(env->dpy, env->gc, box->cmap); XFillRectangle(env->dpy, but->win->win, env->gc, x-win->xOff, y-win->yOff, w,h); if (env->colorp) XSetFillStyle(env->dpy, env->gc, FillSolid); } } static ButOut boxFilled_destroy(But *but) { wms_free(but->iPacket); return(0); } /* * This resize redraws only the needed parts of the screen. */ static bool boxFilled_resize(But *but, int oldX, int oldY, int oldW, int oldH) { int x, y, w, h, bw; bw = but->win->env->stdButBw; x = but->x; y = but->y; w = but->w; h = but->h; if ((oldW < 1) || (oldH < 1)) { butWin_redraw(but->win, x, y, w, h); } else if ((x + w < oldX) || (y + h < oldY) || (oldX + oldW < x) || (oldY + oldH < y)) { butWin_redraw(but->win, oldX, oldY, oldW, oldH); butWin_redraw(but->win, x, y, w, h); } else { if (x < oldX) butWin_redraw(but->win, x, y, oldX + bw - x, h); else if (oldX < x) butWin_redraw(but->win, oldX, oldY, x + bw - oldX, oldH); if (y < oldY) butWin_redraw(but->win, x, y, w, oldY + bw - y); else if (oldY < y) butWin_redraw(but->win, oldX, oldY, oldW, y + bw - oldY); if (x + w < oldX + oldW) butWin_redraw(but->win, x + w - bw, oldY, oldX + oldW + bw - x - w, oldH); else if (oldX + oldW < x + w) butWin_redraw(but->win, oldX + oldW - bw, y, x + w + bw - oldX - oldW, h); if (y + h < oldY + oldH) butWin_redraw(but->win, oldX, y + h - bw, oldW, oldY + oldH + bw - y - h); else if (oldY + oldH < y + h) butWin_redraw(but->win, x, oldY + oldH - bw, w, y + h + bw - oldY - oldH); } return(FALSE); } static ButOut box_mmove(But *but, int x, int y) { int bw = butEnv_stdBw(but->win->env); if (((x >= but->x) && (x < but->x + bw)) || ((y >= but->y) && (y < but->y + bw)) || ((x >= but->x + but->w - bw) && (x < but->x + but->w)) || ((y >= but->y + but->h - bw) && (y < but->y + but->h))) return(BUTOUT_CAUGHT); else return(0); } #endif goban-1.1.orig/src/data.c0000644000175000017500000000366510270067666013042 0ustar alal/* * src/client/data.c, part of Complete Goban (game program) * Copyright (C) 1995-1997 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include "cgoban.h" #ifdef _CLIENT_DATA_H_ #error LEVELIZATION ERROR #endif #include "data.h" /********************************************************************** * Forward Declarations **********************************************************************/ static void cliData_destroy(CliData *cd); /********************************************************************** * Functions **********************************************************************/ CliData *cliData_create(Cgoban *cg, int serverNum, const CliActions *actions, void *packet) { CliData *cd; const char *serverId; assert(MAGIC(cg)); cd = wms_malloc(sizeof(CliData)); MAGIC_SET(cd); cd->state = cliData_setup; cd->cg = cg; cd->serverNum = serverNum; serverId = clp_getStrNum(cg->clp, "client.protocol", serverNum); if (serverId[0] == 'n') cd->server = cliServer_nngs; else { assert(serverId[0] == 'i'); cd->server = cliServer_igs; } cd->serverName = clp_getStrNum(cg->clp, "client.server", serverNum); str_init(&cd->userName); str_init(&cd->cmdBuild); cd->numKibitz = clp_lookup(cg->clp, "client.numberKibitz"); cd->connValid = FALSE; cd->actions = actions; cd->packet = packet; cd->refCount = 1; return(cd); } void cliData_closeConns(CliData *cd) { assert(MAGIC(cd)); if (cd->connValid) { cliConn_deinit(&cd->conn); cd->connValid = FALSE; } } static void cliData_destroy(CliData *cd) { assert(MAGIC(cd)); if (cd->actions) { cd->actions->logout(cd->packet); } str_deinit(&cd->userName); str_deinit(&cd->cmdBuild); cliData_closeConns(cd); MAGIC_UNSET(cd); wms_free(cd); } void cliData_decRef(CliData *cd) { if (--cd->refCount == 0) cliData_destroy(cd); } goban-1.1.orig/src/clp.c0000644000175000017500000003532610267777551012715 0ustar alal/* * wmslib/src/wms/clp.c, part of wmslib (Library functions) * Copyright (C) 1995-1997 William Shubert. * See "configure.h.in" for more copyright information. * * Command Line Parse. */ #include #include #include #include /* To get umask()...I hope this is portable! */ #include #if STDC_HEADERS #include #endif /* STDC_HEADERS */ #ifdef _WMS_CLP_H_ #error Levelization Error. #endif #include "clp.h" /********************************************************************** * Globals **********************************************************************/ const char *wms_progname = "UNKNOWN"; static bool showErrs = TRUE; /********************************************************************** * Forward Declarations **********************************************************************/ static ClpEntry *clp_iLookup(Clp *clp, const char *key, bool *bval); static void clpEntry_free(ClpEntry *ci); static void strip(char *argv[]); static void clp_help(Clp *clp); static void setStrList(ClpEntry *entry, const char *vals); static void moreStrs(ClpEntry *ce, int newNumStrs); /********************************************************************** * Functions **********************************************************************/ Clp *clp_create(const ClpSetup vars[]) { int numVars, i; Clp *newClp; newClp = wms_malloc(sizeof(Clp)); MAGIC_SET(newClp); for (numVars = 0; !(vars[numVars].flags & CLPSETUP_ENDFLAG); ++numVars); newClp->numInfos = numVars + 2; newClp->infos = wms_malloc((numVars + 2) * sizeof(ClpEntry)); for (i = 0; i < numVars; ++i) { MAGIC_SET(&newClp->infos[i]); newClp->infos[i].name = vars[i].name; newClp->infos[i].desc = vars[i].desc; newClp->infos[i].flags = vars[i].flags; newClp->infos[i].test = vars[i].test; if (vars[i].name == NULL) newClp->infos[i].flags |= CLPSETUP_NOSAVE; newClp->infos[i].where = clpWhere_unset; newClp->infos[i].type = clpDtype_string; newClp->infos[i].numStrs = 0; newClp->infos[i].maxStrs = 0; newClp->infos[i].storage.strList = NULL; if (vars[i].defVal) { setStrList(&newClp->infos[i], vars[i].defVal); } else { setStrList(&newClp->infos[i], ""); } assert(newClp->infos[i].numStrs > 0); } MAGIC_SET(&newClp->infos[i]); newClp->infos[i].name = NULL; newClp->infos[i].desc = ""; newClp->infos[i].flags = CLPSETUP_BOOL|CLPSETUP_NOSAVE; newClp->infos[i].where = clpWhere_unset; newClp->infos[i].type = clpDtype_bool; newClp->infos[i].test = NULL; ++i; MAGIC_SET(&newClp->infos[i]); newClp->infos[i].name = "help,-help"; newClp->infos[i].desc = "Show this message"; newClp->infos[i].flags = CLPSETUP_BOOL|CLPSETUP_NOSAVE|CLPSETUP_HELP; newClp->infos[i].where = clpWhere_unset; newClp->infos[i].type = clpDtype_bool; newClp->infos[i].test = NULL; return(newClp); } void clp_destroy(Clp *clp) { int i; assert(MAGIC(clp)); for (i = 0; i < clp->numInfos; ++i) clpEntry_free(&clp->infos[i]); wms_free(clp->infos); wms_free(clp); } int clp_rCmdline(Clp *clp, char *argv[]) { int numArgs; ClpEntry *ce; bool bval; assert(MAGIC(clp)); wms_progname = argv[0]; strip(argv); for (numArgs = 0; argv[numArgs];) { if (argv[numArgs][0] == '-') { /* It's a switch. */ ce = clp_iLookup(clp, argv[numArgs]+1, &bval); ce->where = clpWhere_cmdline; if (ce->flags & CLPSETUP_BOOL) { if (bval && (ce->flags & CLPSETUP_HELP)) { clp_help(clp); exit(1); } clpEntry_setBool(ce, bval); } else { if (argv[numArgs+1]) clpEntry_setStr(ce, argv[numArgs+1]); else { fprintf(stderr, "%s: Switch \"%s\" requires an argument.\n", wms_progname, argv[numArgs]); exit(1); } strip(argv + numArgs); } strip(argv + numArgs); } else ++numArgs; } return(numArgs); } /* * clp_rFile returns FALSE if it can't find the file at all. */ bool clp_rFile(Clp *clp, const char *fname) { FILE *ifile; char line_in[1024], *arg; Str full_fn; char *home, *key_start; int i, ch_in; bool retval = FALSE; ClpEntry *ci; assert(MAGIC(clp)); str_initChars(&full_fn, fname); showErrs = FALSE; if (fname[0] == '~') { /* Prepend "$HOME" */ home = getenv("HOME"); if (home == NULL) { fprintf(stderr, "%s: Error: Could not find environment variable \"HOME\".\n", wms_progname); showErrs = TRUE; str_deinit(&full_fn); return(FALSE); } str_print(&full_fn, "%s/%s", home, fname+1); } ifile = fopen(str_chars(&full_fn), "r"); if (ifile != NULL) { retval = TRUE; do { ch_in = getc(ifile); for (i = 0; (i < 1023) && (ch_in != '\n') && (ch_in != EOF); ++i) { line_in[i] = ch_in; ch_in = getc(ifile); } while ((ch_in != '\n') && (ch_in != EOF)) ch_in = getc(ifile); line_in[i] = '\0'; if ((line_in[0] == '#') || (line_in[0] == '\0')) continue; key_start = strchr(line_in, '.') + 1; if (key_start != NULL) { arg = strchr(line_in, ':'); *arg = '\0'; arg += 2; ci = clp_iLookup(clp, key_start, NULL); if (ci != NULL) { if ((ci->where == clpWhere_unset) || (ci->where == clpWhere_xdefs)) { ci->where = clpWhere_rcfile; setStrList(ci, arg); } } } } while (ch_in != EOF); fclose(ifile); } str_deinit(&full_fn); showErrs = TRUE; return(retval); } void clp_wFile(Clp *clp, const char *fname, const char *pname) { FILE *ofile; Str full_fn; char *home; const char *strOut; int i, prevMask, strNum, charNum; ClpEntry *ci; str_initChars(&full_fn, fname); if (fname[0] == '~') { /* Prepend "$HOME" */ home = getenv("HOME"); if (home == NULL) { fprintf(stderr, "%s: Error: Could not find environment variable \"HOME\".\n", wms_progname); str_deinit(&full_fn); return; } str_print(&full_fn, "%s/%s", home, fname+1); } prevMask = umask(0177); ofile = fopen(str_chars(&full_fn), "w"); umask(prevMask); if (ofile == NULL) { fprintf(stderr, "%s: Error: Could not open file \"%s\" for writing.\n", wms_progname, fname); perror(wms_progname); exit(1); } fprintf(ofile, "# NOTICE: Please do not edit this file.\n" "# It was automatically generated by \"%s\". If you want to\n" "# change one of these values, please use command line switches,\n" "# X defaults, or a setup window.\n" "# As a last resort you may simply delete this file.\n\n", wms_progname); for (i = 0; i < clp->numInfos; ++i) { ci = &clp->infos[i]; if (!(ci->flags & CLPSETUP_NOSAVE)) { switch(ci->type) { case clpDtype_int: fprintf(ofile, "%s.%s: %d\n", pname, ci->name, ci->storage.ival); break; case clpDtype_double: fprintf(ofile, "%s.%s: %f\n", pname, ci->name, ci->storage.dval); break; case clpDtype_bool: if (ci->storage.bval) fprintf(ofile, "%s.%s: y\n", pname, ci->name); else fprintf(ofile, "%s.%s: n\n", pname, ci->name); break; case clpDtype_string: fprintf(ofile, "%s.%s: ", pname, ci->name); for (strNum = 0; strNum < ci->numStrs; ++strNum) { if (strNum != 0) putc('|', ofile); strOut = str_chars(&ci->storage.strList[strNum]); for (charNum = 0; strOut[charNum]; ++charNum) { if ((strOut[charNum] == '|') || (strOut[charNum] == '\\')) putc('\\', ofile); putc(strOut[charNum], ofile); } } putc('\n', ofile); break; default: /* Should never reach here. */ assert(0); break; } } } fclose(ofile); str_deinit(&full_fn); } int clpEntry_iGetInt(ClpEntry *ce, bool *err) { switch(ce->type) { case clpDtype_int: if (err) *err = FALSE; return(ce->storage.ival); break; case clpDtype_string: return(wms_atoi(str_chars(&ce->storage.strList[0]), err)); break; default: if (err) *err = TRUE; return(0); } } double clpEntry_iGetDouble(ClpEntry *ce, bool *err) { switch(ce->type) { case clpDtype_double: if (err) *err = FALSE; return(ce->storage.dval); break; case clpDtype_string: return(wms_atof(str_chars(&ce->storage.strList[0]), err)); break; default: if (err) *err = TRUE; return(0.0); } } const char *clpEntry_iGetStrNum(ClpEntry *ce, int num, bool *err) { if (ce->type == clpDtype_string) { if (err) *err = FALSE; assert(num < ce->numStrs); return(str_chars(&ce->storage.strList[num])); } else { if (err) *err = TRUE; return(NULL); } } bool clpEntry_iGetBool(ClpEntry *ce, bool *err) { const char *str; switch(ce->type) { case clpDtype_bool: if (err) *err = FALSE; return(ce->storage.bval); break; case clpDtype_string: str = str_chars(&ce->storage.strList[0]); if ((!strcmp(str, "1")) || (!strcmp(str, "t")) || (!strcmp(str, "T")) || (!strcmp(str, "y")) || (!strcmp(str, "Y")) || (!strcmp(str, "true")) || (!strcmp(str, "True")) || (!strcmp(str, "TRUE")) || (!strcmp(str, "yes")) || (!strcmp(str, "Yes")) || (!strcmp(str, "YES"))) return(TRUE); if ((!strcmp(str, "0")) || (!strcmp(str, "f")) || (!strcmp(str, "F")) || (!strcmp(str, "n")) || (!strcmp(str, "N")) || (!strcmp(str, "false")) || (!strcmp(str, "False")) || (!strcmp(str, "FALSE")) || (!strcmp(str, "no")) || (!strcmp(str, "No")) || (!strcmp(str, "NO"))) return(FALSE); if (err) *err = TRUE; return(FALSE); break; default: if (err) *err = TRUE; return(FALSE); } } bool clpEntry_setInt(ClpEntry *ce, int val) { ClpEntry newCe; MAGIC_SET(&newCe); if (ce->test) { newCe.type = clpDtype_int; newCe.storage.ival = val; if (!ce->test(&newCe)) return(FALSE); } clpEntry_free(ce); ce->type = clpDtype_int; ce->storage.ival = val; MAGIC_UNSET(&newCe); return(TRUE); } bool clpEntry_setDouble(ClpEntry *ce, double val) { ClpEntry newCe; MAGIC_SET(&newCe); if (ce->test) { newCe.type = clpDtype_double; newCe.storage.dval = val; if (!ce->test(&newCe)) return(FALSE); } clpEntry_free(ce); ce->type = clpDtype_double; ce->storage.dval = val; MAGIC_UNSET(&newCe); return(TRUE); } bool clpEntry_setStrNum(ClpEntry *ce, const char *val, int num) { ClpEntry newCe; bool testResult; if (ce->test) { assert(num == 0); MAGIC_SET(&newCe); newCe.type = clpDtype_string; newCe.storage.strList = str_createChars(val); newCe.numStrs = 1; testResult = ce->test(&newCe); str_destroy(newCe.storage.strList); MAGIC_UNSET(&newCe); if (!testResult) return(FALSE); } if (ce->type == clpDtype_string) { if (num >= ce->numStrs) { moreStrs(ce, num+1); } str_copyChars(&ce->storage.strList[num], val); } else { assert(num == 0); clpEntry_free(ce); ce->type = clpDtype_string; ce->numStrs = 1; ce->maxStrs = 1; ce->storage.strList = str_createChars(val); } return(TRUE); } static void moreStrs(ClpEntry *ce, int newNumStrs) { Str *newStrs; int i; assert(newNumStrs > ce->numStrs); newStrs = wms_malloc(newNumStrs * sizeof(Str)); for (i = 0; i < ce->numStrs; ++i) { newStrs[i] = ce->storage.strList[i]; } for (; i < newNumStrs; ++i) { str_init(&newStrs[i]); } wms_free(ce->storage.strList); ce->storage.strList = newStrs; } bool clpEntry_setBool(ClpEntry *ce, bool val) { ClpEntry newCe; MAGIC_SET(&newCe); if (ce->test) { newCe.type = clpDtype_bool; newCe.storage.bval = val; if (!ce->test(&newCe)) return(FALSE); } clpEntry_free(ce); ce->type = clpDtype_bool; ce->storage.bval = val; MAGIC_UNSET(&newCe); return(TRUE); } ClpEntry *clp_lookup(Clp *clp, const char *key) { assert(MAGIC(clp)); return(clp_iLookup(clp, key, NULL)); } static ClpEntry *clp_iLookup(Clp *clp, const char *key, bool *bval) { ClpEntry *ci; int i, j, keyLen; bool reversed; assert(MAGIC(clp)); keyLen = strlen(key); reversed = !strncmp(key, "no", 2); if (bval) *bval = TRUE; for (i = 0; i < clp->numInfos; ++i) { ci = &clp->infos[i]; if (ci->name) { for (j = 0; ci->name[j];) { if (!strncmp(ci->name+j, key, keyLen)) { if ((ci->name[j + keyLen] == '\0') || (ci->name[j + keyLen] == ',')) return(ci); } if (reversed && (ci->flags & CLPSETUP_BOOL) && !strncmp(ci->name, key+2, keyLen - 2)) { if (bval) *bval = FALSE; return(ci); } while (ci->name[j] && (ci->name[j] != ',')) ++j; if (ci->name[j]) ++j; } } } if (showErrs) { fprintf(stderr, "%s: \"-%s\" is not a valid flag.\n" " Use \"%s -help\" for a list of valid flags.\n", wms_progname, key, wms_progname); exit(1); } else return(NULL); } static void strip(char *argv[]) { do { argv[0] = argv[1]; ++argv; } while (argv[0] != NULL); } static void clpEntry_free(ClpEntry *ci) { int i; assert(MAGIC(ci)); if (ci->type == clpDtype_string) { for (i = 0; i < ci->maxStrs; ++i) str_deinit(&ci->storage.strList[i]); wms_free(ci->storage.strList); } } static void clp_help(Clp *clp) { int i, j; char name[40]; const char *prestr; assert(MAGIC(clp)); for (i = 0; i < clp->numInfos; ++i) { if (clp->infos[i].desc) { if (clp->infos[i].name) { name[0] = '\0'; if (clp->infos[i].flags & CLPSETUP_SHOWBOOL) prestr = "-[no]"; else prestr = "-"; strcpy(name, prestr); for (j = 0; clp->infos[i].name[j]; ++j) { strncat(name, clp->infos[i].name+j, 1); if (clp->infos[i].name[j] == ',') strcat(name, prestr); } fprintf(stderr, " %20s %s\n", name, clp->infos[i].desc); } else fprintf(stderr, " %s\n", clp->infos[i].desc); } } } static void setStrList(ClpEntry *entry, const char *vals) { int numVals = 1; int i; Str *newStrs; bool escaped; for (i = 0, escaped = FALSE; vals[i]; ++i) { if (!escaped && (vals[i] == '|')) ++numVals; escaped = (!escaped && (vals[i] == '\\')); } if (numVals > entry->maxStrs) { newStrs = wms_malloc(numVals * sizeof(Str)); for (i = 0; i < numVals; ++i) { str_init(&newStrs[i]); } if (entry->storage.strList != NULL) wms_free(entry->storage.strList); entry->maxStrs = numVals; entry->storage.strList = newStrs; } else newStrs = entry->storage.strList; entry->numStrs = numVals; numVals = 0; str_clip(&newStrs[0], 0); for (i = 0, escaped = FALSE; vals[i]; ++i) { if (escaped) { str_catChar(&newStrs[numVals], vals[i]); escaped = FALSE; } else { if (vals[i] == '\\') escaped = TRUE; else if (vals[i] == '|') { ++numVals; assert(numVals < entry->numStrs); str_clip(&newStrs[numVals], 0); } else { str_catChar(&newStrs[numVals], vals[i]); } } } } goban-1.1.orig/src/main.h0000644000175000017500000000066506056000734013045 0ustar alal/* * src/main.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _MAIN_H_ #define _MAIN_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern int main(int argc, char *argv[], char *envp[]); #endif /* _MAIN_H_ */ goban-1.1.orig/src/text.h0000644000175000017500000000204406205533771013106 0ustar alal/* * wmslib/src/but/text.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for text.c */ #ifndef _BUT_TEXT_H_ #define _BUT_TEXT_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef enum { butText_left, butText_right, butText_center, butText_just } ButTextAlign; /********************************************************************** * Functions **********************************************************************/ extern But *butText_create(ButWin *win, int layer, int flags, const char *text, ButTextAlign align); extern int butText_resize(But *but, int x, int y, int h); extern const char *butText_get(But *but); extern void butText_set(But *but, const char *text); extern void butText_setFont(But *but, int fontnum); extern void butText_setColor(But *but, int color, bool stipple); #endif /* _BUT_TEXT_H_ */ goban-1.1.orig/src/crwin.h0000644000175000017500000000133406045075673013251 0ustar alal/* * src/crwin.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CRWIN_H_ #define _CRWIN_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef struct { ButEnv *env; But *box, *title, *byBill, *noWarr, *seeHelp; ButTimer *timer; MAGIC_STRUCT } Crwin; /********************************************************************** * Functions **********************************************************************/ Crwin *crwin_create(Cgoban *cg, ButWin *win, int layer); #endif /* _CRWIN_H_ */ goban-1.1.orig/src/i_general.c0000644000175000017500000004606110270057704014043 0ustar alal/* * wmslib/src/but/i_general.c, part of wmslib (Library functions) * Copyright (C) 1994,1997 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include #include /********************************************************************** * Forward Declarations **********************************************************************/ static void mousein(ButWin *win, int x, int y, ButSet *butset); /********************************************************************** * Globals **********************************************************************/ bool but_inEvent = FALSE; /********************************************************************** * Functions **********************************************************************/ void but_init(But *but) { ButWin *win = but->win; ButEnv *env = win->env; int nfl; assert(MAGIC(win)); MAGIC_SET(but); if (!(but->flags & BUT_DRAWABLE)) return; if (win->maxLayer < win->minLayer) win->maxLayer = win->minLayer = but->layer; else { if (but->layer < win->minLayer) win->minLayer = but->layer; if (but->layer > win->maxLayer) win->maxLayer = but->layer; } butSet_addBut(&win->butsNoDraw, but); if (but->w > 0) but_addToTable(but); if (but->flags & BUT_KEYED) { if (win->keyBut != NULL) { nfl = win->keyBut->flags & ~BUT_KEYED; if (env->last_mwin == win) nfl &= ~BUT_KEYACTIVE; but_newFlags(win->keyBut, nfl); } win->keyBut = but; if (env->last_mwin == win) but->flags |= BUT_KEYACTIVE; } nfl = but->flags; but->flags = BUT_DRAWABLE; /* Force a new flags type redraw. */ but_newFlags(but, nfl); butWin_mMove(env->last_mwin, env->last_mx, env->last_my); } void but_resize(But *but, int x, int y, int w, int h) { int oldx = but->x, oldy = but->y, oldw = but->w, oldh = but->h; assert(MAGIC(but)); if ((oldx == x) && (oldy == y) && (oldw == w) && (oldh == h)) return; if ((w <= 0) || (h <= 0)) w = h = 0; if ((oldw > 0) && (but->flags & BUT_DRAWABLE)) but_delFromTable(but); but->x = x; but->y = y; but->w = w; but->h = h; if ((w > 0) && (but->flags & BUT_DRAWABLE)) but_addToTable(but); if (but->action->resize) { if (but->action->resize(but, oldx, oldy, oldw, oldh) && (but->flags & BUT_DRAWABLE)) { butWin_redraw(but->win, oldx,oldy, oldw,oldh); butWin_redraw(but->win, x,y, w,h); } } else if (but->flags & BUT_DRAWABLE) { if ((oldw > 0) && (oldh > 0)) butWin_redraw(but->win, oldx,oldy, oldw,oldh); butWin_redraw(but->win, x,y, w,h); } if (but->flags & BUT_DRAWABLE) butWin_mMove(but->win->env->last_mwin, but->win->env->last_mx, but->win->env->last_my); } void but_destroy(But *but) { ButTimer *timer; if (but != NULL) { assert(MAGIC(but)); but_newFlags(but, 0); for (timer = but_timerList; timer != NULL; timer = timer->next) { if (timer->but == but) { butTimer_destroy(timer); break; } } } if (but_inEvent) but_dList(but); else but_delete(but); } But *but_create(ButWin *win, void *iPacket, const ButAction *action) { But *but; but = (But *)wms_malloc(sizeof(But)); MAGIC_SET(but); assert(win->parent || (win->win != None)); but->uPacket = NULL; but->iPacket = iPacket; but->win = win; but->layer = 0; but->x = 0; but->y = 0; but->w = 0; but->h = 0; but->id = -2; but->flags = 0; but->keys = NULL; but->action = action; but->destroyCallback = NULL; return(but); } ButOut but_delete(But *but) { ButOut result = 0; ButWin *win = but->win; int x = but->x, y = but->y, w = but->w, h = but->h; assert(but != NULL); assert(MAGIC(win)); assert(MAGIC(but)); if (but->flags) but_newFlags(but, 0); if (but->destroyCallback) but->destroyCallback(but); if (but->action->destroy != NULL) result = but->action->destroy(but); MAGIC_UNSET(but); wms_free(but); butWin_redraw(win, x,y,w,h); return(result); } void but_setFlags(But *but, uint fch) { uint fl; assert(MAGIC(but)); fl = but->flags | fch; fl &= ~(fch >> BUT_MAXBITS); but_newFlags(but, fl); } void but_setKeys(But *but, const ButKey *keys) { assert(MAGIC(but)); assert((but->action->kPress) || (but->action->kRelease)); but->keys = keys; } void but_newFlags(But *but, uint nfl) { static bool inNewFlags = FALSE; ButWin *win = but->win, *tmpWin, *ancestor; ButEnv *env = win->env; uint oldflags = but->flags; assert(MAGIC(win)); assert(MAGIC(but)); for (ancestor = win; ancestor->parent; ancestor = ancestor->parent) assert(MAGIC(ancestor)); if (!(nfl & BUT_PRESSABLE)) { nfl &= ~(BUT_PRESSED|BUT_TWITCHED|BUT_LOCKED); if (env->curhold == but) butEnv_setCursor(env, but, butCur_idle); } if (!(oldflags & BUT_DRAWABLE) && (nfl & BUT_DRAWABLE)) { but->flags = nfl; but_init(but); return; } if (!(nfl & BUT_DRAWABLE) && (env->butIn == but)) { env->butIn = NULL; for (tmpWin = win; tmpWin; tmpWin = tmpWin->parent) { assert(MAGIC(tmpWin)); tmpWin->butIn = NULL; } } if ((oldflags & BUT_KEYED) && !(nfl & BUT_KEYED)) { nfl &= ~BUT_KEYACTIVE; ancestor->keyBut = NULL; } if (!(oldflags & BUT_KEYED) && (nfl & BUT_KEYED)) { if (ancestor->keyBut != NULL) { but_newFlags(ancestor->keyBut, ancestor->keyBut->flags & ~BUT_KEYED); } ancestor->keyBut = but; if (env->last_mwin == but->win) { nfl |= BUT_KEYACTIVE; } } if ((but->id != -2) && !inNewFlags && ((nfl & BUT_NETMASK) != (but->flags & BUT_NETMASK))) { inNewFlags = TRUE; butRnet_newFlags(env, but->id, nfl); inNewFlags = FALSE; } if (!(oldflags & BUT_LOCKED) && (nfl & BUT_LOCKED)) { if (env->lockBut != NULL) but_newFlags(env->lockBut, env->lockBut->flags & ~BUT_LOCKED); env->lockBut = but; win->lock = but; for (tmpWin = env->lockBut->win; tmpWin->parent; tmpWin = tmpWin->parent) { assert(MAGIC(tmpWin)); tmpWin->parent->lock = tmpWin->parentBut; } } else if ((oldflags & BUT_LOCKED) && !(nfl & BUT_LOCKED)) { for (tmpWin = but->win; tmpWin; tmpWin = tmpWin->parent) { assert(MAGIC(tmpWin)); tmpWin->lock = NULL; } env->lockBut = NULL; } if (nfl != oldflags) { assert(but->action->newFlags); but->action->newFlags(but, nfl); } if ((oldflags & BUT_DRAWABLE) && !(nfl & BUT_DRAWABLE)) { if (but->w > 0) { but_delFromTable(but); } } butWin_mMove(env->last_mwin, env->last_mx, env->last_my); } void but_draw(But *but) { assert(MAGIC(but)); if ((but->flags & (BUT_DRAWABLE|BUT_DEAD)) == BUT_DRAWABLE) butWin_redraw(but->win, but->x,but->y, but->w,but->h); } ButOut butWin_mMove(ButWin *win, int x, int y) { ButEnv *env; ButOut result = 0; int i; But *but, *oldbut; ButSet butset; ButWin *tmpWin; assert(MAGICNULL(win)); if (win == NULL) return(0); env = win->env; if ((env->last_mwin != win) && (!env->last_mwin || (env->last_mwin->physWin != win->physWin))) { env->curwin = win->physWin; env->curlast = butCur_bogus; } if (win->parent == NULL) { /* Only do this if you're on a real window, that is, not in a canvas. */ env->last_mwin = win; env->last_mx = x; env->last_my = y; } mousein(win, x, y, &butset); for (i = butset.numButs - 1; i >= 0; --i) { but = butset.buts[i]; assert(MAGIC(but)); if ((but->flags & BUT_DRAWABLE) && !(but->flags & BUT_PRESSTHRU)) { if (but->action->mMove == NULL) result |= BUTOUT_CAUGHT; else result |= but->action->mMove(but, x,y); if (result & BUTOUT_CAUGHT) { if (result & BUTOUT_IGNORE) return(result); if (env->butIn != but) { if (env->butIn != NULL) { for (tmpWin = env->butIn->win; tmpWin; tmpWin = tmpWin->parent) { tmpWin->butIn = NULL; } if ((env->butIn->flags & BUT_PRESSABLE) && (env->butIn->action->mLeave != NULL)) result |= env->butIn->action->mLeave(env->butIn); } env->butIn = but; but->win->butIn = but; for (tmpWin = but->win; tmpWin->parent; tmpWin = tmpWin->parent) { tmpWin->parent->butIn = tmpWin->parentBut; } } return(result); } } } if (env->butIn != NULL) { oldbut = env->butIn; for (tmpWin = env->butIn->win; tmpWin; tmpWin = tmpWin->parent) { tmpWin->butIn = NULL; } env->butIn = NULL; if ((oldbut->flags & BUT_PRESSABLE) && (oldbut->action->mLeave != NULL)) result |= oldbut->action->mLeave(oldbut); } return(result); } ButOut butWin_mPress(ButWin *win, int x, int y, int butnum) { ButOut result; But *but; assert(MAGIC(win)); result = butWin_mMove(win, x, y); but = win->butIn; if (but != NULL) { assert(MAGIC(but)); if ((but->flags & BUT_PRESSABLE) && (but->action->mPress != NULL)) { return(result | but->action->mPress(but, butnum, x, y)); } } return(result | BUTOUT_ERR); } ButOut butWin_mRelease(ButWin *win, int x, int y, int butnum) { ButOut result; But *but; assert(MAGIC(win)); result = butWin_mMove(win, x, y); but = win->butIn; if (but != NULL) { assert(MAGIC(but)); if ((but->flags & BUT_PRESSABLE) && (but->action->mRelease != NULL)) return(result | but->action->mRelease(but, butnum, x, y)); } return(result); } static int keycheck(But *but, void *packet) { int keycount; KeySym sym = *(KeySym *)packet; assert(MAGIC(but)); if (but->keys != NULL) { for (keycount = 0; but->keys[keycount].key != 0; ++keycount) { if ((but->keys[keycount].key == sym) && ((but->win->env->keyModifiers & but->keys[keycount].modMask) == but->keys[keycount].modifiers)) return(1); } } return(0); } ButOut butWin_kPress(ButWin *win, const char *keystr, KeySym sym) { ButOut retVal = 0; But *but; assert(MAGIC(win)); /* * The keybut _always_ get a shot at the key when it is pressed. */ if (win->keyBut) { assert(win->keyBut->flags & BUT_PRESSABLE); retVal |= win->keyBut->action->kPress(win->keyBut, keystr, sym); } if (!(retVal & BUTOUT_CAUGHT)) { but = butWin_findButsInRegion(win, 0,0, win->w,win->h, keycheck, &sym); if ((but != NULL) && (but->flags & BUT_PRESSABLE) && (but->action->kPress != NULL)) { assert(MAGIC(but)); retVal |= but->action->kPress(but, keystr, sym); } else { /* * A key was pressed that nobody wanted. * But only signal an error if it was a "real" key...don't beep when * some poor guy presses shift! */ if (!IsModifierKey(sym)) retVal |= BUTOUT_ERR; } } return(retVal); } ButOut butWin_kRelease(ButWin *win, const char *keystr, KeySym sym) { ButOut retval = 0; But *but; assert(MAGIC(win)); but = butWin_findButsInRegion(win, 0,0, win->w,win->h, keycheck, &sym); if (but != NULL) { assert(MAGIC(but)); if ((but->flags & BUT_PRESSABLE) && (but->action->kRelease != NULL)) retval |= but->action->kRelease(but, keystr, sym); } return(retval); } /* mousein(win, x, y, reason) will return the button number that the mouse is * presently inside of. If the mouse is not in any button NULL will * be returned. * The checkfunc will be called only if the mouse is already inside the * (x,y,w,h) boundaries of the button. "reason" is one of BUT_RE_PRESS, * BUT_RE_RELEASE, or BUT_RE_MOVE, depending on the reason for the button * to be checked. * Non-pressable buttons will never be returned. * * NOTE: This does a linear search through the buttons. YUCK! SLOW! I'd * like to recode this to do a three-dimensional binary search (the * dimensions being window, x, and y) but that would take some seriously * heavy-duty coding and I have a million other things to do first. * * NOTE to note: I finally did the 3d binary search. Works great! */ static void mousein(ButWin *win, int x, int y, ButSet *butset) { static But *but; assert(MAGIC(win)); if (win->lock) { butset->dynamic = FALSE; butset->numButs = 1; butset->buts = &but; but = win->lock; } else butWin_findButSet(win, x, y, butset); } static int but_compare(const void *a, const void *b) { But **but_a = (But **)a, **but_b = (But **)b; assert(MAGIC(*but_a)); assert(MAGIC(*but_b)); return((*but_a)->layer - (*but_b)->layer); } void butWin_redraw(ButWin *win, int x, int y, int w, int h) { ButWinArea *newAreas; int newMaxRedraws, i; bool change; assert((x > -1000) && (y > -1000)); if (!w || !h) return; assert(w > 0); assert(h > 0); if (win->numRedraws + 1 >= win->maxRedraws) { newMaxRedraws = (win->maxRedraws + 1) * 2; newAreas = wms_malloc(newMaxRedraws * sizeof(ButWinArea)); for (i = 0; i < win->numRedraws; ++i) { newAreas[i] = win->redraws[i]; } if (win->redraws) wms_free(win->redraws); win->redraws = newAreas; win->maxRedraws = newMaxRedraws; } assert(win->numRedraws < win->maxRedraws); do { assert(w > 0); assert(h > 0); change = FALSE; for (i = 0; i < win->numRedraws; ++i) { if ((x <= win->redraws[i].x + win->redraws[i].w) && (y <= win->redraws[i].y + win->redraws[i].h) && (x + w >= win->redraws[i].x) && (y + h >= win->redraws[i].y)) { change = TRUE; if (win->redraws[i].x < x) { w += x - win->redraws[i].x; x = win->redraws[i].x; } if (win->redraws[i].y < y) { h += y - win->redraws[i].y; y = win->redraws[i].y; } if (x + w < win->redraws[i].x + win->redraws[i].w) w = win->redraws[i].x + win->redraws[i].w - x; if (y + h < win->redraws[i].y + win->redraws[i].h) h = win->redraws[i].y + win->redraws[i].h - y; win->redraws[i] = win->redraws[--win->numRedraws]; } } } while (change); win->redraws[win->numRedraws].x = x; win->redraws[win->numRedraws].y = y; win->redraws[win->numRedraws].w = w; win->redraws[win->numRedraws].h = h; assert(w > 0); assert(h > 0); ++win->numRedraws; assert(win->numRedraws < win->maxRedraws); } void butWin_performDraws(ButWin *win) { int drawNum; int i, drx,dry, drw,drh, x, y, w, h; ButEnv *env = win->env; XRectangle cliprect; ButSet butset; But *but; assert(MAGIC(win)); if (!win->mapped) { win->numRedraws = 0; return; } for (drawNum = 0; drawNum < win->numRedraws; ++drawNum) { x = win->redraws[drawNum].x; y = win->redraws[drawNum].y; w = win->redraws[drawNum].w; h = win->redraws[drawNum].h; assert(w > 0); assert(h > 0); if (x < win->xOff) { w -= win->xOff - x; x = win->xOff; } if (x + w > win->xOff + win->w) w = win->xOff + win->w - x; if (y < win->yOff) { h -= win->yOff - y; y = win->yOff; } if (y + h > win->yOff + win->h) h = win->yOff + win->h - y; if ((w <= 0) || (h <= 0)) continue; if (win->id != -2) butRcur_redraw(env, win->id, x,y,w,h); butWin_findButSetInRegion(win, x,y, w,h, &butset); if (butset.numButs > 0) { cliprect.x = x - win->xOff; cliprect.y = y - win->yOff; cliprect.width = w; cliprect.height = h; XSetClipRectangles(env->dpy, env->gc, 0,0, &cliprect, 1, YXSorted); qsort(butset.buts, butset.numButs, sizeof(But *), but_compare); assert(MAGIC(win)); for (i = butset.numButs - 1; i > 0; --i) { but = butset.buts[i]; assert(MAGIC(but)); if ((but->flags & BUT_OPAQUE) && (but->x <= x) && (but->y <= y) && (but->x + but->w >= x + w) && (but->y + but->h >= y + h)) break; } for (; i < butset.numButs; ++i) { but = butset.buts[i]; assert(MAGIC(but)); if (!(but->flags & BUT_DEAD)) { if (but->x < x) drx = x; else drx = but->x; if (but->y < y) dry = y; else dry = but->y; if (but->x + but->w < x+w) drw = but->x + but->w - drx; else drw = x + w - drx; if (but->y + but->h < y+h) drh = but->y + but->h - dry; else drh = y+h - dry; but->action->draw(but, x,y, w,h); } } XSetClipMask(env->dpy, env->gc, None); butSet_destroy(&butset); if (win->parent) { /* * It's a canvas. Fire off a redraw request so that the changes to * the canvas pixmap will be seen on the screen. */ butCan_redrawn(win, x, y, w, h); } } } win->numRedraws = 0; } void butSet_destroy(ButSet *butset) { if (butset->dynamic && (butset->buts != NULL)) wms_free(butset->buts); } /* If win is NULL it will execute all destroy commands built up. */ ButOut butWin_dList(ButWin *win) { static ButWin **dlist = NULL; static int dlist_len = 0, max_dlist_len = 0; ButWin **new_dlist; int i; ButOut result = 0; assert(MAGICNULL(win)); if (win == NULL) { /* * It is really important that we start at the end here. Since our * child windows are added to the _end_ of the dlist, and they _must_ * be destroyed first, we have to go backwards. */ while (dlist_len) { i = dlist_len - 1; if (dlist[i] != NULL) { assert(MAGIC(dlist[i])); result |= butWin_delete(dlist[i]) | BUTOUT_CAUGHT; if (result & BUTOUT_STILLBUTS) { /* Window still has buttons...can't kill it yet! */ return(result & ~BUTOUT_STILLBUTS); } dlist[i] = NULL; } --dlist_len; } } else { if (win->iconWin != NULL) { butWin_dList(win->iconWin); win->iconWin = NULL; } if (dlist_len+1 > max_dlist_len) { new_dlist = wms_malloc(sizeof(ButWin *) * (dlist_len * 2 + 2)); for (i = 0; i < dlist_len; ++i) new_dlist[i] = dlist[i]; if (dlist != NULL) wms_free(dlist); dlist = new_dlist; max_dlist_len = (dlist_len * 2 + 2); } for (i = 0; i < dlist_len; ++i) if (dlist[i] == win) return(result); dlist[dlist_len++] = win; } return(result); } /* If but is NULL it will execute all destroy commands built up. */ ButOut but_dList(But *but) { static But **dlist = NULL; static int dlist_len = 0, max_dlist_len = 0; But **new_dlist; int i; ButOut result = 0; if (but == NULL) { if (dlist_len == 0) return(0); for (i = 0; i < dlist_len; ++i) { result |= but_delete(dlist[i]) | BUTOUT_CAUGHT; } dlist_len = 0; } else { if (dlist_len+1 > max_dlist_len) { new_dlist = wms_malloc(sizeof(But *) * (dlist_len * 2 + 2)); for (i = 0; i < dlist_len; ++i) new_dlist[i] = dlist[i]; if (dlist != NULL) wms_free(dlist); dlist = new_dlist; max_dlist_len = (dlist_len * 2 + 2); } for (i = 0; i < dlist_len; ++i) if (dlist[i] == but) return(result); but_newFlags(but, 0); dlist[dlist_len++] = but; but->flags |= BUT_DEAD; } return(result); } void but_flags(But *but, uint flags) { but->flags = flags; but_draw(but); } #endif /* X11_DISP */ goban-1.1.orig/src/write.h0000644000175000017500000000117410270061452013244 0ustar alal/* * wmslib/src/but/write.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for write.c */ #ifndef _BUT_WRITE_H_ #define _BUT_WRITE_H_ 1 #ifndef _BUT_TEXT_H_ #include #endif /********************************************************************** * Functions **********************************************************************/ extern void butWin_writeTabs(ButWin *win, int startX, int y, const char *text, int font, const int *tabList, const ButTextAlign *aligns); #endif /* _BUT_WRITE_H_ */ goban-1.1.orig/src/board.c0000644000175000017500000004235310270065716013207 0ustar alal/* * src/client/board.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include "msg.h" #include "sgfPlay.h" #include "editBoard.h" #ifdef _CLIENT_BOARD_H_ LEVELIZATION ERROR #endif #include "board.h" /********************************************************************** * Forward Declarations **********************************************************************/ static bool rewAndBackOk(void *packet), fwdOk(void *packet); static bool ffwdOk(void *packet); static void gobanDestroyed(void *packet); static GobanOut quitClosePressed(void *packet); static GobanOut adjournPressed(void *packet); static GobanOut newKibitz(void *packet, const char *kib); static GobanOut rewPressed(void *packet); static GobanOut backPressed(void *packet); static GobanOut fwdPressed(void *packet); static GobanOut ffPressed(void *packet); static GobanOut donePressed(void *packet); static GobanOut gridPressed(void *packet, int loc); static GobanOut editPressed(void *packet); static ButOut shiftPressed(But *but, bool press); static ButOut ctrlPressed(But *but, bool press); static ButOut dontResign(But *but); static ButOut yesResign(But *but); static void cliBoard_updateWithToggle(CliBoard *cli, uint toggle); /********************************************************************** * Functions **********************************************************************/ CliBoard *cliBoard_create(CliData *data, int gameNum, const Str *wName, const Str *wRank, const Str *bName, const Str *bRank, int size, int handicap, float komi, int mainTime, int byTime, void (*destroy)(CliBoard *cli, void *packet), void *packet) { static const GobanActions actions = { gridPressed, quitClosePressed, cliBoard_passPressed, rewPressed, backPressed, fwdPressed, ffPressed, donePressed, NULL,adjournPressed, /* dispute, save */ editPressed, NULL, /* gameInfo */ &help_cliBoard, /* Help */ gobanDestroyed, rewAndBackOk, rewAndBackOk, fwdOk, ffwdOk}; static const ButKey shiftKeys[] = {{XK_Shift_L, 0,0}, {XK_Shift_R,0,0}, {0,0,0}}; static const ButKey ctrlKeys[] = {{XK_Control_L, 0,0}, {XK_Control_R,0,0}, {0,0,0}}; CliBoard *cli; Str gameName; cli = wms_malloc(sizeof(CliBoard)); MAGIC_SET(cli); cli->data = data; cliData_incRef(cli->data); cli->cg = data->cg; cli->sgf = sgf_create(); sgf_setSize(cli->sgf, size); sgf_setKomi(cli->sgf, komi); sgf_setPlayerName(cli->sgf, goStone_white, str_chars(wName)); sgf_playerRank(cli->sgf, goStone_white, str_chars(wRank)); sgf_setPlayerName(cli->sgf, goStone_black, str_chars(bName)); sgf_playerRank(cli->sgf, goStone_black, str_chars(bRank)); sgf_setDate(cli->sgf); sgf_style(cli->sgf, "Cgoban " VERSION); cli->gameNum = gameNum; cli->lastMoveRead = -1; cli->gameEnded = FALSE; cli->onTrack = TRUE; cli->timer.type = goTime_canadian; cli->timer.main = 360000; cli->timer.by = byTime; cli->timer.aux = 25; cli->game = goGame_create(size, goRules_japanese, handicap, komi, &cli->timer, FALSE); if (handicap) { sgf_setHandicap(cli->sgf, handicap); sgf_addHandicapStones(cli->sgf, cli->game->board); } cli->gameEnd = cli->sgf->active; cli->game->forcePlay = TRUE; cli->sgf->mode = sgfInsert_variant; str_init(&gameName); str_print(&gameName, msg_cliGameName, gameNum, str_chars(wName), str_chars(wRank), str_chars(bName), str_chars(bRank)); cli->goban = goban_create(cli->cg, &actions, cli, cli->game, "client", str_chars(&gameName)); goban_startTimer(cli->goban, goGame_whoseMove(cli->game)); goban_setHold(cli->goban, TRUE); but_setFlags(cli->goban->save, BUT_NOPRESS); str_deinit(&gameName); cli->goban->iDec1 = grid_create(&cli->cg->cgbuts, NULL, NULL, cli->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(cli->goban->iDec1, goStone_white, FALSE); if (data->server == cliServer_nngs) grid_setVersion(cli->goban->iDec1, CGBUTS_WORLDWEST(0)); else grid_setVersion(cli->goban->iDec1, CGBUTS_WORLDEAST(0)); cli->shiftKeytrap = butKeytrap_create(shiftPressed, cli, cli->goban->win, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(cli->shiftKeytrap, shiftKeys); butKeytrap_setHold(cli->shiftKeytrap, FALSE); cli->ctrlKeytrap = butKeytrap_create(ctrlPressed, cli, cli->goban->win, BUT_DRAWABLE|BUT_PRESSABLE); but_setKeys(cli->ctrlKeytrap, ctrlKeys); butKeytrap_setHold(cli->ctrlKeytrap, FALSE); cli->destroy = destroy; cli->packet = packet; cli->moveWhite = !strcmp(str_chars(wName), str_chars(&data->userName)); cli->moveBlack = !strcmp(str_chars(bName), str_chars(&data->userName)); str_init(&cli->result); str_initStr(&cli->wName, wName); str_initStr(&cli->bName, bName); if (cli->moveWhite || cli->moveBlack) { goban_setKibitz(cli->goban, newKibitz, clp_getInt(data->cg->clp, "client.saykib")); } else { goban_setKibitz(cli->goban, newKibitz, -1); } if (cli->moveWhite) { if (data->actions) { cli->goban->pic->allowedMoves |= goPicMove_noWhite; data->actions->newGame(data->packet, goStone_white, size, handicap, komi, mainTime, byTime, cli); } } else { cli->goban->pic->allowedMoves |= goPicMove_noWhite; } if (cli->moveBlack) { if (data->actions) { cli->goban->pic->allowedMoves |= goPicMove_noBlack; data->actions->newGame(data->packet, goStone_black, size, handicap, komi, mainTime, byTime, cli); } } else { cli->goban->pic->allowedMoves |= goPicMove_noBlack; } butCt_setText(cli->goban->save, msg_adjourn); if (cli->moveWhite || cli->moveBlack) { but_setFlags(cli->goban->save, BUT_PRESSABLE); butCt_setText(cli->goban->quit, msg_resign); } cliBoard_update(cli); return(cli); } void cliBoard_destroy(CliBoard *cli, bool propagate) { assert(MAGIC(cli)); sgf_destroy(cli->sgf); if (cli->data->actions && (cli->moveWhite || cli->moveBlack)) { cli->data->actions->endGame(cli->data->packet); } if (cli->goban) { goban_destroy(cli->goban, FALSE); cli->goban = NULL; } if (cli->game) { goGame_destroy(cli->game); cli->game = NULL; } if (propagate && cli->destroy) { cli->destroy(cli, cli->packet); } cliData_decRef(cli->data); MAGIC_UNSET(cli); wms_free(cli); } Bool cliBoard_gotMove(CliBoard *cli, const char *locStr, GoStone color, int moveNum) { int loc, oldMoveNum = 0; SgfElem *oldSgf = NULL; Bool result = TRUE; assert(MAGIC(cli)); if (cli->game->handicap != 0) --moveNum; if (moveNum != cli->lastMoveRead + 1) { return(TRUE); } cli->lastMoveRead = moveNum; if (!strcmp(locStr, "Pass")) loc = 0; else { loc = goBoard_str2Loc(cli->game->board, locStr); if (loc == -1) { return(FALSE); } } if (color == goStone_white) { if (cli->moveBlack && cli->data->actions) { cli->data->actions->gotMove(cli->data->packet, goStone_white, loc); } } else { assert(color == goStone_black); if (cli->moveWhite && cli->data->actions) { cli->data->actions->gotMove(cli->data->packet, goStone_black, loc); } } cli->sgf->mode = sgfInsert_main; if (cli->gameEnd != cli->sgf->active) { oldSgf = cli->sgf->active; cli->sgf->active = cli->gameEnd; if (cli->onTrack) { oldMoveNum = cli->game->moveNum; goGame_moveTo(cli->game, cli->game->maxMoves); } } goban_stopTimer(cli->goban); if (cli->onTrack) { if (!goGame_isLegal(cli->game, color, loc)) result = FALSE; else goGame_move(cli->game, color, loc, &cli->goban->timers[color]); } goban_startTimer(cli->goban, goGame_whoseMove(cli->game)); sgf_addNode(cli->sgf); assert(cli->sgf->active == cli->gameEnd->childH); if (loc == 0) sgf_pass(cli->sgf, color); else sgf_move(cli->sgf, color, goBoard_loc2Sgf(cli->game->board, loc)); cli->gameEnd = cli->sgf->active; if (oldSgf) { cli->sgf->active = oldSgf; if (cli->onTrack) goGame_moveTo(cli->game, oldMoveNum); } cli->sgf->mode = sgfInsert_variant; if (cli->onTrack) cliBoard_update(cli); return(result); } static bool rewAndBackOk(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); return(cli->game->moveNum > 0); } static bool fwdOk(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); if (cli->onTrack) { return(cli->sgf->active != cli->gameEnd); } else { return(cli->sgf->active->childH != NULL); } } static bool ffwdOk(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); return((cli->game->moveNum < cli->game->maxMoves) || (cli->gameEnd != cli->sgf->active)); } static void gobanDestroyed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); cli->goban = NULL; cliBoard_destroy(cli, TRUE); } static GobanOut adjournPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); assert(cli->moveBlack || cli->moveWhite); cliConn_send(&cli->data->conn, "adjourn\n"); return(gobanOut_noDraw); } static GobanOut quitClosePressed(void *packet) { CliBoard *cli = packet; AbutMsgOpt buttons[2]; assert(MAGIC(cli)); if (cli->moveBlack || cli->moveWhite) { buttons[0].name = msg_noCancel; buttons[0].callback = dontResign; buttons[0].packet = cli; buttons[0].keyEq = NULL; buttons[1].name = msg_yesResign; buttons[1].callback = yesResign; buttons[1].packet = cli; buttons[1].keyEq = NULL; if (cli->goban->msgBox) abutMsg_destroy(cli->goban->msgBox, FALSE); cli->goban->msgBox = abutMsg_optCreate(cli->cg->abut, cli->goban->win, 4, msg_reallyResign, NULL, NULL, 2, buttons); } else { cliBoard_destroy(cli, TRUE); } return(gobanOut_noDraw); } static GobanOut newKibitz(void *packet, const char *kib) { CliBoard *cli = packet; const char *opponent; assert(MAGIC(cli)); if (clpEntry_getBool(cli->data->numKibitz)) str_print(&cli->data->cmdBuild, "%d %s: %s\n", cli->game->maxMoves, str_chars(&cli->data->userName), kib); else str_print(&cli->data->cmdBuild, "%s: %s\n", str_chars(&cli->data->userName), kib); goban_catComments(cli->goban, str_chars(&cli->data->cmdBuild)); if (cli->moveWhite || cli->moveBlack) { switch(goban_kibType(cli->goban)) { case 0: str_print(&cli->data->cmdBuild, "say %s\n", kib); break; case 1: assert(MAGIC(&cli->bName)); assert(MAGIC(&cli->wName)); if (cli->moveWhite) opponent = str_chars(&cli->bName); else opponent = str_chars(&cli->wName); str_print(&cli->data->cmdBuild, "tell %s %s\nkibitz %d %s\n", opponent, kib, cli->gameNum, kib); break; case 2: str_print(&cli->data->cmdBuild, "kibitz %d %s\n", cli->gameNum, kib); break; } } else str_print(&cli->data->cmdBuild, "kibitz %d %s\n", cli->gameNum, kib); if (cli->destroy) cliConn_send(&cli->data->conn, str_chars(&cli->data->cmdBuild)); return(gobanOut_noDraw); } static GobanOut rewPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); if (cli->game->state > goGameState_play) { cli->game->state = goGameState_play; } goGame_moveTo(cli->game, 0); sgf_setActiveNodeNumber(cli->sgf, 0); cliBoard_update(cli); return(gobanOut_noDraw); } static GobanOut backPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); if (cli->game->state > goGameState_play) { cli->game->state = goGameState_play; } goGame_moveTo(cli->game, cli->game->moveNum - 1); sgf_setActiveNodeNumber(cli->sgf, cli->game->moveNum); cliBoard_update(cli); return(gobanOut_noDraw); } static GobanOut fwdPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); assert(cli->game->moveNum < cli->game->maxMoves); goGame_moveTo(cli->game, cli->game->moveNum + 1); cli->sgf->active = cli->sgf->active->activeChild; while ((cli->sgf->active->activeChild != NULL) && (cli->sgf->active->activeChild->type != sgfType_node)) { cli->sgf->active = cli->sgf->active->activeChild; } cliBoard_update(cli); return(gobanOut_noDraw); } static GobanOut ffPressed(void *packet) { CliBoard *cli = packet; SgfElem *elem; assert(MAGIC(cli)); for (elem = &cli->sgf->top; elem; elem = elem->childH) { elem->activeChild = elem->childH; } sgf_play(cli->sgf, cli->game, NULL, -1, cli->gameEnd); assert(cli->sgf->active == cli->gameEnd); goGame_moveTo(cli->game, cli->game->maxMoves); cli->onTrack = TRUE; cliBoard_update(cli); return(gobanOut_noDraw); } static GobanOut gridPressed(void *packet, int loc) { return(cliBoard_gridPressed(packet, loc, FALSE)); } GobanOut cliBoard_gridPressed(void *packet, int loc, bool forceMove) { CliBoard *cli = packet; char move[10]; int newNode, i; assert(MAGIC(cli)); if (!forceMove && (butEnv_keyModifiers(cli->cg->env) & ShiftMask)) { strcpy(move, goBoard_loc2Sgf(cli->game->board, loc)); newNode = -1; if (goBoard_stone(cli->game->board, loc) == goStone_empty) { i = sgfElem_findMove(cli->sgf->active, move, 1); if (i >= 0) { newNode = cli->game->moveNum + i; } else { i = sgfElem_findMove(cli->sgf->active, move, -1); if (i >= 0) newNode = cli->game->moveNum - i; } } else { i = sgfElem_findMove(cli->sgf->active, move, -1); assert(i >= 0); newNode = cli->game->moveNum - i; } if (newNode >= 0) { if (cli->game->state > goGameState_play) { cli->game->state = goGameState_play; } goGame_moveTo(cli->game, newNode); sgf_setActiveNodeNumber(cli->sgf, newNode); if (cli->gameEnded && (cli->game->moveNum == cli->game->maxMoves)) { if (cli->goban->activeTimer != goStone_empty) goban_stopTimer(cli->goban); cli->game->state = goGameState_selectDead; } cliBoard_update(cli); return(gobanOut_noDraw); } else { return(gobanOut_err); } } else if (!forceMove && (butEnv_keyModifiers(cli->cg->env) & ControlMask)) { sgf_addNode(cli->sgf); sgf_move(cli->sgf, cli->game->whoseMove, goBoard_loc2Sgf(cli->game->board, loc)); goGame_move(cli->game, cli->game->whoseMove, loc, &cli->goban->timers[cli->game->whoseMove]); cli->onTrack = FALSE; cliBoard_update(cli); return(gobanOut_noDraw); } else { goBoard_loc2Str(cli->game->board, loc, move); strcat(move, "\n"); cliConn_send(&cli->data->conn, move); return(gobanOut_noDraw); } } GobanOut cliBoard_passPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); cliConn_send(&cli->data->conn, "pass\n"); return(gobanOut_noDraw); } static GobanOut donePressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); cliConn_send(&cli->data->conn, "done\n"); return(gobanOut_noDraw); } static GobanOut editPressed(void *packet) { CliBoard *cli = packet; assert(MAGIC(cli)); assert(MAGIC(cli->data)); editBoard_createSgf(cli->data->cg, cli->sgf); return(gobanOut_noDraw); } static ButOut shiftPressed(But *but, bool press) { CliBoard *cli = but_packet(but); assert(MAGIC(cli)); /* * Alas, the modifier flags don't change until AFTER the press, so we * have to invert the shift here. */ cliBoard_updateWithToggle(cli, ShiftMask); return(0); } static ButOut ctrlPressed(But *but, bool press) { CliBoard *cli = but_packet(but); assert(MAGIC(cli)); /* * Alas, the modifier flags don't change until AFTER the press, so we * have to invert the shift here. */ cliBoard_updateWithToggle(cli, ControlMask); return(0); } static ButOut dontResign(But *but) { CliBoard *cli = but_packet(but); assert(MAGIC(cli)); goban_noMessage(cli->goban); return(0); } static ButOut yesResign(But *but) { CliBoard *cli = but_packet(but); assert(MAGIC(cli)); cliConn_send(&cli->data->conn, "resign\n"); goban_noMessage(cli->goban); return(0); } void cliBoard_update(CliBoard *cli) { cliBoard_updateWithToggle(cli, 0); } static void cliBoard_updateWithToggle(CliBoard *cli, uint toggle) { uint moves = 0; /* To shut up gcc warning. */ if (cli->gameEnded && (cli->gameEnd == cli->sgf->active)) { if (cli->goban->activeTimer != goStone_empty) goban_stopTimer(cli->goban); cli->game->state = goGameState_selectDead; } else cli->game->state = goGameState_play; switch((butEnv_keyModifiers(cli->cg->env) & (ShiftMask|ControlMask)) ^ toggle) { case 0: moves = goPicMove_legal; if (!cli->moveWhite || cli->data->actions || (cli->sgf->active != cli->gameEnd)) { moves |= goPicMove_noWhite; } if (!cli->moveBlack || cli->data->actions || (cli->sgf->active != cli->gameEnd)) { moves |= goPicMove_noBlack; } break; case ShiftMask: moves = goPicMove_empty | goPicMove_stone; if (!(but_getFlags(cli->goban->pass) & BUT_PRESSABLE)) moves |= goPicMove_noPass; break; case ControlMask: moves = goPicMove_legal; break; case ShiftMask|ControlMask: moves = 0; break; } cli->goban->pic->allowedMoves = moves; goban_update(cli->goban); if (str_len(&cli->result) && (cli->sgf->active == cli->gameEnd)) { butText_set(cli->goban->infoText, str_chars(&cli->result)); } } goban-1.1.orig/src/tblock.h0000644000175000017500000000173610267775702013414 0ustar alal/* * wmslib/src/but/tblock.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for tblock.c */ #ifndef _BUT_TBLOCK_H_ #define _BUT_TBLOCK_H_ 1 #include /********************************************************************** * Functions **********************************************************************/ extern But *butTblock_create(ButWin *win, int layer, int flags, const char *text, ButTextAlign align); /* resize returns the height of the text block after being resized. */ extern int butTblock_resize(But *but, int x, int y, int w); extern void butTblock_setText(But *but, const char *text); extern const char *butTblock_getText(But *but); extern void butTblock_setFont(But *but, int fontnum); extern int butTblock_getH(But *but); extern int butTblock_guessH(ButEnv *env, const char *text, int w, int fontNum); #endif /* _BUT_TBLOCK_H_ */ goban-1.1.orig/src/slide.h0000644000175000017500000000205206041103313013200 0ustar alal/* * wmslib/src/but/slide.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for slide.c */ #ifndef _BUT_SLIDE_H_ #define _BUT_SLIDE_H_ 1 /********************************************************************** * Functions **********************************************************************/ extern But *butSlide_hCreate(ButOut (*func)(But *but, int setting, bool newPress), void *packet, ButWin *win, int layer, int flags, int maxval, int cval, int size); extern But *butSlide_vCreate(ButOut (*func)(But *but, int setting, bool newPress), void *packet, ButWin *win, int layer, int flags, int maxval, int cval, int size); extern int butSlide_get(But *but); extern void butSlide_set(But *but, int maxval, int cval, int size); extern void butSlide_startSlide(But *but, bool pauseStart, int valsPerSecond, bool propagate); extern void butSlide_stopSlide(But *but); #endif /* _BUT_SLIDE_H_ */ goban-1.1.orig/src/goBoard.h0000644000175000017500000000743706061226762013511 0ustar alal/* * src/goboard.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GOBOARD_H_ #define _GOBOARD_H_ 1 #ifndef _GOHASH_H_ #include "goHash.h" #endif /********************************************************************** * Constants **********************************************************************/ #define GOBOARD_MAXSIZE 38 /********************************************************************** * Data types **********************************************************************/ typedef enum { goStone_white, goStone_black, goStone_edge, goStone_empty } GoStone; typedef struct GoBoardPiece_struct { GoStone type; int libs, size; struct GoBoardPiece_struct *head, *tail, *next; GoHash hashStone[goStone_black+1], hashKo[goStone_black+1]; } GoBoardPiece; typedef struct { int area, dirs[4]; GoBoardPiece *pieces; int caps[2]; GoHash hashVal; int koLoc; MAGIC_STRUCT } GoBoard; /********************************************************************** * Iterators **********************************************************************/ #define goStoneIter(s) for ((s) = goStone_white; \ (s) <= goStone_black; \ ++(s)) typedef GoBoardPiece *GoBoardGroupIter; #define goBoardGroupIter(i, b, l) for ((i) = ((b)->pieces[loc].head); \ (i); \ (i) = (i)->next) #define goBoardGroupIter_loc(i, b) ((i) - &(b)->pieces[0]) /********************************************************************** * Functions **********************************************************************/ #define goStone_isStone(t) ((t) <= goStone_black) #define goStone_char(t) ("WB#."[t]) #define goStone_opponent(s) (goStone_white + goStone_black - (s)) extern GoBoard *goBoard_create(int size); extern void goBoard_destroy(GoBoard *board); /* * For goBoard_copy, the sizes of src and dest must be the same. */ extern void goBoard_copy(GoBoard *src, GoBoard *dest); extern bool goBoard_eq(GoBoard *b1, GoBoard *b2); extern void goBoard_print(GoBoard *b); extern void goBoard_fprint(GoBoard *b, FILE *fnum); #define goBoard_xy2Loc(b,x,y) ((x)+(y)*(b)->dirs[0]+(b)->dirs[0]+1) extern void goBoard_loc2Str(GoBoard *board, int loc, char *str); extern int goBoard_str2Loc(GoBoard *board, const char *str); #define goBoard_loc2X(b,l) (((l)%(b)->dirs[0])-1) #define goBoard_loc2Y(b,l) (((l)/(b)->dirs[0])-1) extern const char *goBoard_loc2Sgf(GoBoard *b, int l); extern int goBoard_sgf2Loc(GoBoard *b, const char *l); #define goBoard_size(b) ((b)->dirs[0] - 1) #define goBoard_width(b) ((b)->dirs[0]) #define goBoard_area(b) ((b)->area) #define goBoard_minLoc(b) ((b)->dirs[0]) #define goBoard_maxLoc(b) ((b)->area - (b)->dirs[0]) #define goBoard_dir(b, d) ((b)->dirs[d]) #define goBoard_stone(b, l) ((b)->pieces[l].type) #define goBoard_koLoc(b) ((b)->koLoc) #define goBoard_hash(b) ((b)->hashVal) #define goBoard_hashNoKo(b, s) goHash_xor((b)->hashVal, \ (b)->pieces[(b)->koLoc].hashKo[s]) #define goBoard_caps(b, p) ((b)->caps[p]) #define goBoard_addCaps(b, p, s) (((b)->caps[p]) += s) #define goBoard_liberties(b, l) ((b)->pieces[l].head->libs) #define goBoard_groupSize(b, l) ((b)->pieces[l].head->size) #define goBoard_groupEq(b, l1, l2) ((b)->pieces[l1].head == \ (b)->pieces[l2].head) /* goBoard_addStone(...) returns the number of stones captured. */ extern int goBoard_addStone(GoBoard *board, GoStone stone, int loc, int *suicides); extern void goBoard_rmGroup(GoBoard *board, int loc); /* quickHash() always returns the hashNoKo value. */ extern GoHash goBoard_quickHash(GoBoard *board, GoStone stone, int loc, bool *suicide); #endif /* _GOBOARD_H_ */ goban-1.1.orig/src/menu_snd.h0000644000175000017500000000076306035353012013725 0ustar alal/* * wmslib/src/but/menu_snd.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for menu_snd.c */ #ifndef _BUT_MENU_SND_H_ #define _BUT_MENU_SND_H_ 1 /********************************************************************** * Global variables **********************************************************************/ extern Snd butMenu_openSnd, butMenu_closeSnd; #endif /* _BUT_MENU_SND_H_ */ goban-1.1.orig/src/plain.h0000644000175000017500000000240306060233024013207 0ustar alal/* * wmslib/src/but/plain.h, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. * * Includes for plain.c */ #ifndef _BUT_PLAIN_H_ #define _BUT_PLAIN_H_ 1 /********************************************************************** * Functions. **********************************************************************/ extern But *butPlain_create(ButWin *win, int layer, int flags, int cnum); extern void butPlain_setColor(But *but, int cnum); extern But *butPixmap_create(ButWin *win, int layer, int flags, Pixmap pic); extern void butPixmap_setPic(But *but, Pixmap pic, int x,int y); /* * dummy is a button that isn't drawn, but is opaque. It is sometimes * useful to create one of these to prevent the button library from * doing tons of extra redraws, then erase the dummy to force one * final redraw. */ extern But *butDummy_create(ButWin *win, int layer, int flags); /* * A keytrap does nothing but call your func when the key you specify * is pressed or released. */ extern But *butKeytrap_create(ButOut (*func)(But *but, bool press), void *packet, ButWin *win, int flags); extern void butKeytrap_setHold(But *but, bool hold); #endif /* _BUT_PLAIN_H_ */ goban-1.1.orig/src/crwin.c0000644000175000017500000000516210267777747013263 0ustar alal/* * src/crwin.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include "cgoban.h" #include "msg.h" #include "crwin.h" /********************************************************************** * Forward declarations **********************************************************************/ static void destroyed(But *but); static ButOut killCr(ButTimer *timer); /********************************************************************** * Functions **********************************************************************/ Crwin *crwin_create(Cgoban *cg, ButWin *win, int layer) { Crwin *cr; ButEnv *env; int x, y, w, h, textH; struct timeval fiveSeconds; assert(MAGIC(cg)); cr = wms_malloc(sizeof(Crwin)); MAGIC_SET(cr); cr->env = env = cg->env; cr->box = butBoxFilled_create(win, layer, BUT_DRAWABLE); but_setPacket(cr->box, cr); but_setDestroyCallback(cr->box, destroyed); cr->title = butText_create(win, layer+1, BUT_DRAWABLE, "CGoban " VERSION, butText_center); butText_setFont(cr->title, 2); cr->byBill = butTblock_create(win, layer+1, BUT_DRAWABLE, msg_byBillShubert, butText_center); cr->noWarr = butTblock_create(win, layer+1, BUT_DRAWABLE, msg_noWarranty, butText_center); cr->seeHelp = butTblock_create(win, layer+1, BUT_DRAWABLE, msg_seeHelp, butText_center); textH = butEnv_fontH(env, 0); h = textH * 8; w = h * 2; x = (butWin_w(win) - w) / 2; y = (butWin_h(win) - h) / 3; but_resize(cr->box, x,y, w,h); butText_resize(cr->title, x + w/2, y += textH, textH); x += butEnv_stdBw(env) * 2; w -= butEnv_stdBw(env) * 4; y += textH; y += butTblock_resize(cr->byBill, x, y, w); y += butTblock_resize(cr->noWarr, x, y, w); butTblock_resize(cr->seeHelp, x, y, w); fiveSeconds.tv_usec = 0; fiveSeconds.tv_sec = 5; cr->timer = butTimer_create(cr, cr->box, fiveSeconds, fiveSeconds, FALSE, killCr); return(cr); } static void destroyed(But *but) { Crwin *cr = but_packet(but); assert(MAGIC(cr)); MAGIC_UNSET(cr); wms_free(cr); } static ButOut killCr(ButTimer *timer) { Crwin *cr = butTimer_packet(timer); assert(MAGIC(cr)); butTimer_destroy(cr->timer); but_destroy(cr->title); but_destroy(cr->byBill); but_destroy(cr->noWarr); but_destroy(cr->seeHelp); /* * Kill the box last. This is important, because killing the box * triggers the destruction of the Crwin data structure. */ but_destroy(cr->box); return(0); } goban-1.1.orig/src/rnd.c0000644000175000017500000000437610270056475012710 0ustar alal/* * wmslib/src/wms/rnd.c, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include int rnd_int(Rnd *state) { uint result; int destIndent; assert(MAGIC(state)); destIndent = state->indent + RND_INDENT; if (destIndent >= RND_DATASIZE) destIndent -= RND_DATASIZE; result = (state->data[destIndent] += state->data[state->indent]); if (++state->indent >= RND_DATASIZE) state->indent = 0; return((int)(result >> 1)); } uint rnd_uint(Rnd *state) { uint result; int destIndent; assert(MAGIC(state)); destIndent = state->indent + RND_INDENT; if (destIndent >= RND_DATASIZE) destIndent -= RND_DATASIZE; result = (state->data[destIndent] += state->data[state->indent]); if (++state->indent >= RND_DATASIZE) state->indent = 0; return(result); } int32 rnd_int32(Rnd *state) { uint32 result; int destIndent; assert(MAGIC(state)); destIndent = state->indent + RND_INDENT; if (destIndent >= RND_DATASIZE) destIndent -= RND_DATASIZE; result = (state->data[destIndent] += state->data[state->indent]); if (++state->indent >= RND_DATASIZE) state->indent = 0; return((int32)(result >> 1)); } uint32 rnd_uint32(Rnd *state) { uint32 result; int destIndent; assert(MAGIC(state)); destIndent = state->indent + RND_INDENT; if (destIndent >= RND_DATASIZE) destIndent -= RND_DATASIZE; result = (state->data[destIndent] += state->data[state->indent]); if (++state->indent >= RND_DATASIZE) state->indent = 0; return(result); } Rnd *rnd_create(uint seed) { int i; Rnd *state; state = wms_malloc(sizeof(Rnd)); MAGIC_SET(state); state->indent = 0; for (i = 0; i < RND_DATASIZE; ++i) { state->data[i] = seed; seed = seed * 13 + 3; } for (i = 0; i < 100; ++i) rnd_uint32(state); return(state); } void rnd_destroy(Rnd *state) { assert(MAGIC(state)); MAGIC_UNSET(state); wms_free(state); } float rnd_float(Rnd *state) { int result; float out; #if SIZEOF_INT > 2 result = rnd_int(state) & 0xffffff; out = result / 16777216.0; return(out); #else result = rnd_int(state) & 0x7fff; out = result / 32768.0; return(out); #endif } goban-1.1.orig/src/game.h0000644000175000017500000000466510270065364013041 0ustar alal/* * src/client/game.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CLIENT_GAME_H_ #define _CLIENT_GAME_H_ 1 #ifndef _CLIENT_DATA_H_ #include "data.h" #endif #ifndef _CLIENT_BOARD_H_ #include "board.h" #endif #ifndef _CLIENT_PLAYER_H_ #include "player.h" #endif /********************************************************************** * Data Types **********************************************************************/ typedef enum { cliGame_noGame, cliGame_idle, cliGame_observing, cliGame_waitNoOb, cliGame_over } CliGameState; typedef struct CliGame_struct { CliGameState state; bool gamePressed; /* Don't let a double click do "observe " twice! */ Str wName, bName, wRank, bRank, flags; int moveNum, size, handicap; float komi; int byTime, observers; bool free, fromMatch; CliBoard *board; } CliGame; typedef struct CliGameList_struct { CliData *data; CliPlayerList *playerList; int maxGames; CliGame *games; int defaultGame, playGame; int kibGame; char kibPlayer[41]; ButWin *win; AbutSwin *swin; But *bg, *sBg, *list, *num, *titleBox, *title, *reload; bool elfBugReported; MAGIC_STRUCT } CliGameList; /********************************************************************** * Functions **********************************************************************/ extern CliGameList *cliGameList_init(CliGameList *gl, CliData *data, CliPlayerList *playerList); extern CliGameList *cliGameList_deinit(CliGameList *gl); extern void cliGameList_gotMove(CliGameList *gl, const char *move); extern void cliGameList_gotGameInfo(CliGameList *gl, const char *buf); extern void cliGameList_notObserving(CliGameList *gl, const char *buf); extern void cliGameList_kibitz(CliGameList *gl, const char *buf); extern void cliGameList_say(CliGameList *gl, const char *buf); extern void cliGameList_openWin(CliGameList *gl); extern void cliGameList_gameGone(CliGameList *gl, const char *buf, int bufLen); extern void cliGameList_gameStarts(CliGameList *gl, const char *buf); extern void cliGameList_selectDead(CliGameList *gl, const char *buf); extern void cliGameList_deadStone(CliGameList *gl, const char *buf); extern void cliGameList_gotUndo(CliGameList *gl, const char *buf); extern bool cliGame_tellIsSay(CliGameList *list, Str *tell); #endif /* _CLIENT_MAIN_H_ */ goban-1.1.orig/src/sgfIn.h0000644000175000017500000000101506055025555013164 0ustar alal/* * src/sgfIn.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _SGFIN_H_ #define _SGFIN_H_ 1 #ifndef _SGF_H_ #include "sgf.h" #endif /********************************************************************** * Functions **********************************************************************/ extern Sgf *sgf_createFile(Cgoban *cg, const char *fName, const char **err, bool *noFile); #endif /* _SGFIN_H_ */ goban-1.1.orig/src/goBoard.c0000644000175000017500000003620110270000706013454 0ustar alal/* * src/goboard.c, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include #include "goBoard.h" #include "goHash.h" #define DEBUG_SHOWLINKS 0 static bool goBoard_isBorder(GoBoard *board, int pos); static void addEmpty(GoBoard *board, int pos); #if DEBUG_SHOWLINKS static void showLinks(GoBoard *board); #endif GoBoard *goBoard_create(int size) { GoBoard *board; int i; Rnd *r; r = rnd_create(50); board = wms_malloc(sizeof(GoBoard)); MAGIC_SET(board); board->area = ((size + 2) * (size + 1) + 1); board->dirs[0] = size + 1; board->dirs[1] = -(size + 1); board->dirs[2] = 1; board->dirs[3] = -1; board->pieces = wms_malloc(board->area * sizeof(GoBoardPiece)); for (i = 0; i < board->area; ++i) { if (goBoard_isBorder(board, i)) { board->pieces[i].type = goStone_edge; board->pieces[i].head = NULL; board->pieces[i].hashStone[goStone_black] = goHash_zero; board->pieces[i].hashStone[goStone_white] = goHash_zero; board->pieces[i].hashKo[goStone_black] = goHash_zero; board->pieces[i].hashKo[goStone_white] = goHash_zero; } else { board->pieces[i].type = goStone_empty; /* * We must set empties to NULL head or else they may trip up the * liberty counting code (it sounds unlikely, but believe me! * I've seen it happen!) */ board->pieces[i].head = NULL; board->pieces[i].hashStone[goStone_black] = goHash_init(r); board->pieces[i].hashStone[goStone_white] = goHash_init(r); board->pieces[i].hashKo[goStone_black] = goHash_init(r); board->pieces[i].hashKo[goStone_white] = goHash_init(r); } } board->caps[0] = 0; board->caps[1] = 0; board->hashVal = goHash_zero; board->koLoc = 0; rnd_destroy(r); return(board); } static bool goBoard_isBorder(GoBoard *board, int pos) { return((pos < board->dirs[0]) || (pos >= board->area - board->dirs[0]) || (pos % board->dirs[0] == 0)); } void goBoard_destroy(GoBoard *board) { assert(MAGIC(board)); wms_free(board->pieces); MAGIC_UNSET(board); wms_free(board); } void goBoard_copy(GoBoard *src, GoBoard *dest) { int i; GoBoardPiece *sp, *dp; assert(MAGIC(src)); assert(MAGIC(dest)); assert(src->area == dest->area); for (i = 0, sp = src->pieces, dp = dest->pieces; i < src->area; ++i, ++sp, ++dp) { dp->type = sp->type; dp->libs = sp->libs; dp->size = sp->size; if (sp->head) dp->head = dest->pieces + (sp->head - src->pieces); else dp->head = NULL; if (sp->tail) dp->tail = dest->pieces + (sp->tail - src->pieces); else dp->tail = NULL; if (sp->next) dp->next = dest->pieces + (sp->next - src->pieces); else dp->next = NULL; } dest->caps[0] = src->caps[0]; dest->caps[1] = src->caps[1]; dest->hashVal = src->hashVal; dest->koLoc = src->koLoc; } bool goBoard_eq(GoBoard *b1, GoBoard *b2) { int i; assert(MAGIC(b1)); assert(MAGIC(b2)); if (b1->area != b2->area) return(FALSE); for (i = 0; i < b1->area; ++i) { if (b1->pieces[i].type != b2->pieces[i].type) return(FALSE); } return(TRUE); } void goBoard_print(GoBoard *b) { goBoard_fprint(b, stdout); } void goBoard_fprint(GoBoard *b, FILE *fnum) { int x, y; for (y = 0; y < goBoard_size(b); ++y) { for (x = 0; x < goBoard_size(b); ++x) { printf("%c ", goStone_char(b->pieces[goBoard_xy2Loc(b, x,y)].type)); } printf("\n"); } } /* * Returns the number of captures. */ int goBoard_addStone(GoBoard *board, GoStone stone, int loc, int *suicides) { GoStone oppType; GoBoardPiece *oppList[4], *new, *neighbor, *group, *groupNeighbor; GoBoardPiece *oppOppList[4]; GoBoardPiece *oldHead; GoBoardPiece *libs[GOBOARD_MAXSIZE*GOBOARD_MAXSIZE]; int i, j, k, oppListLen, oppOppListLen, numLibs, captures = 0; bool unseen; assert(MAGIC(board)); assert(loc >= 0); assert(loc < board->area); if (stone == goStone_empty) { assert(suicides == NULL); addEmpty(board, loc); return(0); } assert((loc == 0) || (board->pieces[loc].type == goStone_empty)); assert((stone == goStone_black) || (stone == goStone_white)); oppType = goStone_opponent(stone); new = &board->pieces[loc]; board->hashVal = goHash_xor(goHash_xor(board->hashVal, goHash_pass), new->hashStone[stone]); if (board->koLoc) { board->hashVal = goHash_xor(board->hashVal, board->pieces[board->koLoc].hashKo[oppType]); board->koLoc = 0; } if (loc == 0) return(0); /* Start you out as a simple group. */ new->type = stone; new->libs = 0; new->size = 1; new->head = new; new->tail = new; new->next = NULL; for (i = 0, oppListLen = 0; i < 4; ++i) { neighbor = new + board->dirs[i]; if (neighbor->type == oppType) { /* * An enemy group...remove a liberty. * If it now has 0 liberties, kill it! */ unseen = TRUE; /* * First check; if you've already seen this group then you shouldn't * remove another liberty, you've already done it. */ neighbor = neighbor->head; assert(neighbor->libs > 0); for (j = 0; j < oppListLen; ++j) { if (neighbor == oppList[j]) { unseen = FALSE; break; } } if (unseen) { oppList[oppListLen] = neighbor; ++oppListLen; if (--neighbor->libs == 0) { if (new == new->head) ++new->libs; captures += neighbor->size; for (group = neighbor; group; group = group->next) { board->hashVal = goHash_xor(board->hashVal, group->hashStone[oppType]); group->type = goStone_empty; group->head = NULL; oppOppListLen = 0; for (j = 0; j < 4; ++j) { groupNeighbor = group + board->dirs[j]; if (groupNeighbor->type == stone) { if ((groupNeighbor != new) || (groupNeighbor->head != groupNeighbor)) ++groupNeighbor->head->libs; groupNeighbor = groupNeighbor->head; for (k = 0; k < oppOppListLen; ++k) { if (oppOppList[k] == groupNeighbor) { --groupNeighbor->libs; break; } } oppOppList[oppOppListLen++] = groupNeighbor; } } } } } } else if ((neighbor->type == stone) && (neighbor->head != new->head)) { neighbor = neighbor->head; assert(neighbor->libs > 0); oldHead = new->head; /* * Add the group with the new stone to the tail of the neighbor group. */ neighbor->size += oldHead->size; numLibs = 0; /* You're touching a friendly stone. Merge them into a single group. */ for (group = oldHead; group; group = group->next) { group->head = neighbor; for (j = 0; j < 4; ++j) { groupNeighbor = group + board->dirs[j]; if ((groupNeighbor->type == goStone_empty) && (groupNeighbor->head != neighbor)) { groupNeighbor->head = neighbor; libs[numLibs++] = groupNeighbor; } } } for (group = neighbor; group; group = group->next) { for (j = 0; j < 4; ++j) { groupNeighbor = group + board->dirs[j]; if ((groupNeighbor->type == goStone_empty) && (groupNeighbor->head != neighbor)) { groupNeighbor->head = neighbor; libs[numLibs++] = groupNeighbor; } } } neighbor->tail->next = oldHead; neighbor->tail = oldHead->tail; assert(neighbor->libs - 1 <= numLibs); neighbor->libs = numLibs; for (j = 0; j < numLibs; ++j) { libs[j]->head = NULL; } assert(neighbor != new); assert(new->head == neighbor); } else if ((neighbor->type == goStone_empty) && (new->head == new)) ++new->libs; } if (new->head->libs == 0) { if (suicides) *suicides = new->head->size; board->caps[oppType] += new->head->size; for (group = new->head; group; group = group->next) { board->hashVal = goHash_xor(board->hashVal, group->hashStone[stone]); group->type = goStone_empty; group->head = NULL; oppOppListLen = 0; for (j = 0; j < 4; ++j) { groupNeighbor = group + board->dirs[j]; if (groupNeighbor->type == oppType) { groupNeighbor = groupNeighbor->head; ++groupNeighbor->libs; for (k = 0; k < oppOppListLen; ++k) { if (oppOppList[k] == groupNeighbor) { --groupNeighbor->libs; break; } } oppOppList[oppOppListLen++] = groupNeighbor; } } } } else if (suicides) *suicides = 0; board->caps[stone] += captures; if ((captures == 1) && (new->head == new) && (new->libs == 1)) { board->koLoc = loc; board->hashVal = goHash_xor(board->hashVal, new->hashKo[stone]); } #if DEBUG_SHOWLINKS showLinks(board); #endif return(captures); } static void addEmpty(GoBoard *board, int loc) { GoBoardPiece *remove, *group, *neighbor, *oppList[4]; GoStone type; int killedLocs[GOBOARD_MAXSIZE*GOBOARD_MAXSIZE]; int i, dir, numKilled, oppListLen; /* * My database really has no clean way of removing stones, so I take out * the entire group that the empty stone is a part of, then add in * all of the group (except for the stone that I wanted to remove in * first place) one at a time. */ remove = board->pieces + loc; type = remove->type; if (type == goStone_empty) return; assert((type == goStone_white) || (type == goStone_black)); numKilled = 0; for (group = remove->head; group; group = group->next) { if (group != remove) killedLocs[numKilled++] = group - board->pieces; board->hashVal = goHash_xor(board->hashVal, group->hashStone[type]); group->type = goStone_empty; group->head = NULL; oppListLen = 0; for (dir = 0; dir < 4; ++dir) { neighbor = group + board->dirs[dir]; if (neighbor->type == goStone_opponent(type)) { neighbor = neighbor->head; ++neighbor->libs; for (i = 0; i < oppListLen; ++i) { if (oppList[i] == neighbor) { --neighbor->libs; break; } } oppList[oppListLen++] = neighbor; } } } /* Ok, they're all gone now. So add them back! :-) */ for (i = 0; i < numKilled; ++i) { goBoard_addStone(board, type, killedLocs[i], NULL); } } /* * This returns the hash WITHOUT the ko. */ GoHash goBoard_quickHash(GoBoard *board, GoStone stone, int loc, bool *suicide) { GoHash result; int i, j, deadListLen = 0; bool killSelf = TRUE, killNeighbor; GoBoardPiece *new, *neighbor, *deadList[4]; assert(MAGIC(board)); assert(loc >= 0); assert(loc < board->area); assert((loc == 0) || (board->pieces[loc].type == goStone_empty)); assert((stone == goStone_black) || (stone == goStone_white)); result = goHash_xor(goBoard_hashNoKo(board, goStone_opponent(stone)), goHash_xor(goHash_pass, board->pieces[loc].hashStone[stone])); if (loc == 0) return(result); new = &board->pieces[loc]; for (i = 0; i < 4; ++i) { neighbor = new + board->dirs[i]; if (neighbor->type == goStone_empty) killSelf = FALSE; else if (neighbor->type == stone) { if (neighbor->head->libs > 1) killSelf = FALSE; } else if (neighbor->type == goStone_opponent(stone)) { neighbor = neighbor->head; if (neighbor->libs == 1) { killSelf = FALSE; killNeighbor = TRUE; for (j = 0; j < deadListLen; ++j) { if (deadList[j] == neighbor) { killNeighbor = FALSE; break; } } if (killNeighbor) { deadList[deadListLen++] = neighbor; do { result = goHash_xor(result, neighbor->hashStone[goStone_opponent(stone)]); neighbor = neighbor->next; } while (neighbor); } } } } if (suicide) *suicide = killSelf; if (killSelf) { result = goHash_xor(result, new->hashStone[stone]); deadListLen = 0; for (i = 0; i < 4; ++i) { neighbor = new + board->dirs[i]; if (neighbor->type == stone) { neighbor = neighbor->head; killNeighbor = TRUE; for (j = 0; j < deadListLen; ++j) { if (deadList[j] == neighbor) { killNeighbor = FALSE; break; } } if (killNeighbor) { deadList[deadListLen++] = neighbor; do { result = goHash_xor(result, neighbor->hashStone[stone]); neighbor = neighbor->next; } while (neighbor); } } } } return(result); } void goBoard_loc2Str(GoBoard *board, int loc, char *str) { if (loc == 0) strcpy(str, "Pass"); /* BAD! */ else { str[0] = 'A' + (loc % board->dirs[0]) - 1; if (str[0] >= 'I') ++str[0]; sprintf(str+1, "%d", goBoard_size(board) + 1 - (loc / board->dirs[0])); } } int goBoard_str2Loc(GoBoard *board, const char *str) { char xChar; int x, y, yLoc; int args; args = sscanf(str, "%c%d", &xChar, &yLoc); assert(args == 2); if (xChar < 'I') x = xChar - 'A'; else x = xChar - 'B'; y = goBoard_size(board) - yLoc; if ((x < 0) || (y < 0) || (x >= goBoard_size(board)) || (y >= goBoard_size(board))) { return(-1); } return(goBoard_xy2Loc(board, x, y)); } void goBoard_rmGroup(GoBoard *board, int loc) { GoBoardPiece *oppList[4]; GoBoardPiece *dead, *neighbor; GoStone s, o; int i, j, oppListLen; assert(goStone_isStone(board->pieces[loc].type)); dead = board->pieces[loc].head; s = dead->type; assert(goStone_isStone(s)); o = goStone_opponent(s); board->caps[o] += dead->size; do { board->hashVal = goHash_xor(board->hashVal, dead->hashStone[s]); dead->type = goStone_empty; dead->head = NULL; oppListLen = 0; for (i = 0; i < 4; ++i) { neighbor = dead + board->dirs[i]; if (neighbor->type == o) { neighbor = neighbor->head; ++neighbor->libs; for (j = 0; j < oppListLen; ++j) { if (oppList[j] == neighbor) { --neighbor->libs; break; } } oppList[oppListLen++] = neighbor; } } dead = dead->next; } while (dead); } const char *goBoard_loc2Sgf(GoBoard *b, int l) { static char loc[5] = "xxxx"; int x, y; assert(MAGIC(b)); assert((l > 0) && (l < b->area)); x = goBoard_loc2X(b, l); y = goBoard_loc2Y(b, l); loc[0] = 'a' + (x / 26); loc[1] = 'a' + (x % 26); loc[2] = 'a' + (y / 26); loc[3] = 'a' + (y % 26); return(loc); } int goBoard_sgf2Loc(GoBoard *b, const char *l) { int x, y; assert(MAGIC(b)); assert((strlen(l) == 2) || (strlen(l) == 4)); if (l[2] == '\0') { x = l[0] - 'a'; y = l[1] - 'a'; } else { x = (l[0] - 'a') * 26 + (l[1] - 'a'); y = (l[2] - 'a') * 26 + (l[3] - 'a'); } assert((x >= 0) && (x < goBoard_size(b))); assert((y >= 0) && (y < goBoard_size(b))); return(goBoard_xy2Loc(b, x, y)); } #if DEBUG_SHOWLINKS static void showLinks(GoBoard *board) { GoBoardPiece *group; int loc; char locStr[4]; printf("Links:\n"); for (loc = 0; loc < board->area; ++loc) { if (goStone_isStone(board->pieces[loc].type) && board->pieces[loc].head == &board->pieces[loc]) { printf(" Color = %c, libs=%d, size=%d\n", goStone_char(board->pieces[loc].type), board->pieces[loc].libs, board->pieces[loc].size); for (group = &board->pieces[loc]; group; group = group->next) { goBoard_loc2Str(board, group - &board->pieces[0], locStr); printf(" %s\n", locStr); assert(group->head == &board->pieces[loc]); } } } printf("----\n"); } #endif /* DEBUG_SHOWLINKS */ goban-1.1.orig/src/i_win.c0000644000175000017500000003276010270060245013216 0ustar alal/* * wmslib/src/but/i_win.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include #include "vroot.h" #define IS_ICONIC 1 #define FIXED_SIZE 2 /********************************************************************** * Forward declarations **********************************************************************/ static ButWin *create(void *packet, ButEnv *env, const char *name, int w, int h, ButWinFunc *resize); /********************************************************************** * Functions **********************************************************************/ ButWin *butWin_iCreate(void *packet, ButEnv *env, const char *name, int w, int h, ButWin **iWin, bool iconic, int iW, int iH, ButWinFunc *unmap, ButWinFunc *map, ButWinFunc *resize, ButWinFunc *iResize, ButWinFunc *destroy) { ButWin *result; result = create(packet, env, name, w, h, resize); result->unmap = unmap; result->map = map; result->destroy = destroy; result->quit = NULL; if (iWin) { *iWin = create(packet, env, name, iW, iH, iResize); (*iWin)->isIcon = TRUE; result->iconWin = *iWin; result->iconic = iconic; butWin_activate(*iWin); } return(result); } static ButWin *create(void *packet, ButEnv *env, const char *name, int w, int h, ButWinFunc *resize) { ButWin *win; win = wms_malloc(sizeof(ButWin)); MAGIC_SET(win); MAGIC_SET(&win->butsNoDraw); win->parent = NULL; win->parentBut = NULL; win->packet = packet; win->iPacket = NULL; win->win = None; win->physWin = None; win->iconWin = NULL; win->name = name; win->iconic = FALSE; win->isIcon = FALSE; win->isroot = FALSE; win->x = int_max; win->y = int_max; win->w = win->minW = win->maxW = win->logicalW = w; win->h = win->minH = win->maxH = win->logicalH = h; win->wStep = 1; win->hStep = 1; win->xOff = 0; win->yOff = 0; win->minWRatio = win->minHRatio = win->maxWRatio = win->maxHRatio = 0; win->resized = FALSE; win->resizeNeeded = FALSE; win->redrawReady = TRUE; win->redraws = NULL; win->numRedraws = win->maxRedraws = 0; win->id = 0; win->mapped = FALSE; win->unmap = NULL; win->map = NULL; win->resize = resize; win->destroy = NULL; win->quit = NULL; win->env = env; win->minLayer = 1; win->maxLayer = 0; win->butsNoDraw.buts = NULL; win->butsNoDraw.numButs = 0; win->butsNoDraw.maxButs = 0; win->butsNoDraw.dynamic = TRUE; win->lock = NULL; win->butIn = NULL; win->keyBut = NULL; win->numCols = 0; win->maxCols = 0; win->cols = NULL; return(win); } void butWin_setGeom(ButWin *win, const char *geometry) { char xdir = '+', ydir = '+'; int pcount; int defscr = DefaultScreen(win->env->dpy); assert(MAGIC(win)); if (geometry[0] == '=') ++geometry; if ((geometry[0] == '+') || (geometry[0] == '-')) { pcount = sscanf(geometry, "%c%d%c%d", &xdir, &win->x, &ydir, &win->y); if ((pcount != 4) || ((xdir != '-') && (xdir != '+')) || ((ydir != '-') && (ydir != '+'))) { fprintf(stderr, "Error: Cannot understand geometry \"%s\".\n", geometry); assert(FALSE); exit(1); } } else { pcount = sscanf(geometry, "%dx%d%c%d%c%d", &win->w, &win->h, &xdir, &win->x, &ydir, &win->y); if (((pcount != 2) && (pcount != 6)) || ((xdir != '-') && (xdir != '+')) || ((ydir != '-') && (ydir != '+'))) { fprintf(stderr, "Error: Cannot understand geometry \"%s\".\n", geometry); assert(FALSE); exit(1); } } if (xdir == '-') win->x = DisplayWidth(win->env->dpy, defscr) - win->x - win->w; if (ydir == '-') win->y = DisplayHeight(win->env->dpy, defscr) - win->y - win->h; butWin_checkDims(win); } void butWin_setX(ButWin *win, int x) { assert(MAGIC(win)); win->x = x; butWin_checkDims(win); } void butWin_setY(ButWin *win, int y) { assert(MAGIC(win)); win->y = y; butWin_checkDims(win); } void butWin_setMinW(ButWin *win, int minW) { assert(MAGIC(win)); win->minW = minW; butWin_checkDims(win); } void butWin_setMinH(ButWin *win, int minH) { assert(MAGIC(win)); win->minH = minH; butWin_checkDims(win); } void butWin_setMaxW(ButWin *win, int maxW) { assert(MAGIC(win)); if (maxW == 0) maxW = int_max / 2; win->maxW = maxW; butWin_checkDims(win); } void butWin_setMaxH(ButWin *win, int maxH) { assert(MAGIC(win)); if (maxH == 0) maxH = int_max / 2; win->maxH = maxH; butWin_checkDims(win); } void butWin_setWHRatio(ButWin *win, int w, int h) { assert(MAGIC(win)); win->minWRatio = w; win->maxWRatio = w; win->minHRatio = h; win->maxHRatio = h; butWin_checkDims(win); } void butWin_setWHRatios(ButWin *win, int minW, int minH, int maxW, int maxH) { assert(MAGIC(win)); assert(minW / minH <= maxW / maxH); assert(minH / minW >= maxH / maxW); win->minWRatio = minW; win->minHRatio = minH; win->maxWRatio = maxW; win->maxHRatio = maxH; butWin_checkDims(win); } void butWin_setWStep(ButWin *win, int wStep) { assert(MAGIC(win)); win->wStep = wStep; butWin_checkDims(win); } void butWin_setHStep(ButWin *win, int hStep) { assert(MAGIC(win)); win->hStep = hStep; butWin_checkDims(win); } void butWin_activate(ButWin *win) { ButEnv *env = win->env; Display *dpy = env->dpy; uint hintmask = USSize; int defscr = DefaultScreen(dpy); XSizeHints *sizeHints; XSetWindowAttributes winattr; XWMHints wm_hints; XClassHint class_hints; XTextProperty windowName, iconName; static char *dumb_argv[] = {NULL}; static Atom protocols[1]; /* Stupid X doesn't call their strings const always. */ char *annoyance; char annoy2[] = "Basicwin"; sizeHints = XAllocSizeHints(); if (win->x != int_max) { hintmask |= USPosition; if (win->x + win->w / 2 < 0) win->x = -win->w / 2; if (win->x + win->w / 2 > env->rootW) win->x = env->rootW - win->w/2; if (win->y + win->h / 2 < 0) win->y = -win->h/2; if (win->y + win->h / 2 > env->rootH) win->y = env->rootH - win->h / 2; } winattr.background_pixel = env->colors[BUT_BG]; winattr.event_mask = ExposureMask | StructureNotifyMask; winattr.bit_gravity = NorthWestGravity; if (win->isIcon) { win->win = XCreateWindow(dpy, DefaultRootWindow(dpy), win->x,win->y, win->w, win->h, 0, env->depth, InputOutput, CopyFromParent, CWBackPixel|CWEventMask|CWBitGravity, &winattr); win->physWin = win->win; XSelectInput(dpy, win->win, ExposureMask|StructureNotifyMask); } else { if (win->window_id) { win->win = win->window_id; } if (win->isroot) { win->win = DefaultRootWindow(dpy); } if (win->isroot || win->window_id) { win->physWin = win->win; win->mapped = TRUE; win->resizeNeeded = 1; butWin_addToTable(win); XFree(sizeHints); return; } winattr.event_mask |= PointerMotionMask | ButtonPressMask | KeyPressMask | ButtonReleaseMask | KeyReleaseMask | LeaveWindowMask | FocusChangeMask; win->win = XCreateWindow(dpy, RootWindow(dpy, defscr), win->x,win->y, win->w,win->h, 0, env->depth, InputOutput, CopyFromParent, CWBackPixel|CWEventMask|CWBitGravity, &winattr); win->physWin = win->win; sizeHints->flags = PSize | PMinSize | PMaxSize | hintmask; sizeHints->max_width = win->maxW; sizeHints->max_height = win->maxH; sizeHints->min_width = win->minW; sizeHints->min_height = win->minH; if (win->minWRatio != 0) { sizeHints->flags |= PAspect; sizeHints->min_aspect.x = win->minWRatio; sizeHints->min_aspect.y = win->minHRatio; sizeHints->max_aspect.x = win->maxWRatio; sizeHints->max_aspect.y = win->maxHRatio; } if ((win->wStep != 1) || (win->hStep != 1)) { sizeHints->flags |= PResizeInc; sizeHints->width_inc = win->wStep; sizeHints->height_inc = win->hStep; } wm_hints.flags = StateHint | InputHint; if (win->iconWin != None) { wm_hints.flags |= IconWindowHint; wm_hints.icon_window = win->iconWin->win; } annoyance = wms_malloc(strlen(win->name) + 1); strcpy(annoyance, win->name); if (XStringListToTextProperty(&annoyance, 1, &iconName) == 0) { fprintf(stderr, "Cannot allocate icon name.\n"); assert(FALSE); exit(1); } if (XStringListToTextProperty(&annoyance, 1, &windowName) == 0) { fprintf(stderr, "Cannot allocate window name.\n"); exit(1); } wms_free(annoyance); if (win->iconic) wm_hints.initial_state = IconicState; else wm_hints.initial_state = NormalState; wm_hints.input = True; class_hints.res_name = annoyance; class_hints.res_class = annoy2; XSetWMProperties(dpy, win->win, &windowName, &iconName, dumb_argv, 0, sizeHints, &wm_hints, &class_hints); protocols[0] = but_wmDeleteWindow; XSetWMProtocols(dpy, win->win, protocols, 1); XMapWindow(dpy, win->win); } XFree(sizeHints); butWin_addToTable(win); } void butWin_destroy(ButWin *win) { if (but_inEvent) { butWin_dList(win); } else { while (butWin_delete(win) == BUTOUT_STILLBUTS); } } ButOut butWin_delete(ButWin *win) { ButEnv *env = win->env; ButOut result = 0; int i, j; ButSet bset; assert(MAGIC(win)); if (win->destroy != NULL) { /* * This must be done before killing the buttons in case the user wants * to read some buttons before they go away. */ result |= win->destroy(win); win->destroy = NULL; } butWin_findButSetInRegion(win, int_min/2,int_min/2, int_max,int_max, &bset); but_inEvent = TRUE; if ((bset.numButs != 0) || (win->butsNoDraw.numButs != 0)) { for (i = 0; i < bset.numButs; ++i) { but_destroy(bset.buts[i]); } for (i = 0; i < win->butsNoDraw.numButs; ++i) { but_destroy(win->butsNoDraw.buts[i]); } butSet_destroy(&bset); win->butsNoDraw.numButs = 0; return(BUTOUT_STILLBUTS); } if (win->parent) butCan_winDead(win); but_inEvent = FALSE; butSet_destroy(&bset); butSet_destroy(&win->butsNoDraw); /* Remove all timers from the timer list. */ /* Clear out the table. */ /* Since there can be no buttons left, you can easily wms_free the table. */ for (i = 0; i < win->numCols; ++i) { assert(MAGIC(&win->cols[i])); MAGIC_UNSET(&win->cols[i]); for (j = 0; j < win->cols[i].numRows; ++j) { assert(MAGIC(&win->cols[i].rows[j])); MAGIC_UNSET(&win->cols[i].rows[j]); if (win->cols[i].rows[j].buts != NULL) wms_free(win->cols[i].rows[j].buts); } wms_free(win->cols[i].rows); } wms_free(win->cols); if (env->curwin == win->win) env->curwin = None; if (win->parent) XFreePixmap(env->dpy, win->win); else XDestroyWindow(env->dpy, win->win); if (env->last_mwin == win) env->last_mwin = NULL; butWin_rmFromTable(win); MAGIC_UNSET(&win->butsNoDraw); MAGIC_UNSET(win); wms_free(win); return(result); } /* * Should only be called by a fixed size window. */ void butWin_resize(ButWin *win, int newW, int newH) { XSizeHints *sizeHints; win->minW = win->maxW = newW; win->minH = win->maxH = newH; sizeHints = XAllocSizeHints(); sizeHints->flags = PMaxSize | PMinSize | PSize; sizeHints->max_width = sizeHints->min_width = sizeHints->width = newW; sizeHints->max_height = sizeHints->min_height = sizeHints->height = newH; XSetWMNormalHints(win->env->dpy, win->win, sizeHints); XFree(sizeHints); XResizeWindow(win->env->dpy, win->win, newW, newH); } /* * Some window managers (like eXceed/NT) ignore the ratio parts of * a window. This could break some programs, so here we just ignore * parts of a window if that's the case. It's ugly, but hey, get * a real window manager. */ void butWin_checkDims(ButWin *win) { if (win->w > win->env->rootW) win->w = win->env->rootW; if (win->h > win->env->rootH) win->h = win->env->rootH; if (win->w < win->minW) win->w = win->minW; if (win->w > win->maxW) win->w = win->maxW; if (win->h < win->minH) win->h = win->minH; if (win->h > win->maxH) win->h = win->maxH; win->w -= ((win->w - win->minW) % win->wStep); win->h -= ((win->h - win->minH) % win->hStep); if (win->minWRatio) { if ((win->w + 1) * win->minHRatio - 1 < win->h * win->minWRatio) win->w = (win->h * win->minWRatio) / win->minHRatio; if ((win->h + 1) * win->maxWRatio - 1 < win->w * win->maxHRatio) win->h = (win->w * win->maxHRatio) / win->maxWRatio; } } ButColor butColor_create(int r, int g, int b, int grey) { ButColor result; result.red = (65535L * r + 127) / 255; result.green = (65535L * g + 127) / 255; result.blue = (65535L * b + 127) / 255; result.greyLevel = grey; return(result); } ButColor butColor_mix(ButColor c1, int r1, ButColor c2, int r2) { ButColor res; res.red = ((c1.red * r1) + (c2.red * r2) + (r1 + r2) / 2) / (r1 + r2); res.green = ((c1.green * r1) + (c2.green * r2) + (r1 + r2) / 2) / (r1 + r2); res.blue = ((c1.blue * r1) + (c2.blue * r2) + (r1 + r2) / 2) / (r1 + r2); res.greyLevel = c1.greyLevel; return(res); } #endif /* X11_DISP */ goban-1.1.orig/src/wms.c0000644000175000017500000001331406343154527012726 0ustar alal/* * wmslib/src/wms.c, part of wmslib (Library functions) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #include #if !HAVE_GETDTABLESIZE #include #endif #if DEBUG typedef struct alloc_struct { int magic; int size; const char *file; int line; struct alloc_struct *next, *prev; } alloc_t; static int alloc_count=0, total_bytes=0, check=FALSE; static alloc_t *ring_head = NULL; void *wms_malloc_debug(uint bufsize, const char *file, int line) { void *ret; alloc_t *alloc; if (bufsize == 0) return(NULL); ++alloc_count; total_bytes += bufsize; bufsize += sizeof(alloc_t); alloc = malloc(bufsize); assert(alloc != NULL); if (alloc == NULL) { fprintf(stderr, "%s: FATAL ERROR: Failed to allocate %d bytes.\n", wms_progname, bufsize); exit(1); } ret = (void *)((int)alloc + sizeof(alloc_t)); alloc->magic = 0x91325832; alloc->size = bufsize - sizeof(alloc_t); alloc->file = file; alloc->line = line; if (ring_head == NULL) { ring_head = alloc; alloc->next = alloc->prev = alloc; } else { alloc->next = ring_head; alloc->prev = ring_head->prev; alloc->next->prev = alloc; alloc->prev->next = alloc; } return(ret); } void wms_free(void *deadbuf) { alloc_t *alloc; assert(deadbuf != NULL); alloc = (alloc_t *)((int)deadbuf - sizeof(alloc_t)); --alloc_count; if (alloc->magic != 0x91325832) { fprintf(stderr, "WARNING: BAD FREE!\n"); for (;;); } total_bytes -= alloc->size; alloc->magic = 0; if (ring_head == alloc) { if (alloc->next == alloc) ring_head = NULL; else { ring_head = alloc->next; alloc->next->prev = alloc->prev; alloc->prev->next = alloc->next; } } else if (alloc->next != alloc) { alloc->next->prev = alloc->prev; alloc->prev->next = alloc->next; } free(alloc); } void wms_alloc_ring_reset(void) { ring_head = NULL; } void wms_alloc_ring_show(void) { alloc_t *alloc; if (ring_head == NULL) { printf("*** wms_alloc: Empty ring\n"); } else { alloc = ring_head; do { printf("*** wms_alloc: %4d bytes; file \"%s\", line %d.\n", alloc->size, alloc->file, alloc->line); alloc = alloc->next; } while (alloc != ring_head); printf("\n"); } } void wms_alloc_stat(void) { fprintf(stderr, "Count of allocated buffers: %d\n", alloc_count); fprintf(stderr, " Total bytes allocated: %d\n", total_bytes); check = TRUE; } #else /* !DEBUG */ void *wms_malloc(uint bufsize) { void *ret; if (bufsize == 0) return(NULL); ret = malloc(bufsize); assert(ret != NULL); if (ret == NULL) { fprintf(stderr, "%s: FATAL ERROR: Failed to allocate %d bytes.\n", wms_progname, bufsize); exit(1); } return(ret); } #endif /* DEBUG */ #if !HAVE_STRERROR /* * Do a fake, really bad strerror() function. */ const char *strerror(int error) { static char out[20]; sprintf(out, "System error %d", error); return(out); } #endif /* !HAVE_STRERROR */ #if !HAVE_GETDTABLESIZE int getdtablesize(void) { struct rlimit tmp_rlim; getrlimit(RLIMIT_NOFILE, &tmp_rlim); return(tmp_rlim.rlim_cur); } #endif /* !HAVE_GETDTABLESIZE */ int wms_atoi(const char *str, bool *err) { bool dummy; bool negative = FALSE, inNum = FALSE, gotNum = FALSE, doneNum = FALSE; int i, v = 0, newV; if (err == NULL) err = &dummy; *err = FALSE; for (i = 0; str[i]; ++i) { if (isspace(str[i])) { if (inNum) doneNum = TRUE; } else if (str[i] == '-') { if (inNum) { *err = TRUE; return(0); } else { inNum = TRUE; negative = TRUE; } } else if (isdigit(str[i])) { if (doneNum) { *err = TRUE; return(0); } else { inNum = TRUE; gotNum = TRUE; newV = v*10 + (int)(str[i] - '0'); if (newV / 10 != v) { *err = TRUE; return(0); } v = newV; } } else { *err = TRUE; return(0); } } if (!gotNum) { *err = TRUE; return(0); } if (negative) return(-v); else return(v); } double wms_atof(const char *str, bool *err) { int i; bool decimal = FALSE; i = 0; if (str[0] == '-') ++i; while (str[i]) { if (str[i] == '.') { if (decimal) { if (err) *err = TRUE; return(0.0); } decimal = TRUE; } else if (!isdigit(str[i])) { if (err) *err = TRUE; return(0.0); } ++i; } if (err) *err = FALSE; return(atof(str)); } #if WORDS_BIGENDIAN int stdInt32_int(StdInt32 i) { return(((i >> 24) & 0x000000ff) | ((i >> 8) & 0x0000ff00) | ((i << 8) & 0x00ff0000) | ((i << 24) & 0xff000000)); } StdInt32 int_stdInt32(int i) { return(((i >> 24) & 0x000000ff) | ((i >> 8) & 0x0000ff00) | ((i << 8) & 0x00ff0000) | ((i << 24) & 0xff000000)); } #endif /* WORDS_BIGENDIAN */ #if !HAVE_MEMMOVE void *memmove(void *dest, const void *src, size_t n) { char *dc; const char *sc; int i; dc = dest; sc = src; if ((dc + n < sc) || (sc + n < dc)) return(memcpy(dest, src, n)); else { if (dc < sc) { for (i = 0; i < n; ++i) { dc[i] = sc[i]; } } else if (sc < dc) { for (i = n - 1; i >= 0; --i) { dc[i] = sc[i]; } } } return(dest); } #endif /* !HAVE_MEMMOVE */ #if !HAVE_STRCASECMP int strcasecmp(const char *s1, const char *s2) { int i; char c1, c2; for (i = 0; s1[i]; ++i) { c1 = s1[i]; c2 = s2[i]; if ((c1 >= 'a') && (c1 <= 'z')) c1 += 'A' - 'a'; if ((c2 >= 'a') && (c2 <= 'z')) c2 += 'A' - 'a'; if (c1 != c2) return((int)c1 - (int)c2); } if (s2[i]) return(-1); return(0); } #endif /* !HAVE_STRCASECMP */ goban-1.1.orig/src/client_main.c0000644000175000017500000005015010270065446014374 0ustar alal/* * src/client/main.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. */ #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "msg.h" #include "help.h" #ifdef _CLIENT_MAIN_H_ LEVELIZATION ERROR #endif #include "client_main.h" /********************************************************************** * Forward Declarations **********************************************************************/ static ButOut unmap(ButWin *win); static ButOut map(ButWin *win); static ButOut resize(ButWin *win); static ButOut destroy(ButWin *win); static void dataIn(void *packet, const char *buf, int bufLen); static ButOut userInput(But *but, const char *input); static ButOut quitPressed(But *but); static ButOut gamesPressed(But *but); static ButOut playersPressed(But *but); static ButOut iResize(ButWin *win); static ButOut newState(But *but, int value); static ButOut msgBoxKilled(But *okBut); static void client2client(CliMain *main, const char *buf); static ButOut prevHistory(But *but, KeySym keysym, uint keyModifiers, void *context); static ButOut nextHistory(But *but, KeySym keysym, uint keyModifiers, void *context); /********************************************************************** * Functions **********************************************************************/ CliMain *cliMain_create(CliData *data, void (*destroyCallback)(CliMain *main, void *packet), void *packet) { Str winTitle; CliMain *main; int winW, winH; Cgoban *cg; int i; bool err; assert(MAGIC(data)); cg = data->cg; main = wms_malloc(sizeof(CliMain)); MAGIC_SET(main); cliData_incRef(data); main->data = data; winW = (clp_getDouble(cg->clp, "client.main.w") * cg->fontH + 0.5); winH = (clp_getDouble(cg->clp, "client.main.h") * cg->fontH + 0.5); str_init(&winTitle); str_print(&winTitle, "%s Client", data->serverName); main->win = butWin_iCreate(main, cg->env, str_chars(&winTitle), winW, winH, &main->iWin, FALSE, 48, 48, unmap, map, resize, iResize, destroy); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.main.x"), &err); if (!err) butWin_setX(main->win, i); i = clpEntry_iGetInt(clp_lookup(cg->clp, "client.main.y"), &err); if (!err) butWin_setY(main->win, i); butWin_setMinW(main->win, cg->fontH * 10); butWin_setMinH(main->win, cg->fontH * 10); butWin_setMaxW(main->win, 0); butWin_setMaxH(main->win, 0); butWin_activate(main->win); str_deinit(&winTitle); main->bg = butBoxFilled_create(main->win, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(main->bg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); main->quit = butCt_create(quitPressed, main, main->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_quit); main->games = butCt_create(gamesPressed, main, main->win, 1, BUT_DRAWABLE, msg_games); main->players = butCt_create(playersPressed, main, main->win, 1, BUT_DRAWABLE, msg_players); main->help = butCt_create(cgoban_createHelpWindow, &help_cliMain, main->win, 1, BUT_DRAWABLE|BUT_PRESSABLE, msg_help); main->script = abutTerm_create(cg->abut, main->win, 1, FALSE); main->message = NULL; butTbin_setMaxLines(main->script->tbin, 250); if (data->conn.directConn) main->tin = butTextin_create(userInput, main, main->win, 1, BUT_DRAWABLE, "", 200); else main->tin = butTextin_create(userInput, main, main->win, 1, BUT_DRAWABLE|BUT_PRESSABLE|BUT_KEYED, "", 200); main->userState = butRadio_create(newState, main, main->win, 1, BUT_DRAWABLE, cliPlayer_unknown - cliPlayer_closed, 3); main->looking = butText_create(main->win, 2, BUT_DRAWABLE | BUT_PRESSTHRU, "!", butText_center); main->open = butText_create(main->win, 2, BUT_DRAWABLE | BUT_PRESSTHRU, "O", butText_center); main->closed = butText_create(main->win, 2, BUT_DRAWABLE | BUT_PRESSTHRU, "X", butText_center); cliPlayerList_init(&main->playerList, data); cliGameList_init(&main->gameList, data, &main->playerList); main->state = cliMain_idle; main->promptVisible = FALSE; str_init(&main->outStr); main->iBg = butBoxFilled_create(main->iWin, 0, BUT_DRAWABLE); butBoxFilled_setPixmaps(main->iBg, cg->bgLitPixmap, cg->bgShadPixmap, cg->bgPixmap); main->iPic = grid_create(&cg->cgbuts, NULL, NULL, main->iWin, 1, BUT_DRAWABLE, 0); grid_setStone(main->iPic, goStone_white, FALSE); grid_setLineGroup(main->iPic, gridLines_none); if (data->server == cliServer_nngs) grid_setVersion(main->iPic, CGBUTS_WORLDWEST(3)); else grid_setVersion(main->iPic, CGBUTS_WORLDEAST(4)); cliLook_init(&main->look, cg, data->server); main->historyLen = 0; main->historyBeingFilled = 0; main->historyBeingViewed = 0; for (i = 0; i < MAIN_HISTORYMAXLEN; ++i) { str_init(&main->history[i]); } butTextin_setSpecialKey(main->tin, XK_p, ControlMask, ShiftMask|ControlMask, prevHistory, main); butTextin_setSpecialKey(main->tin, XK_Up, 0, ShiftMask|ControlMask, prevHistory, main); butTextin_setSpecialKey(main->tin, XK_n, ControlMask, ShiftMask|ControlMask, nextHistory, main); butTextin_setSpecialKey(main->tin, XK_Down, 0, ShiftMask|ControlMask, nextHistory, main); main->destroyCallback = destroyCallback; main->packet = packet; return(main); } void cliMain_activate(CliMain *main) { assert(MAGIC(main)); main->data->state = cliData_main; main->data->conn.newData = dataIn; main->data->conn.packet = main; main->data->conn.loginMode = FALSE; but_setFlags(main->games, BUT_PRESSABLE); but_setFlags(main->players, BUT_PRESSABLE); but_setFlags(main->tin, BUT_PRESSABLE|BUT_KEYED); but_setFlags(main->games, BUT_PRESSABLE); but_setFlags(main->userState, BUT_PRESSABLE); cliConn_prompt(&main->data->conn); cliConn_send(&main->data->conn, "toggle quiet 0\ntoggle verbose 0\ngames\nwho\n"); if (main->data->server == cliServer_nngs) cliConn_send(&main->data->conn, "client 5\n"); } void cliMain_destroy(CliMain *main) { Cgoban *cg; assert(MAGIC(main)); if (main->destroyCallback) main->destroyCallback(main, main->packet); cliMain_clearMessage(main); if (main->win) { cg = main->data->cg; clp_setDouble(cg->clp, "client.main.w", (double)butWin_w(main->win) / (double)cg->fontH); clp_setDouble(cg->clp, "client.main.h", (double)butWin_h(main->win) / (double)cg->fontH); clp_setInt(cg->clp, "client.main.x", butWin_x(main->win)); clp_setInt(cg->clp, "client.main.y", butWin_y(main->win)); butWin_setDestroy(main->win, NULL); butWin_destroy(main->win); } cliGameList_deinit(&main->gameList); cliPlayerList_deinit(&main->playerList); cliLook_deinit(&main->look); str_deinit(&main->outStr); cliData_closeConns(main->data); cliData_decRef(main->data); MAGIC_UNSET(main); wms_free(main); } static ButOut unmap(ButWin *win) { return(0); } static ButOut map(ButWin *win) { return(0); } static ButOut resize(ButWin *win) { CliMain *main = butWin_packet(win); int w = butWin_w(win), h = butWin_h(win); int bw = butEnv_stdBw(butWin_env(win)); int fontH = main->data->cg->fontH; int midY; assert(MAGIC(main)); but_resize(main->bg, 0, 0, w, h); midY = (w - (bw * 2 + fontH * 6)) / 2; but_resize(main->games, bw * 2, bw * 2, midY - bw * 2, fontH * 2); but_resize(main->userState, midY + bw, bw * 2, fontH * 6, fontH * 2); but_resize(main->closed, midY + bw, bw * 2, fontH * 2, fontH * 2); but_resize(main->open, midY + bw + fontH * 2, bw * 2, fontH * 2, fontH * 2); but_resize(main->looking, midY + bw + fontH * 4, bw * 2, fontH * 2, fontH * 2); but_resize(main->players, midY + bw * 2 + fontH * 6, bw * 2, w - (midY + bw * 4 + fontH * 6), fontH * 2); abutTerm_resize(main->script, bw * 2, bw * 3 + fontH * 2, w - bw * 4, h - fontH * 6 - bw * 6); but_resize(main->tin, bw * 2, h - fontH * 4 - bw * 3, w - bw * 4, fontH * 2); midY = (w - bw) / 2; but_resize(main->help, bw * 2, h - fontH * 2 - bw * 2, midY - bw * 2, fontH * 2); but_resize(main->quit, midY + bw, h - fontH * 2 - bw * 2, w - (midY + bw * 3), fontH * 2); return(0); } static ButOut destroy(ButWin *win) { CliMain *main = win->packet; Cgoban *cg; assert(MAGIC(main)); cg = main->data->cg; clp_setDouble(cg->clp, "client.main.w", (double)butWin_w(win) / (double)cg->fontH); clp_setDouble(cg->clp, "client.main.h", (double)butWin_h(win) / (double)cg->fontH); clp_setInt(cg->clp, "client.main.x", butWin_x(win)); clp_setInt(cg->clp, "client.main.y", butWin_y(win)); main->win = NULL; cliMain_destroy(main); return(0); } static void dataIn(void *packet, const char *buf, int bufLen) { CliMain *main = packet; int dataType, args, userNum; CliGameState oldState; const char *temp; assert(MAGIC(main)); if (buf == NULL) { str_print(&main->outStr, msg_cliHangup, main->data->serverName, strerror(bufLen)); abutMsg_winCreate(main->data->cg->abut, "Cgoban Error", str_chars(&main->outStr)); cliMain_destroy(main); } else { oldState = main->state; str_copyCharsLen(&main->outStr, buf, bufLen); str_catChar(&main->outStr, '\n'); if (main->state == cliMain_inFile) { if (!strcmp(buf, main->fileEnd)) main->state = cliMain_idle; else cliMain_log(main, str_chars(&main->outStr)); } else if (bufLen) { args = sscanf(buf, "%d", &dataType); if (args != 1) { dataType = 0; args = 1; #if DEBUG printf("Did not pass: \"%s\"\n", buf); #endif } else { while (isdigit(*buf)) { ++buf; --bufLen; } ++buf; --bufLen; str_copyCharsLen(&main->outStr, buf, bufLen); str_catChar(&main->outStr, '\n'); } assert(args == 1); /* * Set promptReady to FALSE. If we got a 1, we'll immediately set it to * TRUE so no harm done. */ main->data->conn.promptReady = FALSE; switch(dataType) { case 1: /* Prompt. */ main->state = cliMain_idle; if (!main->promptVisible) { butTbin_insert(main->script->tbin, "#> "); main->promptVisible = TRUE; } cliConn_prompt(&main->data->conn); break; case 2: /* Beep. */ XBell(butEnv_dpy(main->data->cg->env), 0); break; case 5: /* Error. */ XBell(butEnv_dpy(main->data->cg->env), 0); cliMain_log(main, str_chars(&main->outStr)); break; case 7: /* Game info. */ cliGameList_gotGameInfo(&main->gameList, buf); break; case 8: /* Help. */ assert(!strcmp(buf, "File")); main->state = cliMain_inFile; main->fileEnd = "8 File"; break; case 9: /* Misc. */ /* * 9 Use or to respond. * 9 Requesting match in 21 min with wwms as White. * 9 wwms declines your request for a match. * 9 You decline the match offer from wms. */ if (!strcmp(buf, "File")) { main->state = cliMain_inFile; main->fileEnd = "9 File"; } else if (!strncmp(buf, "Removing game ", 14)) cliGameList_notObserving(&main->gameList, buf); else if (!strncmp(buf, "Removing @ ", 11)) cliGameList_deadStone(&main->gameList, buf); else if (!strncmp(buf, "You can check ", 14)) cliGameList_selectDead(&main->gameList, buf); else if (!strncmp(buf, "Use playerList, oppName); if (oppRank == NULL) rankDiff = 1; else rankDiff = strcmp(oppRank, cliPlayerList_getRank(&main->playerList, str_chars(&main->data-> userName))); cliMatch_matchCommand(main->data, buf, &main->playerList.match, rankDiff); } else if (((bufLen > 34) && !strcmp(buf + bufLen - 34, "declines your request for a match.")) || ((bufLen > 26) && !strcmp(buf + bufLen - 26, "withdraws the match offer."))) cliMatch_declineCommand(main->playerList.match, buf); else if (strncmp(buf, "Adding game to", 14) && strncmp(buf, "{Game ", 6) && strncmp(buf, "Requesting ", 11) && strncmp(buf, "You decline", 11) && strncmp(buf, "Match [", 7) && strncmp(buf, "Updating ", 9) && strncmp(buf, "Declining offer", 15) && ((bufLen < 26) || strcmp(buf + bufLen - 26, "updates the match request."))) { cliMain_log(main, str_chars(&main->outStr)); } break; case 11: /* Kibitzes. */ cliGameList_kibitz(&main->gameList, buf); break; case 15: /* Game moves. */ cliGameList_gotMove(&main->gameList, buf); /* * On NNGS, if you start a game when your state is closed, you * become open. Update the main window's radio button here. */ if ((main->gameList.playGame >= 0) && (cliPlayer_closed + butRadio_get(main->userState) == cliPlayer_closed)) { butRadio_set(main->userState, cliPlayer_open - cliPlayer_closed, FALSE); } break; case 19: /* Say. */ cliGameList_say(&main->gameList, buf); break; case 21: /* Shouts & game start/stop info & user log in/out. */ if (!strncmp(buf, "{Game ", 6)) { if (strchr(buf, '@') != NULL) { /* A continued game. */ cliGameList_gameStarts(&main->gameList, buf); } else { cliGameList_gameGone(&main->gameList, buf, bufLen); } } else if (!strncmp(buf, "{Match ", 7)) { /* A new game. */ cliGameList_gameStarts(&main->gameList, buf); } else if (!strcmp(buf + bufLen - 17, "has disconnected}")) { cliPlayerList_disconnected(&main->playerList, buf); } else if (!strcmp(buf + bufLen - 15, "has connected.}")) { cliPlayerList_connected(&main->playerList, buf); } else cliMain_log(main, str_chars(&main->outStr)); break; case 22: /* A board. */ cliLook_gotData(&main->look, str_chars(&main->outStr)); break; case 24: /* Tells. */ for (temp = buf; *temp != ':'; ++temp); temp += 2; if (!strncmp(temp, "CLIENT: ", 8)) { client2client(main, temp); } else if (!cliGame_tellIsSay(&main->gameList, &main->outStr)) cliMain_log(main, str_chars(&main->outStr)); break; case 25: /* Results list. */ assert(!strcmp(buf, "File")); main->state = cliMain_inFile; main->fileEnd = "25 File"; break; case 27: /* Who output. */ main->state = cliMain_gotWho; cliPlayerList_whoOutput(&main->playerList, buf); break; case 28: /* Undo. */ cliGameList_gotUndo(&main->gameList, buf); break; case 20: /* Game results. */ case 23: /* A list of stored games. */ case 32: /* Channel tell. */ case 39: /* Version number. */ case 40: /* Confirming who you spoke to, or something like that. */ case 42: /* IGS "user" output. */ case 500: /* NNGS emotes. */ case 501: /* NNGS tell you who the emote went to. */ default: cliMain_log(main, str_chars(&main->outStr)); break; } if ((oldState == cliMain_gotWho) && (main->state != cliMain_gotWho)) { cliPlayerList_sort(&main->playerList); userNum = cliPlayerList_lookupPlayer(&main->playerList, str_chars(&main->data->userName)); if ((userNum >= 0) && (butRadio_get(main->userState) == cliPlayer_unknown - cliPlayer_closed)) { butRadio_set(main->userState, main->playerList.players[userNum].state - cliPlayer_closed, FALSE); } } } } } static ButOut userInput(But *but, const char *input) { CliMain *main = but_packet(but); assert(MAGIC(main)); if (input[0] != '\0') { str_copyChars(&main->history[main->historyBeingFilled], input); if (++main->historyBeingFilled >= MAIN_HISTORYMAXLEN) main->historyBeingFilled = 0; main->historyBeingViewed = 0; if (++main->historyLen >= MAIN_HISTORYMAXLEN) main->historyLen = MAIN_HISTORYMAXLEN - 1; } str_print(&main->data->cmdBuild, "%s\n", input); cliConn_send(&main->data->conn, str_chars(&main->data->cmdBuild)); if (!main->promptVisible) str_print(&main->data->cmdBuild, "#> %s\n", input); butTbin_insert(main->script->tbin, str_chars(&main->data->cmdBuild)); butTextin_set(but, "", FALSE); main->promptVisible = FALSE; return(0); } static ButOut quitPressed(But *but) { cliMain_destroy(but_packet(but)); return(0); } static ButOut iResize(ButWin *win) { CliMain *main = butWin_packet(win); int w, h, size; int border; assert(MAGIC(main)); w = butWin_w(win); h = butWin_h(win); but_resize(main->iBg, 0,0, w,h); border = 2*butEnv_stdBw(butWin_env(win)); size = w - border * 2; but_resize(main->iPic, border, border, size, size); return(0); } static ButOut gamesPressed(But *but) { CliMain *main = but_packet(but); assert(MAGIC(main)); cliGameList_openWin(&main->gameList); return(0); } static ButOut playersPressed(But *but) { CliMain *main = but_packet(but); assert(MAGIC(main)); cliPlayerList_openWin(&main->playerList); return(0); } static ButOut newState(But *but, int value) { CliPlayerState newState = value + cliPlayer_closed; CliMain *main = but_packet(but); int userNum; assert(MAGIC(but)); switch(newState) { case cliPlayer_looking: cliConn_send(&main->data->conn, "toggle open 1\ntoggle looking 1\n"); break; case cliPlayer_open: cliConn_send(&main->data->conn, "toggle open 1\ntoggle looking 0\n"); break; case cliPlayer_closed: cliConn_send(&main->data->conn, "toggle open 0\ntoggle looking 0\n"); break; default: assert(0); break; } userNum = cliPlayerList_lookupPlayer(&main->playerList, str_chars(&main->data->userName)); if (userNum >= 0) { cliPlayerList_setState(&main->playerList, userNum, newState); } return(0); } void cliMain_message(CliMain *main, const char *message) { AbutMsgOpt ok; assert(MAGIC(main)); cliMain_clearMessage(main); ok.name = msg_ok; ok.callback = msgBoxKilled; ok.packet = main; ok.keyEq = cg_return; main->message = abutMsg_optCreate(main->data->cg->abut, main->win, 4, message, NULL, NULL, 1, &ok); } void cliMain_clearMessage(CliMain *main) { assert(MAGIC(main)); if (main->message) abutMsg_destroy(main->message, FALSE); main->message = NULL; } static ButOut msgBoxKilled(But *okBut) { CliMain *main = but_packet(okBut); assert(MAGIC(main)); assert(main->message != NULL); abutMsg_destroy(main->message, FALSE); main->message = NULL; return(0); } void cliMain_log(CliMain *main, const char *str) { if (main->promptVisible) { butTbin_delete(main->script->tbin, butTbin_len(main->script->tbin) - 3, 3); main->promptVisible = FALSE; } butTbin_insert((main)->script->tbin, (str)); } static void client2client(CliMain *main, const char *buf) { char oppName[31], freeChar = 'x'; int matches, hcap; float komi; if (strncmp(buf, "CLIENT: = 3) { /* Extra match info. */ cliMatch_extraInfo(main->playerList.match, oppName, hcap, komi, freeChar == 'f'); } } static ButOut prevHistory(But *but, KeySym keysym, uint keyModifiers, void *context) { CliMain *main = context; int i; assert(MAGIC(main)); if (main->historyBeingViewed == -main->historyLen) { return(BUTOUT_ERR); } if (main->historyBeingViewed == 0) { str_copyChars(&main->history[main->historyBeingFilled], butTextin_get(main->tin)); } --main->historyBeingViewed; i = main->historyBeingFilled + main->historyBeingViewed; if (i < 0) i += MAIN_HISTORYMAXLEN; butTextin_set(main->tin, str_chars(&main->history[i]), FALSE); return(0); } static ButOut nextHistory(But *but, KeySym keysym, uint keyModifiers, void *context) { CliMain *main = context; int i; assert(MAGIC(main)); if (main->historyBeingViewed == 0) { return(BUTOUT_ERR); } ++main->historyBeingViewed; i = main->historyBeingFilled + main->historyBeingViewed; if (i < 0) i += MAIN_HISTORYMAXLEN; butTextin_set(main->tin, str_chars(&main->history[i]), FALSE); return(0); } goban-1.1.orig/src/play.c0000644000175000017500000006231510270070265013060 0ustar alal/* * src/gmp/play.c, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert * See "configure.h.in" for more copyright information. * * Most of this file was mercilessly cut and pasted from local.c. I probably * should have found a way to make the local.c code do double-duty, but hey * I'm lazy and it's late at night and I want to get this done. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "cgoban.h" #include "goban.h" #include "msg.h" #include "goGame.h" #include "goPic.h" #include "cgbuts.h" #include "sgf.h" #include "sgfIn.h" #include "sgfOut.h" #include "sgfPlay.h" #include "engine.h" #include "editBoard.h" #if _GMP_PLAY_H_ #error LEVELIZATION ERROR #endif #include "play.h" /********************************************************************** * Forward references **********************************************************************/ static GobanOut gridPressed(void *packet, int loc); static GobanOut quitPressed(void *packet); static GobanOut passPressed(void *packet); static GobanOut rewPressed(void *packet); static GobanOut backPressed(void *packet); static GobanOut fwdPressed(void *packet); static GobanOut ffPressed(void *packet); static GobanOut donePressed(void *packet); static GobanOut disputePressed(void *packet); static GobanOut savePressed(void *packet); static GobanOut editPressed(void *packet); static void saveFile(AbutFsel *fsel, void *packet, const char *fname); static void writeGobanComments(GmpPlay *l), readGobanComments(GmpPlay *l); static void addDisputedTriangles(GoGame *game, Sgf *sgf); static void addTimeInfoToSgf(GmpPlay *l, GoStone color); static void recordTimeLoss(GmpPlay *l); static bool rewOk(void *packet), backOk(void *packet), fwdOk(void *packet); static void gobanDestroyed(void *packet); static GmpPlay *gmpPlay_createSgf(Cgoban *cg, Sgf *mc, int inFiles[2], int outFiles[2], int pids[2]); static ButOut recvNewGame(GmpEngine *ge, void *packet, int size, int handicap, float komi, bool chineseRules, bool iAmWhite); static ButOut recvMove(GmpEngine *ge, void *packet, GoStone color, int x, int y); static ButOut recvUndo(GmpEngine *ge, void *packet, int numUndos); static ButOut recvError(GmpEngine *ge, void *packet, const char *errStr); /********************************************************************** * Global variables **********************************************************************/ static const GobanActions gmpPlay_actions = { gridPressed, quitPressed, passPressed, rewPressed, backPressed, fwdPressed, ffPressed, donePressed, disputePressed, savePressed, editPressed, NULL, /* gameInfo */ &help_gmpBoard, gobanDestroyed, rewOk, backOk, fwdOk, fwdOk}; /********************************************************************** * Functions **********************************************************************/ GmpPlay *gmpPlay_create(Cgoban *cg, int inFiles[2], int outFiles[2], int pids[2], GoRules rules, int size, int hcap, float komi, const char *white, const char *black, GoTimeType timeType, int mainTime, int byTime, int auxTime) { Sgf *mc; Str tmp; GoTime time; mc = sgf_create(); str_init(&tmp); if (rules != goRules_japanese) { /* * GMP says that chinese rules let you play handicap stones anywhere. * I call that New Zealand rules instead. */ rules = goRules_nz; } sgf_setRules(mc, rules); sgf_setSize(mc, size); sgf_setHandicap(mc, hcap); sgf_setKomi(mc, komi); sgf_setPlayerName(mc, goStone_white, white); sgf_setPlayerName(mc, goStone_black, black); str_print(&tmp, msg_localTitle, white, black); sgf_setTitle(mc, str_chars(&tmp)); sgf_setDate(mc); sgf_style(mc, "Cgoban " VERSION); time.type = timeType; time.main = mainTime; time.by = byTime; time.aux = auxTime; goTime_describeStr(&time, &tmp); sgf_setTimeFormat(mc, str_chars(&tmp)); str_deinit(&tmp); return(gmpPlay_createSgf(cg, mc, inFiles, outFiles, pids)); } static GmpPlay *gmpPlay_createSgf(Cgoban *cg, Sgf *mc, int inFiles[2], int outFiles[2], int pids[2]) { static const GmpActions gmpCallbacks = { recvNewGame, recvMove, recvUndo, recvError}; GmpPlay *l; SgfElem *me; GoRules rules; int size, hcap; float komi; const char *white = "Unknown", *black = "Unknown"; GoTime time; const char *title; GoStone s; assert(MAGIC(cg)); l = wms_malloc(sizeof(GmpPlay)); MAGIC_SET(l); l->cg = cg; goStoneIter(s) { l->players[s].in = inFiles[s]; l->players[s].out = outFiles[s]; l->players[s].pid = pids[s]; l->players[s].ready = (inFiles[s] < 0); } l->moves = mc; l->endGame = NULL; me = sgf_findType(mc, sgfType_rules); if (me) { rules = (GoRules)me->iVal; } else rules = goRules_japanese; me = sgf_findType(mc, sgfType_size); if (me) { size = me->iVal; } else { size = 19; } me = sgf_findType(mc, sgfType_handicap); if (me) { hcap = me->iVal; } else { hcap = 0; } me = sgf_findType(mc, sgfType_komi); if (me) { komi = (float)me->iVal / 2.0; } else { komi = 0.0; } me = sgf_findFirstType(mc, sgfType_playerName); while (me) { if (me->gVal == goStone_white) white = str_chars(me->sVal); else { assert(me->gVal == goStone_black); black = str_chars(me->sVal); } me = sgfElem_findFirstType(me, sgfType_playerName); } me = sgf_findFirstType(mc, sgfType_time); if (me) { goTime_parseDescribeChars(&time, str_chars(me->sVal)); } else { time.type = goTime_none; } l->game = goGame_create(size, rules, hcap, komi, &time, FALSE); sgf_play(mc, l->game, NULL, -1, NULL); me = sgf_findFirstType(mc, sgfType_title); if (me) { title = str_chars(me->sVal); } else { title = msg_noTitle; } l->goban = goban_create(cg, &gmpPlay_actions, l, l->game, "local", title); l->goban->pic->allowedMoves |= goPicMove_noWhite | goPicMove_noBlack; goPic_update(l->goban->pic); goban_message(l->goban, msg_waitingForGame); goban_startTimer(l->goban, goGame_whoseMove(l->game)); l->goban->iDec1 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec1, goStone_white, FALSE); l->goban->iDec2 = grid_create(&cg->cgbuts, NULL, NULL, l->goban->iWin, 2, BUT_DRAWABLE, 0); grid_setStone(l->goban->iDec2, goStone_black, FALSE); l->lastComment = NULL; assert((hcap == 0) || ((hcap >= 2) && (hcap <= 27))); goStoneIter(s) { if (l->players[s].in >= 0) { assert(l->players[s].out >= 0); l->players[s].engine = gmpEngine_create(l->cg, l->players[s].in, l->players[s].out, &gmpCallbacks, l); gmpEngine_startGame(l->players[s].engine, size, hcap, komi, (rules != goRules_japanese), (s != goStone_white)); } } l->fsel = NULL; return(l); } void gmpPlay_destroy(GmpPlay *l) { GoStone s; int dummy; assert(MAGIC(l)); if (l->goban) goban_destroy(l->goban, FALSE); if (l->game) goGame_destroy(l->game); if (l->fsel) abutFsel_destroy(l->fsel, FALSE); goStoneIter(s) { if (l->players[s].in >= 0) { if (l->players[s].pid >= 0) { kill(l->players[s].pid, SIGTERM); waitpid(l->players[s].pid, &dummy, 0); } close(l->players[s].in); if (l->players[s].out != l->players[s].in) { close(l->players[s].out); } l->players[s].in = -1; l->players[s].out = -1; l->players[s].pid = -1; gmpEngine_destroy(l->players[s].engine); } } MAGIC_UNSET(l); wms_free(l); } static GobanOut gridPressed(void *packet, int loc) { GmpPlay *l = packet; SgfElem *startActive; GoStone moveColor; bool timeLeft; assert(MAGIC(l)); moveColor = goGame_whoseMove(l->game); if ((l->game->moveNum < l->game->maxMoves) && (l->players[goStone_opponent(moveColor)].in >= 0)) { gmpEngine_sendUndo(l->players[goStone_opponent(moveColor)].engine, l->game->maxMoves - l->game->moveNum); } if (l->game->state <= goGameState_dispute) { readGobanComments(l); sgf_addNode(l->moves); startActive = l->moves->active; if (l->game->state == goGameState_dispute) { addDisputedTriangles(l->game, l->moves); } timeLeft = goban_stopTimer(l->goban); if (!timeLeft) { recordTimeLoss(l); } else { sgf_move(l->moves, moveColor, goBoard_loc2Sgf(l->game->board, loc)); if (l->players[goStone_opponent(moveColor)].in >= 0) { /* Send the move out the GMP. */ gmpEngine_sendMove(l->players[goStone_opponent(moveColor)].engine, goBoard_loc2X(l->game->board, loc), goBoard_loc2Y(l->game->board, loc)); } goGame_move(l->game, moveColor, loc, &l->goban->timers[moveColor]); addTimeInfoToSgf(l, moveColor); goban_startTimer(l->goban, goGame_whoseMove(l->game)); } } else if (l->game->state == goGameState_selectDead) { goGame_markDead(l->game, loc); } else if (l->game->state == goGameState_selectDisputed) { l->endGame = l->moves->active; goGame_dispute(l->game, loc); /* * We briefly change to "variant" insert mode so that multiple disputes * will be seen in the order they were made. Then we switch back to * "main" insert mode so that undos and ends of disputes will be * the main variation. */ l->moves->mode = sgfInsert_variant; sgf_addNode(l->moves); addDisputedTriangles(l->game, l->moves); sgf_setWhoseMove(l->moves, l->game->setWhoseMoveColor); l->moves->mode = sgfInsert_main; } writeGobanComments(l); return(gobanOut_draw); } /* * This transfers comments from the SGF move chain to the goban. */ static void writeGobanComments(GmpPlay *l) { SgfElem *comElem; assert(MAGIC(l)); comElem = sgfElem_findTypeInNode(l->moves->active, sgfType_comment); if (comElem) { if (strcmp(str_chars(comElem->sVal), goban_getComments(l->goban))) goban_setComments(l->goban, str_chars(comElem->sVal)); } else { if (l->lastComment) goban_setComments(l->goban, ""); } l->lastComment = comElem; } /* * This transfers comments from the goban to the SGF move chain. */ static void readGobanComments(GmpPlay *l) { const char *comm; comm = goban_getComments(l->goban); if (comm[0]) { l->moves->mode = sgfInsert_inline; sgf_comment(l->moves, comm); l->moves->mode = sgfInsert_main; l->lastComment = l->moves->active; } else if (l->lastComment) { sgfElem_snip(l->lastComment, l->moves); l->lastComment = NULL; } } static GobanOut quitPressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); gmpPlay_destroy(l); return(gobanOut_noDraw); } static GobanOut passPressed(void *packet) { GmpPlay *l = packet; GoGameState oldState = l->game->state; SgfElem *startActive; GoStone moveColor; bool timeLeft; assert(MAGIC(l)); readGobanComments(l); moveColor = goGame_whoseMove(l->game); if ((l->game->moveNum < l->game->maxMoves) && (l->players[goStone_opponent(moveColor)].in >= 0)) { gmpEngine_sendUndo(l->players[goStone_opponent(moveColor)].engine, l->game->maxMoves - l->game->moveNum); } sgf_addNode(l->moves); startActive = l->moves->active; if (oldState == goGameState_dispute) addDisputedTriangles(l->game, l->moves); sgf_pass(l->moves, moveColor); if (l->players[goStone_opponent(moveColor)].in >= 0) { /* Send the move out the GMP. */ gmpEngine_sendPass(l->players[goStone_opponent(moveColor)].engine); } addTimeInfoToSgf(l, moveColor); timeLeft = goban_stopTimer(l->goban); if (!timeLeft) recordTimeLoss(l); else { if (goGame_pass(l->game, moveColor, &l->goban->timers[moveColor])) { /* * The game state has changed. */ if (oldState == goGameState_dispute) { assert(MAGIC(l->endGame)); l->moves->active = l->endGame; l->endGame = NULL; if (l->game->disputeAlive) goban_message(l->goban, msg_disputeOverAlive); else goban_message(l->goban, msg_disputeOverDead); } else { assert(oldState == goGameState_play); if ((l->game->rules == goRules_japanese) || (l->game->rules == goRules_tibetan)) goban_message(l->goban, msg_localJapRemDead); else goban_message(l->goban, msg_localChiRemDead); /* Stop the GMP engines! */ if (l->players[goStone_white].in >= 0) gmpEngine_stop(l->players[goStone_white].engine); if (l->players[goStone_black].in >= 0) gmpEngine_stop(l->players[goStone_black].engine); } } } if (l->game->state <= goGameState_dispute) { goban_startTimer(l->goban, goGame_whoseMove(l->game)); } writeGobanComments(l); return(gobanOut_draw); } static GobanOut rewPressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); if (l->game->state == goGameState_dispute) goGame_moveTo(l->game, l->game->setWhoseMoveNum); else goGame_moveTo(l->game, 0); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); writeGobanComments(l); return(gobanOut_draw); } static GobanOut backPressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); if (l->game->state != goGameState_selectDead) { goGame_moveTo(l->game, l->game->moveNum - 1); } else { /* We must be in the endgame. Let's continue the game now instead! */ goGame_resume(l->game); } sgf_setActiveNodeNumber(l->moves, l->game->moveNum); writeGobanComments(l); return(gobanOut_draw); } static GobanOut fwdPressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goGame_moveTo(l->game, l->game->moveNum + 1); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); writeGobanComments(l); return(gobanOut_draw); } static GobanOut ffPressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); readGobanComments(l); goban_noMessage(l->goban); goGame_moveTo(l->game, l->game->maxMoves); sgf_setActiveNodeNumber(l->moves, l->game->moveNum); writeGobanComments(l); return(gobanOut_draw); } static GobanOut editPressed(void *packet) { GmpPlay *play = packet; assert(MAGIC(play)); editBoard_createSgf(play->cg, play->moves); return(gobanOut_noDraw); } static GobanOut donePressed(void *packet) { GmpPlay *l = packet; int i; Str *scoreComment, winner, doneMessage, result; float wScore, bScore; SgfElem *resultElem; assert(MAGIC(l)); assert(l->game->state == goGameState_selectDead); readGobanComments(l); str_init(&winner); str_init(&doneMessage); str_init(&result); goban_noMessage(l->goban); goGame_done(l->game); sgf_addNode(l->moves); /* * Add a territory list. */ for (i = 0; i < goBoard_area(l->game->board); ++i) { if (((l->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEWHITE) && ((goBoard_stone(l->game->board, i) == goStone_empty) || (l->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(l->moves, goStone_white, goBoard_loc2Sgf(l->game->board, i)); } for (i = 0; i < goBoard_area(l->game->board); ++i) { if (((l->game->flags[i] & GOGAMEFLAGS_SEEN) == GOGAMEFLAGS_SEEBLACK) && ((goBoard_stone(l->game->board, i) == goStone_empty) || (l->game->flags[i] & GOGAMEFLAGS_MARKDEAD))) sgf_addTerritory(l->moves, goStone_black, goBoard_loc2Sgf(l->game->board, i)); } wScore = goban_score(l->goban, goStone_white); bScore = goban_score(l->goban, goStone_black); if (wScore > bScore) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_white], wScore - bScore); str_print(&result, "W+%g", wScore - bScore); } else if ((bScore > wScore) || (l->game->rules == goRules_ing)) { str_print(&winner, msg_winnerComment, msg_stoneNames[goStone_black], bScore - wScore); str_print(&result, "B+%g", bScore - wScore); } else { str_print(&winner, msg_jigoComment); str_copyChar(&result, '0'); } str_print(&doneMessage, msg_gameIsOver, winner); goban_message(l->goban, str_chars(&doneMessage)); scoreComment = goScore_str(&l->goban->score, l->game, &l->game->time, l->goban->timers); sgf_catComment(l->moves, str_chars(scoreComment)); str_destroy(scoreComment); resultElem = sgf_findType(l->moves, sgfType_result); if (resultElem) { sgfElem_newString(resultElem, str_chars(&result)); } else { sgf_setActiveNodeNumber(l->moves, 0); l->moves->mode = sgfInsert_inline; sgf_result(l->moves, str_chars(&result)); l->moves->mode = sgfInsert_main; sgf_setActiveToEnd(l->moves); } str_deinit(&winner); str_deinit(&doneMessage); str_deinit(&result); writeGobanComments(l); return(gobanOut_draw); } static GobanOut disputePressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); goGame_selectDisputed(l->game); goban_message(l->goban, msg_selectDisputedMsg); return(gobanOut_draw); } static GobanOut savePressed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); if (l->fsel) abutFsel_destroy(l->fsel, FALSE); l->fsel = abutFsel_create(l->cg->abut, saveFile, l, "CGoban", msg_saveGameName, clp_getStr(l->cg->clp, "local.sgfName")); return(gobanOut_noDraw); } static void saveFile(AbutFsel *fsel, void *packet, const char *fname) { GmpPlay *l = packet; assert(MAGIC(l)); str_copy(&l->cg->lastDirAccessed, &fsel->pathVal); if (fname != NULL) { clp_setStr(l->cg->clp, "local.sgfName", butTextin_get(fsel->in)); sgf_writeFile(l->moves, fname, NULL); } l->fsel = NULL; } static void addDisputedTriangles(GoGame *game, Sgf *sgf) { int i; for (i = 0; i < goBoard_area(game->board); ++i) { if (game->flags[i] & GOGAMEFLAGS_DISPUTED) sgf_addTriangle(sgf, goBoard_loc2Sgf(game->board, i)); } } static void addTimeInfoToSgf(GmpPlay *l, GoStone who) { if (l->game->time.type != goTime_none) { sgf_timeLeft(l->moves, who, l->goban->timers[who].timeLeft + (l->goban->timers[who].usLeft > 0)); if ((l->game->time.type == goTime_ing) || ((l->game->time.type == goTime_canadian) && l->goban->timers[who].aux)) { sgf_stonesLeft(l->moves, who, l->goban->timers[who].aux); } } } static void recordTimeLoss(GmpPlay *l) { Str timeMsg; GoStone loser = l->game->whoseMove; sgf_timeLeft(l->moves, loser, -1); if ((l->game->time.type == goTime_ing) || ((l->game->time.type == goTime_canadian) && l->goban->timers[loser].aux)) { sgf_stonesLeft(l->moves, loser, l->goban->timers[loser].aux + (l->game->time.type == goTime_canadian)); } str_init(&timeMsg); str_print(&timeMsg, msg_timeLoss, msg_stoneNames[loser], msg_stoneNames[goStone_opponent(loser)]); goban_message(l->goban, str_chars(&timeMsg)); str_catChar(&timeMsg, '\n'); sgf_catComment(l->moves, str_chars(&timeMsg)); str_print(&timeMsg, "%c+T", (int)goStone_char(goStone_opponent(loser))); sgf_setActiveNodeNumber(l->moves, 0); l->moves->mode = sgfInsert_inline; sgf_result(l->moves, str_chars(&timeMsg)); l->moves->mode = sgfInsert_main; sgf_setActiveToEnd(l->moves); str_deinit(&timeMsg); } static bool rewOk(void *packet) { GmpPlay *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): case(goGameState_selectDisputed): return(FALSE); break; case(goGameState_dispute): return(game->moveNum > game->setWhoseMoveNum); break; default: if (!goStone_isStone(game->whoseMove)) return(TRUE); return((game->moveNum > 0) && ((l->players[goStone_opponent(game->whoseMove)].in >= 0) || (game->moveNum < game->maxMoves))); break; } } static bool backOk(void *packet) { GmpPlay *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): return(TRUE); break; case(goGameState_selectDisputed): return(FALSE); break; case(goGameState_dispute): return(game->moveNum > game->setWhoseMoveNum); break; default: if (!goStone_isStone(game->whoseMove)) return(TRUE); return((game->moveNum > 0) && ((l->players[goStone_opponent(game->whoseMove)].in >= 0) || (game->moveNum < game->maxMoves))); break; } } static bool fwdOk(void *packet) { GmpPlay *l = packet; GoGame *game; assert(MAGIC(l)); game = l->game; switch(game->state) { case(goGameState_selectDead): case(goGameState_selectDisputed): return(FALSE); break; default: return(game->moveNum < game->maxMoves); break; } } static void gobanDestroyed(void *packet) { GmpPlay *l = packet; assert(MAGIC(l)); l->goban = NULL; gmpPlay_destroy(l); } static ButOut recvNewGame(GmpEngine *ge, void *packet, int size, int handicap, float komi, bool chineseRules, bool iAmWhite) { Str errStr; GoStone s; GmpPlay *gp = packet; assert(MAGIC(gp)); if (ge == gp->players[goStone_white].engine) s = goStone_white; else { assert(ge == gp->players[goStone_black].engine); s = goStone_black; } if ((size != gp->game->size) || (handicap != gp->game->handicap) || (chineseRules != (gp->game->rules == goRules_nz)) || (iAmWhite != (s == goStone_black))) { str_init(&errStr); str_print(&errStr, msg_badNewGameReq, msg_stoneNames[s]); recvError(ge, gp, str_chars(&errStr)); str_deinit(&errStr); } else { gp->players[s].ready = TRUE; if (gp->players[goStone_opponent(s)].ready) { goban_noMessage(gp->goban); if (gp->players[goStone_white].in < 0) { gp->goban->pic->allowedMoves &= ~goPicMove_noWhite; } if (gp->players[goStone_black].in < 0) { gp->goban->pic->allowedMoves &= ~goPicMove_noBlack; } goPic_update(gp->goban->pic); } } return(0); } static ButOut recvMove(GmpEngine *ge, void *packet, GoStone color, int x, int y) { GmpPlay *gp = packet; Str error; char locStr[10]; int loc, oldMoveNum = -1; assert(MAGIC(gp)); assert(color == gp->game->whoseMove); loc = goBoard_xy2Loc(gp->game->board, x, y); if (gp->game->state != goGameState_play) { recvError(ge, gp, msg_gmpMoveOutsideGame); } else { if (gp->game->moveNum < gp->game->maxMoves) { oldMoveNum = gp->game->moveNum; goGame_moveTo(gp->game, gp->game->maxMoves); sgf_setActiveNodeNumber(gp->moves, gp->game->moveNum); } if (x >= 0) { if (goGame_isLegal(gp->game, color, loc)) { gridPressed(gp, goBoard_xy2Loc(gp->game->board, x, y)); } else { goBoard_loc2Str(gp->game->board, loc, locStr); str_init(&error); str_print(&error, msg_gmpBadMove, locStr); recvError(ge, gp, str_chars(&error)); str_deinit(&error); } } else { /* A pass. */ passPressed(gp); } if (oldMoveNum != -1) { goGame_moveTo(gp->game, oldMoveNum); sgf_setActiveNodeNumber(gp->moves, gp->game->moveNum); } } goban_update(gp->goban); return(0); } static ButOut recvUndo(GmpEngine *ge, void *packet, int numUndos) { Str undoMessage; GoStone s; GmpPlay *gp = packet; assert(MAGIC(gp)); if (ge == gp->players[goStone_white].engine) s = goStone_white; else { assert(ge == gp->players[goStone_black].engine); s = goStone_black; } str_init(&undoMessage); str_print(&undoMessage, msg_undoRequested, msg_stoneNames[s], numUndos); goban_message(gp->goban, str_chars(&undoMessage)); str_deinit(&undoMessage); readGobanComments(gp); if (numUndos > gp->game->moveNum) numUndos = gp->game->moveNum; if (gp->game->moveNum > gp->game->maxMoves - numUndos) { goGame_moveTo(gp->game, gp->game->moveNum - numUndos); } gp->game->maxMoves -= numUndos; sgf_setActiveNodeNumber(gp->moves, gp->game->moveNum); writeGobanComments(gp); return(0); } static ButOut recvError(GmpEngine *ge, void *packet, const char *errStr) { GmpPlay *gp = packet; GmpPlayInfo *p; int exitStatus = 0; bool alreadyDead = FALSE; const char *progClp; Str exitMsg; assert(MAGIC(gp)); if (ge == gp->players[goStone_white].engine) { p = &gp->players[goStone_white]; progClp = "gmp.WProgram"; } else { assert(ge == gp->players[goStone_black].engine); p = &gp->players[goStone_black]; progClp = "gmp.BProgram"; } if (p->pid >= 0) { alreadyDead = (waitpid(p->pid, &exitStatus, WNOHANG) != 0); assert(alreadyDead != -1); if (!alreadyDead) { kill(p->pid, SIGKILL); waitpid(p->pid, &exitStatus, 0); } } gmpEngine_destroy(p->engine); close(p->in); if (p->out != p->in) close(p->out); p->in = -1; p->out = -1; p->pid = -1; if (alreadyDead) { str_init(&exitMsg); if (WIFEXITED(exitStatus) && (WEXITSTATUS(exitStatus) == GMP_EXECVEFAILED)) { str_print(&exitMsg, msg_gmpCouldntStart, clp_getStr(gp->cg->clp, progClp)); } else if (WIFSIGNALED(exitStatus)) { str_print(&exitMsg, msg_gmpProgKilled, clp_getStr(gp->cg->clp, progClp), WTERMSIG(exitStatus)); } else { str_print(&exitMsg, msg_gmpProgWhyDead, clp_getStr(gp->cg->clp, progClp)); } goban_message(gp->goban, str_chars(&exitMsg)); str_deinit(&exitMsg); } else goban_message(gp->goban, errStr); return(BUTOUT_ERR); } goban-1.1.orig/src/client.h0000644000175000017500000000203010270066110013354 0ustar alal/* * src/gmp/client.h, part of Complete Goban (game program) * Copyright (C) 1995 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _GMP_CLIENT_H_ #define _GMP_CLIENT_H_ 1 #ifndef _GMP_ENGINE_H_ #include "engine.h" #endif #ifndef _CLIENT_BOARD_H_ #include "board.h" #endif /********************************************************************** * Data types **********************************************************************/ typedef struct GmpClient_struct { Cgoban *cg; bool inGame; int size, pid, inFile, outFile; GmpEngine ge; Str progName; CliBoard *cliBoard; MAGIC_STRUCT } GmpClient; /********************************************************************** * Functions **********************************************************************/ extern GmpClient *gmpClient_create(Cgoban *cg, const char *progName, CliServer server, const char *user, const char *password); extern void gmpClient_destroy(GmpClient *gc); #endif /* _GMP_SETUP_H_ */ goban-1.1.orig/src/write.c0000644000175000017500000001230310270061403013227 0ustar alal/* * wmslib/src/but/write.c, part of wmslib (Library functions) * Copyright (C) 1994 William Shubert. * See "configure.h.in" for more copyright information. */ #include #include "wms.h" #ifdef X11_DISP #ifdef STDC_HEADERS #include #include #endif /* STDC_HEADERS */ #include #include #include #include #include #include #include #ifdef HAVE_SYS_SELECT_H #include #endif #include #include #include void butEnv_setChar(ButEnv *env, double width, const char *id, void (*draw)(void *packet, ButWin *win, int x, int y, int w, int h), void *packet) { int idval; idval = ((int)(uchar)id[0] << 8) + (uchar)id[1] - 256; env->write[idval].width = width; env->write[idval].packet = packet; env->write[idval].draw = draw; } int butEnv_textWidth(ButEnv *env, const char *text, int fnum) { uchar c; int special; int total = 0, min_char, std_width; XCharStruct *charlist; if (env->fonts[fnum]->per_char != NULL) { charlist = env->fonts[fnum]->per_char; min_char = env->fonts[fnum]->min_char_or_byte2; for (;;) { c = text[0]; ++text; switch(c) { case '\0': return(total); break; case '\1': case '\2': special = 256 * (c - 1) + text[0]; ++text; assert(env->write[special].draw != NULL); total += (env->fonts[fnum]->ascent + env->fonts[fnum]->descent) * env->write[special].width + 0.5; break; default: assert((c >= min_char) && (c <= env->fonts[fnum]->max_char_or_byte2)); total += charlist[c - min_char].width; break; } } } else { /* All chars are the same width. */ std_width = env->fonts[fnum]->min_bounds.width; for (;;) { c = text[0]; ++text; switch(c) { case '\0': return(total); break; case '\1': case '\2': special = 256 * (c - 1) + text[0]; ++text; assert(env->write[special].draw != NULL); total += (env->fonts[fnum]->ascent + env->fonts[fnum]->descent) * env->write[special].width + 0.5; break; default: total += std_width; break; } } } } int butEnv_charWidth(ButEnv *env, const char *text, int fnum) { uchar c, special; int width; c = text[0]; assert(c != '\0'); switch(c) { case '\1': case '\2': special = 256 * (c - 1) + text[1]; assert(env->write[special].draw != NULL); width = (env->fonts[fnum]->ascent + env->fonts[fnum]->descent) * env->write[special].width + 0.5; break; default: if (env->fonts[fnum]->per_char != NULL) width = env->fonts[fnum]->per_char[c - env->fonts[fnum]->min_char_or_byte2]. width; else width = env->fonts[fnum]->min_bounds.width; break; } return(width); } void butWin_write(ButWin *win, int x, int y, const char *text, int font) { int wlen; ButEnv *env = win->env; int ascent = env->fonts[font]->ascent, special; int w, h = ascent + env->fonts[font]->descent; uchar c; XSetFont(env->dpy, env->gc, env->fonts[font]->fid); for (;;) { for (wlen = 0; (uchar)(text[wlen]) > BUTWRITE_MINPRINT; ++wlen); if (wlen > 0) { XDrawString(env->dpy, win->win, env->gc, x-win->xOff, y+ascent-win->yOff, text, wlen); x += XTextWidth(env->fonts[font], text, wlen); text += wlen; } switch(c = text[0]) { case '\0': return; break; case '\1': case '\2': special = 256 * (c-1) + text[1]; text += 2; assert(env->write[special].draw != NULL); w = h * env->write[special].width + 0.5; env->write[special].draw(env->write[special].packet, win, x-win->xOff,y-win->yOff, w,h); x += w; break; } } } void butWin_writeTabs(ButWin *win, int startX, int y, const char *text, int font, const int *tabList, const ButTextAlign *aligns) { int wlen; ButEnv *env = win->env; int ascent = env->fonts[font]->ascent, special; int w, h = ascent + env->fonts[font]->descent; int x = startX; uchar c; int tabNum = 0; ButTextAlign align = butText_left; XSetFont(env->dpy, env->gc, env->fonts[font]->fid); for (;;) { for (wlen = 0; (uchar)(text[wlen]) > BUTWRITE_MINPRINT; ++wlen); if (wlen > 0) { w = XTextWidth(env->fonts[font], text, wlen); switch(align) { case butText_left: break; case butText_center: x -= w / 2; break; case butText_right: x -= w; break; case butText_just: assert(0); break; } XDrawString(env->dpy, win->win, env->gc, x - win->xOff, y+ascent-win->yOff, text, wlen); x += w; text += wlen; } switch(c = text[0]) { case '\0': return; break; case '\1': case '\2': special = 256 * (c-1) + text[1]; text += 2; assert(env->write[special].draw != NULL); w = h * env->write[special].width + 0.5; env->write[special].draw(env->write[special].packet, win, x-win->xOff,y-win->yOff, w,h); x += w; break; case '\t': x = startX + tabList[tabNum]; align = aligns[tabNum]; ++tabNum; ++text; break; } } } #endif /* X11_DISP */ goban-1.1.orig/src/cgoban.h0000644000175000017500000000353710267776257013376 0ustar alal/* * src/cgoban.h, part of Complete Goban (game program) * Copyright (C) 1995-1996 William Shubert. * See "configure.h.in" for more copyright information. */ #ifndef _CGOBAN_H_ #ifndef _WMS_STR_H_ #include #endif #ifndef _CGBUTS_H_ #include "cgbuts.h" #endif #ifndef _WMS_CLP_H_ #include #endif #ifndef _ABUT_H_ #include #endif #ifndef _BUT_BUT_H_ #include #endif #ifndef _ABUT_HELP_H_ #include #endif #ifndef _HELP_H_ #include "help.h" #endif #ifndef _ABUT_MSG_H_ #include #endif #ifdef _CGOBAN_H_ #error Levelization Error. #endif #define _CGOBAN_H_ 1 /********************************************************************** * Data types **********************************************************************/ typedef struct Cgoban_struct { char **envp; /* This is the original envp passed to main(). */ Clp *clp; ButEnv *env; Abut *abut; AbutHelp *help; int rcMajor, rcMinor, rcBugFix; Str lastDirAccessed; int fontH; bool markLastMove, markHotStones; bool showCoords; bool screensaver; Pixmap boardPixmap, bgPixmap, bgLitPixmap, bgShadPixmap; Rnd *rnd; Cgbuts cgbuts; MAGIC_STRUCT } Cgoban; /********************************************************************** * Globals **********************************************************************/ extern const ButKey cg_return[]; extern const ButKey cg_help[]; /********************************************************************** * Functions **********************************************************************/ extern Cgoban *cgoban_create(int argc, char *argv[], char *envp[]); extern void cgoban_destroy(Cgoban *cg); #define cgoban_createMsgWindow(cg, title, message) \ abutMsg_winCreate((cg)->abut, (title), (message)) ButOut cgoban_createHelpWindow(But *but); #endif /* _CGOBAN_H_ */ goban-1.1.orig/README.screensaver0000644000175000017500000000443710271271340014356 0ustar alal this is a version of cgoban (by Bill Shubert, aka wms on the go servers, see http://www.inetarena.com/~wms/comp/cgoban) modified to run as a screensaver. you can download this modified version from http://draves.org/goban to build the executable ./configure and make, as per the README. there is an RPM file with a binary for x86 machines on the web site. it displays a full-screen board and plays games from SGF files. it picks the files at random from /usr/local/share/goban/*. i have included a database of games (from Jan van Rongen at http://www.euronet.nl/users/cl628517/page22.html) in this distribution. the -stonetime option sets the number of milliseconds between stones, and the -gametime sets the number of seconds between games. -minstonetime and -acceleration too. see -help. -root (draw on root window) and -window-id X are supported as well just like for most xscreensaver hacks. this program just does the graphics, to actually make it work as a screensaver (ie, be automatically executed after idle time, demand a password, etc), use Jamie Zawinski's xscreensaver (http://www.jwz.org/xscreensaver/). When distributed as an RPM and run under Gnome, it should install itself so that it shows up in the screensaver control panel. share & enjoy! Scott Draves readme@draves.org -- version 1.1 Jul 25 2005 trashed source hierarchy, updated for new gnome & xscreensaver interfaces. version 1.0 Aug 20 1999 now gets the window size properly with -window-id. fixed typo in Goban.desktop (thanks Darron Shaffer). version 0.99 Aug 17 1999 added more options, supports -root and -window-id, but doesn't work quite right in gnome screensaver settings controller. version 0.4 Jun 15 1998 muted background. compiles on sloaris too (code from Weimin Zhao). still crashes sometimes. version 0.3 Apr 30 1998 add new source files to configure. display white player's name first (bug found by cano jonathan). don't catch signals so that we exit on first event. screensaver implies nostealth. version 0.2 Apr 26 1998 handles sgf file errors, suppress markers and mouse hilite. add stonetime option. consolidate code a bit. version 0.1 Apr 24 1998 initial release. fails on some input files. changed appearance and number of different white stones. parameterized layout, added random game control. goban-1.1.orig/COPYING0000644000175000017500000004307606013244122012211 0ustar alal GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. goban-1.1.orig/goban.spec.in0000644000175000017500000000124710271264551013530 0ustar alalSummary: xscreensaver hack, replays historical games of go (aka wei-chi and baduk) Name: goban Version: @VERSION@ Release: 1 License: GPL Group: Graphics Source: http://draves.org/goban/goban-@VERSION@.tar.gz Url: http://draves.org/goban Packager: Scott Draves %description Replays historical games of go (aka wei-chi and baduk) on the screen. Designed to work with xscreensaver (http://www.jwz.org/xscreensaver). Based on cgoban by Bill Shubert, available at http://www.igoweb.org/~wms/comp/cgoban/. %prep %setup ./configure %build make %install make install %files /usr/local/bin/goban /usr/local/share/goban /usr/share/control-center/screensavers/goban.xml goban-1.1.orig/games/0000755000175000017500000000000010271273227012251 5ustar alalgoban-1.1.orig/games/Hon-76-4.sgf0000644000175000017500000000334206243711430014070 0ustar alal( ; EV[31st Honinbo 1976] RO[4] PB[Ishida Yoshio] BR[Honinbo] PW[Takemiya Masaki] WR[8 dan] KM[5.5] DT[1976-] PC[Japan] RE[B+4.5] TM[9 hours each] ;B[pd];W[dp];B[qp];W[dc];B[oq];W[qj];B[de];W[ce];B[cf] ;W[cd];B[dg];W[ef];B[df];W[ed];B[ck];W[nc];B[qf];W[qm];B[oc] ;W[nd];B[jd];W[cm];B[ek];W[eq];B[gd];W[ee];B[eg];W[gf];B[fg] ;W[ge];B[lc];W[ld];B[kd];W[le];B[fc];W[jf];B[eb];W[db];B[ob] ;W[nb];B[kb];W[jq];B[lq];W[em];B[cq];W[cp];B[er];W[dr];B[fq] ;W[fr];B[ep];W[dq];B[gr];W[es];B[kf];W[qh];B[kg];W[nf];B[pg] ;W[nh];B[mg];W[pe];B[qe];W[pf];B[qg];W[oh];B[hq];W[ip];B[go] ;W[hn];B[ho];W[io];B[fm];W[fp];B[gq];W[ik];B[fl];W[kk];B[mf] ;W[ne];B[ke];W[lo];B[ph];W[pi];B[rh];W[ri];B[qi];W[oo];B[lj] ;W[oj];B[op];W[qo];B[rp];W[mp];B[mq];W[lk];B[no];W[np];B[po] ;W[on];B[pn];W[pm];B[qn];W[bl];B[bk];W[qh];B[cl];W[bm];B[qi] ;W[nn];B[kr];W[qh];B[og];W[ng];B[qi];W[ec];B[fb];W[qh];B[rg] ;W[be];B[bf];W[jr];B[hl];W[il];B[hm];W[in];B[eo];W[gj];B[mj] ;W[mk];B[en];W[dm];B[rm];W[rl];B[rn];W[gn];B[fn];W[hd];B[hc] ;W[he];B[id];W[nq];B[nr];W[lp];B[mr];W[ei];B[fi];W[fj];B[ej] ;W[fh];B[di];W[gh];B[eh];W[sl];B[ji];W[ak];B[aj];W[al];B[bj] ;W[oa];B[pa];W[ma];B[qb];W[qd];B[rd];W[ka];B[ja];W[lb];B[la] ;W[hp];B[gp];W[ka];B[jb];W[mc];B[da];W[ca];B[ea];W[bb];B[kc] ;W[od];B[qc];W[kj];B[ki];W[mh];B[li];W[nj];B[qi];W[sj];B[kq] ;W[kp];B[gg];W[gi];B[hg];W[hk];B[ff];W[fe];B[ae];W[ad];B[af] ;W[fd];B[gc];W[do];B[ie];W[ih];B[ii];W[hh];B[ig];W[jh];B[jg] ;W[hf];B[if];W[im];B[gs];W[ks];B[ls];W[js];B[ir];W[is];B[iq] ;W[hs];B[fs];W[er];B[dd];W[bc];B[dn];W[cn];B[jj];W[jk];B[of] ;W[oe];B[me];W[md];B[mi];W[sm];B[sn];W[dl];B[ni];W[oi];B[dk] ;W[sh];B[la];W[mb];B[sg];W[na];B[qh];W[si];B[ka] C[247 moves complete. Black fills the ko. Black: 8hr 37m White: 8hr 59m.] ;B[ei] C[Black fills the ko.]) goban-1.1.orig/games/M-90-3.mgt0000644000175000017500000000314306252627042013547 0ustar alal(;GM[1]FF[3]DT[1990-10-03,04]SZ[19]PB[Otake Hideo]PW[Kobayashi Koichi]KM[5.5]RE[B+7.5]ID[90/3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dp];B[cn];W[fq];B[dc];W[cj];B[cf];W[od];B[pq] ;W[qc];B[jc];W[co];B[dn];W[cl];B[gn];W[ip];B[fk];W[el];B[do] ;W[cp];B[fl];W[ch];B[eg];W[ej];B[ek];W[dk];B[em];W[lc];B[qo] ;W[rd];B[pc];W[pd];B[qe];W[re];B[qf];W[qb];B[pj];W[lq];B[di] ;W[dh];B[eh];W[ei];B[fi];W[fj];B[gj];W[dj];B[gi];W[cc];B[cd] ;W[jd];B[id];W[kd];B[ic];W[jf];B[ie];W[bd];B[bc];W[ce];B[cb] ;W[df];B[de];W[ef];B[md];W[lf];B[mf];W[mc];B[dg];W[cg];B[be] ;W[bf];B[ce];W[fh];B[fg];W[gh];B[gg];W[hh];B[hg];W[gk];B[gp] ;W[gl];B[fm];W[hj];B[gq];W[fp];B[fo];W[ho];B[go];W[fr];B[nd] ;W[oc];B[nc];W[nb];B[ob];W[pb];B[of];W[hr];B[gr];W[gs];B[dl] ;W[qh];B[lg];W[kg];B[le];W[kf];B[lh];W[oh];B[nh];W[oi];B[mj] ;W[og];B[ng];W[oe];B[ne];W[pf];B[iq];W[hq];B[pe];W[nf];B[ih] ;W[of];B[hi];W[lo];B[kb];W[ld];B[kn];W[ko];B[qi];W[rh];B[me] ;W[lb];B[kh];W[im];B[mr];W[pr];B[or];W[qq];B[pp];W[rp];B[qr] ;W[rr];B[ps];W[ro];B[rn];W[qn];B[qm];W[pn];B[rm];W[qp];B[po] ;W[rs];B[so];W[sn];B[lr];W[kr];B[nn];W[jq];B[bo];W[bp];B[oj] ;W[mm];B[kl];W[mn];B[sm];W[sq];B[no];W[if];B[hf];W[jl];B[kk] ;W[jk];B[bl];W[bk];B[cm];W[bg];B[ri];W[ij];B[an];W[nk];B[ol] ;W[pi];B[kj];W[nj];B[ok];W[si];B[rk];W[ap];B[ks];W[js];B[jn] ;W[in];B[jo];W[io];B[ln];W[mo];B[mq];W[mp];B[np];W[nm];B[om] ;W[sj];B[al];W[ak];B[ck];W[bj];B[rj];W[ka];B[ja];W[la];B[sk] ;W[sh];B[ni];W[mk];B[lk];W[ml];B[jj];W[ji];B[jh];W[kc];B[jb] ;W[ki];B[ii];W[km];B[ik];W[ll];B[hk];W[il];B[hl];W[ls];B[ep] ;W[eq];B[eo];W[qs];B[pr];W[ao];B[bn];W[hm];B[gm];W[ae];B[ad] ;W[af];B[ms];W[hp];B[cl];W[ks])goban-1.1.orig/games/T-21-4.mgt0000644000175000017500000000341406252627524013557 0ustar alal(;GM[1]RE[B+R]PW[Kobayashi Koichi]WR[9 dan]PB[Ryu Shikun]BR[9 dan]PC[Japan]DT[1995-12]SZ[19]TM[0]KM[5.5]FF[3]ID[21/4];B[pd];W[dc];B[qp];W[dp];B[oq];W[qj];B[cn];W[cl];B[cf] ;W[ch];B[cc];W[cd];B[dd];W[bc];B[cb];W[de];B[ed];W[ce];B[bb] ;W[fe];B[ee];W[ef];B[ec];W[df];B[dl];W[dk];B[dm];W[bo];B[ck] ;W[bk];B[cj];W[dj];B[bl];W[bj];B[ci];W[bi];B[di];W[ei];B[dh] ;W[eh];B[cm];W[dg];B[cl];W[fp];B[fk];W[ej];B[ip];W[ho];B[gm] ;W[en];B[dq];W[cq];B[im];W[hl];B[hm];W[io];B[kp];W[ko];B[eq] ;W[cr];B[jo];W[jn];B[jp];W[fm];B[fl];W[fn];B[el];W[hp];B[il] ;W[lo];B[lp];W[mo];B[hq];W[gq];B[hr];W[gr];B[mp];W[hk];B[ik] ;W[hj];B[gl];W[qo];B[po];W[pn];B[qn];W[ro];B[pp];W[qm];B[on] ;W[rn];B[om];W[nc];B[qf];W[pb];B[qc];W[kc];B[gs];W[fs];B[hs] ;W[fr];B[km];W[gc];B[ji];W[fb];B[bd];W[be];B[ac];W[jg];B[ih] ;W[ig];B[hh];W[od];B[oe];W[ne];B[oc];W[nd];B[ob];W[pe];B[pc] ;W[qe];B[re];W[of];B[rg];W[gi];B[li];W[nk];B[qk];W[pk];B[pl] ;W[ql];B[ok];W[pj];B[oj];W[mi];B[lj];W[mj];B[mh];W[nl];B[ol] ;W[ni];B[lg];W[oi];B[mm];W[lk];B[in];W[kl];B[jl];W[nb];B[pi] ;W[ri];B[qd];W[ph];B[na];W[rq];B[rp];W[sp];B[la];W[qr];B[pr] ;W[eb];B[db];W[ae];B[ad];W[lm];B[ln];W[ll];B[mn];W[jb];B[hg] ;W[hf];B[fg];W[eg];B[gf];W[he];B[co];W[bp];B[do];W[eo];B[cp] ;W[ep];B[bh];W[cg];B[ak];W[bg];B[kf];W[je];B[ja];W[ia];B[ka] ;W[mb];B[ma];W[hb];B[qq];W[rr];B[jf];W[if];B[ke];W[kd];B[ge] ;W[gd];B[bn];W[ij];B[jj];W[le];B[mf];W[me];B[rh];W[iq];B[ir] ;W[ng];B[sh];W[si];B[qh];W[qi];B[aj];W[ah];B[gn];W[go];B[bq] ;W[br];B[ao];W[aq];B[lf];W[kk];B[jk];W[ff];B[gg];W[jh];B[ii] ;W[pf];B[nh];W[nm];B[nn];W[ps];B[os];W[kh];B[lh];W[qs];B[lb] ;W[lc];B[ea];W[fa];B[da];W[oh];B[pm];W[pg];B[qg];W[nf];B[fj] ;W[fi];B[al];W[ai];B[an];W[ap];B[qn];W[jq];B[jr];W[pn];B[ar] ;W[as];B[qn];W[kq];B[kr];W[pn];B[bs];W[cs];B[qn];W[sf];B[rf] ;W[pn];B[oa];W[qn])goban-1.1.orig/games/Hon-62-1.sgf0000644000175000017500000000205706243707720014071 0ustar alal( ; DT[1962-] EV[17th Honinbo] RO[1] BR[9 dan] WR[Honinbo] PB[Handa Dogen] PW[Sakata Eio] RE[W+R] KM[4.5] ;B[qd];W[dc];B[pq];W[cq];B[od];W[po];B[qo];W[qn];B[qp] ;W[pm];B[on];W[pn];B[op];W[qi];B[ce];W[dh];B[gd];W[de];B[dd] ;W[ed];B[cd];W[cc];B[ee];W[fd];B[df];W[fe];B[eg];W[gc];B[eq] ;W[do];B[iq];W[dk];B[lc];W[oo];B[np];W[no];B[mo];W[mn];B[ln] ;W[lo];B[mp];W[ko];B[eo];W[dn];B[lm];W[jn];B[kq];W[jp];B[jq] ;W[jl];B[lk];W[ml];B[mm];W[nn];B[nl];W[cg];B[eh];W[jj];B[im] ;W[jm];B[oj];W[qk];B[ho];W[ff];B[dj];W[cj];B[ej];W[ck];B[hj] ;W[hn];B[gn];W[gm];B[in];W[hl];B[hm];W[gl];B[hh];W[il];B[jh] ;W[li];B[oh];W[fi];B[ci];W[bi];B[fj];W[ii];B[di];W[ch];B[hi] ;W[ih];B[ig];W[hg];B[gg];W[hf];B[bc];W[bb];B[ad];W[bf];B[be] ;W[pi];B[mi];W[mh];B[ki];W[lh];B[kj];W[jg];B[ij];W[if];B[ji] ;W[nc];B[nd];W[mc];B[md];W[lb];B[kb];W[kc];B[ld];W[jb];B[kd] ;W[ka];B[jc];W[lj];B[oi];W[kk];B[jk];W[kl];B[ll];W[ok];B[mj] ;W[kg];B[qg];W[nk];B[mk];W[kb];B[rh];W[ri];B[jd];W[ic];B[fn] ;W[io];B[hn];W[fm];B[en];W[em];B[id];W[hd];B[oc];W[ep];B[fp] ;W[dp];B[dr];W[fq];B[fr];W[hp] C[154 moves complete.] ) goban-1.1.orig/games/M-71-2.sgf0000644000175000017500000000204606252650600013532 0ustar alal( ; GM[1] EV[10th Meijin Title Match] RO[2] PB[Rin Kaiho] BR[9 dan] PW[Fujisawa Shuko] WR[Meijin] DT[1971/Sep] PC[Kanagawa] RE[B+R] KM[5] SZ[19] ;B[pd];W[dc];B[pq];W[dq];B[de];W[ee];B[ef];W[ed];B[dg];W[cn] ;B[qo];W[ff];B[fg];W[gg];B[gf];W[fe];B[fh];W[gh];B[gi];W[fi] ;B[ej];W[hf];B[fj];W[nc];B[pf];W[qh];B[qj];W[pj];B[pk];W[pi] ;B[qk];W[ne];B[og];W[nj];B[oc];W[nb];B[mf];W[kd];B[ke];W[qe] ;B[qf];W[nf];B[ng];W[mg];B[ni];W[ok];B[lh];W[kg];B[lg];W[me] ;B[lf];W[pe];B[re];W[qd];B[rd];W[qc];B[ol];W[nl];B[mk];W[nk] ;B[om];W[mi];B[mh];W[oi];B[nh];W[kj];B[mn];W[lm];B[ln];W[km] ;B[kn];W[rg];B[rf];W[jq];B[li];W[lk];B[hh];W[hg];B[hi];W[nm] ;B[nn];W[jm];B[ip];W[iq];B[gp];W[hq];B[gn];W[mj];B[gq];W[hp] ;B[cp];W[dp];B[ho];W[io];B[jp];W[nr];B[co];W[do];B[bn];W[bm] ;B[bo];W[cm];B[cr];W[dr];B[br];W[gr];B[je];W[on];B[kp];W[kq] ;B[lq];W[lr];B[mq];W[mr];B[pn];W[ik];B[fr];W[fo];B[go];W[hr] ;B[bj];W[dk];B[en];W[fm];B[fn];W[dn];B[hl];W[ci];B[bi];W[fq] ;B[cc];W[dd];B[cd];W[ce];B[df];W[be];B[db];W[eb];B[cb];W[ch] ;B[cg];W[bh];B[bg];W[cj];B[ge] ) goban-1.1.orig/games/M-66-3.mgt0000644000175000017500000000331606260601062013545 0ustar alal(;SZ[19]EV[5th Meijin match game 3]DT[1966, August 23,24]PC[Fukuoka]PB[Sakata]PW[Rin]KM[5]RE[B+1]SO[Go review 6/11];B[qd];W[dc];B[pq];W[cp];B[oc];W[qo];B[pm];W[on];B[mq];W[ce];B[eq];W[pi];B[qg];W[jd];B[dm];W[do];B[gp];W[dq];B[ep];W[dr];B[pk];W[qq];B[qr];W[pp];B[oq];W[rq];B[lc];W[oh];B[mk];W[lh];B[db];W[ec];B[ke];W[if];B[kg];W[mm];B[lj];W[kh];B[je];W[ie];B[jg];W[ji];B[jh];W[ki];B[oj];W[pg];B[qh];W[qc];B[rd];W[pc];B[pd];W[ng];B[id];W[hd];B[ic];W[ob];B[nc];W[hc];B[ib];W[rc];B[nb];W[dj];B[hh];W[kk];B[ll];W[jm];B[jp];W[lp];B[no];W[om];B[km];W[ik];B[jn];W[im];B[ln];W[np];B[op];W[oo];B[mp];W[fn];B[cj];W[ck];B[bk];W[ci];B[bj];W[dk];B[cl];W[bm];B[bn];W[cn];B[cm];W[bo];B[bl];W[an];B[en];W[eo];B[fm];W[di];B[gn];W[fo];B[hm];W[go];B[ho];W[gl];B[gm];W[in];B[hn];W[el];B[em];W[hb];B[cc];W[bb];B[rr];W[rm];B[gg];W[ff];B[rk];W[ql];B[pl];W[qk];B[qj];W[rl];B[pn];W[po];B[rj];W[ro];B[er];W[oa];B[rb];W[sb];B[qb];W[pb];B[qa];W[ra];B[sa];W[ia];B[jc];W[ra];B[bc];W[cb];B[sa];W[jb];B[kc];W[ra];B[qn];W[rn];B[sa];W[es];B[fs];W[ds];B[ni];W[nh];B[mi];W[lg];B[gk];W[gj];B[hk];W[hj];B[fk];W[fj];B[sc];W[gq];B[fp];W[iq];B[gr];W[hp];B[hr];W[hq];B[ir];W[jq];B[kq];W[kp];B[ip];W[lq];B[jr];W[jo];B[fq];W[mo];B[nq];W[kn];B[lr];W[pj];B[mn];W[lm];B[nm];W[kl];B[ml];W[km];B[nn];W[ol];B[nl];W[ok];B[bh];W[bi];B[ai];W[bf];B[gf];W[ge];B[ko];W[pf];B[cg];W[qf];B[rf];W[re];B[rg];W[qe];B[se];W[df];B[eg];W[ef];B[kb];W[ja];B[me];W[sr];B[oe];W[il];B[oi];W[ph];B[ek];W[hl];B[fl];W[lf];B[dg];W[fg];B[fh];W[fi];B[eh];W[le];B[ld];W[bg];B[cf];W[be];B[ch];W[ag];B[ah];W[ne];B[nf];W[mf];B[nd];W[of];B[ne];W[qi];B[ri];W[rs];B[pr];W[sk];B[sj];W[sl];B[al];W[am];B[ka];W[ha];B[ii];W[ij];B[hf];W[he];B[io];W[ig];B[ih];W[kj];B[mh];W[mg];B[dl];W[nk];B[jn];W[sq];B[qs];W[ss];B[dp];W[dn];B[jo])goban-1.1.orig/games/M-65-1.sgf0000644000175000017500000000271206252650046013540 0ustar alal( ; GM[1] EV[4th Meijin Title Match] RO[1] PB[Sakata Eio] BR[Meijin] PW[Rin Kaiho] WR[8 dan] DT[July 29/30, 1965] PC[Tokyo] RE[B+R] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[co];B[oc];W[qo];B[qm];W[oo] ;B[np];W[lp];B[no];W[pm];B[ql];W[nn];B[mn];W[nm] ;B[lo];W[jp];B[qi];W[dq];B[ce];W[dg];B[ef];W[gc] ;B[qp];W[qn];B[ol];W[rd];B[qc];W[ko];B[om];W[on] ;B[kn];W[jn];B[km];W[jm];B[kl];W[op];B[oq];W[rp] ;B[rq];W[pp];B[qq];W[pl];B[pk];W[pn];B[nk];W[rm] ;B[rl];W[so];B[dr];W[eq];B[jl];W[kd];B[er];W[cr] ;B[fq];W[mq];B[nq];W[gq];B[fr];W[qe];B[gp];W[rc] ;B[rf];W[re];B[rb];W[ne];B[md];W[me];B[le];W[ld] ;B[mc];W[lf];B[dn];W[cn];B[ke];W[jd];B[je];W[ie] ;B[jf];W[od];B[pc];W[qf];B[rg];W[ng];B[if];W[lb] ;B[mb];W[lh];B[id];W[ic];B[he];W[hq];B[hp];W[jq] ;B[jc];W[dm];B[hm];W[fm];B[hr];W[iq];B[io];W[jo] ;B[im];W[ib];B[kb];W[gr];B[cc];W[cb];B[db];W[bc] ;B[cd];W[eb];B[sm];W[rn];B[pg];W[pf];B[cj];W[da] ;B[ed];W[dj];B[ci];W[di];B[ch];W[dh];B[cg];W[hk] ;B[ik];W[gn];B[go];W[ck];B[bk];W[cl];B[sq];W[sp] ;B[ep];W[dp];B[og];W[of];B[nh];W[qg];B[qh];W[mh] ;B[mg];W[nf];B[ni];W[sb];B[ra];W[pd];B[cq];W[bq] ;B[cs];W[br];B[do];W[cp];B[hj];W[eo];B[fp];W[bd] ;B[be];W[hl];B[gj];W[fk];B[il];W[bl];B[mr];W[lr] ;B[ns];W[gs];B[ls];W[kr];B[mp];W[lq];B[fc];W[fb] ;B[gd];W[hc];B[fh];W[bj];B[bi];W[ak];B[df];W[hd] ;B[ie];W[sn];B[sl];W[kh];B[jh];W[ji];B[kg];W[lg] ;B[ii];W[oj];B[pj];W[jj];B[fj];W[ij];B[hh];W[ec] ;B[fd];W[jb];B[lc];W[sf];B[rh];W[nj];B[mj];W[mi] ;B[ph];W[lj];B[mk] ) goban-1.1.orig/games/Hon-72-1.sgf0000644000175000017500000000251506243710240014060 0ustar alal( ; EV[27th Honinbo] RO[1] BR[Honinbo] WR[Meijin] PB[Ishida Yoshio] PW[Rin Kaiho] DT[1972-] PC[Japan] KM[4.5] RE[B+R] ;B[qd];W[dd];B[cp];W[pq];B[qo];W[eq];B[oc];W[pl];B[no] ;W[oo];B[nq];W[nn];B[np];W[po];B[mn];W[mm];B[ln];W[iq];B[gq] ;W[gr];B[hr];W[hq];B[fr];W[gp];B[fq];W[fp];B[ep];W[er];B[gs] ;W[es];B[fs];W[ir];B[dq];W[eo];B[dp];W[io];B[pr];W[qp];B[qr] ;W[nm];B[qh];W[jc];B[cf];W[fd];B[bd];W[cc];B[ci];W[rq];B[qk] ;W[mr];B[nr];W[lp];B[mq];W[lr];B[lq];W[kp];B[qq];W[ro];B[oq] ;W[kq];B[rr];W[mc];B[qn];W[qm];B[jd];W[ic];B[dl];W[qf];B[pp] ;W[rp];B[pg];W[pe];B[nd];W[pd];B[pc];W[of];B[md];W[rd];B[qc] ;W[ng];B[lc];W[lb];B[mb];W[kc];B[ld];W[ma];B[nb];W[qe];B[pk] ;W[ni];B[oj];W[bc];B[em];W[fn];B[nj];W[rg];B[rl];W[rm];B[rh] ;W[rc];B[do];W[kd];B[rb];W[sb];B[eg];W[ei];B[di];W[eh];B[dg] ;W[fg];B[ff];W[ef];B[gg];W[fh];B[gf];W[df];B[dh];W[hi];B[ig] ;W[ej];B[fm];W[ke];B[jh];W[hh];B[jf];W[ie];B[if];W[mj];B[jj] ;W[gl];B[mk];W[lk];B[mi];W[lj];B[li];W[ki];B[lg];W[kh];B[mg] ;W[kg];B[sc];W[mf];B[lf];W[le];B[kf];W[nh];B[nf];W[ne];B[me] ;W[od];B[nf];W[mh];B[oe];W[lh];B[og];W[ne];B[mf];W[sd];B[ra] ;W[rj];B[qj];W[pi];B[oi];W[sh];B[si];W[ri];B[qi];W[sj];B[sk] ;W[sg];B[sm];W[rn];B[pf];W[oe];B[nk];W[oh];B[ph];W[ol];B[qb] ;W[ji];B[gm];W[ml];B[sa];W[sn];B[rk];W[si];B[sc];W[sr];B[op] ;W[sb];B[qg];W[rf];B[se];W[ok];B[sc];W[cg];B[re];W[bf];B[bh] C[199 moves complete.] ) goban-1.1.orig/games/M-76-3.sgf0000644000175000017500000000314506252651426013550 0ustar alal( ; EV[1st Meijin title] RO[3] BR[Meijin] WR[9 dan] KM[5] PB[Otake Hideo] PW[Ishida Yoshio] DT[1976-] PC[Japan] TM[9 hours] RE[B+2] ;B[qd];W[cq];B[cd];W[qq];B[oc];W[ed];B[gd];W[ef];B[cf] ;W[eh];B[ch];W[qi];B[qg];W[pl];B[kq];W[mq];B[eq];W[co];B[hp] ;W[cc];B[bc];W[dc];B[bb];W[ic];B[he];W[gb];B[jd];W[jc];B[kd] ;W[kc];B[ld];W[lc];B[md];W[po];B[fg];W[df];B[ce];W[dh];B[ci] ;W[fd];B[nm];W[om];B[oi];W[ph];B[nl];W[pk];B[mp];W[np];B[mo] ;W[lq];B[kp];W[eo];B[on];W[pn];B[nq];W[nr];B[oq];W[op];B[gj] ;W[gp];B[go];W[fp];B[hq];W[gr];B[dn];W[en];B[gm];W[pg];B[qf] ;W[gh];B[fh];W[ng];B[mh];W[mg];B[lg];W[nh];B[ni];W[fi];B[gi] ;W[gg];B[hh];W[gf];B[oo];W[or];B[ol];W[pj];B[pm];W[qm];B[do] ;W[dp];B[cn];W[bo];B[cl];W[fm];B[gl];W[gn];B[hn];W[fo];B[fn] ;W[cg];B[bg];W[gn];B[ho];W[ig];B[ih];W[lh];B[mi];W[jh];B[kh] ;W[jf];B[ji];W[jg];B[hg];W[hf];B[ie];W[if];B[li];W[nb];B[ob] ;W[nc];B[nd];W[oe];B[mc];W[mb];B[od];W[rh];B[hr];W[fr];B[qh] ;W[pi];B[rg];W[ri];B[fj];W[ei];B[dg];W[eg];B[ge];W[fe];B[bn] ;W[an];B[am];W[ao];B[cm];W[pe];B[qe];W[al];B[bm];W[dj];B[cj] ;W[pd];B[pc];W[cb];B[gc];W[fb];B[lr];W[mr];B[kr];W[dk];B[ck] ;W[ba];B[hc];W[hb];B[lb];W[kb];B[sg];W[lp];B[lo];W[lf];B[kg] ;W[id];B[je];W[kf];B[na];W[la];B[fl];W[ab];B[bd];W[hs];B[is] ;W[gs];B[ek];W[no];B[nn];W[pp];B[sh];W[si];B[fc];W[ec];B[em] ;W[fn];B[dl];W[oj];B[nj];W[ok];B[nk];W[ne];B[ms];W[ns];B[cr] ;W[dr];B[ls];W[de];B[pf];W[of];B[me];W[mf];B[oh];W[og];B[oa] ;W[ma];B[gq];W[fq];B[cg];W[om];B[ac];W[pm];B[aa];W[ir];B[js] ;W[ab];B[ej];W[di];B[aa];W[qc];B[qb];W[ab];B[bq];W[br];B[aa] ;W[rc];B[rb];W[ab];B[le];W[ca] C[234 moves complete] BL[7hr 43m] WL[8hr 58m] ;W[aa]C[White fills the ko.] ) goban-1.1.orig/games/M-78-3.mgt0000644000175000017500000000232506252627042013556 0ustar alal(;PB[Rin Kaiho]PW[Otake Hideo]DT[1978-10-05,06]PC[Izu]RE[W+R]KM[5.5]ID[78/3]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[cc];B[pq];W[oc];B[cp];W[po];B[mc];W[oe];B[pf] ;W[ph];B[of];W[md];B[pc];W[nc];B[mf];W[kd];B[qm];W[ro];B[mq] ;W[np];B[nq];W[pl];B[pm];W[om];B[on];W[ql];B[rl];W[rm];B[rn] ;W[pn];B[sm];W[ol];B[qj];W[qn];B[pi];W[oi];B[oj];W[nj];B[pj] ;W[ni];B[qh];W[fd];B[di];W[ep];B[eq];W[dp];B[dq];W[co];B[fp] ;W[cq];B[bp];W[cr];B[bo];W[dn];B[en];W[dm];B[fo];W[do];B[dr] ;W[fq];B[fr];W[gq];B[br];W[gr];B[cs];W[dk];B[ip];W[kq];B[ir] ;W[gn];B[ho];W[hn];B[jp];W[dg];B[fi];W[fg];B[hi];W[gj];B[gi] ;W[hg];B[dc];W[cd];B[fc];W[gc];B[gd];W[ec];B[hc];W[fb];B[gb] ;W[fc];B[jc];W[kb];B[if];W[ig];B[kf];W[ji];B[cg];W[dh];B[ch] ;W[ei];B[ej];W[ci];B[eh];W[dj];B[ek];W[el];B[fl];W[fm];B[gl] ;W[fn];B[in];W[im];B[jn];W[ei];B[ik];W[jm];B[di];W[jd];B[gf] ;W[gg];B[jg];W[ei];B[jh];W[di];B[kk];W[hf];B[lc];W[ld];B[nk] ;W[mk];B[kc];W[id];B[nb];W[ob];B[lb];W[na];B[ma];W[mb];B[ml] ;W[nl];B[ok];W[ll];B[mm];W[lk];B[lm];W[km];B[lo];W[kj];B[jj] ;W[ki];B[ii];W[kl];B[ih];W[rk];B[nb];W[lg];B[lf];W[mb];B[rj] ;W[so];B[nb];W[er];B[es];W[mb];B[sn];W[la];B[qp];W[rm];B[qm] ;W[pm];B[qk];W[rm];B[dl];W[cl];B[qm];W[ln];B[sk];W[mo];B[op] ;W[lp])goban-1.1.orig/games/Hon-92-4.mgt0000644000175000017500000000334606045540454014110 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]DT[1992-06-17,18]PC[Shimonoseki]RE[B+8.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jc];B[jp] ;W[qq];B[qp];W[pq];B[oq];W[or];B[nq];W[nr];B[mq];W[rp];B[ro] ;W[rq];B[qn];W[dj];B[ij];W[qh];B[oh];W[qe];B[pe];W[qd];B[qf] ;W[rf];B[rg];W[re];B[qg];W[pb];B[cn];W[fp];B[bp];W[cq];B[dl] ;W[cf];B[ih];W[io];B[go];W[gp];B[ho];W[ip];B[hp];W[hq];B[iq] ;W[in];B[gq];W[hr];B[ir];W[fn];B[gr];W[gn];B[hs];W[hn];B[eq] ;W[dn];B[dm];W[il];B[ch];W[dh];B[di];W[ci];B[ei];W[cj];B[ej] ;W[bh];B[eh];W[dg];B[pc];W[qb];B[eo];W[ep];B[fo];W[en];B[do] ;W[co];B[hq];W[bo];B[bn];W[ap];B[fl];W[dk];B[bl];W[ek];B[fm] ;W[hk];B[fk];W[gj];B[fj];W[gi];B[gh];W[hh];B[gg];W[hg];B[hi] ;W[eg];B[ik];W[hl];B[fg];W[hf];B[kk];W[kl];B[ll];W[lm];B[jl] ;W[jm];B[km];W[kn];B[jo];W[kl];B[jk];W[ml];B[lk];W[hj];B[ii] ;W[jn];B[ge];W[he];B[mm];W[mn];B[nm];W[lp];B[fd];W[cr];B[hd] ;W[id];B[hc];W[nn];B[on];W[oo];B[pn];W[lq];B[mr];W[kr];B[ns] ;W[pr];B[no];W[jq];B[jr];W[kq];B[lc];W[kd];B[nd];W[ld];B[mc] ;W[nb];B[md];W[je];B[dc];W[cc];B[ec];W[lg];B[jg];W[jf];B[kg] ;W[lf];B[lh];W[sg];B[sf];W[se];B[rh];W[cb];B[qc];W[rc];B[ig] ;W[if];B[kf];W[ke];B[mg];W[ee];B[fe];W[mo];B[dr];W[np];B[op] ;W[dq];B[er];W[ea];B[fb];W[bk];B[oc];W[ob];B[ib];W[jb];B[ed] ;W[de];B[sp];W[rr];B[mf];W[le];B[fa];W[ic];B[hb];W[cl];B[cm] ;W[al];B[ck];W[om];B[nl];W[cl];B[gm];W[hm];B[ck];W[nk];B[ol] ;W[cl];B[br];W[bs];B[ck];W[pl];B[pm];W[cl];B[aq];W[ao];B[an] ;W[cp];B[ck];W[ok];B[mk];W[cl];B[as];W[cs];B[ck];W[fi];B[fh] ;W[cl];B[fq];W[bq];B[ck];W[bj];B[am];W[ak];B[da];W[db];B[eb] ;W[ca];B[ks];W[sq];B[so];W[rb];B[sh];W[me];B[ne];W[mb];B[lb] ;W[os];B[ms];W[ds];B[lr];W[no];B[km];W[ln];B[es];W[ar];B[cl] ;W[po];B[qo];W[la];B[ka];W[ma];B[kb];W[ja];B[ia];W[ef];B[kl] ;W[sf];B[ea])goban-1.1.orig/games/Hon-78-7.mgt0000644000175000017500000000201306045540406014102 0ustar alal (;PB[Ishida Yoshio]PW[Kato Masao]DT[1978-07-31,08-01]PC[Yukawara]RE[W+R]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[qp];W[cc];B[oq];W[qj];B[ql];W[qg];B[jc] ;W[rd];B[ec];W[ce];B[gd];W[jq];B[lq];W[gp];B[ck];W[cn];B[ch] ;W[md];B[of];W[mf];B[oh];W[pi];B[oc];W[nc];B[lc];W[nb];B[qc] ;W[qe];B[oi];W[oj];B[nj];W[ok];B[lh];W[kf];B[jh];W[if];B[je] ;W[kd];B[kc];W[ne];B[oe];W[ng];B[og];W[jd];B[id];W[ie];B[ld] ;W[ke];B[le];W[kg];B[kh];W[hd];B[ic];W[hh];B[hc];W[gf];B[eq] ;W[bg];B[bh];W[fp];B[do];W[cp];B[ep];W[fn];B[dn];W[cm];B[dm] ;W[cl];B[dl];W[dk];B[cj];W[ek];B[br];W[cr];B[co];W[bo];B[bp] ;W[bn];B[bq];W[bs];B[bl];W[ar];B[fm];W[gk];B[fl];W[di];B[hm] ;W[eb];B[fb];W[ci];B[bi];W[dj];B[dh];W[cg];B[eg];W[hl];B[ee] ;W[im];B[gn];W[hn];B[gm];W[in];B[fo];W[fr];B[gi];W[fh];B[fk] ;W[fj];B[fi];W[ei];B[eh];W[gj];B[hi];W[ii];B[hj];W[il];B[jg] ;W[gh];B[jf];W[en];B[db];W[cb];B[ol];W[nk];B[nl];W[mj];B[ni] ;W[ml];B[pk];W[pj];B[mm];W[rl];B[rm];W[rk];B[qm];W[ln];B[ll] ;W[mk];B[iq];W[jr];B[jp];W[kp];B[hr];W[gr];B[hp];W[jo];B[ij] ;W[jj];B[ip];W[kq])goban-1.1.orig/games/M-64-3.mgt0000644000175000017500000000315706252627042013555 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1964-08-18,19]ID[64/3]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[ce];W[oc];B[md];W[ne];B[pf] ;W[qc];B[pd];W[pc];B[nd];W[od];B[oe];W[nf];B[nb];W[nc];B[mc] ;W[ob];B[ph];W[lf];B[jd];W[gc];B[hd];W[de];B[cd];W[cc];B[cg] ;W[qj];B[oi];W[qo];B[pm];W[oo];B[np];W[rm];B[qp];W[ro];B[pk] ;W[qk];B[lh];W[kg];B[dp];W[dq];B[ep];W[bo];B[hc];W[kh];B[gb] ;W[fc];B[fb];W[eb];B[ki];W[ji];B[li];W[ih];B[eq];W[mb];B[lb] ;W[na];B[gg];W[eg];B[hi];W[jk];B[on];W[ib];B[ed];W[dd];B[ec] ;W[dg];B[cf];W[ee];B[fd];W[kc];B[kd];W[lc];B[ld];W[jc];B[if] ;W[hg];B[hf];W[ci];B[ch];W[di];B[bi];W[bj];B[ai];W[hh];B[po] ;W[ip];B[dh];W[eh];B[ei];W[gh];B[ej];W[dk];B[dj];W[cj];B[ck] ;W[bk];B[cl];W[bl];B[cm];W[bm];B[co];W[el];B[bn];W[an];B[cn] ;W[bp];B[ek];W[fl];B[dl];W[aj];B[bg];W[gp];B[hk];W[gk];B[fi] ;W[ge];B[gd];W[gf];B[hl];W[bd];B[be];W[af];B[ae];W[lg];B[db] ;W[da];B[ea];W[cb];B[ca];W[ba];B[bb];W[bc];B[ag];W[da];B[fe] ;W[gj];B[gi];W[hj];B[ij];W[ii];B[go];W[ik];B[ho];W[fg];B[ca] ;W[bh];B[ah];W[da];B[ic];W[jb];B[ca];W[hp];B[io];W[jo];B[em] ;W[da];B[df];W[ef];B[ca];W[hm];B[jn];W[fo];B[fn];W[in];B[gn] ;W[kn];B[jp];W[ko];B[jq];W[da];B[jf];W[ke];B[ca];W[jr];B[iq] ;W[da];B[je];W[he];B[ca];W[ir];B[lp];W[lq];B[kp];W[hq];B[gr] ;W[mp];B[lo];W[op];B[pp];W[nq];B[hr];W[da];B[le];W[nn];B[km] ;W[om];B[ln];W[pn];B[qn];W[qm];B[on];W[pl];B[pn];W[ol];B[rn] ;W[nh];B[qg];W[kf];B[ca];W[sn];B[rp];W[da];B[mg];W[mh];B[ca] ;W[of];B[aa];W[pe];B[qe];W[rf];B[rg];W[qf];B[oe];W[re];B[rd] ;W[pe];B[pg];W[sd];B[rc];W[rb];B[oe];W[sc];B[pe];W[sb];B[qi] ;W[pj];B[rj];W[rh];B[nk];W[ml];B[kk];W[mj];B[nj];W[mi])goban-1.1.orig/games/Hon-68-7.mgt0000644000175000017500000000272006045540400014100 0ustar alal (;GM[1]SZ[19]KM[4.5]PB[Sakata Eio]PW[Rin Kaiho]RE[W+2.5]DT[1968-06-27,28]FF[3]BS[0]WS[0];B[qd];W[dd];B[pp];W[dq];B[oc];W[qj];B[do];W[co];B[cn] ;W[cp];B[dm];W[fq];B[ci];W[cg];B[qh];W[qm];B[mq];W[rp];B[ei] ;W[jc];B[fc];W[dc];B[eg];W[ee];B[id];W[jd];B[ie];W[hb];B[gd] ;W[mc];B[eb];W[db];B[kf];W[pq];B[oq];W[qq];B[me];W[nd];B[mb] ;W[nb];B[nc];W[ob];B[od];W[lb];B[md];W[lc];B[pl];W[oj];B[ql] ;W[nk];B[qo];W[or];B[op];W[nr];B[ro];W[nm];B[kl];W[ph];B[qi] ;W[pi];B[rj];W[qg];B[qk];W[of];B[pb];W[qe];B[rd];W[kj];B[jj] ;W[kg];B[ki];W[lf];B[jf];W[ne];B[go];W[ff];B[jg];W[kh];B[li] ;W[jh];B[ih];W[ji];B[ii];W[mh];B[lj];W[gg];B[hj];W[eo];B[en] ;W[fo];B[fn];W[gp];B[ho];W[iq];B[bo];W[bp];B[le];W[mf];B[kd] ;W[bh];B[bi];W[hf];B[if];W[jo];B[ml];W[ol];B[om];W[nl];B[pj] ;W[ni];B[kq];W[jq];B[jn];W[kn];B[in];W[gi];B[gj];W[on];B[pm] ;W[bn];B[bm];W[ao];B[kc];W[kb];B[ef];W[ge];B[ib];W[ic];B[hc] ;W[jb];B[df];W[ce];B[gb];W[ia];B[mr];W[so];B[ns];W[rr];B[sn] ;W[sp];B[jr];W[ir];B[qn];W[rf];B[lh];W[lg];B[rh];W[hg];B[ig] ;W[eh];B[dh];W[fh];B[cf];W[bf];B[dg];W[fi];B[fj];W[he];B[hd] ;W[bd];B[ks];W[am];B[bl];W[km];B[jm];W[pe];B[rb];W[is];B[hp] ;W[hq];B[nn];W[mm];B[no];W[ll];B[lk];W[mk];B[fd];W[fe];B[da] ;W[ca];B[ea];W[cb];B[ep];W[fp];B[dp];W[eq];B[dn];W[io];B[hn] ;W[lp];B[kp];W[lo];B[oa];W[ma];B[oe];W[nf];B[al];W[an];B[ps] ;W[qs];B[os];W[pr];B[ms];W[lq];B[lr];W[mp];B[nq];W[mn];B[qp] ;W[ss];B[ah];W[ag];B[ai];W[ga];B[pd];W[ec];B[fb];W[np];B[oo] ;W[mj];B[rg];W[qf];B[sf];W[se];B[sg];W[re];B[sd];W[hh];B[pk] )goban-1.1.orig/games/Hon-80-1.mgt0000644000175000017500000000331606045540432014073 0ustar alal (;GM[1]SZ[19]DT[1980-05-15,16]PC[Chichibu]PB[Kato Masao]PW[Takemiya Masaki]RE[W+1.5]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pp];W[dq];B[oc];W[qj];B[co];W[ck];B[gq] ;W[ep];B[jq];W[cp];B[qh];W[qn];B[ql];W[rl];B[fc];W[df];B[id] ;W[pl];B[qo];W[pn];B[rn];W[rm];B[cc];W[dc];B[db];W[cd];B[bb] ;W[bc];B[cb];W[ec];B[eb];W[fd];B[gc];W[ek];B[fo];W[eo];B[bp] ;W[bq];B[fn];W[en];B[np];W[fm];B[qi];W[rj];B[dj];W[dk];B[ig] ;W[oe];B[nd];W[qe];B[pd];W[pe];B[nh];W[rd];B[rc];W[ne];B[lh] ;W[me];B[re];W[rf];B[sd];W[qg];B[rh];W[kd];B[dg];W[eg];B[eh] ;W[dh];B[cg];W[fh];B[ei];W[ch];B[cf];W[fg];B[bh];W[ci];B[ef] ;W[de];B[cr];W[cq];B[bi];W[cj];B[be];W[bd];B[bj];W[bk];B[ag] ;W[ge];B[ke];W[md];B[jd];W[kf];B[kc];W[le];B[ld];W[lc];B[kd] ;W[nc];B[hh];W[ob];B[fi];W[hf];B[ro];W[qb];B[sf];W[gm];B[rg] ;W[pc];B[lb];W[od];B[gi];W[if];B[lp];W[jg];B[jh];W[ii];B[ih] ;W[nj];B[qf];W[lj];B[kg];W[jf];B[er];W[dr];B[fq];W[io];B[ip] ;W[hp];B[hq];W[jp];B[iq];W[mn];B[kj];W[ki];B[ji];W[li];B[jk] ;W[kk];B[jj];W[kh];B[kl];W[lk];B[im];W[kn];B[hn];W[ho];B[jn] ;W[jo];B[km];W[kp];B[lq];W[hm];B[hl];W[in];B[jm];W[hk];B[gk] ;W[gl];B[il];W[gj];B[hj];W[fk];B[ik];W[pg];B[oi];W[oo];B[op] ;W[mb];B[mc];W[lm];B[oj];W[ok];B[nk];W[ni];B[mi];W[mj];B[ll] ;W[mh];B[mk];W[lg];B[nm];W[oh];B[ph];W[og];B[go];W[gn];B[ds] ;W[lc];B[ak];W[al];B[aj];W[bl];B[kb];W[mm];B[nn];W[mo];B[no] ;W[lo];B[rb];W[br];B[qa];W[pa];B[ra];W[cs];B[qc];W[es];B[fs] ;W[sm];B[pb];W[kq];B[kr];W[qb];B[gd];W[ff];B[pb];W[mp];B[mq] ;W[qb];B[gk];W[fj];B[pb];W[jr];B[ir];W[qb];B[gh];W[sn];B[so] ;W[po];B[qq];W[eq];B[ds];W[pk];B[pi];W[es];B[fr];W[ma];B[pb] ;W[lr];B[js];W[qb];B[om];W[pm];B[pb];W[nq];B[mr];W[qb];B[ab] ;W[la];B[ka];W[ae];B[af];W[ad];B[ce];W[pb];B[si];W[sj];B[ri] ;W[pf];B[rf];W[hd];B[hc];W[he];B[gg];W[mc];B[hk];W[ds])goban-1.1.orig/games/Hon-93-3.mgt0000644000175000017500000000321006045540454014076 0ustar alal (;GM[1]SZ[19]DT[1993-06-16,17]RE[B+2.5]PB[Cho Chikun]PW[Yamashiro Hiroshi]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[dd];W[pq];B[po];W[qo];B[qn];W[qp];B[pn] ;W[nq];B[pj];W[nd];B[oc];W[nc];B[od];W[ne];B[jc];W[oe];B[qf] ;W[oh];B[og];W[ng];B[pg];W[jf];B[gc];W[ni];B[cn];W[dk];B[el] ;W[ek];B[fl];W[fk];B[fp];W[dn];B[dl];W[co];B[eo];W[do];B[ck] ;W[cj];B[cl];W[gk];B[hm];W[er];B[ch];W[bj];B[ce];W[pe];B[qe] ;W[gq];B[il];W[dh];B[dg];W[eh];B[eg];W[bh];B[cg];W[ho];B[io] ;W[gl];B[gm];W[go];B[fo];W[id];B[ic];W[gd];B[fd];W[hc];B[hb] ;W[hd];B[fc];W[mn];B[fq];W[fr];B[gp];W[hp];B[hq];W[gr];B[iq] ;W[ip];B[jp];W[jo];B[in];W[jq];B[kp];W[ir];B[lm];W[mm];B[ll] ;W[pl];B[op];W[oq];B[ql];W[ph];B[nk];W[pk];B[qk];W[oj];B[ok] ;W[qj];B[ol];W[kq];B[lp];W[mp];B[pm];W[lo];B[qh];W[jn];B[mh] ;W[nh];B[fh];W[fi];B[gi];W[gh];B[fg];W[hi];B[ei];W[ej];B[di] ;W[dj];B[ij];W[ii];B[ji];W[jh];B[ki];W[pi];B[nb];W[mb];B[ob] ;W[kh];B[li];W[qi];B[rh];W[kb];B[jd];W[hf];B[bn];W[bo];B[lc] ;W[ld];B[le];W[ke];B[lb];W[la];B[md];W[kd];B[mc];W[kc];B[me] ;W[lf];B[mf];W[mg];B[ma];W[nf];B[ka];W[jb];B[ib];W[je];B[gg] ;W[gj];B[hg];W[lh];B[ro];W[rp];B[ao];W[ap];B[an];W[bp];B[jm] ;W[gb];B[fb];W[ia];B[ga];W[ag];B[bf];W[si];B[rn];W[mj];B[lj] ;W[bl];B[cm];W[sp];B[ln];W[ko];B[bk];W[sh];B[sg];W[sj];B[qg] ;W[ak];B[mk];W[hj];B[ik];W[gf];B[ig];W[fe];B[if];W[ie];B[ff] ;W[ge];B[ee];W[rm];B[al];W[aj];B[bm];W[mi];B[hh];W[pk];B[gi] ;W[ih];B[fj];W[pd];B[pc];W[fi];B[la];W[ja];B[fj];W[af];B[ae] ;W[fi];B[bg];W[ah];B[fj];W[ha];B[gb];W[fi];B[jg];W[kg];B[fj] ;W[rg];B[rf];W[fi];B[bi];W[ai];B[fj];W[sf];B[se];W[fi];B[rl] ;W[sl];B[fj];W[nn];B[kn];W[lq];B[fi];W[hn];B[im];W[en];B[fn] ;W[ci];B[eq];W[dq];B[no];W[on];B[pp];W[mo];B[ml];W[em])goban-1.1.orig/games/M-77-1.mgt0000644000175000017500000000233306252627042013552 0ustar alal(;DT[1977-09-08,09]PB[Otake Hideo]PW[Rin Kaiho]RE[W+0.5]BR[9 Dan]WR[9 Dan]ID[77/1]GM[1]SZ[19]FF[3]BS[0]WS[0];B[qd];W[dd];B[cp];W[qq];B[eq];W[oc];B[ld];W[of];B[qg] ;W[ph];B[qh];W[pi];B[qi];W[pj];B[qk];W[pe];B[qe];W[jd];B[cf] ;W[jf];B[ef];W[fd];B[dj];W[jp];B[hp];W[bd];B[in];W[gf];B[op] ;W[mp];B[po];W[ro];B[gg];W[hk];B[hf];W[ge];B[hh];W[ei];B[ej] ;W[gi];B[fg];W[fj];B[di];W[ek];B[ec];W[ed];B[cl];W[eh];B[dg] ;W[ig];B[kg];W[kf];B[mg];W[lg];B[fc];W[dc];B[ic];W[jc];B[jb] ;W[kb];B[hb];W[ja];B[ia];W[ib];B[lh];W[lf];B[jb];W[dh];B[ch] ;W[ib];B[ko];W[ha];B[pq];W[pr];B[or];W[qr];B[kp];W[bg];B[bf] ;W[nq];B[oq];W[mn];B[jk];W[jj];B[kk];W[dk];B[ck];W[ij];B[lq] ;W[eg];B[cg];W[ff];B[nl];W[mk];B[ml];W[qn];B[om];W[kj];B[lk] ;W[lj];B[em];W[il];B[hm];W[fl];B[fm];W[jm];B[kn];W[qb];B[nk] ;W[mj];B[rb];W[qc];B[pd];W[od];B[pf];W[oe];B[pg];W[og];B[rc] ;W[rm];B[pc];W[pb];B[ob];W[nb];B[qa];W[oa];B[gl];W[gk];B[rl] ;W[be];B[ce];W[cd];B[sm];W[sn];B[sl];W[ql];B[pl];W[qm];B[rk] ;W[os];B[ns];W[ps];B[nr];W[km];B[lm];W[af];B[bh];W[ag];B[rp] ;W[qp];B[qo];W[rq];B[oj];W[oi];B[nj];W[ni];B[pn];W[sp];B[ah] ;W[ae];B[cj];W[qj];B[rj];W[jn];B[jo];W[dl];B[dm];W[ra];B[sa] ;W[ee];B[df];W[pk];B[pm];W[rn];B[ok];W[ik];W[hf];W[gd];B[dj] ;W[jp];B[hp];W[bd];B[in])goban-1.1.orig/games/M-83-2.mgt0000644000175000017500000000237006252627042013551 0ustar alal(;GM[1]RO[2]PB[Cho Chikun]PW[Otake Hideo]DT[1983-09-20,21]PC[Innoshima]RE[B+R]ID[83/2]SZ[19]FF[3]BS[0]WS[0]WR[9 Dan]BR[9 Dan];B[pd];W[dp];B[pq];W[dd];B[fc];W[df];B[db];W[cc];B[ic] ;W[qo];B[pl];W[pn];B[np];W[rq];B[jq];W[qj];B[cn];W[cl];B[dg] ;W[eg];B[dh];W[cf];B[en];W[el];B[fp];W[fq];B[eq];W[ep];B[dq] ;W[fo];B[gp];W[cq];B[cr];W[bp];B[br];W[eo];B[hq];W[ip];B[iq] ;W[go];B[fi];W[hi];B[fk];W[cj];B[fl];W[fm];B[fg];W[eh];B[dj] ;W[ci];B[dk];W[ck];B[gm];W[fn];B[fh];W[di];B[bq];W[cp];B[fe] ;W[nc];B[oc];W[nd];B[pf];W[kc];B[qm];W[rf];B[ke];W[qh];B[mf] ;W[nb];B[ob];W[jb];B[pi];W[qi];B[ok];W[ph];B[ni];W[rd];B[og] ;W[nn];B[lb];W[lc];B[ib];W[le];B[lf];W[me];B[kd];W[ld];B[jc] ;W[kb];B[mm];W[im];B[ik];W[fr];B[er];W[kl];B[mn];W[kn];B[pp] ;W[qr];B[rp];W[qp];B[qq];W[ro];B[rr];W[sp];B[sr];W[nl];B[nm] ;W[sq];B[pr];W[rm];B[rl];W[rn];B[kk];W[lk];B[kj];W[om];B[lj] ;W[ol];B[pk];W[kp];B[lq];W[kq];B[kr];W[lr];B[mr];W[lp];B[ls] ;W[qe];B[pe];W[oh];B[nh];W[cb];B[na];W[ma];B[oa];W[ka];B[mp] ;W[hl];B[hk];W[gl];B[ap];W[ao];B[aq];W[hp];B[gq];W[bo];B[rc] ;W[rb];B[qc];W[sc];B[jp];W[jo];B[si];W[sh];B[ec];W[gk];B[gj] ;W[ek];B[ej];W[fj];B[jl];W[qb];B[fk];W[ia];B[hb];W[da];B[ea] ;W[ca];B[jm];W[jn];B[il];W[in];B[sj];W[ri];B[sl];W[nf];B[ng] ;W[mj];B[mi];W[ff];B[gf];W[ef];B[ee])goban-1.1.orig/games/M-72-5.sgf0000644000175000017500000000337006252650766013554 0ustar alal( ; GM[1] TM[1800] DT[1972-] EV[11th Meijin 1972] RO[5] BR[9 dan] WR[Meijin] KM[5] PB[Fujisawa Shuko] PW[Rin Kaiho] RE[B+3] ;B[pd];W[dp];B[pq];W[dc];B[qk];W[jq];B[de];W[ce];B[cf] ;W[cd];B[cn];W[fp];B[df];W[fc];B[dj];W[pn];B[np];W[nn];B[qp] ;W[qf];B[qe];W[pf];B[nd];W[pj];B[pk];W[ok];B[oj];W[qj];B[rj] ;W[ri];B[rk];W[oi];B[nj];W[nk];B[ni];W[qi];B[mk];W[ml];B[ll] ;W[nl];B[rn];W[rm];B[qm];W[qn];B[ro];W[ql];B[rl];W[nh];B[lk] ;W[lm];B[km];W[ln];B[oh];W[og];B[ph];W[mh];B[li];W[qh];B[jl] ;W[lh];B[kh];W[qc];B[pc];W[re];B[rd];W[qd];B[rc];W[pe];B[qb] ;W[bp];B[kg];W[fe];B[gp];W[go];B[fq];W[gq];B[ep];W[hp];B[do] ;W[eo];B[cp];W[eq];B[dq];W[cq];B[ep];W[fr];B[dp];W[dr];B[bq] ;W[cr];B[bo];W[jd];B[he];W[hd];B[ie];W[id];B[ff];W[gl];B[gk] ;W[dk];B[fl];W[cj];B[ek];W[di];B[ej];W[ch];B[bg];W[bh];B[bl] ;W[ei];B[eg];W[fh];B[gf];W[fj];B[gj];W[dn];B[ap];W[el];B[fk] ;W[cl];B[em];W[gi];B[dl];W[bk];B[cm];W[ck];B[bm];W[hh];B[gg] ;W[ji];B[jh];W[jf];B[ig];W[hj];B[jj];W[ee];B[dg];W[ij];B[jk] ;W[ih];B[ki];W[jg];B[je];W[kf];B[ke];W[lf];B[fi];W[il];B[hl] ;W[gh];B[ii];W[if];B[hg];W[md];B[eh];W[nc];B[ob];W[be];B[ag] ;W[bf];B[cg];W[nb];B[me];W[od];B[dd];W[ed];B[le];W[qe];B[ra] ;W[pm];B[sm];W[ne];B[mf];W[lg];B[pi];W[nf];B[fj];W[na];B[oa] ;W[im];B[ik];W[ge];B[hf];W[mq];B[nq];W[mr];B[mp];W[pl];B[nr] ;W[gm];B[lq];W[lr];B[kr];W[kq];B[lp];W[jr];B[rg];W[sl];B[qm] ;W[pg];B[oi];W[rm];B[cc];W[bc];B[qm];W[oc];B[pb];W[rm];B[cb] ;W[bb];B[qm];W[bi];B[dh];W[rm];B[db];W[ec];B[qm];W[ah];B[aj] ;W[rm];B[sk];W[hm];B[hk];W[si];B[ae];W[ad];B[af];W[bd];B[fn] ;W[qm];B[sn];W[br];B[se];W[sf];B[sd];W[rf];B[fo];W[kn];B[jm] ;W[jn];B[kp];W[jp];B[ms];W[ks];B[gn];W[hn];B[mi];W[ng];B[ar] ;W[ef];B[fg];W[oo];B[op];W[qo];B[rq];W[kd];B[ld];W[lc];B[hi] ;W[fm];B[en];W[ko];B[no];W[po];B[mn];W[mm];B[mo];W[bs] C[268 moves complete.] ) goban-1.1.orig/games/M-91-2.mgt0000644000175000017500000000344506252627042013554 0ustar alal(;GM[1]VW[]FF[3]DT[1991-09-25,26]SZ[19]PB[Kobayashi Koichi]PW[Rin Kaiho]KM[5.5]PC[Shizuoka]RE[W+2.5]ID[91/2]BS[0]WS[0];B[pd];W[dp];B[pp];W[dd];B[fq];W[cn];B[jq];W[qn];B[pn] ;W[pm];B[qo];W[on];B[po];W[om];B[np];W[pf];B[qh];W[og];B[oh] ;W[nh];B[oi];W[ng];B[nc];W[mj];B[nk];W[nj];B[ok];W[mk];B[nl] ;W[mn];B[mm];W[ln];B[lm];W[kn];B[km];W[jn];B[no];W[nn];B[kp] ;W[jm];B[kk];W[kl];B[ll];W[jl];B[lk];W[ji];B[ij];W[jj];B[jk] ;W[ik];B[hk];W[il];B[ql];W[qm];B[pk];W[qg];B[rh];W[jd];B[hj] ;W[ip];B[iq];W[fp];B[gp];W[fo];B[kh];W[jh];B[jg];W[hh];B[ig] ;W[hi];B[ld];W[kg];B[kf];W[lg];B[lf];W[lh];B[ci];W[cg];B[cl] ;W[dk];B[ck];W[dj];B[di];W[bh];B[bi];W[eg];B[bn];W[bo];B[dn] ;W[co];B[ch];W[bf];B[fj];W[el];B[fm];W[em];B[en];W[fn];B[gm] ;W[fk];B[ej];W[ek];B[gk];W[hm];B[gn];W[go];B[ho];W[hp];B[hn] ;W[gq];B[dm];W[gl];B[hl];W[io];B[im];W[in];B[hm];W[ei];B[fi] ;W[eh];B[cj];W[hr];B[hd];W[hc];B[gc];W[gd];B[fc];W[hb];B[dc] ;W[he];B[cc];W[qc];B[pc];W[qd];B[rg];W[rf];B[rl];W[qb];B[kb] ;W[ob];B[pb];W[nb];B[mb];W[mc];B[lc];W[oc];B[od];W[nd];B[ne] ;W[ma];B[lb];W[pa];B[md];W[nr];B[mq];W[qq];B[pr];W[js];B[kr] ;W[ks];B[ls];W[lr];B[is];W[ms];B[or];W[ir];B[jr];W[ro];B[ls] ;W[oa];B[nc];W[bd];B[fd];W[ge];B[bc];W[fh];B[dl];W[rq];B[rm] ;W[rn];B[ie];W[id];B[pe];W[qe];B[cd];W[ce];B[bm];W[je];B[jf] ;W[mf];B[me];W[nf];B[oe];W[fa];B[eb];W[ac];B[ab];W[ad];B[cb] ;W[qr];B[ao];W[ap];B[an];W[bp];B[de];W[df];B[ee];W[oj];B[pj] ;W[lp];B[lq];W[fe];B[ph];W[pg];B[hg];W[gg];B[lo];W[mo];B[mp] ;W[pq];B[oq];W[oo];B[op];W[ko];B[ah];W[bg];B[ib];W[ef];B[ed] ;W[hf];B[gi];W[ic];B[jb];W[jp];B[if];W[mr];B[js];W[hs];B[ps] ;W[hq];B[eo];W[ep];B[sf];W[se];B[sg];W[ag];B[ai];W[cm];B[bl] ;W[qs];B[nq];W[ks];B[kq];W[qp];B[lj];W[li];B[ni];W[mi];B[kj] ;W[ki];B[sn];W[so];B[sm];W[ea];B[da];W[ha];B[ia];W[pl];B[dh] ;W[lp];B[ls];W[lo];B[ns];W[qa];B[la];W[na])goban-1.1.orig/games/T-23-4.mgt0000644000175000017500000000236106445641020013550 0ustar alal( ; FF[4] EV[23rd Tengen title] RO[4] PB[Kudo Norio] BR[9 dan] PW[Ryu Shikun] WR[8 dan] KM[5.5] DT[1997-12-15] PC[Japan] RE[B+R] SO[Kobe Shinbun] ;B[pd];W[dp];B[qp];W[dd];B[oq];W[qj];B[ql];W[qf];B[mc];W[rd] ;B[qh];W[of];B[pi];W[qg];B[rg];W[oc];B[rf];W[od];B[pe];W[oe] ;B[qe];W[pc];B[pf];W[jc];B[je];W[ke];B[jd];W[kd];B[ic];W[kb] ;B[jf];W[lg];B[jb];W[kc];B[fc];W[ec];B[fd];W[df];B[fq];W[hq] ;B[dn];W[fp];B[gp];W[gq];B[cp];W[eq];B[cq];W[cl];B[fr];W[er] ;B[fo];W[ep];B[bn];W[kq];B[qc];W[qb];B[ol];W[ff];B[cc];W[eb] ;B[ce];W[de];B[cf];W[cd];B[bd];W[bc];B[bb];W[cg];B[gf];W[gg] ;B[hf];W[oo];B[pn];W[nr];B[nq];W[or];B[pq];W[mq];B[mp];W[lq] ;B[ac];W[bg];B[ck];W[dk];B[bl];W[cm];B[bm];W[cj];B[bk];W[el] ;B[em];W[qr];B[pr];W[ps];B[rr];W[mn];B[no];W[nn];B[on];W[bj] ;B[lp];W[kp];B[hp];W[gr];B[fl];W[fk];B[gk];W[fj];B[gj];W[gi] ;B[hi];W[gh];B[gl];W[ib];B[hb];W[ja];B[hd];W[nj];B[oj];W[oh] ;B[rc];W[rb];B[nk];W[pg];B[re];W[oi];B[pj];W[mj];B[rs];W[sc] ;B[ko];W[lk];B[iq];W[ir];B[ll];W[jo];B[kn];W[ip];B[mk];W[gb] ;B[lj];W[li];B[kk];W[ig];B[gc];W[ha];B[hc];W[fb];B[ki];W[lh] ;B[kf];W[lf];B[qd];W[be];B[dl];W[dm];B[cn];W[cs];B[dl];W[ek] ;B[aj];W[ai];B[dj];W[di];B[fe];W[ih];B[im];W[jj];B[kj];W[db] ;B[cb];W[ae];B[ad];W[ij];B[io];W[jp];B[in];W[br];B[cr];W[dr] ;B[bq];W[hj];B[ak]) goban-1.1.orig/games/M-88-4.mgt0000644000175000017500000000230706252627042013560 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Kobayashi Koichi]DT[1988-10-12,13]RE[B+R]FF[3]ID[88/4]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dp];B[pq];W[dd];B[qo];W[dj];B[fq];W[dn];B[jq] ;W[jd];B[lc];W[pj];B[ql];W[le];B[nc];W[pr];B[qq];W[lq];B[jo] ;W[oq];B[nr];W[kq];B[nq];W[np];B[or];W[iq];B[jp];W[jr];B[kr] ;W[hr];B[lr];W[ho];B[jm];W[ol];B[js];W[ir];B[lp];W[cq];B[pk] ;W[ok];B[oj];W[nj];B[oi];W[ni];B[pi];W[nh];B[ch];W[ci];B[dh] ;W[fj];B[bd];W[cd];B[hp];W[ip];B[io];W[gp];B[hn];W[go];B[gq] ;W[hq];B[gn];W[fn];B[bi];W[bj];B[bc];W[cf];B[be];W[df];B[bf] ;W[bh];B[bg];W[ai];B[db];W[pg];B[fm];W[en];B[nk];W[ml];B[mk] ;W[lk];B[mj];W[nl];B[lj];W[kj];B[kk];W[ll];B[li];W[kl];B[lg] ;W[lo];B[mp];W[jk];B[mf];W[qd];B[qc];W[pe];B[od];W[re];B[rc] ;W[nf];B[me];W[kh];B[lh];W[qi];B[qj];W[ri];B[gd];W[gf];B[hf] ;W[hg];B[rj];W[rg];B[ge];W[ff];B[if];W[mo];B[ko];W[eb];B[dc] ;W[ec];B[gb];W[hc];B[gc];W[he];B[jf];W[cc];B[cb];W[bb];B[ba] ;W[ab];B[ac];W[hb];B[ha];W[ia];B[ga];W[jb];B[hd];W[ea];B[aa] ;W[kc];B[ic];W[lb];B[mb];W[ld];B[mc];W[kg];B[kf];W[lf];B[ki] ;W[jh];B[ji];W[ih];B[id];W[mg];B[ij];W[im];B[hi];W[gh];B[in] ;W[pm];B[qm];W[hk];B[ik];W[il];B[jl];W[km];B[jn];W[hl];B[hj] ;W[gj];B[kd];W[ke];B[md];W[kb];B[je];W[kd];B[jj];W[kk];B[ib] )goban-1.1.orig/games/M-87-1.mgt0000644000175000017500000000312406252627042013552 0ustar alal(;GM[1]SZ[19]PW[Rin Kaiho]PB[Kato Masao]DT[1987-09-17,18]RE[B+5.5]ID[87/1]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[cp];W[qq];B[oc];W[eq];B[do];W[iq];B[pn] ;W[np];B[qj];W[dk];B[cf];W[ce];B[df];W[fd];B[di];W[fk];B[fo] ;W[en];B[eo];W[cq];B[bq];W[br];B[dq];W[cr];B[fi];W[ho];B[hn] ;W[bp];B[bo];W[aq];B[el];W[cn];B[dn];W[in];B[hm];W[im];B[hl] ;W[ci];B[ch];W[dj];B[bi];W[gi];B[fh];W[fj];B[cj];W[hj];B[il] ;W[ic];B[he];W[id];B[ie];W[jj];B[kl];W[lj];B[nj];W[jg];B[jd] ;W[jc];B[kd];W[kc];B[ld];W[lc];B[hh];W[mh];B[ii];W[ij];B[kh] ;W[jh];B[kg];W[kf];B[ji];W[ki];B[lg];W[md];B[jf];W[le];B[lf] ;W[ke];B[kk];W[kj];B[ng];W[nk];B[oj];W[mk];B[pp];W[mm];B[pq] ;W[je];B[ne];W[pr];B[or];W[rr];B[ps];W[qr];B[nq];W[qo];B[po] ;W[qn];B[ln];W[mo];B[lp];W[lo];B[ko];W[kn];B[jo];W[kp];B[jp] ;W[kq];B[jq];W[lr];B[jr];W[mq];B[pm];W[qm];B[pl];W[co];B[cm] ;W[lm];B[km];W[jn];B[io];W[mn];B[jm];W[if];B[gh];W[bn];B[cc] ;W[cd];B[kr];W[lq];B[nm];W[ln];B[hp];W[nn];B[nl];W[lk];B[oo] ;W[nr];B[oq];W[ms];B[ks];W[os];B[ns];W[dl];B[dm];W[os];B[dc] ;W[ec];B[ns];W[bm];B[cl];W[os];B[bc];W[nh];B[og];W[mg];B[mf] ;W[lh];B[mi];W[ni];B[mj];W[li];B[ph];W[qs];B[be];W[db];B[cb] ;W[rk];B[rj];W[qk];B[pk];W[nb];B[ob];W[oa];B[nc];W[mb];B[pa] ;W[na];B[pb];W[ea];B[dp];W[er];B[ee];W[ed];B[dr];W[bd];B[ad] ;W[ds];B[ql];W[rl];B[gr];W[gq];B[hq];W[fr];B[gp];W[fq];B[ca] ;W[hf];B[fe];W[ge];B[fb];W[eb];B[gd];W[hd];B[gc];W[gb];B[gf] ;W[he];B[sk];W[rm];B[qp];W[rp];B[hs];W[nd];B[od];W[me];B[nf] ;W[fl];B[fm];W[oi];B[pi];W[ok];B[pj];W[bl];B[bk];W[al];B[hg] ;W[ak];B[gl];W[sl];B[sj];W[ei];B[eh];W[ai];B[ah];W[aj];B[mc] ;W[lb];B[de];W[hc];B[ig];W[ej])goban-1.1.orig/games/T-11-2.mgt0000644000175000017500000000322106265103576013550 0ustar alal(;SZ[19]EV[11th Tengen Title match]RO[Game 2]DT[1985-11-29]PC[Kurume City, Kyushu]PW[Ishida Yoshio]KM[5.5]RE[B+1.5]SO[Go world 44]PB[Kobayashi Koichi];B[pd];W[cc];B[pq];W[cq];B[pk];W[nc];B[pf];W[jd];B[fp];W[dn];B[jp];W[po];B[qp];W[op];B[oq];W[np];B[mq];W[nq];B[nr];W[qo];B[lr];W[de];B[pm];W[mp];B[mm];W[ko];B[lp];W[lo];B[kp];W[km];B[nn];W[mn];B[lm];W[jo];B[jm];W[kl];B[ln];W[mo];B[kn];W[jn];B[im];W[om];B[on];W[qm];B[pl];W[hn];B[dp];W[cp];B[do];W[co];B[en];W[hm];B[jk];W[nm];B[ml];W[em];B[dm];W[cn];B[fm];W[el];B[hl];W[pn];B[rk];W[gl];B[in];W[io];B[ho];W[hk];B[jl];W[rp];B[rq];W[rn];B[gn];W[gm];B[fl];W[gk];B[ek];W[dl];B[hp];W[go];B[fn];W[fk];B[gp];W[rl];B[ej];W[gi];B[eg];W[fe];B[df];W[ce];B[gg];W[jj];B[kk];W[fh];B[cl];W[cm];B[dk];W[dm];B[eh];W[fg];B[ff];W[gf];B[ef];W[ge];B[hg];W[ih];B[cf];W[be];B[lc];W[ig];B[jb];W[di];B[fi];W[gh];B[ci];W[pc];B[qc];W[od];B[pb];W[ob];B[oc];W[cj];B[dj];W[pc];B[sp];W[ro];B[oc];W[bi];B[ch];W[pc];B[hc];W[ck];B[bl];W[bk];B[ak];W[bj];B[bh];W[bm];B[oc];W[bf];B[bg];W[pc];B[fc];W[hd];B[ic];W[qb];B[oc];W[ei];B[dh];W[pc];B[qd];W[pa];B[qj];W[fr];B[gr];W[eb];B[id];W[ie];B[fb];W[mb];B[lb];W[oh];B[pg];W[eq];B[fq];W[er];B[li];W[mg];B[oe];W[ne];B[nf];W[mi];B[me];W[nd];B[mf];W[lh];B[ki];W[ji];B[nl];W[eo];B[fo];W[ep];B[ng];W[mh];B[db];W[ec];B[ea];W[cb];B[jf];W[kf];B[jg];W[jh];B[je];W[ke];B[kd];W[if];B[jc];W[fj];B[ei];W[kg];B[nh];W[ni];B[oi];W[rc];B[rd];W[sb];B[sd];W[gs];B[hr];W[dc];B[gd];W[he];B[jd];W[oj];B[pi];W[kh];B[lk];W[da];B[ik];W[ij];B[nj];W[mj];B[nk];W[hs];B[is];W[fs];B[iq];W[so];B[sq];W[fa];B[ga];W[la];B[ka];W[ma];B[sc];W[rb];B[ql];W[sk];B[sj];W[sl];B[ee];W[ed];B[mk];W[pp];B[qq];W[ai];B[af];W[ae];B[lf];W[ea];B[il];W[ag];B[ah];W[al];W[af])goban-1.1.orig/games/Hon-83-3.mgt0000644000175000017500000000315606045540440014101 0ustar alal (;GM[1]SZ[19]DT[1983-06-08,09]PC[Yunoyama]RE[W+7.5]FF[3]PW[Cho Chikun]PB[Rin Kaiho]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pp];W[dq];B[oc];W[qi];B[co];W[ck];B[dp] ;W[eq];B[cq];W[cr];B[bq];W[hq];B[ep];W[fp];B[fo];W[gp];B[cf] ;W[ce];B[df];W[fd];B[ci];W[ek];B[ei];W[jc];B[gk];W[dn];B[cn] ;W[fj];B[hi];W[cm];B[gm];W[fn];B[go];W[gn];B[hn];W[ho];B[eo] ;W[hm];B[in];W[gl];B[fm];W[en];B[fl];W[im];B[jm];W[il];B[br] ;W[jl];B[gj];W[km];B[io];W[hp];B[ko];W[kq];B[mo];W[fi];B[fh] ;W[eh];B[eg];W[dh];B[di];W[fk];B[hl];W[gi];B[fg];W[hh];B[ii] ;W[ih];B[ji];W[hj];B[ik];W[jk];B[ij];W[em];B[hk];W[el];B[gl] ;W[mm];B[jh];W[bj];B[id];W[ic];B[hc];W[hd];B[gd];W[he];B[ge] ;W[gc];B[hb];W[gb];B[cc];W[dc];B[hf];W[ie];B[if];W[je];B[jf] ;W[ke];B[be];W[mq];B[np];W[pm];B[nq];W[qn];B[ro];W[rn];B[pj] ;W[qj];B[ok];W[pl];B[qg];W[cd];B[kn];W[jn];B[jp];W[jq];B[oh] ;W[nn];B[rp];W[dr];B[bn];W[bi];B[bh];W[bg];B[ah];W[bl];B[bs] ;W[bf];B[mc];W[bd];B[cg];W[me];B[rh];W[oe];B[pf];W[ri];B[kb] ;W[kc];B[lc];W[mr];B[nr];W[ns];B[os];W[ms];B[pr];W[mk];B[fe] ;W[gh];B[lf];W[kf];B[kg];W[mf];B[fc];W[fb];B[ed];W[ec];B[lg] ;W[ld];B[jb];W[ib];B[ds];W[fr];B[cs];W[es];B[kj];W[nl];B[mj] ;W[qh];B[rg];W[nj];B[qk];W[pk];B[oj];W[ni];B[ph];W[rk];B[mi] ;W[nk];B[lk];W[qo];B[qp];W[nd];B[nc];W[pe];B[qe];W[mh];B[lh] ;W[lb];B[mb];W[gf];B[ee];W[gg];B[ff];W[si];B[ll];W[lm];B[lp] ;W[lq];B[oo];W[on];B[po];W[ol];B[sn];W[sm];B[so];W[ip];B[jo] ;W[of];B[mg];W[nh];B[ng];W[og];B[pg];W[ja];B[la];W[sh];B[sg] ;W[nf];B[jm];W[kl];B[rm];W[sl];B[pn];W[qm];B[pd];W[do];B[cp] ;W[ai];B[dj];W[dk];B[am];W[bm];B[al];W[ak];B[an];W[ae];B[ag] ;W[md];B[fd];W[ia];B[ka];W[af];B[ch];W[jn];B[mp];W[kp];B[mn] ;W[ln];B[lo];W[ml];W[jm])goban-1.1.orig/games/T-18-4.mgt0000644000175000017500000000275106252627522013566 0ustar alal(;PB[Yamashiro Hiroshi]BR[9 dan]PW[Rin Kaiho]WR[Tengen]RO[4]RE[W+3.5]KM[5.5]GM[1]SZ[19]ID[18/4]FF[3];B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[cn];W[cp];B[fc] ;W[cf];B[jd];W[qf];B[qh];W[qc];B[pc];W[qd];B[pe];W[qb];B[og] ;W[pb];B[jp];W[qn];B[ql];W[np];B[pn];W[pm];B[on];W[qm];B[qo] ;W[qk];B[ok];W[pl];B[nm];W[qi];B[pi];W[ri];B[gp];W[dj];B[gj] ;W[kq];B[kp];W[lp];B[lo];W[jq];B[ip];W[nc];B[dn];W[lr];B[di] ;W[ei];B[dh];W[eh];B[dg];W[gi];B[cj];W[fd];B[gd];W[fe];B[hi] ;W[gh];B[hj];W[ck];B[bk];W[ec];B[ig];W[ld];B[lf];W[ke];B[gc] ;W[ge];B[jf];W[bj];B[ci];W[bl];B[dk];W[cl];B[ej];W[bn];B[oq] ;W[mo];B[mn];W[nr];B[dl];W[mf];B[mg];W[pj];B[oj];W[ph];B[oi] ;W[nf];B[ng];W[kf];B[kg];W[pg];B[nd];W[md];B[ne];W[hd];B[ic] ;W[eb];B[er];W[eq];B[fq];W[or];B[pr];W[qq];B[qr];W[ro];B[qp] ;W[rp];B[rq];W[hc];B[hb];W[gb];B[cr];W[cm];B[ir];W[jr];B[id] ;W[he];B[dr];W[ln];B[ko];W[sq];B[bi];W[ak];B[bq];W[bg];B[oc] ;W[ob];B[me];W[kc];B[iq];W[rr];B[js];W[ks];B[mq];W[nq];B[mp] ;W[mr];B[no];W[le];B[of];W[bp];B[lq];W[is];B[hs];W[js];B[ep] ;W[dm];B[em];W[dp];B[eo];W[ap];B[qe];W[re];B[jb];W[kb];B[ef] ;W[hh];B[ih];W[hr];B[gs];W[gr];B[fs];W[fr];B[es];W[br];B[ar] ;W[bs];B[cs];W[cq];B[as];W[br];B[bs];W[aq];B[gq];W[ol];B[nl] ;W[op];B[pq];W[rq];B[hg];W[gg];B[ff];W[gf];B[ee];W[br];B[hq] ;W[rs];B[de];W[ce];B[cd];W[bd];B[bh];W[cg];B[ka];W[la];B[ja] ;W[mb];B[ha];W[ga];B[cc];W[bc];B[ed];W[dc];B[ag];W[ib];B[ia] ;W[jc];B[ib];W[af];B[ah];W[pk];B[aj];W[bk];B[oh];W[qg];B[fi] ;W[fh];B[fj];W[ps];B[if];W[kd];B[po];W[qs];B[ai];W[bq])goban-1.1.orig/games/M-76-2.sgf0000644000175000017500000000345106252651412013542 0ustar alal( ; EV[1st Meijin title] RO[2] BR[9 dan] WR[Meijin] KM[5] PB[Ishida Yoshio] PW[Otake Hideo] DT[1976-] PC[Japan] TM[9 hours] RE[W+5] ;B[qd];W[dc];B[dp];W[pq];B[ce];W[ed];B[qo];W[oc];B[ld] ;W[of];B[qg];W[jd];B[lf];W[ph];B[pg];W[og];B[oh];W[qe];B[pd] ;W[qf];B[pf];W[pe];B[oe];W[od];B[ne];W[rd];B[ng];W[rg];B[nf] ;W[rh];B[re];W[rf];B[rc];W[qc];B[sd];W[pc];B[mq];W[po];B[qp] ;W[nq];B[mp];W[qq];B[ci];W[fq];B[hq];W[cq];B[cp];W[dq];B[ep] ;W[bq];B[fp];W[fr];B[bp];W[ej];B[ei];W[fi];B[fj];W[di];B[eh] ;W[fk];B[gj];W[dj];B[dh];W[cj];B[ch];W[gk];B[gq];W[dl];B[bc] ;W[hd];B[pn];W[mr];B[lr];W[nr];B[kq];W[qk];B[pp];W[rq];B[cb] ;W[db];B[gr];W[bs];B[kb];W[mb];B[mc];W[nb];B[ic];W[cc];B[bb] ;W[hc];B[rd];W[rb];B[id];W[ib];B[hk];W[hj];B[gi];W[hl];B[ik] ;W[fm];B[ie];W[il];B[jk];W[he];B[jb];W[if];B[hb];W[gb];B[ia] ;W[gg];B[ef];W[ff];B[rk];W[rj];B[rl];W[ql];B[qm];W[sk];B[rm] ;W[pi];B[fs];W[ds];B[jl];W[in];B[jm];W[go];B[cm];W[dm];B[cl] ;W[bk];B[bi];W[ol];B[gl];W[gm];B[nl];W[jf];B[ck];W[dk];B[bj] ;W[cn];B[bl];W[ee];B[ok];W[pl];B[om];W[df];B[kh];W[cf];B[bf] ;W[jn];B[kn];W[hi];B[gh];W[hh];B[fh];W[jp];B[kp];W[je];B[ga] ;W[fb];B[rp];W[op];B[oo];W[np];B[no];W[oi];B[ni];W[ji];B[ki] ;W[oj];B[nj];W[jc];B[lb];W[pk];B[sq];W[sr];B[sp];W[rr];B[dn] ;W[en];B[do];W[nk];B[mk];W[ib];B[ic];W[jh];B[jj];W[bg];B[be] ;W[cg];B[ip];W[jo];B[jq];W[ko];B[im];W[hm];B[lo];W[io];B[fo] ;W[hp];B[iq];W[fn];B[ap];W[cd];B[bd];W[kg];B[lg];W[es];B[eg] ;W[de];B[kf];W[jg];B[gs];W[kj];B[km];W[id];B[ib];W[ls];B[ks] ;W[ms];B[ok];W[nd];B[md];W[nk];B[sl];W[sj];B[ma];W[na];B[la] ;W[ca];B[ba];W[da];B[ii];W[ih];B[eq];W[er];B[aq];W[ar];B[ok] ;W[ke];B[le];W[nk];B[gp];W[ho];B[ok];W[kc];B[lc];W[ij];B[fg] ;W[gf];B[nc];W[pa];B[qh];W[qi];B[ag];W[ah];B[af];W[bh];B[ai] ;W[nk];B[gn];W[hn];B[ok];W[fa];B[nk];W[ha] C[266 moves complete] BL[8hr 30m] WL[4hr 45m] ;W[ga] C[White fills the ko.] ) goban-1.1.orig/games/T-09-3.mgt0000644000175000017500000000247506262656536013600 0ustar alal(;SZ[19]EV[9th Tengen match]PB[Awaji Shuzo]BR[8d]PW[Kataoka Satoshi]WR[Tengen]KM[5.5]SO[Go world]RO[Game 3]DT[1983-11-28]PC[Abashiri]RE[W+R];B[pd];W[dc];B[pq];W[cp];B[ep];W[po];B[qo];W[qn];B[qp];W[pm];B[np];W[qi];B[qg];W[oi];B[de];W[eq];B[dp];W[dq];B[co];W[cq];B[fp];W[gq];B[fd];W[fc];B[gd];W[gc];B[hd];W[ce];B[cf];W[cd];B[dg];W[cm];B[cn];W[dm];B[en];W[em];B[hp];W[hq];B[ip];W[iq];B[dk];W[bm];B[bp];W[cj];B[ck];W[bk];B[dj];W[bi];B[ci];W[bj];B[ch];W[gm];B[gp];W[jq];B[gk];W[im];B[jp];W[kq];B[lo];W[bn];B[bo];W[ik];B[nl];W[ok];B[hc];W[fn];B[hn];W[hm];B[og];W[pc];B[oc];W[ob];B[pb];W[qc];B[qb];W[qd];B[pe];W[nb];B[rc];W[kc];B[od];W[nc];B[me];W[jb];B[fb];W[gb];B[hb];W[eb];B[rh];W[mo];B[jn];W[mp];B[kl];W[jj];B[mn];W[no];B[lj];W[or];B[pr];W[oq];B[hj];W[jh];B[hh];W[li];B[mj];W[lh];B[lp];W[nn];B[mm];W[rr];B[pp];W[rn];B[op];W[mq];B[ro];W[rq];B[rs];W[ri];B[ol];W[pl];B[ke];W[nd];B[ne];W[lb];B[fl];W[fm];B[br];W[bq];B[aq];W[cr];B[fq];W[fr];B[er];W[es];B[cs];W[dr];B[nk];W[jm];B[km];W[in];B[io];W[nq];B[ps];W[oo];B[oj];W[pk];B[be];W[bd];B[kg];W[hk];B[ji];W[gj];B[ii];W[fk];B[gi];W[fj];B[pj];W[qh];B[qj];W[rj];B[pi];W[ph];B[oh];W[qk];B[ni];W[rg];B[rf];W[sh];B[qe];W[ei];B[di];W[eh];B[eg];W[fh];B[fg];W[jd];B[je];W[dn];B[do];W[bf];B[bg];W[ae];B[el];W[gl];B[pg];W[ed];B[ee];W[gh];B[gg];W[kj];B[ki];W[id];B[ie];W[sn];B[sp];W[kp];B[ko];W[kk];B[qr];W[sr])goban-1.1.orig/games/M-76-5.sgf0000644000175000017500000000170706252651456013557 0ustar alal( ; EV[1st Meijin title] RO[5] BR[Meijin] WR[9 dan] KM[5] PB[Otake Hideo] PW[Ishida Yoshio] DT[1976-] PC[Japan] TM[9 hours] RE[B+R] ;B[pd];W[dc];B[dq];W[qq];B[ce];W[dn];B[cl];W[co];B[fp] ;W[bq];B[iq];W[dh];B[fe];W[gc];B[el];W[fg];B[ed];W[ec];B[hd] ;W[hc];B[id];W[ic];B[jd];W[kc];B[fn];W[fj];B[gk];W[hi];B[hg] ;W[dk];B[dl];W[eo];B[fo];W[fk];B[fl];W[hk];B[np];W[qo];B[gl] ;W[ji];B[le];W[lc];B[pp];W[qp];B[pq];W[qf];B[pi];W[of];B[qe] ;W[rf];B[kh];W[jh];B[jg];W[ki];B[lh];W[li];B[gj];W[gi];B[ih] ;W[ii];B[nh];W[nd];B[re];W[mf];B[lf];W[pb];B[oc];W[qc];B[oe] ;W[pf];B[ne];W[pe];B[qd];W[me];B[rc];W[rb];B[pc];W[qb];B[sb] ;W[mg];B[mh];W[nj];B[ob];W[ld];B[om];W[lm];B[br];W[cq];B[cr] ;W[dp];B[eq];W[bm];B[ko];W[cd];B[bd];W[oo];B[po];W[pn];B[on] ;W[no];B[qn];W[pm];B[rn];W[pl];B[qr];W[rl];B[mo];W[nn];B[mn] ;W[nm];B[mm];W[op];B[oq];W[nl];B[ro];W[mp];B[nq];W[ml];B[kn] ;W[de];B[dd];W[ee];B[cc];W[fd];B[lg];W[cd];B[dd];W[kd];B[je] C[229 moves complete] BL[6hr 30m] WL[8hr 44m] ) goban-1.1.orig/games/Hon-90-7.mgt0000644000175000017500000000273506045540450014106 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Kobayashi Koichi]DT[1990-07-25,26]RE[W+3.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[qo];W[kq];B[cn];W[nq];B[fq] ;W[fp];B[cq];W[cp];B[dq];W[eq];B[er];W[ep];B[fr];W[ck];B[fc] ;W[df];B[db];W[cc];B[ic];W[qf];B[nd];W[rd];B[qc];W[qi];B[ek] ;W[el];B[dk];W[dl];B[cj];W[bl];B[bk];W[cl];B[fk];W[ch];B[ph] ;W[qh];B[pf];W[qe];B[ie];W[kf];B[kd];W[gm];B[hk];W[bq];B[br] ;W[bp];B[iq];W[pe];B[oe];W[pg];B[og];W[of];B[nf];W[oh];B[ng] ;W[jk];B[ii];W[if];B[hf];W[hg];B[ig];W[ih];B[jf];W[jg];B[if] ;W[hh];B[jh];W[ji];B[kg];W[gj];B[dh];W[di];B[ei];W[eh];B[fh] ;W[dg];B[gi];W[dj];B[hi];W[qm];B[qn];W[pm];B[or];W[kh];B[jg] ;W[cb];B[nh];W[pi];B[nr];W[rc];B[rb];W[mq];B[ej];W[ki];B[ec] ;W[ff];B[gg];W[ni];B[mi];W[mh];B[nj];W[oi];B[on];W[mj];B[lp] ;W[kp];B[lo];W[lq];B[no];W[ko];B[om];W[rm];B[rn];W[sb];B[qb] ;W[qd];B[pc];W[gp];B[hq];W[ol];B[nl];W[ok];B[sm];W[sl];B[sn] ;W[rl];B[mg];W[li];B[kn];W[jn];B[km];W[io];B[ml];W[ar];B[bs] ;W[jr];B[ir];W[fl];B[gk];W[ge];B[gd];W[gq];B[gr];W[dc];B[eb] ;W[mr];B[ca];W[ba];B[da];W[bb];B[eg];W[dh];B[op];W[nk];B[js] ;W[ks];B[is];W[ll];B[kl];W[lk];B[lm];W[im];B[fe];W[ee];B[fd] ;W[gf];B[fg];W[ef];B[ls];W[kr];B[ms];W[oq];B[jp];W[ip];B[jq] ;W[jo];B[pr];W[he];B[hd];W[mp];B[mo];W[pn];B[po];W[ij];B[hj] ;W[kk];B[ik];W[jj];B[hp];W[ho];B[lg];W[ns];B[os];W[mm];B[nm] ;W[hl];B[lh];W[mi];B[il];W[gl];B[jl];W[ra];B[pf];W[dr];B[cr] ;W[of];B[sc];W[sd];B[pf];W[ds];B[es];W[of];B[aq];W[ap];B[pf] ;W[hr];B[hs];W[of];B[qa];W[pf];B[sa];W[od];B[oc];W[ra];B[mk] ;W[sa])goban-1.1.orig/games/M-85-4.mgt0000644000175000017500000000236106252627042013555 0ustar alal(;PB[Cho Chikun]PW[Kobayashi Koichi]DT[1985-10-16,17]RE[W+R]ID[85/4]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[cp];B[eq];W[qn];B[qp];W[qk];B[dn] ;W[do];B[eo];W[cn];B[dm];W[cm];B[dl];W[cl];B[dk];W[cj];B[cq] ;W[kq];B[dp];W[co];B[ck];W[bk];B[dj];W[ci];B[bj];W[bi];B[bp] ;W[bo];B[bq];W[bl];B[mq];W[hq];B[qi];W[nc];B[oj];W[ok];B[nk] ;W[ol];B[pc];W[kc];B[ne];W[fp];B[ep];W[ke];B[cc];W[dc];B[cd] ;W[ce];B[be];W[qg];B[rk];W[pi];B[ph];W[qh];B[pj];W[ri];B[qj] ;W[rj];B[ql];W[pk];B[rm];W[nl];B[pm];W[nj];B[oi];W[og];B[ni] ;W[mk];B[qe];W[pg];B[mh];W[mg];B[lg];W[mf];B[lj];W[on];B[pn] ;W[sk];B[rl];W[mj];B[mi];W[kl];B[lf];W[me];B[le];W[md];B[db] ;W[eb];B[cb];W[de];B[bf];W[ob];B[pb];W[kh];B[lh];W[ki];B[jf] ;W[je];B[jg];W[hf];B[hg];W[gg];B[hh];W[if];B[kj];W[jj];B[ji] ;W[kk];B[ij];W[jk];B[jh];W[rf];B[re];W[eg];B[ea];W[fb];B[jr] ;W[jq];B[kr];W[lq];B[lr];W[mp];B[nq];W[hm];B[fa];W[ga];B[da] ;W[gb];B[iq];W[ip];B[ir];W[hp];B[gr];W[oo];B[np];W[po];B[qo] ;W[mo];B[il];W[ik];B[hl];W[im];B[ld];W[lc];B[bh];W[se];B[sd] ;W[sf];B[rb];W[hj];B[gl];W[fi];B[gh];W[rd];B[sc];W[fh];B[oh] ;W[fn];B[fo];W[fm];B[ch];W[di];B[en];W[fl];B[gf];W[fg];B[kd] ;W[jd];B[jc];W[ic];B[go];W[fk];B[mb];W[nb];B[ng];W[nf];B[of] ;W[pf];B[oe];W[pe];B[od];W[nh];B[ie];W[qd])goban-1.1.orig/games/M-62-l17.sgf0000644000175000017500000000316706252641412014002 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[8 dan] PB[Handa Dogen] PW[Fujisawa Shuko] RE[B+1] ;B[qd];W[qp];B[dd];W[cp];B[od];W[jc];B[eq];W[hp];B[op] ;W[oq];B[nq];W[pq];B[en];W[cm];B[np];W[po];B[jq];W[gn];B[dp] ;W[co];B[el];W[dk];B[lc];W[gc];B[qj];W[cf];B[fd];W[eb];B[db] ;W[ec];B[dc];W[ed];B[de];W[ee];B[df];W[cg];B[ce];W[gl];B[dn] ;W[dm];B[em];W[fp];B[cn];W[bn];B[dl];W[cl];B[bm];W[bo];B[ck] ;W[bl];B[ep];W[dj];B[gk];W[hk];B[hm];W[gm];B[fk];W[hj];B[fi] ;W[jo];B[jm];W[km];B[kl];W[kn];B[ll];W[jl];B[nm];W[dh];B[ci] ;W[di];B[dg];W[ch];B[fg];W[pm];B[oj];W[jk];B[jd];W[ic];B[lh] ;W[lf];B[ld];W[qc];B[pc];W[rd];B[rc];W[lg];B[ng];W[kh];B[pp] ;W[qq];B[rm];W[qn];B[kp];W[qg];B[re];W[qe];B[sd];W[nh];B[og] ;W[mh];B[oh];W[pi];B[pj];W[hr];B[gh];W[lq];B[ko];W[lr];B[nr] ;W[jr];B[mo];W[lp];B[lo];W[rk];B[li];W[lj];B[ki];W[mj];B[ol] ;W[jh];B[mi];W[ni];B[nj];W[kk];B[oi];W[mg];B[ql];W[rn];B[sn] ;W[so];B[sm];W[pl];B[qk];W[rr];B[iq];W[ir];B[kb];W[me];B[nf] ;W[id];B[cq];W[bq];B[br];W[ar];B[hq];W[gq];B[fr];W[gr];B[dr] ;W[bf];B[be];W[or];B[jb];W[je];B[hg];W[lm];B[ml];W[jn];B[on] ;W[qm];B[rl];W[da];B[ca];W[ea];B[bb];W[ib];B[fe];W[fc];B[ii] ;W[ji];B[ij];W[ik];B[he];W[bs];B[cr];W[kq];B[jp];W[ip];B[fo] ;W[go];B[af];W[ag];B[ae];W[hd];B[ah];W[bg];B[bk];W[am];B[bi] ;W[ge];B[ro];W[sp];B[eh];W[bh];B[cj];W[aj];B[ff];W[if];B[hf] ;W[hi];B[rp];W[sq];B[ih];W[ig];B[hh];W[kc];B[md];W[ne];B[oe] ;W[gd];B[kd];W[ke];B[lb];W[ie];B[ia];W[ha];B[ja];W[mk];B[nk] ;W[nd];B[nc];W[fn];B[eo];W[fq];B[gs];W[hs];B[fs];W[os];B[ns] ;W[ls];B[mm];W[oo];B[no];W[ln];B[pk];W[om];B[ej];W[ak];B[gj] ;W[gf];B[ef];W[aq];B[cs];W[as]C[244 moves complete.]) goban-1.1.orig/games/M-70-5.sgf0000644000175000017500000000273306252650522013542 0ustar alal( ; DT[1970-] RO[5] KM[5] EV[9th Meijin 1970] BR[Meijin] WR[9 dan] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[W+3] ;B[qd];W[dc];B[pq];W[cq];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[di];B[hd];W[fd];B[cc];W[cb];B[bc] ;W[dd];B[cg];W[kd];B[hf];W[de];B[df];W[cd];B[bd];W[be];B[cf] ;W[bb];B[bf];W[ac];B[ae];W[ff];B[kf];W[nd];B[nc];W[hc];B[ic] ;W[hb];B[ef];W[gf];B[gd];W[gc];B[ie];W[ge];B[hg];W[bh];B[fc] ;W[fb];B[ec];W[ed];B[fg];W[fi];B[gg];W[dm];B[fp];W[hp];B[ck] ;W[dk];B[co];W[cl];B[dp];W[cp];B[dq];W[bo];B[do];W[bn];B[cr] ;W[br];B[bq];W[bp];B[bs];W[aq];B[hq];W[iq];B[ip];W[gq];B[hr] ;W[gp];B[gr];W[fr];B[fq];W[io];B[jp];W[er];B[jq];W[dr];B[gn] ;W[ho];B[im];W[jo];B[fm];W[en];B[fo];W[gl];B[hn];W[kn];B[jl] ;W[ll];B[jj];W[mo];B[kp];W[np];B[mq];W[pp];B[qq];W[mk];B[qg] ;W[pd];B[pe];W[qc];B[od];W[jb];B[pc];W[qh];B[rg];W[nh];B[ko] ;W[jn];B[gj];W[fk];B[lb];W[jd];B[id];W[kb];B[ni];W[oi];B[mi] ;W[oj];B[si];W[rj];B[ro];W[rn];B[ib];W[ia];B[mh];W[lj];B[li] ;W[oq];B[or];W[op];B[sn];W[sm];B[so];W[sj];B[ng];W[gi];B[hi] ;W[kj];B[ki];W[ij];B[jk];W[hj];B[ii];W[hk];B[lm];W[ln];B[kl] ;W[lk];B[em];W[dn];B[gm];W[md];B[mc];W[lc];B[la];W[jc];B[ne] ;W[me];B[mf];W[pg];B[pf];W[fe];B[km];W[mm];B[el];W[ek];B[eh] ;W[ei];B[ch];W[ci];B[ph];W[oh];B[og];W[sh];B[sg];W[il];B[fs] ;W[cs];B[jm];W[rh];B[je];W[hl];B[ir];W[es];B[gs];W[mb];B[nb] ;W[ka];B[ma];W[ke];B[le];W[ld];B[lf];W[lp];B[lq];W[nj];B[cn] ;W[cm];B[bi];W[bj];B[dh];W[gh];B[ah];W[ai];B[ag];W[hh];B[ih] ;W[lo];B[pi];W[pj];B[pg];W[fl]C[224 moves complete.] ) goban-1.1.orig/games/M-86-1.mgt0000644000175000017500000000256306252627042013557 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Kato Masao]KM[5.5]TM[9 hours]DT[1986-09-10,11]RE[B+R]ID[86/1]FF[3]BS[0]WS[0]KI[11]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[qp];W[op];B[dp];W[qq];B[rq];W[pq];B[ro] ;W[kq];B[pn];W[nc];B[pf];W[pb];B[qc];W[kc];B[cf];W[fd];B[bd] ;W[cc];B[ci];W[fq];B[iq];W[ko];B[fp];W[gp];B[gq];W[ep];B[fo] ;W[eq];B[eo];W[gr];B[hq];W[dq];B[cq];W[cp];B[do];W[bq];B[cr] ;W[br];B[fr];W[dr];B[co];W[bp];B[in];W[qh];B[ld];W[lc];B[qj] ;W[pj];B[pk];W[pi];B[ok];W[ni];B[nd];W[oc];B[rg];W[rh];B[mh] ;W[mi];B[lh];W[nk];B[mq];W[no];B[nl];W[qk];B[mo];W[mn];B[mp] ;W[nm];B[mk];W[ql];B[om];W[ln];B[rj];W[lr];B[qm];W[qg];B[rf] ;W[qf];B[qe];W[oe];B[od];W[pe];B[rd];W[nf];B[li];W[pg];B[ee] ;W[gf];B[fg];W[gg];B[gh];W[hh];B[ff];W[ge];B[hi];W[bn];B[ih] ;W[cl];B[hg];W[id];B[bc];W[bb];B[bo];W[ao];B[jp];W[kp];B[cm] ;W[bm];B[dl];W[ck];B[dk];W[jm];B[im];W[cj];B[di];W[cn];B[dm] ;W[dj];B[ej];W[bi];B[bh];W[bj];B[hd];W[he];B[db];W[cb];B[ic] ;W[jd];B[gc];W[fb];B[fc];W[ed];B[eb];W[hb];B[gb];W[ib];B[fa] ;W[da];B[cd];W[dc];B[jb];W[jc];B[hc];W[kb];B[ha];W[ja];B[ie] ;W[de];B[df];W[if];B[fe];W[gd];B[je];W[jf];B[ke];W[hf];B[kf] ;W[jg];B[jh];W[kg];B[lg];W[ec];B[ab];W[ia];B[ce];W[ga];B[or] ;W[pr];B[ha];W[ca];B[ea];W[ga];B[ng];W[og];B[ha];W[ac];B[ad] ;W[ga];B[ne];W[of];B[ha];W[aa];B[kh];W[ga];B[cs];W[fs];B[ha] ;W[ac];B[ig];W[ga];B[oo];W[np];B[ha];W[dn];B[ab];W[go];B[em] ;W[ac];B[en];W[ga];B[ap])goban-1.1.orig/games/M-72-6.sgf0000644000175000017500000000335406252651004013541 0ustar alal( ; GM[1] TM[1800] DT[1972-] EV[11th Meijin 1972] RO[6] BR[Meijin] WR[9 dan] KM[5] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[B+2] ;B[qd];W[dq];B[dd];W[od];B[oc];W[nc];B[pc];W[nd];B[qf] ;W[jc];B[co];W[qp];B[oq];W[cf];B[di];W[ef];B[ce];W[bg];B[be] ;W[cj];B[ci];W[dj];B[bi];W[ei];B[eh];W[fh];B[fi];W[ej];B[fg] ;W[dh];B[gh];W[eg];B[dp];W[eq];B[cq];W[cr];B[bq];W[ep];B[eo] ;W[fo];B[en];W[fn];B[fm];W[fj];B[fh];W[ch];B[gm];W[hj];B[gd] ;W[ho];B[cl];W[dl];B[dm];W[bl];B[ck];W[bm];B[bk];W[bj];B[cm] ;W[ak];B[lq];W[ec];B[ed];W[fc];B[dc];W[hb];B[fd];W[pq];B[op] ;W[iq];B[qo];W[ro];B[rq];W[qn];B[pr];W[qr];B[qq];W[pp];B[rr] ;W[or];B[qs];W[oo];B[no];W[on];B[jq];W[jr];B[kr];W[jp];B[kq] ;W[qi];B[ir];W[hr];B[js];W[hq];B[je];W[nb];B[ob];W[el];B[em] ;W[mp];B[np];W[mn];B[nn];W[nm];B[mq];W[ml];B[kc];W[kb];B[ic] ;W[ib];B[jd];W[jb];B[ii];W[br];B[bn];W[ki];B[hc];W[fb];B[ni] ;W[pg];B[qg];W[ph];B[ri];W[rj];B[rh];W[pe];B[lh];W[kh];B[lg] ;W[qe];B[re];W[rf];B[rd];W[kg];B[le];W[kf];B[md];W[lc];B[ke] ;W[lf];B[mf];W[mg];B[ng];W[mh];B[rp];W[po];B[rk];W[qj];B[nh] ;W[li];B[ne];W[pf];B[rg];W[db];B[cb];W[ig];B[hi];W[cc];B[bc] ;W[ca];B[bb];W[ij];B[sj];W[hf];B[he];W[fe];B[gf];W[ge];B[ff] ;W[ee];B[hg];W[if];B[ih];W[ie];B[id];W[gc];B[hd];W[im];B[mj] ;W[gj];B[gi];W[lj];B[hn];W[gn];B[fp];W[go];B[ko];W[mo];B[nq] ;W[jo];B[lo];W[kn];B[ln];W[lm];B[hm];W[in];B[ar];W[rl];B[qk] ;W[ql];B[pk];W[sl];B[km];W[jn];B[mk];W[lk];B[ba];W[sk];B[ol] ;W[si];B[pj];W[om];B[fr];W[fq];B[hs];W[gs];B[bs];W[dr];B[is] ;W[gr];B[da];W[eb];B[df];W[dg];B[de];W[bh];B[mc];W[mb];B[ld] ;W[pl];B[lb];W[la];B[am];W[nk];B[nj];W[pi];B[oj];W[bf];B[hl] ;W[il];B[lc];W[hk];B[al];W[aj];B[ji];W[jj];B[af];W[ag];B[ae] ;W[sp];B[sq];W[so];B[na];W[ma];B[oa];W[ea];B[pd];W[oe];B[sh] ;W[sj];B[fl];W[cs];B[aq];W[ca];B[as];W[da] C[266 moves complete.] ) goban-1.1.orig/games/M-89-1.mgt0000644000175000017500000000306606252627042013561 0ustar alal(;GM[1]SZ[19]PW[Awaji Shuzo]PB[Kobayashi Koichi]DT[1989-09-14,15]RE[W+3.5]ID[89/1]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[dq];B[de];W[fc];B[do];W[cm];B[cq] ;W[cr];B[cp];W[er];B[en];W[gp];B[dl];W[ck];B[cl];W[bl];B[bm] ;W[cg];B[bk];W[ce];B[qo];W[nc];B[qf];W[ne];B[pi];W[pr];B[qq] ;W[oq];B[op];W[nq];B[np];W[mq];B[lo];W[qr];B[mp];W[kq];B[kd] ;W[qn];B[pn];W[qm];B[ro];W[qk];B[qj];W[rj];B[ri];W[oj];B[pj] ;W[pk];B[ok];W[ol];B[nk];W[nl];B[ml];W[mk];B[nj];W[mm];B[ll] ;W[lm];B[kl];W[on];B[pm];W[po];B[oo];W[pl];B[pp];W[km];B[jl] ;W[rl];B[sj];W[jm];B[nn];W[nm];B[kp];W[lq];B[im];W[jo];B[in] ;W[ko];B[md];W[nd];B[pb];W[oi];B[ni];W[oh];B[nh];W[pe];B[qe] ;W[ph];B[rk];W[ng];B[mg];W[og];B[lh];W[rh];B[rg];W[qh];B[sh] ;W[qi];B[mf];W[rj];B[dh];W[df];B[qj];W[ob];B[qc];W[od];B[pf] ;W[kb];B[ef];W[il];B[ik];W[hl];B[hk];W[eg];B[dg];W[cf];B[fg] ;W[gl];B[gn];W[jk];B[lk];W[gj];B[eh];W[dk];B[jj];W[ci];B[ch] ;W[bh];B[ek];W[ej];B[fk];W[dj];B[bj];W[bi];B[fj];W[pc];B[oc] ;W[el];B[dm];W[pc];B[oe];W[qb];B[oc];W[fi];B[gk];W[pc];B[pj] ;W[nf];B[oc];W[lj];B[mj];W[pc];B[rc];W[pa];B[ei];W[id];B[ee] ;W[dd];B[if];W[rb];B[sb];W[of];B[pe];W[ge];B[je];W[gg];B[hg] ;W[gf];B[gh];W[kc];B[jd];W[jc];B[jp];W[ho];B[lp];W[hn];B[hm] ;W[io];B[gm];W[iq];B[ep];W[fp];B[eq];W[fq];B[jq];W[jr];B[ip] ;W[hq];B[lc];W[lb];B[hd];W[he];B[ie];W[ic];B[gd];W[fd];B[fe] ;W[gc];B[br];W[bs];B[ar];W[rq];B[rp];W[rr];B[om];W[me];B[le] ;W[rn];B[dr];W[ds];B[fo];W[hc];B[ff];W[mc];B[ld];W[hf];B[hh] ;W[cj];B[ed];W[ec];B[mn];W[aj];B[al];W[ai];B[ak];W[dr];B[dp] ;W[sl];B[sg];W[sq];B[sn];W[sm];B[so];W[ra];B[re];W[gr])goban-1.1.orig/games/M-96-3.sgf0000644000175000017500000000246506252641754013561 0ustar alal( ; EV[21st Meijin title] RO[3] PB[Cho Chikun] BR[9 dan] PW[Takemiya Masaki] WR[9 dan] KM[5.5] DT[2/3 October 1996] PC[Japan] RE[B+11.5] ; B[pd];W[dp];B[pp];W[dd];B[fq];W[dn];B[jp];W[qk];B[qm];W[pg];B[nd]; W[qf];B[qe];W[pj];B[cl];W[ci];B[el];W[fp];B[gp];W[fo];B[er];W[dr]; B[dq];W[cq];B[eq];W[bp];B[ei];W[dg];B[fc];W[dc];B[ic];W[cj];B[eg]; W[df];B[oq];W[hn];B[gl];W[hp];B[hq];W[go];B[gq];W[dk];B[gj];W[dl]; B[qh];W[re];B[rd];W[pe];B[qd];W[ph];B[rf];W[rg];B[se];W[lo];B[om]; W[lq];B[qg];W[qi];B[rh];W[mh];B[mj];W[pl];B[pm];W[kn];B[mf];W[mg]; B[kg];W[fe];B[he];W[gd];B[hc];W[nf];B[me];W[jr];B[cr];W[br];B[ds]; W[eb];B[mp];W[ip];B[lp];W[kp];B[kq];W[ko];B[lr];W[gf];B[ig];W[gh]; B[jq];W[iq];B[jo];W[hr];B[gr];W[jn];B[ij];W[hf];B[if];W[hd];B[id]; W[rl];B[rm];W[fj];B[gi];W[fi];B[fh];W[fg];B[fk];W[eh];B[em];W[dm]; B[fb];W[lg];B[lf];W[kh];B[jh];W[kj];B[io];W[ho];B[ml];W[hk];B[mq]; W[hl];B[im];W[jk];B[hm];W[jl];B[in];W[gm];B[jm];W[ll];B[km];W[lk]; B[lm];W[mk];B[ji];W[gk];B[pf];W[nl];B[mm];W[bs];B[cs];W[sm];B[sn]; W[sl];B[rn];W[gc];B[gb];W[ol];B[ki];W[li];B[ec];W[db];B[of];W[og]; B[ne];W[ri];B[ng];W[nh];B[fm];W[fl];B[hs];W[ir];B[gl];W[gn];B[hh]; W[nm];B[nn];W[si];B[sh];W[ge];B[ie];W[ql];B[jj];W[kk];B[lh];W[mi]; B[ep];W[eo];B[hg];W[hj];B[hi];W[is];B[gs];W[fa];B[ga];W[ea];B[gg]; W[fh];B[ed];W[ee];B[kr];W[ks];B[ls];W[nf];B[kh];W[ng]) goban-1.1.orig/games/Hon-74-3.sgf0000644000175000017500000000237506243711014014070 0ustar alal( ; GM[1] SZ[19] DT[1974-06] RO[3] FF[3] BR[Honinbo] KM[4.5] PB[Ishida Yoshio] PW[Takemiya Masaki] RE[W+R] ID[29/3] ;B[qd];W[dd];B[dq];W[qq];B[nc];W[co];B[cj];W[cl];B[cf] ;W[gc];B[ef];W[bd];B[be];W[fq];B[ep];W[dj];B[ci];W[fp];B[eo] ;W[ck];B[cp];W[bp];B[bq];W[bo];B[fo];W[hp];B[go];W[ho];B[gp] ;W[gq];B[hn];W[in];B[io];W[iq];B[ko];W[hm];B[gn];W[lq];B[fl] ;W[ek];B[jn];W[im];B[fk];W[fj];B[gj];W[fi];B[jk];W[mp];B[pj] ;W[jm];B[km];W[jp];B[jo];W[kl];B[jl];W[lm];B[kn];W[ll];B[kp] ;W[kq];B[ip];W[hq];B[jq];W[jr];B[pm];W[qh];B[hl];W[ln];B[qi] ;W[ph];B[qo];W[qk];B[rj];W[di];B[ch];W[jc];B[rq];W[rr];B[rp] ;W[pp];B[qf];W[ol];B[ql];W[qc];B[pc];W[ce];B[bf];W[fe];B[bk] ;W[bl];B[aj];W[pb];B[rc];W[oc];B[qb];W[od];B[ob];W[nb];B[pa] ;W[pk];B[rk];W[md];B[hc];W[gd];B[eb];W[cc];B[kc];W[kd];B[jb] ;W[lc];B[ic];W[kb];B[gb];W[hb];B[ha];W[fb];B[ib];W[fa];B[ga] ;W[ec];B[ja];W[cr];B[dr];W[cq];B[br];W[dp];B[cs];W[fr];B[cp] ;W[cq];B[eq];W[oj];B[rh];W[of];B[kj];W[li];B[kf];W[po];B[pn] ;W[kg];B[jg];W[lf];B[kh];W[lg];B[gi];W[pi];B[qj];W[ki];B[ji] ;W[lh];B[jh];W[mb];B[lj];W[mj];B[sr];W[qr];B[de];W[ee];B[cd] ;W[bc];B[dl];W[dm];B[el];W[dk];B[dn];W[cm];B[ke];W[le];B[qg] ;W[qp];B[rn];W[pe];B[nn];W[nm];B[pl];W[ok];B[mk];W[lk];B[nj] ;W[mi];B[np];W[nq];B[om];W[mm];B[no];W[op];B[fh];W[eh];B[ff] ;W[dh]) goban-1.1.orig/games/Hon-53-2.mgt0000644000175000017500000000331306045540242014070 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+1.5]DT[1953-05-27,28]BS[0]WS[0];B[pd];W[dq];B[dd];W[qp];B[do];W[dl];B[gp];W[eo];B[en] ;W[fo];B[dp];W[ep];B[cq];W[er];B[dr];W[eq];B[cn];W[cr];B[br] ;W[ds];B[nq];W[lq];B[qq];W[pq];B[pp];W[qr];B[rq];W[op];B[po] ;W[oq];B[rr];W[pm];B[on];W[om];B[nn];W[np];B[qo];W[qf];B[nd] ;W[pi];B[fm];W[cf];B[fd];W[di];B[jc];W[rn];B[ro];W[jd];B[kd] ;W[ic];B[kc];W[id];B[rd];W[ke];B[le];W[kf];B[lf];W[if];B[bd] ;W[lg];B[jq];W[nm];B[mn];W[lo];B[jo];W[nf];B[ck];W[cl];B[bl] ;W[bm];B[bj];W[al];B[bk];W[cm];B[ci];W[dk];B[dh];W[dj];B[cg] ;W[cp];B[bn];W[bq];B[gl];W[gj];B[fh];W[gh];B[fi];W[fj];B[il] ;W[gi];B[kl];W[kr];B[rf];W[rg];B[qg];W[pg];B[qh];W[re];B[qe] ;W[sf];B[pf];W[oe];B[ph];W[od];B[oc];W[nc];B[pc];W[md];B[nb] ;W[ne];B[mb];W[df];B[og];W[bg];B[bh];W[be];B[eg];W[cd];B[cc] ;W[de];B[ee];W[dc];B[ce];W[pe];B[cd];W[qd];B[qc];W[oi];B[qe] ;W[gn];B[mg];W[ng];B[lh];W[kg];B[nh];W[oh];B[rf];W[hm];B[se] ;W[mf];B[mh];W[ld];B[mk];W[nj];B[mj];W[qi];B[rk];W[rj];B[rm] ;W[ql];B[rl];W[qk];B[rh];W[nk];B[im];W[hl];B[hk];W[in];B[jn] ;W[gk];B[io];W[hn];B[fb];W[ml];B[ll];W[mi];B[li];W[lj];B[lk] ;W[kj];B[ki];W[jj];B[ni];W[mm];B[ji];W[ik];B[ln];W[jr];B[ii] ;W[ij];B[ir];W[pr];B[ri];W[qj];B[qn];W[hr];B[iq];W[is];B[kq] ;W[lr];B[sj];W[gc];B[gb];W[fc];B[ec];W[gd];B[ff];W[jb];B[kb] ;W[hb];B[ja];W[ia];B[ib];W[lm];B[km];W[jb];B[ak];W[am];B[ib] ;W[ko];B[kn];W[jb];B[ok];W[oj];B[ib];W[eb];B[db];W[jb];B[ka] ;W[mc];B[ib];W[ga];B[ea];W[jb];B[lc];W[hq];B[hp];W[gq];B[ib] ;W[ha];B[fa];W[jb];B[mo];W[mp];B[ib];W[hc];B[qs];W[ps];B[rs] ;W[ei];B[gg];W[eh];B[he];W[ge];B[hf];W[fe];B[ig];W[ie];B[jg] ;W[hh];B[hg];W[fg];B[fh];W[dg];B[ch];W[ed];B[ef];W[of];B[pg] ;W[jl];B[jm];W[jk];B[jf];W[je];B[kp];W[lp];B[fp];W[fq];B[ho] )goban-1.1.orig/games/T-19-2.mgt0000644000175000017500000000231506433230740013552 0ustar alal( ; EV[19th Tengen title] RO[2] PB[Rin Kaiho] BR[9 dan] PW[Kataoka Satoshi] WR[9 dan] KM[5.5] DT[1993-11-25] PC[Japan] RE[W+R] SO[Go Moon 37, 1993] US[Klaus Blumberg] ;B[pd];W[dd];B[pq];W[cp];B[ep];W[eq];B[fq];W[dq];B[fp];W[cn];B[jp];W[qn] ;B[po];W[rp];B[pl];W[pn];B[on];W[om];B[pm];W[oo];B[nn];W[pp];B[op];W[qo] ;B[np];W[qq];B[pr];W[qf];B[pi];W[of];B[nd];W[rd];B[qc];W[qh];B[kc];W[qi] ;B[pj];W[nm];B[no];W[lm];B[mi];W[nk];B[ph];W[pg];B[ok];W[mj];B[nj];W[lj] ;B[nl];W[ml];B[ol];W[mm];B[li];W[jj];B[ki];W[kj];B[mk];W[lk];B[kn];W[ji] ;B[cf];W[lp];B[kp];W[lo];B[ln];W[mn];B[mo];W[ni];B[qr];W[nk];B[rm];W[oj] ;B[rn];W[ko];B[lq];W[jo];B[io];W[jn];B[mq];W[ro];B[rk];W[qj];B[rq];W[rr] ;B[qp];W[ip];B[iq];W[qq];B[sq];W[sr];B[qp];W[hp];B[hq];W[qq];B[nh];W[oh] ;B[qp];W[jq];B[kq];W[qq];B[qk];W[sp];B[sl];W[ce];B[df];W[fd];B[cj];W[ch] ;B[dh];W[bh];B[cd];W[cc];B[bd];W[be];B[de];W[bf];B[ed];W[dc];B[ec];W[eb] ;B[fc];W[fb];B[gc];W[rj];B[sn];W[po];B[di];W[gb];B[hc];W[me];B[ng];W[og] ;B[md];W[lg];B[ig];W[gi];B[rc];W[hb];B[hn];W[hm];B[gm];W[hl];B[in];W[im] ;B[gn];W[gg];B[le];W[lf];B[ne];W[nf];B[bc];W[bb];B[mf];W[kh];B[er];W[dr] ;B[gf];W[hg];B[hf];W[if];B[jf];W[ie];B[je];W[id];B[ic];W[jg];B[ih];W[jd] ;B[fg];W[hh];B[hi];W[gh];B[gj];W[ii] ) goban-1.1.orig/games/M-83-5.mgt0000644000175000017500000000204106252627042013547 0ustar alal(;GM[1]SZ[19]DT[1983-10-19,20]PC[Kyoto]PW[Cho Chikun]PB[Otake Hideo]RE[W+R]OE[0]OS[0]FF[3]ID[83/5]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[cp];B[eq];W[qo];B[pl];W[lq];B[iq] ;W[op];B[oq];W[np];B[nq];W[mp];B[rq];W[gq];B[do];W[co];B[dn] ;W[cm];B[hp];W[mm];B[pf];W[dq];B[dp];W[cq];B[er];W[dm];B[fo] ;W[ce];B[ic];W[qj];B[qm];W[ok];B[ro];W[pc];B[oc];W[ob];B[qc] ;W[pb];B[nc];W[qd];B[qe];W[rd];B[rc];W[od];B[pe];W[rb];B[re] ;W[qb];B[sd];W[mb];B[nb];W[na];B[nd];W[kc];B[pk];W[gc];B[ne] ;W[ke];B[ie];W[ge];B[kf];W[je];B[lb];W[lc];B[mc];W[ma];B[kb] ;W[jb];B[jc];W[ka];B[kd];W[la];B[jf];W[le];B[lf];W[if];B[nm] ;W[ml];B[nl];W[jp];B[mk];W[ir];B[hr];W[jq];B[hq];W[ig];B[di] ;W[cg];B[km];W[ln];B[lk];W[jh];B[ck];W[bl];B[kr];W[kn];B[im] ;W[jr];B[lr];W[mr];B[mq];W[kq];B[nr];W[nn];B[kh];W[qp];B[rp] ;W[qn];B[rn];W[om];B[ol];W[ki];B[ji];W[ii];B[jj];W[ej];B[hh] ;W[lh];B[me];W[ld];B[kg];W[mf];B[li];W[hi];B[el];W[dj];B[fj] ;W[fi];B[gi];W[gj];B[fk];W[gh];B[cj];W[ei];B[dl];W[em];B[fm] ;W[ci];B[bi];W[ch];B[bs];W[en];B[fn];W[br];B[dr];W[bk];B[bj] ;W[io])goban-1.1.orig/games/Hon-90-2.mgt0000644000175000017500000000222106045540450014067 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]DT[1990-05-28,29]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dp];B[fq];W[cn];B[jp];W[qj];B[fc] ;W[df];B[jc];W[qn];B[np];W[qf];B[nd];W[of];B[dr];W[cq];B[hp] ;W[dk];B[qe];W[rf];B[db];W[cc];B[hd];W[di];B[pn];W[lq];B[nr] ;W[pm];B[qm];W[po];B[on];W[qo];B[pl];W[oo];B[no];W[om];B[nn] ;W[rm];B[ql];W[rl];B[nl];W[kp];B[jq];W[mm];B[nm];W[km];B[em] ;W[dm];B[ej];W[el];B[eg];W[dg];B[dj];W[cj];B[ci];W[bi];B[ei] ;W[dh];B[qk];W[rk];B[pj];W[qi];B[nf];W[ng];B[og];W[oh];B[mg] ;W[pg];B[mf];W[kk];B[re];W[oe];B[od];W[he];B[ge];W[gd];B[fd] ;W[gf];B[gc];W[ff];B[jj];W[kj];B[ji];W[il];B[hk];W[ik];B[hj] ;W[gm];B[ie];W[hg];B[jg];W[op];B[oq];W[qq];B[cr];W[mq];B[nq] ;W[ok];B[ol];W[if];B[jf];W[pr];B[pq];W[qp];B[kq];W[lo];B[lr] ;W[cb];B[hf];W[se];B[sd];W[sf];B[rd];W[gh];B[ck];W[bj];B[ig] ;W[hi];B[ij];W[br];B[ek];W[dl];B[eh];W[ef];B[dq];W[cp];B[bs] ;W[ar];B[qr];W[rr];B[ep];W[eo];B[fo];W[fn];B[en];W[do];B[gn] ;W[fm];B[ec];W[go];B[fp];W[ho];B[ko];W[lp];B[gp];W[io];B[jo] ;W[ln];B[ca];W[ba];B[da];W[dc];B[eb];W[mr];B[ms];W[bb];B[li] ;W[mi];B[bq];W[bp];B[lh];W[fk];B[fj];W[gk];B[gj];W[hl];B[oj] ;W[nk];B[jm];W[mk];B[ni];W[nh];B[mj];W[ki])goban-1.1.orig/games/M-73-5.sgf0000644000175000017500000000251206253434676013553 0ustar alal( ; EV[12th Meijin Title] RO[5] PB[Rin Kaiho] BR[Meijin] PW[Ishida Yoshio] WR[Honinbo] DT[Oct 2/3, 1973] PC[Tokyo] RE[B+R] KM[5] ;B[qe];W[qq];B[cp];W[dd];B[pc];W[eq];B[hp];W[en];B[cm];W[dl] ;B[dm];W[em];B[el];W[dj];B[dk];W[ek];B[cl];W[fl];B[ej];W[dl] ;B[ck];W[fj];B[ei];W[fi];B[eh];W[fg];B[eg];W[ef];B[df];W[ff] ;B[lq];W[kc];B[fh];W[gh];B[cg];W[de];B[jd];W[kd];B[je];W[ke] ;B[jf];W[ib];B[kf];W[cf];B[dg];W[bf];B[bg];W[jq];B[jp];W[iq] ;B[ip];W[hq];B[kq];W[hg];B[mf];W[qj];B[dq];W[er];B[gq];W[gr] ;B[jr];W[ir];B[is];W[hr];B[fq];W[gp];B[fp];W[ep];B[fr];W[kr] ;B[fs];W[js];B[fo];W[dp];B[lr];W[ks];B[bo];W[cq];B[bq];W[dn] ;B[cr];W[pn];B[qh];W[oj];B[oq];W[op];B[pq];W[qp];B[bd];W[cc] ;B[mc];W[me];B[ji];W[im];B[km];W[kl];B[ll];W[kk];B[jm];W[il] ;B[lk];W[kj];B[mm];W[oe];B[nf];W[lf];B[lg];W[le];B[mh];W[ne] ;B[pd];W[pg];B[qg];W[lj];B[ph];W[kh];B[ki];W[li];B[jh];W[in] ;B[ko];W[lh];B[kg];W[ig];B[jg];W[oh];B[nh];W[og];B[nj];W[pe] ;B[mj];W[ob];B[nb];W[oc];B[pb];W[nc];B[oa];W[be];B[hi];W[ij] ;B[gi];W[ii];B[hh];W[ih];B[gg];W[he];B[gk];W[gn];B[hd];W[gc] ;B[gd];W[fd];B[hc];W[gb];B[hb];W[ha];B[jc];W[kb];B[jb];W[ja] ;B[ae];W[af];B[ag];W[ad];B[ri];W[rj];B[qr];W[rr];B[pr];W[go] ;B[es];W[nk];B[mk];W[qd];B[re];W[mb];B[na];W[ma];B[pa];W[ka] ;B[rs];W[rq];B[pp];W[po];B[oo];W[on];B[ls];W[hs];B[no];W[dr] ;B[ds];W[nl];B[nm];W[om];B[sj] ) goban-1.1.orig/games/M-91-3.mgt0000644000175000017500000000326306252627042013553 0ustar alal(;GM[1]VW[]FF[3]DT[1991-10-02,03]SZ[19]PB[Rin Kaiho]PW[Kobayashi Koichi]KM[5.5]PC[Aomori]RE[W+3.5]ID[91/3]BS[0]WS[0];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[jp];W[qf];B[oe] ;W[qc];B[qd];W[pc];B[md];W[od];B[pe];W[rd];B[re];W[rc];B[pg] ;W[hq];B[cn];W[cp];B[dj];W[ch];B[ho];W[fp];B[pn];W[ei];B[bj] ;W[ej];B[ek];W[fk];B[dk];W[fl];B[bo];W[jl];B[hp];W[iq];B[jq] ;W[jr];B[kr];W[ir];B[fc];W[id];B[fe];W[df];B[if];W[lc];B[cc] ;W[dc];B[db];W[eb];B[cb];W[ec];B[be];W[hf];B[fb];W[fa];B[hb] ;W[gd];B[fd];W[gf];B[ff];W[fg];B[ga];W[ea];B[jc];W[ic];B[ib] ;W[gc];B[gb];W[ig];B[ih];W[gg];B[jg];W[jf];B[hg];W[je];B[kc] ;W[lb];B[ld];W[lf];B[nd];W[oc];B[lh];W[mh];B[li];W[mg];B[ke] ;W[kf];B[nf];W[oj];B[ll];W[pi];B[pk];W[ok];B[qi];W[oi];B[pl] ;W[kb];B[jb];W[le];B[kd];W[qh];B[qg];W[qj];B[ri];W[rh];B[rj] ;W[rf];B[rg];W[kk];B[lk];W[lj];B[ik];W[kj];B[il];W[im];B[jm] ;W[km];B[jn];W[hm];B[gm];W[gl];B[kl];W[jk];B[mm];W[nl];B[di] ;W[dh];B[ij];W[mj];B[fm];W[hl];B[fj];W[gj];B[fi];W[eh];B[gi] ;W[el];B[dm];W[hi];B[hj];W[gh];B[gk];W[fh];B[gj];W[ii];B[ji] ;W[hh];B[jj];W[ki];B[kh];W[mi];B[bq];W[cr];B[in];W[hk];B[jh] ;W[lg];B[oq];W[nm];B[mo];W[ph];B[sf];W[og];B[sh];W[pf];B[sg] ;W[of];B[ng];W[no];B[np];W[oo];B[po];W[ks];B[lr];W[bp];B[ap] ;W[bf];B[ce];W[de];B[cf];W[bg];B[cd];W[br];B[gq];W[gr];B[gp] ;W[fq];B[bi];W[ls];B[ms];W[js];B[mr];W[cg];B[mc];W[mb];B[da] ;W[ae];B[ad];W[af];B[ab];W[ar];B[aq];W[co];B[bm];W[ml];B[lm] ;W[ka];B[qe];W[oh];B[fo];W[eo];B[dl];W[kg];B[mn];W[om];B[en] ;W[cq];B[ao];W[pm];B[qm];W[ci];B[cj];W[ja];B[ia];W[sd];B[se] ;W[ip];B[hn];W[ig];B[ef];W[io];B[jo];W[hc];B[ge];W[he];B[mk] ;W[nk];B[nh];W[ni];B[do];W[dn];B[nb];W[ob];B[do];W[ep];B[ah] ;W[ql];B[qk];W[rl];B[rk];W[op];B[bh];W[dn];B[em];W[do])goban-1.1.orig/games/Hon-56-4.mgt0000644000175000017500000000235406045540246014105 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-07-09,10]BR[Honinbo]WR[8 dan]KM[4.5]RO[4]PC[Tokyo]PB[Takagawa Kaku]PW[Shimamura Toshihiro]RE[B+R]TM[10 h]FF[3];B[pd];W[dp];B[pp];W[ec];B[cd];W[jc];B[df];W[cc];B[bc] ;W[dd];B[ce];W[nq];B[pn];W[jp];B[cn];W[qi];B[cq];W[dq];B[cp] ;W[do];B[cr];W[nc];B[qf];W[ql];B[pb];W[rn];B[qq];W[em];B[cm] ;W[dr];B[hc];W[ld];B[fd];W[no];B[om];W[bb];B[cb];W[db];B[dc] ;W[co];B[bo];W[cc];B[pj];W[qj];B[dc];W[bp];B[bq];W[cc];B[ho] ;W[bn];B[ap];W[cl];B[bm];W[ca];B[hq];W[iq];B[fo];W[dn];B[dl] ;W[hr];B[gq];W[gr];B[jo];W[io];B[in];W[ip];B[hn];W[jn];B[jm] ;W[ko];B[km];W[ee];B[gf];W[fg];B[di];W[fe];B[ge];W[eg];B[dh] ;W[ig];B[jb];W[kb];B[jd];W[ic];B[id];W[ib];B[hh];W[ih];B[hi] ;W[ii];B[hj];W[ij];B[hk];W[kd];B[ro];W[pr];B[rm];W[qm];B[qn] ;W[rl];B[fr];W[fq];B[eq];W[er];B[fp];W[fs];B[ob];W[rg];B[rf] ;W[bd];B[be];W[ac];B[qr];W[jk];B[ik];W[mj];B[qg];W[sm];B[jf] ;W[if];B[ke];W[lg];B[gg];W[oq];B[rh];W[ae];B[bf];W[so];B[rp] ;W[el];B[ek];W[nb];B[kh];W[kg];B[kj];W[jj];B[mi];W[jl];B[il] ;W[li];B[lh];W[mh];B[ki];W[ni];B[jg];W[jh];B[mg];W[lf];B[mk] ;W[ie];B[je];W[lk];B[lj];W[kk];B[mi];W[hd];B[he];W[li];B[gs] ;W[hs];B[mi];W[le];B[gd];W[li];B[de];W[ji];B[ed];W[fk];B[dm] ;W[fn];B[fj];W[af];B[ag];W[ad];B[bg];W[hp];B[gp];W[gk];B[gj] ;W[ri];B[gm];W[pe];B[od])goban-1.1.orig/games/T-15-4.mgt0000644000175000017500000000264406433230560013555 0ustar alal( ; EV[15th Tengen title] RO[4] PB[Cho Chikun] BR[9 dan] PW[Rin Kaiho] WR[9 dan] DT[1989-12-] PC[Japan] RE[W+R] SO[Go Moon 8, 1990] US[Klaus Blumberg] ;B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df];W[fc];B[dj];W[qj] ;B[cn];W[fq];B[ql];W[qf];B[nd];W[oj];B[qh];W[pg];B[rd];W[ph];B[oq];W[lc] ;B[cp];W[cq];B[bq];W[co];B[bp];W[dn];B[bo];W[do];B[dm];W[em];B[dl];W[kp] ;B[dq];W[cr];B[dr];W[eq];B[br];W[cm];B[bn];W[fn];B[ip];W[ek];B[dk];W[kn] ;B[in];W[ho];B[io];W[im];B[hm];W[il];B[go];W[er];B[cs];W[hn];B[kq];W[lq] ;B[lp];W[jq];B[kr];W[jp];B[gn];W[hp];B[iq];W[jr];B[gp];W[hq];B[gq];W[hr] ;B[gr];W[gm];B[hl];W[gl];B[hk];W[ir];B[fo];W[ep];B[el];W[gk];B[gj];W[es] ;B[gd];W[nb];B[pb];W[fd];B[fm];W[fl];B[fj];W[en];B[fe];W[hj];B[ik];W[ij] ;B[jk];W[jj];B[kk];W[kj];B[lk];W[pm];B[lj];W[kh];B[lh];W[lg];B[ki];W[ji] ;B[li];W[jg];B[mg];W[lf];B[mf];W[me];B[ne];W[le];B[qm];W[nf];B[jm];W[qn] ;B[pl];W[on];B[nl];W[ro];B[lr];W[mq];B[mr];W[mm];B[ih];W[jh];B[nj];W[np] ;B[ok];W[qq];B[qi];W[pj];B[rf];W[rg];B[qe];W[sf];B[re];W[rk];B[qp];W[rp] ;B[qr];W[rq];B[pr];W[ge];B[qg];W[mh];B[hs];W[jn];B[lm];W[mn];B[ml];W[om] ;B[jl];W[ol];B[pk];W[im];B[rn];W[rm];B[rl];W[sn];B[sl];W[nh];B[rj];W[gf] ;B[dd];W[cc];B[gg];W[ff];B[fg];W[ri];B[sj];W[pf];B[rh];W[qk];B[sk];W[hg] ;B[hh];W[ig];B[be];W[bd];B[bf];W[gh];B[fh];W[is];B[gs];W[oc];B[pc];W[rr] ;B[ks];W[jo];B[mb];W[mc];B[nc];W[ob];B[fk];W[fm];B[hi];W[lb];B[od];W[ef] ;B[eg];W[mp];B[nr];W[pq];B[rs];W[op];B[oa];W[ma] ) goban-1.1.orig/games/T-13-5.mgt0000644000175000017500000000304506433230414013546 0ustar alal( ; FF[4] EV[13th Tengen title] RO[5] PB[Kobayashi Koichi] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[1987-12] PC[Japan] RE[W+0.5] SO[DGoZ 1/88] US[Klaus Blumberg] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[qo];B[pl];W[pn];B[rp];W[qq] ;B[qp];W[pp];B[op];W[po];B[qr];W[oq];B[pr];W[np];B[ro];W[or] ;B[co];W[ip];B[de];W[dl];B[cc];W[cp];B[do];W[fp];B[fo];W[go] ;B[ep];W[eq];B[fn];W[dp];B[en];W[gp];B[dj];W[fl];B[cl];W[cm] ;B[dm];W[ck];B[bl];W[dk];B[bk];W[cj];B[bj];W[ci];B[db];W[ec] ;B[eb];W[cd];B[dd];W[fc];B[bc];W[em];B[dn];W[bp];B[bo];W[bi] ;B[bm];W[fe];B[jd];W[ph];B[qf];W[pk];B[ol];W[ql];B[qm];W[rl] ;B[pm];W[qg];B[pf];W[rm];B[nn];W[no];B[ok];W[pj];B[on];W[oo] ;B[ln];W[os];B[rr];W[ni];B[lk];W[lo];B[ef];W[hc];B[ic];W[ie] ;B[je];W[ib];B[jb];W[id];B[jc];W[if];B[rg];W[rh];B[pg];W[qh] ;B[jf];W[ig];B[kn];W[mn];B[mm];W[mo];B[ll];W[nm];B[om];W[mf] ;B[me];W[bf];B[be];W[cf];B[ce];W[nf];B[ne];W[sg];B[rf];W[sf] ;B[se];W[sh];B[re];W[fh];B[ik];W[hj];B[jo];W[jp];B[ij];W[ii] ;B[hk];W[gj];B[ji];W[jh];B[eh];W[fg];B[eg];W[ei];B[ff];W[gf] ;B[gk];W[fj];B[ki];W[hb];B[ap];W[aq];B[ao];W[bq];B[fb];W[lf] ;B[fk];W[di];B[ko];W[kp];B[oj];W[oi];B[hn];W[le];B[ld];W[lj] ;B[kj];W[nj];B[rn];W[md];B[nd];W[of];B[oe];W[ml];B[nl];W[mk] ;B[qn];W[li];B[kh];W[og];B[jg];W[ih];B[gb];W[gc];B[lg];W[gl] ;B[hl];W[kd];B[lc];W[ae];B[ad];W[af];B[ek];W[el];B[cg];W[bg] ;B[ch];W[bh];B[ee];W[mg];B[lh];W[mh];B[fd];W[ge];B[ed];W[ke] ;B[kc];W[ga];B[gd];W[hd];B[fa];W[ja];B[ka];W[ho];B[nk];W[mj] ;B[io];W[dh];B[dg];W[gn];B[hm];W[qk];B[ej];W[aj];B[ak];W[ai] ;B[sm];W[sl];B[sn];W[ps];B[qs];W[kf];B[ia];W[ha];B[ja];W[eo] ) goban-1.1.orig/games/M-95-3.mgt0000644000175000017500000000512506252627044013560 0ustar alal(;GM[1]BS[0]WS[0]BL[1800.0]WL[1800.0]SZ[19]DT[1995-10-06]KM[5.5]PB[Takemiya Masaki]PW[Kobayashi Koichi]RE[B+R]FF[3]ID[95/3]BR[9 Dan]WR[9 Dan]RO[3];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[jd];W[qc];B[pc] ;W[qd];B[pe];W[pb];B[ob];W[qb];B[oc];W[qf];B[gd];W[dg];B[jp] ;W[gp];B[pf];W[qg];B[pg];W[mp];B[km];W[mn];B[ll];W[pq];B[qq] ;W[oq];B[qp];W[kq];B[jq];W[kp];B[jo];W[nb];B[oa];W[kc];B[jc] ;W[kd];B[ke];W[le];B[lf];W[me];B[kf];W[mf];B[mg];W[jb];B[ib] ;W[lb];B[ja];W[kb];B[nf];W[ic];B[hb];W[je];B[id];W[md];B[cn] ;W[lg];B[jg];W[ie];B[hd];W[kg];B[jf];W[jh];B[hf];W[ih];B[hg] ;W[ng];B[mh];W[nh];B[mi];W[ni];B[qh];W[mj];B[kh];W[oj];B[pi] ;W[ol];B[ql];W[pm];B[qm];W[pn];B[qn];W[gn];B[cj];W[im];B[ko] ;W[cl];B[cc];W[cd];B[dc];W[ch];B[bl];W[bm];B[cm];W[bk];B[bn] ;W[cp];B[ck];W[al];B[dl];W[bj];B[bl];W[hq];B[lj];W[cl];B[gl] ;W[el];B[bl];W[li];B[lh];W[cl];B[qe];W[re];B[bl];W[lk];B[kj] ;W[cl];B[ek];W[dm];B[bl];W[mk];B[kk];W[cl];B[dk];W[em];B[bl] ;W[jl];B[kl];W[cl];B[fm];W[en];B[bl];W[oh];B[rh];W[sf];B[sg] ;W[rf];B[ph];W[cl];B[rd];W[rc];B[bl];W[pk];B[qk];W[cl];B[rg] ;W[sd];B[bl];W[ec];B[eb];W[cl];B[bi];W[ci];B[bl];W[ln];B[jm] ;W[cl];B[bh];W[bg];B[bl];W[kn];B[jn];W[cl];B[aj] (;W[ah];B[bl];W[ai];B[am];W[fk];B[bp];W[bq];B[bo];W[gk];B[br] ;W[aq];B[cq];W[cr];B[dq];W[dr];B[eq];W[bs];B[op];W[nq];B[ir] ;W[hr];B[kr];W[lr];B[fl];W[fn];B[hl];W[fi];B[hs];W[gs];B[mr] ;W[qr];B[rr];W[ls];B[pr];W[or];B[qs];W[np];B[bd];W[be];B[bc]TB[ac][ab][bb][ba][aa][ca][cb][db][da][ea][fa][ga][ha][hb][hc][ic][id][ie][je][jf][kg][lg][lh][li][sh][si][sj][sk][sl][sm][so][sq][ss][rs][qr][rr][sr][rq][rp][sp][ro][sn][rn][rm][rl][rk][rj][ri][qi][qh][qj][bm][al][an][ao]TC[5]TW[br][as][cs][ds][dr][er][es][fr][gr][gq][fq][eq][dq][cq][fp][mq][mr][ms][nq][nr][lq][nj][se][sd][rd][rc][sc][rb][sb][sa][ra][ld][lc][mc][mb][aj][bi][bh][bg][ag][af][bf][cg][cf][ce] ;W[ed];B[fc];W[ij];B[il];W[fb];B[db];W[fg];B[gh];W[gi];B[fh] ;W[eh];B[ej];W[ei];B[fe];W[ee];B[ff];W[ho];B[jj];W[ik];B[jk] ;W[hh];B[is];W[ar];B[do];W[ep];B[eo];W[fp];B[gg];W[ji];B[hm] ;W[fo];B[pl];W[ok];B[ef];W[in];B[ki];W[df];B[gr];W[fs];B[nm]TB[bm][al][an][li][lh][lg][kg][je][ie][he][ge][gf][ic][hc][hb][ha][gb][ga][fa][fb][ea][da][ca][ba][aa][ab][ac][bb][cb][sh][si][sj][sk][sm][sn][so][sp][sq][sr][ss][rs][rr][qr][rq][rp][ro][rn][rm][rl][sl][rk][rj][qj][qi][ri]TC[6]TW[as][br][cs][dr][dq][cq][ep][eq][es][ds][er][fr][gr][gq][fq][go][mr][ms][nr][mq][ns][se][sd][rd][sc][sb][rb][ra][sa][ld][lc][mc][mb][la][aj][bi][bh][bg][ag][af][bf][cg][cf][ce][de][ii][hi] ;W[mm];B[ml];W[nl];B[nj];W[nk];B[oi];W[om];B[og];W[nj];B[no] ;W[nn];B[lo];W[mo];B[oo]) (;W[bl];B[ai];W[ag];B[an];W[ah];B[am];W[ak];B[bi]))goban-1.1.orig/games/Hon-75-4.sgf0000644000175000017500000000220506243711236014070 0ustar alal( ; EV[30th Honinbo 1975] RO[4] DT[1975-06-16] PB[Sakata Eio] PW[Ishida Yoshio] RE[B+R] KM[5.5] TM[9 hours each] ;B[pd];W[cq];B[pq];W[cc];B[qk];W[nc];B[pf];W[jd];B[dp] ;W[dq];B[ep];W[bo];B[eq];W[dn];B[ip];W[ko];B[np];W[ed];B[in] ;W[ok];B[km];W[om];B[qm];W[mo];B[mm];W[nn];B[pn];W[mp];B[nq] ;W[pm];B[ql];W[oi];B[lj];W[po];B[qo];W[jp];B[jq];W[nh];B[nd] ;W[md];B[ne];W[io];B[ho];W[jo];B[iq];W[mg];B[lf];W[lg];B[ld] ;W[hn];B[im];W[gn];B[nj];W[oj];B[nl];W[pk];B[me];W[hj];B[ki] ;W[jg];B[go];W[fo];B[fp];W[kf];B[ii];W[hh];B[kh];W[kg];B[ih] ;W[hg];B[cd];W[dd];B[ce];W[bc];B[di];W[hi];B[en];W[hl];B[il] ;W[dk];B[ck];W[cj];B[dj];W[ci];B[ek];W[dl];B[el];W[em];B[ch] ;W[bk];B[bh];W[cl];B[eh];W[dg];B[ef];W[eg];B[fg];W[df];B[dh] ;W[fm];B[de];W[ff];B[cf];W[ee];B[cg];W[ef];B[fi];W[kc];B[mb] ;W[qc];B[rd];W[nb];B[kb];W[jb];B[na];W[qd];B[re];W[oa];B[ma] ;W[ae];B[ad];W[qe];B[qf];W[pe];B[pb];W[pc];B[qb];W[bd];B[be] ;W[qp];B[qq];W[nk];B[mk];W[rc];B[rb];W[ll];B[lm];W[jn];B[ij] ;W[jh];B[ji];W[qh];B[rg];W[kq];B[er];W[jr];B[ir];W[lr];B[cp] ;W[bp];B[js];W[ks];B[kr];W[af];B[ag];W[jr];B[is];W[oo];B[pp] ;W[ds];B[kr];W[ac];B[bi];W[jr];B[es];W[lb];B[mc] C[167 moves complete.] ) goban-1.1.orig/games/M-66-3.sgf0000644000175000017500000000350006261340052013530 0ustar alal( ; GM[1] EV[5th Meijin Title Match] RO[3] PB[Sakata Eio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Aug 23/24, 1966] PC[Yanagakawa] RE[B+1] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[cp];B[oc];W[qo];B[pm];W[on];B[mq] ;W[ce];B[eq];W[pi];B[qg];W[jd];B[dm];W[do];B[gp];W[dq] ;B[ep];W[dr];B[pk];W[qq];B[qr];W[pp];B[oq];W[rq];B[lc] ;W[oh];B[mk];W[lh];B[db];W[ec];B[ke];W[if];B[kg];W[mm] ;B[lj];W[kh];B[je];W[ie];B[jg];W[ji];B[jh];W[ki];B[oj] ;W[pg];B[qh];W[qc];B[rd];W[pc];B[pd];W[ng];B[id];W[hd] ;B[ic];W[ob];B[nc];W[hc];B[ib];W[rc];B[nb];W[dj];B[hh] ;W[kk];B[ll];W[jm];B[jp];W[lp];B[no];W[om];B[km];W[ik] ;B[jn];W[im];B[ln];W[np];B[op];W[oo];B[mp];W[fn];B[cj] ;W[ck];B[bk];W[ci];B[bj];W[dk];B[cl];W[bm];B[bn];W[cn] ;B[cm];W[bo];B[bl];W[an];B[en];W[eo];B[fm];W[di];B[gn] ;W[fo];B[hm];W[go];B[ho];W[gl];B[gm];W[in];B[hn];W[el] ;B[em];W[hb];B[cc];W[bb];B[rr];W[rm];B[gg];W[ff];B[rk] ;W[ql];B[pl];W[qk];B[qj];W[rl];B[pn];W[po];B[rj];W[ro] ;B[er];W[oa];B[rb];W[sb];B[qb];W[pb];B[qa];W[ra];B[sa] ;W[ia];B[jc];W[ra];B[bc];W[cb];B[sa];W[jb];B[kc];W[ra] ;B[qn];W[rn];B[sa];W[es];B[fs];W[ds];B[ni];W[nh];B[mi] ;W[lg];B[gk];W[gj];B[hk];W[hj];B[fk];W[fj];B[sc];W[gq] ;B[fp];W[iq];B[gr];W[hp];B[hr];W[hq];B[ir];W[jq];B[kq] ;W[kp];B[ip];W[lq];B[jr];W[jo];B[fq];W[mo];B[nq];W[kn] ;B[lr];W[pj];B[mn];W[lm];B[nm];W[kl];B[ml];W[km];B[nn] ;W[ol];B[nl];W[ok];B[bh];W[bi];B[ai];W[bf];B[gf];W[ge] ;B[ko];W[pf];B[cg];W[qf];B[rf];W[re];B[rg];W[qe];B[se] ;W[df];B[eg];W[ef];B[kb];W[ja];B[me];W[sr];B[oe];W[il] ;B[oi];W[ph];B[ek];W[hl];B[fl];W[lf];B[dg];W[fg];B[fh] ;W[fi];B[eh];W[le];B[ld];W[bg];B[cf];W[be];B[ch];W[ag] ;B[ah];W[ne];B[nf];W[mf];B[nd];W[of];B[ne];W[qi];B[ri] ;W[rs];B[pr];W[sk];B[sj];W[sl];B[al];W[am];B[ka];W[ha] ;B[ii];W[ij];B[hf];W[he];B[io];W[ig];B[ih];W[kj];B[mh] ;W[mg];B[dl];W[nk];B[jn];W[sq];B[qs];W[ss];B[dp];W[dn] ;B[jo] ) goban-1.1.orig/games/T-13-3.mgt0000644000175000017500000000164506424551262013557 0ustar alal( ; EV[13th Tengen Title] RO[3] PB[Cho Chikun] BR[9 dan] PW[Kobayashi Koichi] WR[Tengen] KM[5.5] DT[1987-12-09] PC[Iida City, Nagano Pref., Japan] RE[B+R] ;B[pd];W[dd];B[pq];W[cp];B[eq];W[qo];B[op];W[qq];B[qr] ;W[qp];B[or];W[ql];B[dn];W[do];B[eo];W[cn];B[dm];W[cm];B[dl] ;W[cl];B[dk];W[cj];B[jp];W[nc];B[qf];W[jc];B[cq];W[bq];B[ei] ;W[in];B[jn];W[ip];B[io];W[ho];B[jo];W[iq];B[gq];W[gp];B[fp] ;W[jq];B[pn];W[qn];B[dp];W[co];B[hq];W[hr];B[gr];W[kp];B[ln] ;W[lo];B[lq];W[kq];B[mn];W[lr];B[mq];W[hs];B[js];W[ks];B[jr] ;W[mr];B[ms];W[nq];B[nr];W[np];B[kr];W[no];B[pm];W[kn];B[jm] ;W[km];B[pl];W[qm];B[kl];W[jl];B[il];W[jk];B[im];W[ko];B[ll] ;W[oo];B[po];W[pp];B[oq];W[ml];B[mk];W[lm];B[nl];W[mm];B[lj] ;W[nk];B[ok];W[nj];B[li];W[kj];B[lk];W[oi];B[qk];W[qi];B[ri] ;W[rh];B[rj];W[qh];B[rl];W[rm];B[nm];W[nn];B[sh];W[si];B[sj] ;W[rg];B[om];W[pj];B[pk];W[sl];B[rk];W[hp];B[hn];W[gn];B[gm] ;W[sm];B[ls];W[mo];B[rq];W[rp];B[rr];W[sp];B[ir] ) goban-1.1.orig/games/Hon-45-6.sgf0000644000175000017500000000307106243707044014073 0ustar alal( ; GM[1] VW[] RO[6] US[Converted by sgf2misc-2.5] ID[ 3/6] FF[3] PB[Iwamoto Kaoru] BR[7 dan] PW[Hashimoto Utaro] WR[7 dan] DT[1945-11-23,24] PC[Meguro, Tokyo] RE[B+R] KM[0] TM[12h] ;B[qd];W[dc];B[pq];W[oc];B[co];W[qo];B[pe];W[ep];B[dq];W[eq] ;B[dr];W[cf];B[qk];W[op];B[oq];W[qq];B[np];W[qp];B[ip];W[em] ;B[cm];W[jc];B[nd];W[mc];B[nj];W[qm];B[nn];W[dk];B[ef];W[de] ;B[id];W[ic];B[hd];W[ke];B[hg];W[cl];B[dm];W[el];B[di];W[eg] ;B[dg];W[ff];B[eh];W[fg];B[fh];W[fe];B[gh];W[do];B[dp];W[eo] ;B[bm];W[bh];B[cj];W[hm];B[ql];W[om];B[in];W[im];B[hn];W[gm] ;B[hc];W[lq];B[lp];W[kp];B[lo];W[jp];B[jn];W[mq];B[oo];W[iq] ;B[hq];W[hp];B[gp];W[hr];B[ho];W[gr];B[er];W[jf];B[if];W[ih] ;B[ig];W[pj];B[ok];W[qj];B[fn];W[hj];B[qr];W[rr];B[rm];W[rn] ;B[pm];W[pn];B[qn];W[pg];B[jg];W[jj];B[rg];W[ng];B[lf];W[qm] ;B[nc];W[nb];B[ob];W[pb];B[mb];W[oa];B[lc];W[od];B[md];W[oe] ;B[pf];W[of];B[ph];W[le];B[jd];W[oh];B[qg];W[pi];B[qh];W[ni] ;B[pk];W[ri];B[rb];W[gb];B[hb];W[nm];B[lj];W[kl];B[lm];W[me] ;B[ll];W[km];B[kn];W[kc];B[kd];W[ld];B[kb];W[fc];B[qn];W[on] ;B[no];W[qm];B[gk];W[gj];B[fj];W[gn];B[fo];W[fk];B[fl];W[ek] ;B[fm];W[gl];B[en];W[bl];B[qn];W[hh];B[gg];W[qm];B[eb];W[fb] ;B[qn];W[nr];B[cd];W[cg];B[or];W[qm];B[ed];W[fd];B[qn];W[qs] ;B[ps];W[qm];B[ns];W[ms];B[nq];W[os];B[cc];W[db];B[ns];W[mr] ;B[qn];W[pr];B[bi];W[ee];B[mh];W[mi];B[li];W[ji];B[hi];W[gi] ;B[qr];W[qm];B[qc];W[lg];B[mg];W[kg];B[mf];W[lb];B[la];W[ne] ;B[mc];W[kf];B[lh];W[kh];B[ma];W[og];B[qn];W[pr];B[jh];W[mk] ;B[mj];W[lk];B[ml];W[ki];B[ii];W[rk];B[kk];W[jk];B[rl];W[fi] ;B[qr];W[rs];B[ro];W[rp];B[sn];W[sp];B[ch];W[po];B[ir];W[jq] ;B[fr]) goban-1.1.orig/games/Hon-66-4.mgt0000644000175000017500000000252706045540374014112 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1966-05-25,26]PB[Sakata Eio]PW[Fujisawa Shuko]RE[B+R]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[dp];B[oc];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qn];W[pn];B[pm];W[qq];B[pr];W[rq];B[qr];W[qm];B[ql] ;W[rr];B[or];W[rm];B[rn];W[rl];B[rp];W[qk];B[om];W[no];B[nq] ;W[nn];B[ok];W[qh];B[lp];W[ml];B[nj];W[lj];B[nh];W[ln];B[qf] ;W[qg];B[rf];W[dj];B[fq];W[ip];B[fo];W[dn];B[dr];W[cq];B[fm] ;W[in];B[cr];W[dl];B[fc];W[id];B[cc];W[cd];B[dc];W[ed];B[fd] ;W[ec];B[eb];W[db];B[cb];W[fb];B[da];W[fe];B[ge];W[gd];B[gc] ;W[gb];B[hc];W[hd];B[ib];W[ff];B[lh];W[jb];B[hb];W[ia];B[fa] ;W[ld];B[mc];W[og];B[ng];W[pf];B[ne];W[oe];B[od];W[pe];B[rg] ;W[rh];B[qj];W[rj];B[pk];W[pl];B[qi];W[so];B[sp];W[sn];B[sr] ;W[oi];B[oh];W[rs];B[sq];W[sm];B[qs];W[ph];B[pi];W[ri];B[pj] ;W[sh];B[di];W[ej];B[df];W[be];B[cg];W[ef];B[cj];W[ck];B[ei] ;W[ci];B[eg];W[bj];B[bf];W[gf];B[gi];W[jh];B[ki];W[hj];B[gg] ;W[hf];B[fk];W[jk];B[kk];W[kj];B[ji];W[jj];B[ih];W[lb];B[jg] ;W[qc];B[rd];W[rc];B[rb];W[sb];B[ke];W[kd];B[pc];W[qb];B[ra] ;W[oa];B[nb];W[pd];B[pb];W[pa];B[sd];W[na];B[sc];W[gp];B[co] ;W[br];B[bq];W[bp];B[do];W[ep];B[fp];W[eo];B[aq];W[ap];B[cp] ;W[dq];B[en];W[ar];B[bq];W[aq];B[eq];W[bq];B[dm];W[cn];B[cm] ;W[bn];B[hq];W[iq];B[ir];W[jr];B[hr];W[lr];B[lq];W[mr];B[kq] ;W[jq];B[kr];W[ks];B[mq];W[gn];B[fn];W[el];B[em];W[bm];B[kn] ;W[km];B[ko];W[ol];B[im];W[jm];B[io];W[ho];B[hm])goban-1.1.orig/games/M-71-1.sgf0000644000175000017500000000236406252650564013545 0ustar alal( ; GM[1] EV[10th Meijin Title Match] RO[1] PB[Fujisawa Shuko] BR[Meijin] PW[Rin Kaiho] WR[9 dan] DT[1971/08/21,22] PC[Tokyo] RE[W+R] KM[5] SZ[19] ;B[qd];W[dd];B[cp];W[pq];B[oc];W[eq];B[qo];W[pl];B[no];W[oo] ;B[on];W[op];B[pn];W[nn];B[nm];W[mn];B[ol];W[pj];B[nq];W[np] ;B[mo];W[mp];B[lo];W[kq];B[ph];W[ln];B[ko];W[kn];B[jo];W[kl] ;B[jq];W[jr];B[iq];W[ir];B[kr];W[lr];B[im];W[hq];B[hp];W[jk] ;B[nj];W[do];B[ik];W[ij];B[hk];W[ji];B[kj];W[jj];B[gj];W[gh] ;B[dj];W[co];B[hh];W[gi];B[hi];W[hj];B[fk];W[hg];B[ih];W[gg] ;B[ig];W[kg];B[if];W[mj];B[ge];W[dg];B[ke];W[mi];B[oj];W[nh] ;B[pi];W[nd];B[me];W[od];B[mg];W[ng];B[of];W[pc];B[pd];W[ob] ;B[nf];W[lf];B[mf];W[jm];B[jn];W[ml];B[rq];W[kp];B[il];W[nl] ;B[ok];W[ki];B[cd];W[de];B[cc];W[dc];B[bf];W[gc];B[qc];W[le] ;B[kd];W[ld];B[lc];W[nc];B[hc];W[hb];B[ic];W[ib];B[jb];W[gd] ;B[ia];W[gb];B[he];W[gp];B[gq];W[hr];B[dp];W[eo];B[dq];W[hn] ;B[cf];W[fe];B[jl];W[km];B[in];W[er];B[dr];W[bo];B[bp];W[qb] ;B[ci];W[pe];B[qe];W[rc];B[rd];W[qf];B[pf];W[sd];B[oe];W[re] ;B[pe];W[rb];B[rf];W[br];B[ao];W[bm];B[bs];W[kc];B[kf];W[lb] ;B[lg];W[mc];B[kh];W[rr];B[rp];W[ce];B[be];W[cb];B[bb];W[bc] ;B[bd];W[ba];B[ab];W[jc];B[bk];W[go];B[qr];W[pr];B[rs];W[dl] ;B[ff];W[eg];B[ee];W[fd];B[ef];W[df];B[gf];W[fj] ) goban-1.1.orig/games/T-16-1.mgt0000644000175000017500000000240106433230632013542 0ustar alal( ; EV[16th Tengen title] RO[1] PB[Kobayashi Koichi] BR[Kisei, Meijin, Gosei] PW[Rin Kaiho] WR[Tengen] KM[5.5] DT[1990] PC[Hokkaido, Japan] RE[B+R] SO[Go-Moon, Feb. '91] US[Klaus Blumberg] ;B[pd];W[dd];B[pq];W[dp];B[qo];W[jp];B[cn];W[cl];B[cq];W[dq];B[cp];W[do] ;B[bn];W[em];B[fc];W[id];B[cf];W[ee];B[cc];W[dc];B[cd];W[dg];B[de];W[ed] ;B[ef];W[df];B[ce];W[cg];B[ff];W[ge];B[db];W[gd];B[fh];W[dj];B[ih];W[eb] ;B[cb];W[nc];B[pf];W[bf];B[fb];W[ec];B[be];W[kh];B[ji];W[ki];B[jj];W[lk] ;B[jl];W[cr];B[br];W[dr];B[bl];W[bk];B[dl];W[dm];B[cm];W[ck];B[pi];W[nq] ;B[km];W[ne];B[oc];W[nb];B[lq];W[lp];B[kq];W[kp];B[jq];W[mq];B[iq];W[ip] ;B[gq];W[hp];B[fr];W[mm];B[gk];W[qk];B[qm];W[lr];B[kr];W[nr];B[hq];W[bs] ;B[am];W[fj];B[gj];W[qc];B[qd];W[pc];B[od];W[ob];B[ok];W[pl];B[nm];W[pn] ;B[nn];W[qn];B[rn];W[po];B[qp];W[ol];B[nl];W[nk];B[ml];W[pj];B[oi];W[oj] ;B[qi];W[mk];B[mp];W[rm];B[np];W[oq];B[op];W[pr];B[qr];W[ro];B[os];W[gn] ;B[ea];W[hb];B[rc];W[rb];B[qb];W[pb];B[sb];W[ra];B[re];W[rq];B[pp];W[rp] ;B[bg];W[bh];B[af];W[rr];B[or];W[bq];B[bp];W[ar];B[fi];W[rj];B[di];W[ej] ;B[ch];W[ri];B[rh];W[ng];B[bi];W[rg];B[qg];W[sh];B[qh];W[ig];B[hg];W[if] ;B[fm];W[el];B[fn];W[fo];B[gm];W[fp];B[hn];W[go];B[nh];W[og];B[mh];W[mg] ;B[hf];W[he];B[jh];W[jg];B[jn];W[ln];B[lh];W[lg];B[rf];W[bj];B[ci] ) goban-1.1.orig/games/Hon-80-3.mgt0000644000175000017500000000217406045540434014100 0ustar alal (;GM[1]SZ[19]DT[1980-06-11,12]PC[Nagano]RE[B+R]PB[Kato Masao]PW[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[pk];W[jq];B[jd];W[qf];B[qe] ;W[pf];B[nd];W[qi];B[rj];W[ri];B[qj];W[pi];B[nk];W[ni];B[mp] ;W[jo];B[fc];W[cf];B[cn];W[cp];B[ck];W[qo];B[kp];W[jp];B[qp] ;W[oo];B[mn];W[nm];B[ll];W[nn];B[ro];W[oq];B[kn];W[qn];B[rn] ;W[nr];B[lr];W[pr];B[qr];W[rm];B[pp];W[qm];B[oj];W[rr];B[ps] ;W[os];B[or];W[ol];B[oi];W[pr];B[op];W[np];B[or];W[oh];B[nq] ;W[ok];B[gp];W[go];B[ho];W[fp];B[hq];W[hn];B[gn];W[fo];B[in] ;W[hm];B[io];W[gq];B[hp];W[gr];B[hr];W[dm];B[nj];W[pj];B[cm] ;W[dl];B[bj];W[db];B[rf];W[rg];B[nh];W[mi];B[og];W[ph];B[lj] ;W[oc];B[od];W[nc];B[pc];W[lc];B[ld];W[kc];B[jc];W[kd];B[ke] ;W[md];B[me];W[le];B[lf];W[je];B[ld];W[jb];B[ib];W[le];B[kf] ;W[kb];B[hc];W[mb];B[if];W[ng];B[im];W[hl];B[ob];W[nb];B[bo] ;W[hs];B[is];W[gs];B[ir];W[bp];B[dn];W[en];B[bg];W[cg];B[fm] ;W[dk];B[em];W[eq];B[fk];W[di];B[dj];W[ej];B[cj];W[ek];B[hk] ;W[ci];B[bi];W[bh];B[ah];W[ch];B[ap];W[gm];B[fn];W[fl];B[eo] ;W[el];B[en];W[aq];B[il];W[gl];B[ao];W[br];B[mh];W[mf];B[lh] ;W[ne];B[ei];W[fi];B[eh];W[fh];B[eg];W[hj];B[fg];W[ik];B[de] ;W[ce];B[gh])goban-1.1.orig/games/Hon-52-3.mgt0000644000175000017500000000266206045540240014074 0ustar alal (;GM[1]SZ[19]DT[1952-07-23,24]RE[B+R]PB[Takagawa Kaku]PW[Hashimoto Utaro]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dc];B[pp];W[dq];B[do];W[ce];B[jd];W[qj];B[fp] ;W[co];B[cp];W[dp];B[cq];W[cr];B[br];W[dr];B[bo];W[cn];B[bn] ;W[eo];B[dn];W[cm];B[dm];W[cl];B[dl];W[ck];B[dk];W[cj];B[dj] ;W[bs];B[aq];W[ci];B[fq];W[ep];B[gn];W[fo];B[go];W[hq];B[er] ;W[ar];B[as];W[gr];B[fr];W[ar];B[bq];W[ap];B[as];W[es];B[hp] ;W[ar];B[bp];W[fs];B[jq];W[iq];B[jp];W[ip];B[io];W[jo];B[in] ;W[jr];B[kr];W[ir];B[lq];W[op];B[oo];W[lp];B[ko];W[mq];B[mr] ;W[oq];B[pn];W[nr];B[mp];W[pq];B[qp];W[no];B[om];W[np];B[nq] ;W[qq];B[mq];W[rp];B[ro];W[rq];B[qh];W[di];B[fn];W[bm];B[ec] ;W[hd];B[dd];W[cc];B[he];W[ge];B[hf];W[gd];B[gf];W[id];B[je] ;W[ff];B[fg];W[ef];B[jc];W[oj];B[rm];W[nl];B[nm];W[nh];B[ph] ;W[mm];B[pk];W[ne];B[pj];W[ie];B[if];W[jf];B[kf];W[jg];B[kg] ;W[hh];B[kh];W[le];B[ke];W[ig];B[pc];W[pe];B[qe];W[mj];B[mn] ;W[mc];B[kj];W[pf];B[qf];W[pg];B[qg];W[nf];B[mg];W[ng];B[nd] ;W[nc];B[md];W[ld];B[od];W[lf];B[mh];W[oh];B[as];W[cs];B[en] ;W[ar];B[hs];W[gs];B[gp];W[an];B[as];W[ks];B[eq];W[ar];B[or] ;W[pr];B[as];W[ds];B[gq];W[ar];B[ns];W[ps];B[as];W[hr];B[is] ;W[ar];B[sp];W[sq];B[as];W[js];B[ls];W[ar];B[rr];W[rs];B[as] ;W[kp];B[jn];W[ar];B[sr];W[qr];B[as];W[ll];B[lb];W[lc];B[kb] ;W[ok];B[is];W[ar];B[lk];W[pl];B[mk];W[pi];B[qk];W[rk];B[ql] ;W[qi];B[ri];W[rj];B[rh];W[ob];B[pb];W[pa];B[rb];W[mb];B[as] ;W[qb];B[rc];W[ar];B[mf];W[me];B[as];W[ol];B[ml];W[nn];B[lm] ;W[pm];B[on];W[ar];B[qn])goban-1.1.orig/games/Hon-97-1.mgt0000644000175000017500000000123306363326712014105 0ustar alal( ; EV[52nd Honinbo title] RO[1st game] PB[Kato Masao] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[12/13 May 1997] PC[Japan] RE[W+R] SY[Written by GoBase-0.0.9] ;B[qd];W[dp];B[cd];W[pp];B[nc];W[qi];B[ed];W[dj];B[fq];W[hq] ;B[fo];W[dn];B[ip];W[hp];B[ho];W[io];B[iq];W[go];B[hn];W[gp] ;B[gn];W[fp];B[hr];W[fn];B[kp];W[jo];B[jm];W[im];B[in];W[jn] ;B[il];W[hm];B[gm];W[hl];B[fm];W[km];B[en];W[eo];B[jl];W[hk] ;B[dm];W[fn];B[em];W[bn];B[kl];W[lo];B[fk];W[gr];B[mq];W[oq] ;B[bm];W[kq];B[kr];W[ll];B[lm];W[ko];B[lk];W[ml];B[mm];W[mk] ;B[no];W[nm];B[mn];W[lq];B[lr];W[lp];B[mr];W[mp];B[np];W[jr] ;B[ir];W[jq];B[js];W[ks];B[is];W[nq];B[gq];W[fr];B[eq];W[er] ;B[dq];W[cq] ) goban-1.1.orig/games/Hon-51-4.sgf0000644000175000017500000000170006243707320014060 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[ 6/4] FF[3] PB[Hashimoto Utaro] PW[Sakata Eio] DT[1951-05-17,18] RE[W+R] KM[4.5] ;B[qd];W[dc];B[od];W[qp];B[dp];W[nq];B[ce];W[qi];B[cm];W[ed] ;B[kc];W[ic];B[dg];W[cd];B[de];W[bd];B[qn];W[ql];B[qq];W[pp] ;B[rp];W[ro];B[rq];W[qo];B[or];W[nr];B[oq];W[op];B[pq];W[mo] ;B[eq];W[dj];B[ip];W[em];B[el];W[eh];B[ff];W[dl];B[dm];W[en] ;B[cl];W[dk];B[fl];W[gn];B[dh];W[fj];B[gm];W[hn];B[im];W[in] ;B[jm];W[jn];B[km];W[jj];B[hj];W[gh];B[hm];W[kn];B[ii];W[hg] ;B[gp];W[co];B[do];W[fm];B[bj];W[ji];B[kk];W[gk];B[li];W[jh] ;B[pj];W[ni];B[nk];W[pi];B[pl];W[qj];B[mi];W[nj];B[mj];W[nh] ;B[lg];W[kf];B[dn];W[ci];B[ei];W[gl];B[fi];W[gi];B[fh];W[mc] ;B[lf];W[pc];B[oc];W[ob];B[pd];W[qb];B[ke];W[nc];B[qc];W[pb] ;B[me];W[ge];B[rb];W[ra];B[rc];W[ld];B[kd];W[lb];B[kb];W[na] ;B[gj];W[fk];B[hk];W[hl];B[ik];W[gf];B[bi];W[jk];B[il];W[ll] ;B[kl];W[lm];B[lk];W[le];B[jf];W[mf];B[mg];W[jg];B[kg];W[nf] ;B[ib];W[pf];B[hc];W[ng];B[fe];W[gc]) goban-1.1.orig/games/Hon-52-5.mgt0000644000175000017500000000222406045540240014070 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1952-08-20,21]BR[7 Dan]WR[8 Dan]KM[4.5]RO[5]PC[Tsurumaki]PB[Takagawa Kaku]PW[Hashimoto Utaro]RE[B+R]TM[11h]FF[3];B[pd];W[dp];B[pp];W[cc];B[fq];W[nc];B[pf];W[jd];B[cn] ;W[dn];B[dm];W[en];B[co];W[cp];B[cj];W[jq];B[gp];W[eq];B[ep] ;W[er];B[do];W[eo];B[fp];W[em];B[cm];W[cr];B[ip];W[ek];B[di] ;W[jp];B[in];W[ei];B[eh];W[fi];B[dg];W[jo];B[gm];W[jl];B[ik] ;W[fh];B[gk];W[dj];B[ck];W[fm];B[ce];W[ed];B[fg];W[gg];B[ff] ;W[qn];B[nq];W[hh];B[jk];W[kl];B[kk];W[lk];B[ll];W[lj];B[lm] ;W[jn];B[im];W[ln];B[mn];W[hq];B[ji];W[gr];B[kh];W[ge];B[qk] ;W[qp];B[qq];W[rq];B[qo];W[rp];B[ro];W[po];B[rn];W[mo];B[kn] ;W[pn];B[rm];W[mq];B[pq];W[nn];B[lo];W[np];B[rr];W[pk];B[pl] ;W[ok];B[jm];W[qj];B[lc];W[jc];B[pb];W[cd];B[de];W[ke];B[mc] ;W[rf];B[qf];W[re];B[qh];W[rg];B[oi];W[qc];B[pc];W[qd];B[rb] ;W[qg];B[pg];W[nf];B[nd];W[rk];B[qi];W[ri];B[rh];W[ph];B[pi] ;W[oh];B[nh];W[og];B[mf];W[sh];B[ng];W[ql];B[bd];W[bc];B[be] ;W[ee];B[ef];W[jg];B[kb];W[jb];B[nr];W[bo];B[bn];W[ho];B[gn] ;W[go];B[io];W[hp];B[rc];W[nj];B[bp];W[bq];B[ao];W[lp];B[lr] ;W[mr];B[ms];W[kr];B[lq];W[mp];B[op];W[kq];B[ls];W[ko];B[ln] ;W[ks];B[ns];W[ml];B[oo];W[mm];B[km];W[no];B[qm];W[pm];B[mi] )goban-1.1.orig/games/M-85-3.mgt0000644000175000017500000000177706252627042013566 0ustar alal(;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1985-10-02,03]RE[B+R]ID[85/3]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[cp];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[eq];W[ce];B[qg];W[jc];B[ql];W[rm];B[pj] ;W[pc];B[pd];W[qj];B[qk];W[rk];B[rl];W[sl];B[rj];W[sk];B[qh] ;W[ri];B[pi];W[rh];B[rg];W[dn];B[hp];W[dj];B[mn];W[mc];B[ol] ;W[nn];B[nm];W[no];B[mo];W[om];B[nl];W[op];B[np];W[pl];B[pk] ;W[qm];B[lp];W[if];B[ee];W[dg];B[eg];W[dh];B[hd];W[ie];B[ic] ;W[jb];B[ec];W[dd];B[ed];W[ob];B[pb];W[nc];B[od];W[pa];B[fn] ;W[dq];B[ep];W[el];B[fl];W[em];B[fm];W[jj];B[eb];W[dr];B[qb] ;W[fr];B[hr];W[db];B[id];W[jd];B[ib];W[mf];B[jg];W[ii];B[ke] ;W[kf];B[df];W[cf];B[lf];W[lg];B[jf];W[le];B[je];W[kd];B[ig] ;W[jl];B[jm];W[gq];B[gp];W[km];B[kl];W[im];B[jn];W[ll];B[kk] ;W[jk];B[kn];W[ro];B[rp];W[sp];B[sq];W[so];B[rq];W[eo];B[fo] ;W[hq];B[er];W[ir];B[iq];W[oq];B[or];W[nr];B[pr];W[jq];B[gr] ;W[fq];B[fp];W[ip];B[fs];W[lq];B[kr];W[lr];B[iq];W[kp];B[jr] ;W[hq];B[is];W[lm];B[ln];W[in];B[io];W[lk];B[jo])goban-1.1.orig/games/T-13-4.mgt0000644000175000017500000000223306424551316013552 0ustar alal( ; EV[13th Tengen Title] RO[4] PB[Kobayashi Koichi] BR[Tengen] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[1987-11-27] PC[Kobe City, Hyogo Pref., Japan] RE[W+R] ;B[qd];W[dc];B[cp];W[pq];B[oc];W[qo];B[ce];W[eq];B[iq] ;W[dp];B[co];W[cq];B[bq];W[cr];B[cl];W[do];B[dn];W[en];B[dm] ;W[kq];B[io];W[ed];B[dg];W[qi];B[ic];W[cd];B[be];W[ko];B[im] ;W[qf];B[bc];W[gc];B[oo];W[np];B[qn];W[rn];B[ro];W[rp];B[qp] ;W[so];B[po];W[qm];B[ro];W[hn];B[in];W[qo];B[fc];W[pn];B[fd] ;W[fe];B[gd];W[de];B[df];W[ge];B[hd];W[gg];B[km];W[if];B[on] ;W[lm];B[pm];W[qn];B[nm];W[kn];B[kl];W[ll];B[nk];W[kk];B[ik] ;W[ol];B[nl];W[mj];B[nj];W[ni];B[oi];W[nh];B[oh];W[og];B[mi] ;W[mh];B[mk];W[li];B[lk];W[jk];B[jl];W[ij];B[mn];W[ln];B[mp] ;W[mq];B[no];W[lp];B[pl];W[hk];B[il];W[hj];B[ki];W[jj];B[gp] ;W[pk];B[pj];W[qk];B[ok];W[ql];B[om];W[mo];B[pg];W[pf];B[qh] ;W[qg];B[ph];W[rh];B[mm];W[gr];B[fm];W[eh];B[ci];W[mc];B[oe] ;W[nd];B[od];W[jd];B[kb];W[kc];B[lb];W[fn];B[gm];W[gn];B[fp] ;W[eo];B[hr];W[gq];B[hq];W[jp];B[ho];W[br];B[gk];W[fk];B[gj] ;W[em];B[hl];W[fl];B[hi];W[lj];B[gl];W[kh];B[gh];W[fi];B[gi] ;W[fg];B[fj];W[ej];B[fh];W[ei];B[eg];W[ek];B[jg];W[ih];B[jh] ;W[ii];B[kg];W[ig]C[Black resigns after white 162.] ) goban-1.1.orig/games/Hon-43-2.mgt0000644000175000017500000000130206045540234014064 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1943-07-07,08,09]BR[7 dan]WR[7 dan]KM[4.5]RO[2]PC[Kansui, Shiba, Tokyo]PB[Sekiyama Riichi]PW[Hashimoto Utaro]RE[W+R]FF[3]TM[13h];B[qd];W[dd];B[nc];W[qp];B[eq];W[cp];B[oq];W[kp];B[qm] ;W[po];B[pi];W[np];B[nq];W[mp];B[qr];W[rr];B[kr];W[pr];B[iq] ;W[gc];B[cm];W[do];B[fp];W[fo];B[cj];W[ce];B[pk];W[jc];B[go] ;W[fn];B[ch];W[qf];B[of];W[qh];B[qi];W[og];B[nf];W[oh];B[mh] ;W[ni];B[nk];W[mi];B[lc];W[qc];B[qe];W[lh];B[rc];W[cg];B[dh] ;W[hp];B[ip];W[ho];B[hq];W[gp];B[gq];W[ep];B[fq];W[bg];B[ec] ;W[dc];B[cr];W[io];B[je];W[mk];B[ml];W[lk];B[db];W[cb];B[ge] ;W[hd];B[fc];W[fd];B[gd];W[gb];B[ed];W[fe];B[cc];W[cd];B[ee] ;W[ff];B[ef];W[he];B[eg];W[gf];B[el];W[gl];B[ro];W[nl];B[rp] ;W[qq])goban-1.1.orig/games/M-75-3.mgt0000644000175000017500000000246306252721044013553 0ustar alal(;DT[1975-10-01,02]SZ[19]PB[Otake Hideo]PW[Ishida Yoshio]PC[Chiba]RE[W+R]EV[Meijin match 1975];B[pd];W[dp];B[pq];W[dc];B[de];W[po];B[pl];W[no];B[nq];W[lo];B[lq];W[ce];B[cf];W[cd];B[dg];W[fc];B[ck];W[cm];B[ek];W[qf];B[qh];W[qq];B[qr];W[qp];B[rr];W[of];B[nd];W[qj];B[pj];W[qi];B[pi];W[rh];B[ph];W[qg];B[qk];W[rd];B[qc];W[rk];B[rl];W[rj];B[on];W[nn];B[oo];W[op];B[pn];W[np];B[pp];W[oq];B[pr];W[eq];B[nr];W[lc];B[jp];W[ok];B[pk];W[om];B[pm];W[jo];B[ip];W[kl];B[ge];W[ei];B[ed];W[ec];B[ci];W[nb];B[nf];W[og];B[ld];W[kc];B[oc];W[hd];B[gq];W[co];B[he];W[id];B[rc];W[sl];B[sm];W[sk];B[rm];W[qd];B[ob];W[fg];B[ff];W[eg];B[ef];W[fk];B[fj];W[ej];B[fi];W[gk];B[hj];W[dk];B[el];W[dl];B[dj];W[eh];B[em];W[gg];B[gd];W[gc];B[jd];W[jc];B[hh];W[hg];B[ig];W[if];B[jg];W[hf];B[jl];W[ch];B[bh];W[jm];B[im];W[bg];B[cg];W[dh];B[bf];W[bi];B[ag];W[bj];B[km];W[jn];B[lm];W[lk];B[ml];W[il];B[jk];W[ik];B[jj];W[hn];B[hk];W[hl];B[gl];W[ij];B[ii];W[hm];B[fl];W[mm];B[ll];W[ln];B[ol];W[nm];B[fr];W[be];B[ae];W[ad];B[af];W[er];B[sd];W[re];B[mp];W[mo];B[es];W[ds];B[fs];W[cr];B[ng];W[gh];B[gi];W[cj];B[si];W[sh];B[mb];W[mc];B[nc];W[lb];B[na];W[or];B[os];W[lp];B[mq];W[kf];B[jf];W[kd];B[ke];W[le];B[je];W[md];B[lf];W[hp];B[hq];W[kp];B[kq];W[fq];B[gr];W[nh];B[mh];W[oh];B[mi];W[nl];B[mk];W[mf];B[lg];W[nk];B[mj];W[dn];B[gp];W[ho];B[eo];W[iq];B[jq];W[en];B[fp];W[go])goban-1.1.orig/games/Hon-68-5.mgt0000644000175000017500000000265406045540376014120 0ustar alal (;GM[1]SZ[19]KM[4.5]PB[Sakata Eio]PW[Rin Kaiho]FF[3]RE[W+]DT[1968-]BS[0]WS[0];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qn];W[pe];B[qe];W[pf];B[qf];W[pg];B[ic];W[pn];B[qm] ;W[eq];B[do];W[gc];B[cj];W[kc];B[ie];W[pr];B[qq];W[iq];B[nq] ;W[op];B[nr];W[or];B[kq];W[ol];B[ko];W[fp];B[dq];W[io];B[np] ;W[ge];B[ig];W[ce];B[cg];W[en];B[dl];W[qg];B[pb];W[ob];B[pc] ;W[pd];B[rg];W[rh];B[sf];W[no];B[mo];W[mn];B[ln];W[mp];B[lo] ;W[lr];B[nn];W[kr];B[mm];W[on];B[lq];W[qk];B[ql];W[nk];B[rk] ;W[ke];B[mr];W[jq];B[pk];W[ll];B[qi];W[ei];B[cc];W[dc];B[be] ;W[bd];B[bf];W[bc];B[dk];W[ii];B[kf];W[lf];B[kg];W[je];B[jf] ;W[ki];B[hd];W[hf];B[if];W[gd];B[kb];W[lb];B[jc];W[kd];B[jh] ;W[ji];B[ja];W[hb];B[ib];W[er];B[cr];W[qh];B[lg];W[mf];B[ml] ;W[mk];B[kl];W[lk];B[lm];W[pl];B[rb];W[jm];B[jn];W[km];B[im] ;W[jl];B[in];W[il];B[eo];W[gn];B[fo];W[go];B[nl];W[ok];B[pj] ;W[ci];B[ch];W[bi];B[di];W[dh];B[dj];W[dg];B[cf];W[df];B[bh] ;W[hg];B[fk];W[la];B[ka];W[gj];B[hk];W[fn];B[fj];W[fi];B[ep] ;W[fq];B[hj];W[rr];B[qr];W[qs];B[rq];W[ri];B[mg];W[ng];B[nh] ;W[gi];B[hl];W[ih];B[oi];W[dn];B[cn];W[rj];B[qj];W[oa];B[lc] ;W[mc];B[le];W[me];B[og];W[nf];B[mi];W[dm];B[cm];W[pa];B[qa] ;W[hc];B[jo];W[ip];B[jk];W[kk];B[jj];W[li];B[hn];W[ho];B[hi] ;W[hh];B[ds];W[es];B[sr];W[rs];B[gm];W[ae];B[af];W[ad];B[gk] ;W[ha];B[ia];W[ls];B[ms];W[jr];B[kj];W[lj];B[sj];W[dr];B[cs] ;W[he];B[id];W[fm];B[fl];W[jp];B[kp];W[of];B[oh];W[kh];B[ph] ;W[lh];B[mh];W[oo];B[nj];W[jg];W[jh])goban-1.1.orig/games/M-70-2.sgf0000644000175000017500000000331706252650460013537 0ustar alal( ; DT[1970-] RO[2] KM[5] EV[9th Meijin 1970] BR[9 dan] WR[Meijin] PB[Fujisawa Shuko] PW[Rin Kaiho] RE[W+R] ;B[pd];W[dc];B[dp];W[pq];B[ce];W[qo];B[fc];W[ed];B[fd] ;W[ef];B[dg];W[jd];B[ie];W[nc];B[bc];W[id];B[ge];W[eg];B[dh] ;W[gg];B[je];W[kd];B[ig];W[gi];B[ii];W[gk];B[ei];W[el];B[ik] ;W[gm];B[gp];W[qf];B[nd];W[md];B[oc];W[ne];B[od];W[mc];B[pf] ;W[pg];B[of];W[re];B[rd];W[qd];B[qc];W[qe];B[lf];W[qj];B[nq] ;W[df];B[cf];W[cl];B[cj];W[fi];B[oo];W[lq];B[qn];W[rn];B[ro] ;W[po];B[rp];W[pn];B[qm];W[rm];B[rl];W[ql];B[pm];W[rk];B[pl] ;W[qk];B[qq];W[pp];B[on];W[pr];B[or];W[om];B[ol];W[nm];B[op] ;W[nl];B[ok];W[nj];B[oj];W[oi];B[nk];W[oq];B[np];W[nr];B[mr] ;W[os];B[mq];W[lr];B[mk];W[lo];B[mn];W[rr];B[ls];W[ks];B[ms] ;W[ln];B[mm];W[ip];B[hl];W[ej];B[kr];W[kq];B[js];W[hm];B[gl] ;W[fl];B[im];W[ho];B[in];W[go];B[fp];W[cp];B[co];W[dq];B[do] ;W[cq];B[fm];W[en];B[er];W[eq];B[fr];W[bo];B[bn];W[ap];B[fo] ;W[fn];B[an];W[dr];B[br];W[ds];B[cm];W[bs];B[dm];W[em];B[dl] ;W[ni];B[ib];W[jb];B[ic];W[hd];B[gb];W[jc];B[nb];W[mb];B[ob] ;W[he];B[hf];W[gf];B[hc];W[gd];B[db];W[cb];B[eb];W[cc];B[rc] ;W[jl];B[il];W[ll];B[ml];W[ir];B[ph];W[og];B[oh];W[nh];B[qg] ;W[ng];B[qh];W[rg];B[rh];W[pi];B[sh];W[kj];B[jj];W[ki];B[lm] ;W[jh];B[kk];W[ih];B[bb];W[kn];B[cd];W[kl];B[km];W[lk];B[lj] ;W[jk];B[jm];W[kk];B[jq];W[jp];B[iq];W[jr];B[hq];W[ks];B[qr] ;W[rq];B[kr];W[ri];B[pe];W[ks];B[kp];W[lp];B[kr];W[sf];B[sd] ;W[ks];B[hn];W[gn];B[kr];W[si];B[se];W[ks];B[sl];W[sk];B[kr] ;W[qi];B[rf];W[ks];B[qp];W[qs];B[kr];W[qf];B[sg];W[ks];B[rs] ;W[ss];B[kr];W[ns];B[mj];W[ks];B[hh];W[lh];B[hi];W[hg];B[kr] ;W[fe];B[ca];W[ks];B[jo];W[ko];B[kr];W[hj];B[ij];W[ks];B[kg] ;W[kh];B[kr];W[dk];B[ck];W[ks];B[sn];W[sm];B[kr];W[fq];B[gq] ;W[ks];B[sr];W[sq];B[kr];W[dj]C[264 moves complete.] ) goban-1.1.orig/games/T-02-2.mgt0000644000175000017500000000133006261075470013544 0ustar alal(;SZ[19]EV[2nd Tengen match]KM[5.5]SO[Kido yearbook]PB[Kobayashi Koichi]BR[7d]PW[Suguichi Masao]WR[9d]RO[Game 2]DT[1976-12-07]RE[B+R];B[pd];W[dp];B[pq];W[po];B[pl];W[mp];B[oo];W[on];B[no];W[pp];B[nq];W[nn];B[mo];W[qq];B[oq];W[rp];B[hq];W[fq];B[cd];W[kp];B[ml];W[ip];B[mn];W[hp];B[ic];W[di];B[pf];W[ee];B[cf];W[dc];B[cc];W[eg];B[ie];W[ob];B[pc];W[jc];B[lc];W[kc];B[ld];W[je];B[id];W[ke];B[ig];W[le];B[nc];W[kh];B[ii];W[kj];B[bo];W[cp];B[cl];W[dk];B[dl];W[ek];B[bj];W[bi];B[cj];W[ci];B[bp];W[bq];B[cn];W[gc];B[ff];W[ef];B[db];W[ge];B[gf];W[gg];B[fe];W[hf];B[fd];W[gd];B[if];W[ec];B[kg];W[lg];B[lh];W[mg];B[ki];W[li];B[mh];W[ji];B[jh];W[ki];B[nh];W[ib];B[hb];W[ja];B[hc];W[lb];B[me];W[mb];B[ik];W[kl];B[nb];W[na];B[oc];W[kb];B[ga])goban-1.1.orig/games/M-91-5.mgt0000644000175000017500000000327206252627042013555 0ustar alal(;GM[1]VW[]FF[3]DT[1991-10-23,24]SZ[19]PB[Rin Kaiho]PW[Kobayashi Koichi]KM[5.5]PC[Tokyo]RE[W+3.5]ID[91/5]BS[0]WS[0];B[pd];W[dd];B[pq];W[dp];B[qk];W[mp];B[jp];W[pp];B[op] ;W[qq];B[oq];W[qp];B[on];W[qn];B[fq];W[cn];B[ol];W[nc];B[lc] ;W[ld];B[kd];W[le];B[mc];W[nd];B[pb];W[pe];B[qe];W[pf];B[qf] ;W[pg];B[fc];W[qg];B[qc];W[mn];B[lo];W[lp];B[ko];W[mo];B[po] ;W[rm];B[mk];W[nm];B[om];W[km];B[kq];W[lr];B[jd];W[pj];B[rl] ;W[ql];B[pl];W[qm];B[oj];W[pk];B[pi];W[qj];B[qi];W[ri];B[dq] ;W[cq];B[ep];W[do];B[cr];W[dr];B[er];W[eq];B[rj];W[rk];B[dq] ;W[jl];B[jj];W[eq];B[hk];W[dq];B[nr];W[kp];B[jq];W[jo];B[lq] ;W[mq];B[mr];W[oi];B[jn];W[hl];B[io];W[ik];B[ij];W[gk];B[hj] ;W[fl];B[cf];W[fd];B[gd];W[ec];B[fe];W[ed];B[gc];W[bd];B[ci] ;W[ck];B[bk];W[cl];B[ni];W[mb];B[oh];W[rh];B[nf];W[lb];B[kb] ;W[md];B[kc];W[oe];B[fr];W[rf];B[re];W[se];B[sd];W[sf];B[rc] ;W[bj];B[cj];W[bi];B[bh];W[bl];B[ef];W[fi];B[eb];W[db];B[fa] ;W[dg];B[ai];W[ak];B[df];W[be];B[gi];W[fh];B[fj];W[dj];B[gj] ;W[ch];B[fn];W[fm];B[gm];W[gl];B[ds];W[br];B[qo];W[ro];B[qr] ;W[rr];B[rq];W[rp];B[rs];W[sr];B[da];W[cb];B[ok];W[sj];B[gg] ;W[kf];B[jf];W[fg];B[cg];W[dh];B[gf];W[kg];B[jg];W[en];B[fo] ;W[kh];B[bs];W[cs];B[rg];W[es];B[sh];W[mh];B[ng];W[qh];B[pr] ;W[fs];B[gs];W[ds];B[gr];W[bg];B[bf];W[ah];B[ca];W[ba];B[ea] ;W[ga];B[fb];W[jh];B[bb];W[bc];B[aa];W[af];B[hm];W[ff];B[ee] ;W[hg];B[cc];W[dc];B[ek];W[ej];B[fk];W[hf];B[he];W[gh];B[ll] ;W[lm];B[kl];W[jm];B[jk];W[il];B[el];W[em];B[mi];W[ge];B[gf] ;W[ie];B[je];W[if];B[id];W[kj];B[lj];W[ki];B[kk];W[im];B[in] ;W[eo];B[fp];W[ob];B[la];W[od];B[pc];W[nl];B[ma];W[nb];B[eg] ;W[eh];B[dl];W[dm];B[mg];W[lh];B[nk];W[ce];B[ml];W[pa];B[qa] ;W[kn];B[ac];W[ad];B[oa];W[na];B[ka];W[ab];B[ba];W[ac];B[pa] )goban-1.1.orig/games/T-07-5.mgt0000644000175000017500000000317706262645664013600 0ustar alal(;SZ[19]EV[7th Tengen match]KM[5.5]SO[Go world 27]WR[9d]RO[Game 5]PC[Nihon Ki-in]PB[Kobayashi Koichi]BR[9d]PW[Kato Masao]RE[W+5.5]DT[1981-12-28];B[pd];W[cq];B[pq];W[dc];B[fp];W[dn];B[jp];W[de];B[po];W[nc];B[pf];W[jd];B[cj];W[ch];B[cl];W[bm];B[cn];W[cm];B[dm];W[em];B[dl];W[co];B[en];W[do];B[fn];W[qm];B[qk];W[om];B[eh];W[mm];B[ok];W[lo];B[lq];W[qc];B[pc];W[pb];B[qd];W[rb];B[rc];W[qb];B[cg];W[dg];B[dh];W[cf];B[bg];W[bh];B[ec];W[ed];B[fc];W[db];B[fd];W[bf];B[eg];W[fe];B[df];W[ag];B[ge];W[ff];B[gf];W[fg];B[gh];W[gg];B[hg];W[hf];B[fh];W[dg];B[cg];W[ee];B[if];W[he];B[ie];W[gd];B[id];W[jc];B[ic];W[km];B[im];W[lj];B[md];W[nd];B[mc];W[nb];B[me];W[ne];B[mf];W[ph];B[rh];W[pj];B[pk];W[nf];B[nl];W[nm];B[mi];W[ib];B[lk];W[np];B[no];W[mo];B[op];W[mq];B[lr];W[nn];B[oo];W[qn];B[ro];W[qo];B[rp];W[oq];B[or];W[nr];B[nq];W[mk];B[ml];W[ll];B[kk];W[oq];B[pr];W[qp];B[qq];W[pp];B[nq];W[rq];B[rr];W[oq];B[ng];W[nq];B[kl];W[ig];B[hh];W[og];B[nh];W[qg];B[rg];W[qf];B[hb];W[kb];B[ia];W[rf];B[er];W[jm];B[il];W[in];B[io];W[jb];B[hc];W[mb];B[cr];W[dq];B[dr];W[kf];B[kg];W[kp];B[jq];W[lm];B[mj];W[jf];B[jg];W[jn];B[hn];W[rj];B[br];W[bq];B[bl];W[bn];B[qi];W[qj];B[pi];W[ri];B[qh];W[oi];B[oh];W[pg];B[oj];W[sg];B[ni];W[sh];B[oi];W[rk];B[je];W[ke];B[kd];W[ld];B[lc];W[kc];B[lb];W[la];B[lf];W[lg];B[mg];W[ka];B[gc];W[ci];B[di];W[rn];B[eb];W[ea];B[fa];W[da];B[bj];W[ga];B[fb];W[jo];B[ho];W[ih];B[ii];W[jh];B[kh];W[ji];B[ki];W[jj];B[ij];W[ha];B[gb];W[ha];B[jk];W[so];B[sq];W[ol];B[nk];W[kq];B[kr];W[lp];B[aq];W[ap];B[ar];W[eq];B[fq];W[ms];B[pl];W[pm];B[ql];W[rl];B[ep];W[hd];B[kj];W[dp];B[ls];W[jr];B[ir];W[js];B[is];W[eo];B[fo];W[ja];B[am];W[an];B[al];W[ai];B[aj];W[bi];B[os];W[mr];B[ks])goban-1.1.orig/games/T-15-1.mgt0000644000175000017500000000212206404444212013540 0ustar alal(;SZ[19]EV[15th Tengen]RO[1]PB[Rin]PW[Cho]RE[W+R]SO[Go 26/6]GC[172 moves];B[pd];W[ec];B[qp];W[dq];B[oq];W[cd];B[do];W[co];B[cn];W[cp];B[pj];W[dj];B[gn];W[gp];B[jd];W[ip];B[pf];W[cl];B[gk];W[gi];B[kp];W[hc];B[bd];W[cc];B[dn];W[ep];B[ik];W[fl];B[dp];W[cq];B[fk];W[el];B[go];W[gl];B[hl];W[jo];B[fp];W[fq];B[hp];W[fo];B[gq];W[fn];B[fp];W[gm];B[hm];W[iq];B[fr];W[eq];B[hq];W[in];B[hn];W[ln];B[mp];W[mo];B[lp];W[ll];B[lj];W[jl];B[ii];W[nl];B[pl];W[nj];B[mk];W[kj];B[nk];W[jj];B[hi];W[kh];B[if];W[on];B[ce];W[cg];B[cf];W[dg];B[bc];W[bb];B[ef];W[eg];B[ed];W[fc];B[gd];W[ib];B[gf];W[ok];B[ol];W[oj];B[mi];W[mj];B[oi];W[lk];B[pk];W[ml];B[oc];W[qn];B[jb];W[mg];B[po];W[pn];B[ic];W[hb];B[cb];W[db];B[ek];W[dk];B[me];W[qe];B[qf];W[kb];B[ka];W[le];B[lf];W[ne];B[mf];W[nf];B[md];W[pe];B[qd];W[re];B[em];W[qh];B[ph];W[qi];B[rf];W[pi];B[oh];W[of];B[pg];W[nh];B[ni];W[mh];B[rj];W[li];B[sg];W[se];B[ri];W[fm];B[nd];W[oe];B[rc];W[jr];B[lr];W[he];B[gh];W[hd];B[ge];W[ro];B[rp];W[bf];B[be];W[bg];B[jg];W[ia];B[ja];W[rl];B[ei];W[fg];B[gg];W[np];B[nq];W[op];B[im];W[jn];B[dd];W[dc];B[ab];W[ba];B[rk];W[ij];B[hj];W[ej];B[fj];W[sf])goban-1.1.orig/games/M-64-5.mgt0000644000175000017500000000237306252627042013556 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1964-09-06,07]ID[64/5]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[dq];W[qq];B[ce];W[oc];B[do];W[cj];B[ld] ;W[nd];B[pf];W[qb];B[qj];W[cd];B[de];W[ed];B[cl];W[dg];B[ee] ;W[fd];B[fe];W[gd];B[eg];W[dh];B[fi];W[ej];B[fj];W[ek];B[jq] ;W[fk];B[gg];W[cn];B[dn];W[cm];B[dm];W[bl];B[qo];W[oq];B[mq] ;W[qm];B[pn];W[pm];B[nn];W[oj];B[ph];W[qk];B[pk];W[pj];B[qi] ;W[nl];B[rk];W[ql];B[rq];W[rr];B[rp];W[oo];B[on];W[mp];B[lq] ;W[sr];B[np];W[nq];B[no];W[jd];B[lf];W[io];B[ll];W[mj];B[im] ;W[iq];B[ir];W[hm];B[il];W[fm];B[co];W[mr];B[lr];W[hq];B[nr] ;W[or];B[ms];W[os];B[hr];W[jp];B[hn];W[ho];B[gn];W[gr];B[kq] ;W[fn];B[go];W[gp];B[fo];W[fp];B[bm];W[bn];B[bk];W[am];B[ck] ;W[dl];B[bj];W[bi];B[ci];W[bh];B[dj];W[dk];B[ai];W[di];B[aj] ;W[cj];B[al];W[ak];B[mk];W[nk];B[al];W[mm];B[bm];W[lo];B[an] ;W[rl];B[dj];W[js];B[ks];W[jr];B[kr];W[ns];B[ln];W[mn];B[mo] ;W[lp];B[jo];W[kp];B[ip];W[hp];B[kn];W[eo];B[ep];W[er];B[fq] ;W[eq];B[en];W[dr];B[in];W[gq];B[gs];W[mr];B[is];W[fr];B[nr] ;W[cq];B[mr];W[cj];B[bq];W[br];B[dj];W[bp];B[rn];W[po];B[so] ;W[sq];B[sm];W[rj];B[sk];W[sl];B[qn];W[sj];B[qp];W[pq];B[rm] ;W[cj];B[om];W[ol];B[dj];W[qg];B[cj];W[be];B[bf];W[bd];B[bg] ;W[me];B[le];W[ng];B[rg];W[rf];B[qf];W[re];B[rh];W[qe])goban-1.1.orig/games/Hon-66-3.mgt0000644000175000017500000000255206045540374014107 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1966-05-15,16]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan]BR[9 Dan];B[qd];W[dc];B[pq];W[cp];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[ch];B[eq];W[hp];B[gp];W[ho];B[go] ;W[hn];B[gn];W[hm];B[cn];W[dq];B[er];W[dr];B[do];W[bn];B[bo] ;W[co];B[bm];W[dn];B[cm];W[eo];B[dm];W[ep];B[hq];W[en];B[iq] ;W[gm];B[lp];W[ck];B[bk];W[bj];B[bp];W[bq];B[ak];W[qf];B[dg] ;W[gc];B[dh];W[di];B[ei];W[dj];B[cg];W[cd];B[bh];W[oe];B[mc] ;W[jp];B[ip];W[kp];B[kn];W[lo];B[io];W[mp];B[fm];W[em];B[fl] ;W[el];B[fn];W[kl];B[jl];W[jm];B[km];W[jk];B[il];W[ik];B[on] ;W[pn];B[oo];W[mn];B[ll];W[kk];B[om];W[lm];B[jn];W[op];B[np] ;W[pp];B[oq];W[no];B[ol];W[qq];B[rq];W[qr];B[rr];W[ml];B[pl] ;W[rp];B[ro];W[rn];B[sp];W[rl];B[rk];W[rj];B[rm];W[sm];B[ql] ;W[qm];B[lq];W[lk];B[pf];W[pg];B[qg];W[rg];B[og];W[qh];B[pj] ;W[qk];B[oh];W[pe];B[nj];W[me];B[mg];W[pc];B[pb];W[qc];B[qb] ;W[rc];B[hl];W[li];B[kg];W[kc];B[rb];W[ig];B[if];W[nb];B[pd] ;W[nc];B[rd];W[jf];B[jg];W[ih];B[le];W[je];B[md];W[nd];B[mf] ;W[ne];B[jd];W[kd];B[ke];W[ie];B[kf];W[sk];B[mh];W[hf];B[bd] ;W[bc];B[dd];W[cc];B[ed];W[de];B[ee];W[be];B[ec];W[cf];B[df] ;W[ff];B[ce];W[ob];B[sc];W[de];B[bf];W[ce];B[ef];W[aj];B[cl] ;W[dl];B[an];W[fg];B[eb];W[af];B[gb];W[hb];B[hc];W[fb];B[gd] ;W[ga];B[fc];W[gb];B[ag];W[bg];B[ib];W[ic];B[bf];W[hd];B[ci] ;W[bi];B[fh];W[fk];B[gk];W[fj];B[ae];W[ad];B[gg];W[gh];B[ej] ;W[dk])goban-1.1.orig/games/Hon-94-4.mgt0000644000175000017500000000210106045540456014100 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kataoka Satoshi]DT[1994-06-15,16]RE[B+R]KM[5.5]FF[3]BS[0]WS[0];B[pd];W[dd];B[pq];W[dp];B[qo];W[kq];B[cj];W[nc];B[lc] ;W[qc];B[pc];W[qd];B[pe];W[pb];B[ob];W[qb];B[oc];W[qf];B[fc] ;W[cf];B[cm];W[fp];B[db];W[cc];B[hd];W[nq];B[bp];W[oo];B[hp] ;W[hn];B[jp];W[jq];B[iq];W[gq];B[kp];W[lq];B[km];W[jn];B[kn] ;W[lo];B[lp];W[mp];B[jm];W[jc];B[je];W[nb];B[nd];W[lb];B[md] ;W[mb];B[hr];W[en];B[kc];W[kb];B[ib];W[oa];B[qm];W[pr];B[qr] ;W[pp];B[qp];W[oq];B[qq];W[jb];B[hl];W[cq];B[ch];W[cb];B[co] ;W[gr];B[og];W[nj];B[nl];W[pj];B[qg];W[rf];B[oi];W[oj];B[lj] ;W[qi];B[mh];W[ff];B[qh];W[ol];B[om];W[pl];B[pm];W[ri];B[hf] ;W[jd];B[ke];W[gh];B[jr];W[os];B[ih];W[hj];B[mr];W[mq];B[gn] ;W[io];B[ip];W[gm];B[fm];W[go];B[fn];W[ho];B[ko];W[mn];B[eo] ;W[fk];B[fo];W[gp];B[bq];W[br];B[ij];W[dk];B[ck];W[hi];B[ii] ;W[bg];B[rk];W[nk];B[ar];W[cr];B[bh];W[pf];B[of];W[dm];B[do] ;W[cl];B[bl];W[dl];B[bn];W[eh];B[na];W[ma];B[ed];W[dc];B[eb] ;W[hb];B[ic];W[ia];B[gb];W[ge];B[hc];W[he];B[ie];W[hg];B[if] ;W[ha];B[ee];W[gd];B[ga];W[ja];B[gf];W[fe];B[ef];W[eg];B[fg] ;W[gg];B[gc];W[fh];B[df])goban-1.1.orig/games/M-92-4.mgt0000644000175000017500000000232506252640030013543 0ustar alal(;PB[Otake Hideo]PW[Kobayashi Koichi]RE[B+R]KM[5.5]ID[92/4]BS[0]WS[0]GM[1]SZ[19]FF[3]DT[1992-10-14,15]BR[9 Dan]WR[9 Dan]KI[11];B[pd];W[dd];B[cp];W[qp];B[op];W[oq];B[nq];W[pq];B[np] ;W[qn];B[iq];W[dm];B[ep];W[dj];B[fc];W[eb];B[jd];W[qf];B[nd] ;W[pi];B[om];W[hc];B[ch];W[cf];B[bf];W[ce];B[eh];W[fj];B[gh] ;W[he];B[ic];W[hb];B[if];W[hf];B[ig];W[hj];B[ii];W[fo];B[fp] ;W[go];B[hp];W[in];B[pf];W[re];B[qe];W[rf];B[rd];W[pg];B[og] ;W[qc];B[qd];W[of];B[nf];W[pe];B[oe];W[pf];B[oh];W[oi];B[ro] ;W[qo];B[qm];W[qk];B[ql];W[rk];B[rn];W[rp];B[ni];W[nj];B[mi] ;W[jp];B[ok];W[jq];B[oj];W[ph];B[nr];W[rl];B[rm];W[or];B[qr] ;W[rr];B[km];W[ir];B[gp];W[gr];B[en];W[gm];B[dn];W[cm];B[fr] ;W[jb];B[em];W[bj];B[il];W[kn];B[ln];W[hl];B[fl];W[hi];B[ff] ;W[ik];B[jn];W[im];B[cc];W[cd];B[ib];W[ia];B[hd];W[gd];B[id] ;W[gc];B[cg];W[fi];B[ge];W[fe];B[gf];W[lc];B[ob];W[me];B[ne] ;W[ee];B[ef];W[bo];B[bp];W[co];B[cn];W[bn];B[do];W[bg];B[bh] ;W[dl];B[fb];W[fd];B[db];W[bd];B[ec];W[bb];B[bc];W[cb];B[kc] ;W[kb];B[ld];W[mc];B[md];W[dc];B[ko];W[io];B[jj];W[kl];B[ll] ;W[kk];B[lj];W[hh];B[hg];W[on];B[nn];W[oo];B[no];W[pk];B[ol] ;W[fs];B[er];W[sd];B[sc];W[se];B[rc];W[nb];B[ma];W[na];B[nc] ;W[mb];B[oa];W[la];B[hr];W[hs];B[ip];W[kr];B[jo];W[hq];B[gq] )goban-1.1.orig/games/Hon-67-1.mgt0000644000175000017500000000342506045540374014106 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1967-05-01,02]PB[Rin Kaiho]PW[Sakata Eio]RE[W+3.5]FF[3]WR[9 Dan];B[qd];W[cd];B[ec];W[qq];B[eq];W[hd];B[oc];W[cp];B[dn] ;W[do];B[eo];W[ep];B[fp];W[dp];B[en];W[fq];B[gq];W[fr];B[gp] ;W[er];B[ef];W[ee];B[fe];W[de];B[fd];W[ff];B[gf];W[fg];B[he] ;W[eg];B[id];W[pn];B[pi];W[qk];B[ld];W[rd];B[qc];W[pg];B[ri] ;W[mg];B[ni];W[lh];B[lj];W[qe];B[pe];W[pf];B[oe];W[rf];B[ng] ;W[rc];B[nh];W[gg];B[hg];W[kj];B[hh];W[kk];B[lk];W[li];B[op] ;W[po];B[kl];W[jl];B[ll];W[ik];B[jm];W[im];B[in];W[jn];B[km] ;W[hn];B[io];W[hl];B[gm];W[hm];B[cj];W[ch];B[pq];W[qr];B[nn] ;W[iq];B[ip];W[jq];B[gr];W[mq];B[pr];W[nr];B[kp];W[kq];B[pp] ;W[qp];B[ko];W[hr];B[bh];W[cg];B[ji];W[ki];B[jj];W[jk];B[hj] ;W[hk];B[cn];W[lf];B[rb];W[qb];B[pb];W[rh];B[fs];W[dr];B[bo] ;W[nf];B[np];W[ok];B[ne];W[of];B[nj];W[hs];B[cb];W[jd];B[ke] ;W[ic];B[ie];W[gc];B[hb];W[gb];B[ib];W[eb];B[fc];W[db];B[dc] ;W[cc];B[fb];W[bb];B[ea];W[ca];B[qh];W[qj];B[rg];W[me];B[md] ;W[sb];B[ra];W[bp];B[qg];W[qf];B[le];W[mf];B[ap];W[aq];B[ao] ;W[bq];B[om];W[oj];B[ph];W[nk];B[mk];W[bi];B[sl];W[rl];B[sk] ;W[sm];B[rj];W[rk];B[sj];W[qm];B[ci];W[bj];B[bk];W[bg];B[aj] ;W[ah];B[ej];W[ai];B[gs];W[lp];B[rn];W[rm];B[ck];W[mo];B[on] ;W[lo];B[ln];W[ak];B[qs];W[rs];B[ps];W[rr];B[al];W[fk];B[ek] ;W[fm];B[jh];W[em];B[gn];W[fn];B[go];W[fl];B[hq];W[js];B[dh] ;W[dm];B[cm];W[dl];B[cl];W[am];B[aj];W[fa];B[ga];W[ak];B[bm] ;W[bl];B[an];W[kg];B[jg];W[kf];B[jf];W[nl];B[mm];W[jp];B[jo] ;W[ho];B[hp];W[ij];B[dg];W[eh];B[di];W[df];B[ir];W[is];B[lr] ;W[mr];B[ks];W[jr];B[lq];W[mp];B[or];W[ms];B[sc];W[sf];B[sa] ;W[sd];B[ii];W[gi];B[hi];W[mi];B[mj];W[pm];B[ol];W[pl];B[pj] ;W[pk];B[es];W[ds];B[nq];W[gj];B[gh];W[fi];B[fa];W[da];B[fo] ;W[gl];B[dk];W[sb];B[ba];W[aa];B[sc];W[oi];B[sh];W[sb];B[mn] ;W[ls];B[sc];W[ge];B[hf];W[sb];B[no];W[kr];B[sc];W[pa];B[oa] ;W[sb];B[qa];W[sc])goban-1.1.orig/games/M-62-l07.sgf0000644000175000017500000000310606252641346014000 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Hashimoto Shoji] BR[9 dan] PW[Handa Dogen] WR[9 dan] DT[1962-] PC[Japan] RE[B+R] KM[5] ;B[qd];W[dd];B[pp];W[dq];B[oc];W[qj];B[cn];W[nq];B[qn] ;W[qg];B[cq];W[cp];B[dp];W[bq];B[cr];W[do];B[ep];W[co];B[br] ;W[gp];B[fo];W[go];B[fn];W[dn];B[dl];W[em];B[gn];W[el];B[dj] ;W[fp];B[eq];W[eo];B[gl];W[dk];B[ck];W[ek];B[bl];W[ej];B[di] ;W[gj];B[cf];W[ij];B[jm];W[jp];B[fr];W[df];B[dg];W[ce];B[ef] ;W[de];B[bf];W[eg];B[dh];W[mc];B[fc];W[fd];B[gd];W[ec];B[fb] ;W[ge];B[hd];W[jc];B[ic];W[jd];B[he];W[ff];B[if];W[no];B[io] ;W[ip];B[jo];W[kp];B[pr];W[il];B[im];W[hl];B[hp];W[hq];B[ho] ;W[gq];B[hm];W[lm];B[ln];W[qm];B[pm];W[pn];B[on];W[po];B[oo] ;W[qo];B[qp];W[rn];B[ro];W[qn];B[op];W[mm];B[lo];W[np];B[nn] ;W[mn];B[mo];W[lq];B[kk];W[ji];B[lj];W[nl];B[km];W[rp];B[rq] ;W[so];B[ol];W[nj];B[ok];W[mj];B[lh];W[jg];B[ke];W[kf];B[je] ;W[lf];B[le];W[ko];B[kn];W[mf];B[ir];W[jr];B[gk];W[gi];B[ih] ;W[ig];B[hg];W[hh];B[gh];W[hi];B[ki];W[ll];B[jk];W[kh];B[lk] ;W[me];B[kb];W[jb];B[fi];W[fj];B[mb];W[nb];B[nc];W[lb];B[lc] ;W[ma];B[md];W[kc];B[mb];W[mi];B[li];W[mc];B[ld];W[ob];B[mb] ;W[jj];B[in];W[mc];B[fg];W[be];B[mb];W[ka];B[pi];W[nh];B[pg] ;W[pf];B[og];W[pj];B[oj];W[oi];B[oh];W[qi];B[ni];W[pc];B[pd] ;W[oi];B[ql];W[rl];B[ni];W[of];B[ng];W[oi];B[ph];W[mg];B[mh] ;W[qc];B[rc];W[rb];B[gf];W[af];B[db];W[eb];B[ea];W[cb];B[dc] ;W[cc];B[ed];W[bh];B[cg];W[ag];B[hr];W[iq];B[gr];W[or];B[bn] ;W[cm];B[cl];W[dm];B[bm];W[bj];B[cj];W[ee];B[fe];W[rd];B[re] ;W[sc];B[qf];W[nf];B[ni];W[pe];B[qh];W[rg];B[qe];W[od];B[oe] ;W[ne];B[nd];W[jf];B[rh];W[se];B[oe] C[235 moves complete.] ) goban-1.1.orig/games/T-03-1.mgt0000644000175000017500000000321006270526242013541 0ustar alal(;SZ[19]DT[1977-11-18]PB[Sonoda Yuichi]BR[8d]PW[Shimamura Toshihiro] KM[5.5]RE[B+3.5]SO[Kido yearbook]EV[3rd Tengen match, game 1]WR[9d] ;B[pd];W[dp];B[pq];W[cc];B[pk];W[nc];B[jp];W[po];B[np];W[no];B[oo] ;W[on];B[op];W[pm];B[mo];W[qk];B[qj];W[rk];B[fd];W[cf];B[oc];W[nd] ;B[jc];W[pe];B[qe];W[pf];B[od];W[ne];B[qd];W[mg];B[fq];W[hc];B[hd] ;W[gc];B[id];W[fc];B[ed];W[dc];B[jg];W[fp];B[gp];W[fo];B[dq];W[eq] ;B[er];W[ep];B[gr];W[cq];B[go];W[dr];B[fn];W[en];B[em];W[dm];B[el] ;W[mi];B[nn];W[cn];B[dl];W[cl];B[dj];W[ck];B[eh];W[ki];B[ii];W[jj] ;B[ij];W[jk];B[qg];W[qp];B[qq];W[rq];B[rr];W[ik];B[de];W[ce];B[rj] ;W[pl];B[rm];W[rl];B[rp];W[ro];B[sq];W[pj];B[qn];W[rn];B[pi];W[ok] ;B[hk];W[hl];B[gk];W[eg];B[fg];W[ef];B[ff];W[dh];B[cj];W[nb];B[ob] ;W[ge];B[gd];W[fe];B[ei];W[ee];B[hf];W[jn];B[ec];W[eb];B[db];W[fb] ;B[dd];W[cd];B[ko];W[jh];B[ih];W[jf];B[if];W[kg];B[bi];W[bg];B[bk] ;W[ig];B[hg];W[bl];B[al];W[am];B[ak];W[bm];B[qh];W[io];B[ip];W[es] ;B[fr];W[pn];B[bh];W[sj];B[si];W[sk];B[ri];W[oa];B[pa];W[na];B[pb] ;W[hn];B[ag];W[bf];B[lm];W[gf];B[gg];W[lb];B[kd];W[oi];B[oh];W[nh] ;B[og];W[jb];B[ib];W[kb];B[ic];W[hb];B[mk];W[ll];B[ml];W[km];B[lk] ;W[kl];B[mm];W[ia];B[ho];W[af];B[ah];W[kn];B[ln];W[jo];B[gn];W[gm] ;B[fm];W[gl];B[il];W[hm];B[nj];W[ld];B[kc];W[lc];B[oj];W[ni];B[fl] ;W[lj];B[jg];W[kp];B[lo];W[kf];B[nf];W[oe];B[ji];W[ig];B[kk];W[kj] ;B[jg];W[qf];B[rf];W[ig];B[pp];W[qo];B[jg];W[pg];B[ph];W[ig];B[ch] ;W[dg];B[jg];W[rg];B[sg];W[ig];B[im];W[in];B[jg];W[dk];B[ek];W[ig] ;B[mf];W[jg];B[lf];W[lg];B[me];W[so];B[md];W[sp];B[mc];W[mb];B[rq] ;W[fs];B[gs];W[ds];B[pk];W[ng];B[of];W[pj];B[di];W[pk];B[je];W[he] ;B[ie];W[nl];B[nm];W[nk];B[mj];W[om])goban-1.1.orig/games/M-89-2.mgt0000644000175000017500000000233206252627042013555 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Awaji Shuzo]DT[1989-09-27,28]RE[W+R]ID[89/2]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[cp];B[ep];W[eq];B[fq];W[dq];B[gp] ;W[dn];B[qo];W[hq];B[gr];W[hp];B[gn];W[hn];B[ho];W[io];B[go] ;W[jp];B[in];W[jn];B[hm];W[dk];B[jm];W[kn];B[km];W[ln];B[nm] ;W[lm];B[ll];W[ml];B[mm];W[mk];B[lk];W[mj];B[jk];W[pi];B[pg] ;W[qg];B[qf];W[qh];B[pf];W[pl];B[no];W[mo];B[oj];W[oi];B[mp] ;W[np];B[ol];W[pm];B[oo];W[om];B[nl];W[ok];B[lo];W[mn];B[nn] ;W[mq];B[nk];W[pk];B[nj];W[jc];B[lp];W[lq];B[nq];W[kp];B[lc] ;W[fd];B[ci];W[il];B[dm];W[cn];B[cf];W[im];B[en];W[bk];B[bd] ;W[cc];B[bc];W[df];B[ce];W[je];B[ni];W[rn];B[de];W[ee];B[qn] ;W[rm];B[rf];W[rg];B[ef];W[ff];B[dg];W[nb];B[jb];W[kb];B[lb] ;W[kc];B[ld];W[oc];B[qm];W[ql];B[ri];W[pj];B[ka];W[rc];B[rk] ;W[rl];B[sg];W[sh];B[se];W[qb];B[cm];W[bm];B[rh];W[sf];B[bn] ;W[bl];B[sg];W[ro];B[rp];W[sf];B[ic];W[ke];B[sg];W[rj];B[sj] ;W[sf];B[hb];W[hd];B[sg];W[qp];B[qq];W[sf];B[ge];W[gd];B[sg] ;W[sp];B[pp];W[sf];B[co];W[do];B[sg];W[sl];B[sk];W[sf];B[dp] ;W[bo];B[sg];W[sq];B[rr];W[sf];B[eo];W[an];B[sg];W[oh];B[kd] ;W[nf];B[ne];W[me];B[nd];W[mf];B[nc];W[jd];B[id];W[ie];B[he] ;W[hg];B[if];W[jf];B[jg];W[le];B[ng];W[sf];B[ig];W[hf];B[sg] ;W[og];B[of];W[sf])goban-1.1.orig/games/T-18-3.mgt0000644000175000017500000000324506252627522013564 0ustar alal(;PB[Rin Kaiho]BR[Tengen]PW[Yamashiro Hiroshi]WR[9 dan]RO[3]DT[1992-11-30]KM[5.5]RE[B+7.5]GM[1]SZ[19]ID[18/3]FF[3];B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[dj];W[cl];B[pj];W[nq];B[lq];W[lp];B[kp];W[lo];B[mq] ;W[np];B[qn];W[nn];B[jq];W[jn];B[gq];W[fp];B[gp];W[fq];B[go] ;W[nc];B[pf];W[kd];B[cn];W[bp];B[dl];W[fe];B[co];W[cp];B[pr] ;W[fg];B[mk];W[or];B[oo];W[no];B[lm];W[ko];B[jl];W[mr];B[lr] ;W[nl];B[nk];W[pn];B[pm];W[on];B[qo];W[pl];B[ql];W[om];B[qm] ;W[jp];B[kq];W[ne];B[ie];W[ch];B[dh];W[ci];B[di];W[cg];B[dg] ;W[bf];B[oc];W[nb];B[ic];W[jc];B[jf];W[ng];B[ob];W[od];B[pc] ;W[ip];B[iq];W[hf];B[he];W[ge];B[lf];W[ib];B[hb];W[id];B[hd] ;W[hc];B[gc];W[ic];B[gd];W[fd];B[fb];W[eb];B[mf];W[pe];B[qe] ;W[oe];B[qg];W[ke];B[jh];W[og];B[na];W[ma];B[oa];W[lb];B[cj] ;W[kf];B[kg];W[lh];B[lg];W[ig];B[jg];W[hi];B[jj];W[gr];B[hr] ;W[fr];B[bi];W[bh];B[ah];W[bg];B[hn];W[mm];B[bk];W[qr];B[ps] ;W[pq];B[qq];W[oq];B[rr];W[ph];B[qh];W[pi];B[qi];W[pk];B[oj] ;W[qk];B[rk];W[am];B[en];W[bl];B[gj];W[ii];B[mh];W[ik];B[hk] ;W[il];B[jk];W[ni];B[mi];W[fk];B[hl];W[fj];B[fi];W[gi];B[fh] ;W[hj];B[im];W[gk];B[cm];W[ij];B[qj];W[jm];B[ck];W[an];B[bm] ;W[al];B[ak];W[bo];B[gl];W[fl];B[fm];W[el];B[em];W[ej];B[dk] ;W[ji];B[ki];W[lk];B[ll];W[kl];B[kj];W[km];B[kk];W[ml];B[ol] ;W[lj];B[li];W[ln];B[mj];W[js];B[is];W[hp];B[hq];W[os];B[qs] ;W[ls];B[gg];W[gf];B[gh];W[in];B[hm];W[hg];B[me];W[md];B[ks] ;W[kr];B[jr];W[ll];B[pg];W[oh];B[po];W[je];B[if];W[dd];B[bn] ;W[ao];B[ee];W[fa];B[gb];W[do];B[ed];W[ec];B[gs];W[fs];B[ag] ;W[af];B[ai];W[bd];B[ia];W[ja];B[eo];W[dn];B[dm];W[ep];B[io] ;W[fo];B[fn];W[ei];B[eh];W[le];B[mp];W[mg];B[mo];W[ms];B[ks] ;W[jo];B[ho];W[ha];B[ga];W[ea];B[hs];W[ia])goban-1.1.orig/games/Hon-68-1.mgt0000644000175000017500000000254406045540376014112 0ustar alal (;GM[1]SZ[19]KM[4.5]PB[Sakata Eio]PW[Rin Kaiho]FF[3]RE[B+R]DT[1968-]BS[0]WS[0];B[qd];W[qp];B[dc];W[de];B[eq];W[oq];B[cp];W[od];B[ce] ;W[dd];B[cd];W[ec];B[cf];W[df];B[dg];W[cc];B[db];W[bc];B[cb] ;W[cg];B[ch];W[bb];B[eb];W[bg];B[bf];W[bh];B[bd];W[ci];B[dh] ;W[fc];B[fe];W[ad];B[ae];W[fb];B[ba];W[di];B[fg];W[ed];B[ei] ;W[ej];B[fi];W[dk];B[id];W[ab];B[ac];W[gf];B[ff];W[ad];B[ic] ;W[kc];B[ac];W[gd];B[ge];W[ad];B[jb];W[kb];B[ac];W[hb];B[ib] ;W[ad];B[he];W[ea];B[ac];W[eh];B[eg];W[ad];B[fa];W[ga];B[ac] ;W[ja];B[ia];W[ad];B[ca];W[bp];B[cq];W[co];B[do];W[cn];B[ac] ;W[qe];B[aa];W[pd];B[qc];W[re];B[ob];W[pk];B[nc];W[nd];B[rb] ;W[le];B[pi];W[nj];B[nh];W[oh];B[qk];W[ql];B[rl];W[qj];B[rk] ;W[pj];B[qm];W[pl];B[qo];W[po];B[qn];W[ro];B[rn];W[sp];B[rj] ;W[ri];B[oo];W[pn];B[pp];W[op];B[pm];W[on];B[om];W[pq];B[iq] ;W[bq];B[dn];W[dm];B[em];W[dp];B[dq];W[fj];B[fn];W[gi];B[fh] ;W[go];B[gq];W[kq];B[nm];W[mn];B[mm];W[ln];B[lm];W[qi];B[kn] ;W[km];B[ko];W[lp];B[nn];W[no];B[kl];W[jm];B[jl];W[im];B[il] ;W[jp];B[io];W[jo];B[jn];W[in];B[dl];W[bl];B[bj];W[bk];B[bi] ;W[hn];B[ck];W[cl];B[cm];W[bm];B[cj];W[dj];B[ag];W[hl];B[mj] ;W[mi];B[nk];W[lj];B[mk];W[li];B[br];W[ar];B[aq];W[ap];B[bs] ;W[ak];B[jr];W[jj];B[kk];W[kr];B[ks];W[ls];B[js];W[lr];B[gj] ;W[el];B[dm];W[fl];B[hk];W[gk];B[hj];W[gm];B[kg];W[lg];B[jh] ;W[kf];B[kj];W[rd];B[mb];W[hi];B[ik];W[if];B[ki];W[lh];B[je] ;W[jf];B[kd];W[sb];B[md])goban-1.1.orig/games/Hon-95-2.mgt0000644000175000017500000000243606045540460014105 0ustar alal (;FF[3]GM[1]RO[2]SZ[19]PB[Cho Chikun]BR[9 dan]PW[Kato Masao]WR[9 dan]DT[1995-05-24,25]PC[Japan]TM[8h]RE[W+R]KM[5.5]B[qd]BS[0]WS[0];W[dd];B[pq];W[dp];B[oc];W[po];B[qo];W[qn];B[qp];W[rd] ;B[re];W[qe];B[qf];W[pe];B[rc];W[pd];B[qc];W[rf];B[sd];W[pn] ;B[nq];W[qg];B[ep];W[eo];B[dq];W[cq];B[eq];W[fo];B[cp];W[do] ;B[bq];W[cr];B[br];W[fp];B[fq];W[gq];B[gr];W[hr];B[hq];W[gp] ;B[fr];W[dg];B[iq];W[jd];B[cj];W[ej];B[cl];W[dk];B[dm];W[cn] ;B[bo];W[fm];B[cc];W[dc];B[cd];W[cf];B[db];W[eb];B[cb];W[fc] ;B[ce];W[de];B[bm];W[pf];B[kj];W[op];B[oq];W[bn];B[an];W[ij] ;B[kh];W[mj];B[kf];W[jg];B[kg];W[ld];B[ii];W[hi];B[ih];W[jj] ;B[nh];W[ki];B[li];W[ji];B[kd];W[kc];B[ke];W[jc];B[oi];W[pj] ;B[pi];W[qi];B[qj];W[qk];B[rj];W[ri];B[jh];W[mi];B[pk];W[oj] ;B[lj];W[mk];B[hj];W[mh];B[hk];W[il];B[gi];W[kl];B[mo];W[jp] ;B[io];W[jo];B[ho];W[hl];B[gf];W[be];B[bd];W[bg];B[ae];W[if] ;B[ie];W[je];B[jf];W[he];B[hf];W[id];B[ln];W[fg];B[fj];W[fk] ;B[gk];W[fi];B[gl];W[gm];B[hm];W[fl];B[lh];W[ik];B[hh];W[gj] ;B[mg];W[jm];B[fj];W[co];B[bp];W[gj];B[hi];W[jq];B[ir];W[ok] ;B[mc];W[lq];B[ll];W[lk];B[kk];W[kn];B[jl];W[jk];B[im];W[jl] ;B[mm];W[mp];B[np];W[no];B[nn];W[oo];B[lp];W[mq];B[om];W[nl] ;B[pl];W[ql];B[nm];W[lo];B[ko];W[lm];B[km];W[jn];B[nj];W[rk] ;B[kr];W[kq];B[pm];W[lm];B[ni];W[nk];B[km];W[jr];B[js];W[lm] ;B[qm];W[rm];B[km];W[lr])goban-1.1.orig/games/M-62-l05.sgf0000644000175000017500000000334406252641332013775 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Sugiuchi Masao] BR[9 dan] PW[Hashimoto Shoji] WR[9 dan] DT[1962-] PC[Japan] RE[B+3] KM[5] ;B[qd];W[dc];B[cp];W[pq];B[ce];W[eq];B[qo];W[oc];B[ld] ;W[qh];B[pc];W[qk];B[mq];W[op];B[jq];W[qp];B[od];W[cg];B[ee] ;W[gc];B[dj];W[cl];B[dq];W[ep];B[cn];W[hq];B[ci];W[el];B[en] ;W[fk];B[gn];W[ho];B[jo];W[hn];B[gm];W[im];B[gk];W[gj];B[hk] ;W[ei];B[dh];W[hj];B[ik];W[fg];B[dg];W[ij];B[jk];W[km];B[ln] ;W[jj];B[kk];W[lm];B[mn];W[mm];B[nn];W[do];B[dn];W[co];B[bo] ;W[bn];B[bq];W[ao];B[bp];W[bm];B[mk];W[er];B[dr];W[nm];B[on] ;W[lj];B[lk];W[om];B[ok];W[qm];B[oi];W[cd];B[be];W[pn];B[iq] ;W[ir];B[jr];W[bj];B[bi];W[pj];B[ic];W[bd];B[gd];W[fd];B[ed] ;W[ec];B[fe];W[fc];B[hd];W[cj];B[di];W[dk];B[ej];W[fj];B[bk] ;W[ak];B[al];W[aj];B[pl];W[pm];B[ai];W[ck];B[lh];W[li];B[mh] ;W[kh];B[oj];W[kg];B[qi];W[pi];B[ph];W[ri];B[qg];W[rh];B[hg] ;W[pg];B[oh];W[qf];B[kj];W[ki];B[ih];W[jh];B[or];W[pr];B[gh] ;W[ke];B[le];W[if];B[fi];W[of];B[ne];W[nf];B[mf];W[mj];B[hm] ;W[jn];B[hr];W[gp];B[nj];W[mg];B[lg];W[ng];B[gq];W[hp];B[gr] ;W[fo];B[fn];W[kf];B[lf];W[jc];B[ib];W[kc];B[fa];W[fb];B[lc] ;W[lb];B[mb];W[re];B[ql];W[rl];B[ie];W[je];B[ig];W[bl];B[dd] ;W[ga];B[ad];W[bb];B[rd];W[mp];B[lp];W[ds];B[cs];W[es];B[cr] ;W[sd];B[sc];W[se];B[rc];W[nr];B[nq];W[oq];B[mr];W[os];B[np] ;W[hf];B[gf];W[ac];B[oo];W[po];B[ha];W[gb];B[kb];W[jb];B[la] ;W[he];B[id];W[ae];B[ii];W[ji];B[af];W[jf];B[ge];W[kn];B[ko] ;W[fs];B[pe];W[pf];B[qe];W[rf];B[ja];W[hb];B[ia];W[oe];B[nd] ;W[ip];B[jp];W[gs];B[hs];W[gi];B[fh];W[fl];B[nh];W[ms];B[ls] ;W[ns];B[ap];W[an];B[mi];W[jl];B[gl];W[il];B[ad];W[jg];B[hh] ;W[ae];B[rk];W[rm];B[ad];W[lr];B[ks];W[ae];B[pk];W[qj];B[ad] ;W[ek];B[dm];W[ae];B[cc];W[bc];B[ad] C[255 moves complete.] ;B[ae] C[Black connects the ko.] ) goban-1.1.orig/games/Nih-73-4.mgt0000644000175000017500000000350106377113242014071 0ustar alal(;SZ[19]EV[22nd Nihon Ki-in Ch.ship]RO[4]PB[Cho]PW[Sakata]RE[W+1.5]SO[Kido Yearbook]DT[1974];B[pd];W[dp];B[pp];W[cc];B[pj];W[nc];B[pf];W[jd];B[jp];W[gp];B[dd];W[cd];B[de];W[eb];B[ge];W[bf];B[dh];W[lq];B[nq];W[lo];B[ho];W[lm];B[hp];W[gq];B[go];W[dn];B[qo];W[il];B[gl];W[lk];B[el];W[cl];B[mp];W[lp];B[kn];W[ln];B[jl];W[jk];B[kl];W[kk];B[ll];W[ml];B[jn];W[mk];B[dq];W[cq];B[eq];W[ep];B[cr];W[bq];B[gr];W[hr];B[fr];W[hq];B[jr];W[fq];B[mm];W[kr];B[iq];W[hs];B[js];W[nm];B[mn];W[np];B[nn];W[oq];B[op];W[nr];B[no];W[pq];B[or];W[pr];B[mr];W[os];B[mq];W[qc];B[pc];W[pb];B[ob];W[rb];B[pa];W[qb];B[oc];W[rf];B[br];W[ar];B[kg];W[gc];B[fc];W[gb];B[ki];W[ji];B[ij];W[jj];B[ie];W[mi];B[mg];W[oi];B[oj];W[nj];B[nh];W[ni];B[ic];W[ib];B[jc];W[jb];B[re];W[qe];B[qf];W[rd];B[om];W[pi];B[rg];W[se];B[qj];W[og];B[of];W[ng];B[nf];W[mh];B[pg];W[oh];B[rq];W[rr];B[kc];W[kb];B[lb];W[ok];B[pl];W[hc];B[fo];W[fp];B[id];W[cj];B[ik];W[lg];B[mf];W[kh];B[lf];W[lh];B[bh];W[cg];B[ch];W[dj];B[ec];W[dc];B[df];W[mb];B[lc];W[la];B[be];W[ce];B[cf];W[bd];B[bg];W[ae];B[jg];W[em];B[fm];W[fk];B[fl];W[fh];B[dl];W[cm];B[aj];W[bi];B[ai];W[bk];B[gj];W[ii];B[hh];W[hi];B[fj];W[eg];B[ei];W[gi];B[qq];W[qr];B[mc];W[sq];B[rp];W[nb];B[ma];W[ka];B[nd];W[na];B[oa];W[ma];B[pe];W[qa];B[qi];W[dg];B[fe];W[ih];B[ig];W[hg];B[hf];W[ej];B[fi];W[gg];B[fb];W[fa];B[en];W[dm];B[eo];W[do];B[ms];W[sr];B[ek];W[hj];B[hk];W[pk];B[qk];W[ol];B[nl];W[nk];B[qd];W[re];B[sg];W[nm];B[ns];W[or];B[nl];W[ph];B[qh];W[nm];B[sc];W[sb];B[nl];W[sp];B[so];W[nm];B[db];W[ea];B[nl];W[ff];B[ee];W[nm];B[es];W[gs];B[nl];W[fd];B[ed];W[nm];B[dr];W[fs];B[nl];W[pm];B[ql];W[nm];B[qs];W[rs];B[nl];W[ro];B[rn];W[nm];B[bo];W[cp];B[nl];W[sn];B[sm];W[nm];B[ak];W[al];B[nl];W[gd];B[gf];W[nm];B[da];W[ga];B[nl];W[eh];B[di];W[nm];B[ia];W[cb];B[nl];W[ef];B[hd];W[ca];B[nm];W[bj];B[ah];W[dk];B[af];W[ag];B[bl];W[bm];B[af];W[jo];B[gk];W[ag];B[ir];W[af])goban-1.1.orig/games/M-63-3.mgt0000644000175000017500000000323106252627042013545 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-08-23,24]ID[63/3]PW[Fujisawa Shuko]RE[W+13]PB[Sakata Eio]FF[3]BR[9 Dan];B[qc];W[dp];B[pq];W[dc];B[ce];W[qo];B[gd];W[de];B[df] ;W[ee];B[cd];W[cc];B[fc];W[ec];B[gf];W[gg];B[hf];W[ff];B[ci] ;W[pd];B[qd];W[pe];B[ob];W[md];B[rf];W[kd];B[hg];W[gh];B[hh] ;W[gi];B[cl];W[hc];B[hd];W[fb];B[ic];W[gb];B[jb];W[pg];B[pi] ;W[pl];B[ng];W[oh];B[nd];W[ne];B[nc];W[lg];B[mg];W[lh];B[mf] ;W[me];B[lf];W[kf];B[ni];W[ke];B[of];W[id];B[jd];W[ie];B[hi] ;W[pf];B[oe];W[oi];B[od];W[oj];B[je];W[if];B[jc];W[jg];B[mi] ;W[li];B[gj];W[eh];B[dh];W[rg];B[ei];W[lk];B[fq];W[mb];B[lb] ;W[mc];B[hb];W[gc];B[ia];W[pc];B[pb];W[re];B[rd];W[sf];B[nk] ;W[op];B[ll];W[mk];B[kk];W[kj];B[ml];W[jk];B[kl];W[nj];B[pp] ;W[po];B[oo];W[nb];B[rb];W[oq];B[or];W[nr];B[pr];W[no];B[on] ;W[nn];B[nq];W[np];B[mq];W[lo];B[qp];W[om];B[oc];W[jl];B[fi] ;W[fh];B[dg];W[ef];B[hj];W[in];B[dr];W[cq];B[cr];W[cm];B[co] ;W[do];B[cn];W[dn];B[bm];W[dm];B[im];W[jm];B[hn];W[bl];B[bn] ;W[ck];B[dl];W[gp];B[io];W[jn];B[gq];W[bk];B[dk];W[bp];B[cj] ;W[br];B[bs];W[go];B[hp];W[eq];B[er];W[cp];B[bj];W[ho];B[gn] ;W[fp];B[fo];W[ep];B[ip];W[fn];B[fm];W[eo];B[kp];W[lq];B[lp] ;W[mp];B[mr];W[lr];B[ns];W[hq];B[iq];W[hr];B[gr];W[jp];B[kq] ;W[ko];B[jq];W[ro];B[bc];W[bb];B[bd];W[ab];B[gl];W[em];B[el] ;W[hl];B[sp];W[rp];B[rq];W[so];B[hk];W[il];B[gm];W[ir];B[kr] ;W[sq];B[rr];W[cs];B[ds];W[gs];B[fr];W[fd];B[ar];W[bq];B[mj] ;W[lj];B[jj];W[ji];B[ij];W[jf];B[jo];W[km];B[la];W[sr];B[jh] ;W[ih];B[kh];W[ig];B[ii];W[kg];B[nl];W[sd];B[sc];W[se];B[le] ;W[ld];B[na];W[ma];B[oa];W[ok];B[qe];W[qf];B[eg];W[fg];B[dd] ;W[ed];B[ac];W[ga];B[ha];W[bo];B[ak];W[an];B[al];W[kc];B[kb] ;W[hm];B[rs];W[aq];B[jr];W[as];B[cs];W[ar])goban-1.1.orig/games/Hon-82-6.mgt0000644000175000017500000000201306045540436014077 0ustar alal (;GM[1]PW[Cho Chikun]PB[Kobayashi Koichi]SZ[19]FF[3]DT[1982-07-21,22]PC[Murayama]RE[W+R]BS[0]WS[0]KM[5.5];B[qd];W[cc];B[pq];W[cq];B[oc];W[qo];B[qm];W[op];B[pp] ;W[po];B[oo];W[on];B[no];W[pm];B[pl];W[ol];B[pk];W[ok];B[pj] ;W[oj];B[pi];W[or];B[rq];W[np];B[mo];W[mp];B[nm];W[om];B[qn] ;W[pn];B[ro];W[lo];B[mn];W[qp];B[qq];W[ko];B[lm];W[oi];B[ph] ;W[kj];B[kl];W[oh];B[og];W[ng];B[il];W[ho];B[lq];W[lp];B[mh] ;W[mj];B[gl];W[rp];B[sp];W[jk];B[im];W[hq];B[hj];W[of];B[pg] ;W[mg];B[df];W[fc];B[cp];W[dp];B[co];W[do];B[bq];W[dq];B[cm] ;W[dn];B[dm];W[bf];B[ed];W[ec];B[be];W[cn];B[bn];W[bm];B[bl] ;W[ce];B[cf];W[bd];B[bg];W[bo];B[am];W[bp];B[md];W[ih];B[kd] ;W[ae];B[ch];W[lg];B[pf];W[oq];B[pr];W[rn];B[so];W[ps];B[qs] ;W[os];B[rm];W[jc];B[kc];W[kb];B[lb];W[gh];B[hc];W[ib];B[ig] ;W[jg];B[if];W[hb];B[ii];W[jh];B[gc];W[gb];B[fn];W[fi];B[gi] ;W[fg];B[hh];W[hg];B[hf];W[hi];B[ip];W[gj];B[jq];W[io];B[hp] ;W[gp];B[gq];W[gr];B[fq];W[fp];B[hr];W[fr];B[mr];W[kr];B[kq] ;W[gn];B[hs];W[eq];B[jr];W[iq];B[jp];W[jo];B[ir];W[el];B[ek] ;W[fk];B[fl];W[em])goban-1.1.orig/games/T-22-4.mgt0000644000175000017500000000347506404362144013560 0ustar alal( ; SY[Written by GoBase-0.0.9] EV[22nd Tengen] RO[4th round] PB[Rin Kaiho] BR[9 dan] PW[Ryu Shikun] WR[9 dan] KM[5.5] DT[1996-12-19] PC[Japan] RE[W+3.5] ;B[pd];W[dp];B[qp];W[dc];B[de];W[oq];B[cc];W[ql];B[po];W[qi] ;B[dd];W[ec];B[cb];W[id];B[ci];W[mc];B[qf];W[kq];B[oc];W[ck] ;B[fq];W[eq];B[fp];W[dn];B[iq];W[jo];B[in];W[io];B[gn];W[hn] ;B[hm];W[ho];B[fm];W[no];B[pq];W[or];B[co];W[do];B[cq];W[er] ;B[cn];W[cp];B[bp];W[cm];B[br];W[bm];B[ao];W[ek];B[fk];W[ej] ;B[pr];W[gl];B[fl];W[go];B[fo];W[gm];B[fn];W[hl];B[gk];W[fi] ;B[hk];W[il];B[ik];W[cg];B[dg];W[ch];B[cf];W[bf];B[be];W[kj] ;B[kk];W[lk];B[ih];W[qc];B[qd];W[jg];B[dh];W[bi];B[ei];W[cj] ;B[jh];W[kh];B[kg];W[kf];B[lg];W[lh];B[mg];W[ig];B[ll];W[mk] ;B[jl];W[im];B[jj];W[ml];B[gc];W[gg];B[me];W[mh];B[fr];W[hr] ;B[hq];W[ir];B[dq];W[ep];B[jq];W[jr];B[jm];W[jn];B[lm];W[ro] ;B[lq];W[kp];B[rp];W[gd];B[nn];W[mm];B[ln];W[mn];B[fh];W[le] ;B[ng];W[ob];B[nb];W[pb];B[nc];W[rd];B[re];W[rb];B[sd];W[rc] ;B[fd];W[hc];B[ge];W[hd];B[fc];W[md];B[ne];W[mb];B[rm];W[rl] ;B[ma];W[la];B[na];W[kb];B[rn];W[bg];B[op];W[mq];B[np];W[lr] ;B[nh];W[oj];B[nj];W[nk];B[oi];W[pi];B[rh];W[ri];B[mo];W[nm] ;B[on];W[qm];B[pl];W[ol];B[pj];W[ok];B[qn];W[pg];B[qh];W[ph] ;B[pf];W[di];B[pm];W[pk];B[eh];W[an];B[bo];W[ae];B[ad];W[af] ;B[bd];W[dr];B[cr];W[ps];B[qs];W[os];B[qr];W[gq];B[gb];W[hb] ;B[ha];W[ia];B[ga];W[ib];B[lj];W[mj];B[ki];W[mi];B[gp];W[gr] ;B[hp];W[gf];B[he];W[ie];B[lf];W[jf];B[oa];W[pa];B[nq];W[nr] ;B[fe];W[sh];B[sl];W[fj];B[sk];W[rk];B[rj];W[qk];B[sg];W[si] ;B[ke];W[ld];B[qg];W[ni];B[lp];W[sf];B[rg];W[nd];B[od];W[of] ;B[og];W[oh];B[oe];W[sj];B[sm];W[ef];B[pc];W[ra];B[qb];W[qa] ;B[lb];W[lc];B[df];W[ff];B[hf];W[hi];B[kn];W[fs];B[ii];W[hj] ;B[hg];W[gh];B[if];W[je];B[bn];W[am];B[el];W[dl];B[gj];W[gi] ;B[ds];W[es];B[cs];W[ee];B[ed];W[sc];B[se];W[ij];B[ko];W[hh] ;B[ji];W[om];B[jp];W[kr];B[pn];W[li];B[kj];B[rp] ) goban-1.1.orig/games/Hon-67-3.mgt0000644000175000017500000000214606045540374014107 0ustar alal (;GM[1]FF[3]DT[1967-05-23,24]SZ[19]PB[Rin Kaiho]PW[Sakata Eio]KM[4.5]RE[W+R]BS[0]WS[0];B[qd];W[ec];B[pq];W[oc];B[cp];W[eq];B[qo];W[pe];B[qe] ;W[pf];B[qg];W[pg];B[qh];W[ph];B[pi];W[qf];B[rf];W[oi];B[oj] ;W[re];B[rg];W[qc];B[ni];W[oh];B[rd];W[nj];B[ok];W[nk];B[nl] ;W[ml];B[mm];W[lk];B[nm];W[qp];B[pp];W[pj];B[qi];W[lm];B[ln] ;W[km];B[jc];W[hc];B[mc];W[pd];B[je];W[rc];B[se];W[kd];B[jd] ;W[lb];B[kc];W[lc];B[ld];W[mb];B[he];W[kn];B[lo];W[qq];B[ro] ;W[pr];B[or];W[rr];B[nq];W[ko];B[kp];W[ol];B[pk];W[po];B[rp] ;W[no];B[mn];W[lp];B[mp];W[lq];B[kq];W[lr];B[oo];W[jp];B[ep] ;W[dp];B[do];W[dq];B[cq];W[cr];B[cn];W[bo];B[co];W[br];B[fp] ;W[fr];B[dj];W[rq];B[qs];W[pn];B[on];W[cd];B[cf];W[en];B[eo] ;W[ch];B[dh];W[dk];B[ck];W[dg];B[cg];W[cl];B[dl];W[di];B[eh] ;W[cj];B[ek];W[ei];B[fh];W[bk];B[dk];W[fi];B[ef];W[bl];B[bh] ;W[ci];B[fn];W[gh];B[gf];W[qk];B[pl];W[gk];B[bi];W[bj];B[bn] ;W[sq];B[qr];W[rn];B[ql];W[rs];B[qn];W[ps];B[dc];W[cc];B[dd] ;W[db];B[eb];W[cb];B[fb];W[fc];B[gb];W[de];B[ed];W[ee];B[fd] ;W[gc];B[hb];W[ce];B[df];W[ff];B[fe];W[fg];B[be];W[eg];B[bf] ;W[ag];B[ab];W[bd];B[ad];W[bg];B[ae];W[ac];B[bc];W[bb];B[ac] ;W[ba])goban-1.1.orig/games/M-73-3.mgt0000644000175000017500000000316706260323136013552 0ustar alal(;SZ[19]EV[12th Meijin match game 3]DT[1973 Sept 13,14]PB[Rin]PW[Ishida]KM[5.5]RE[W+2.5];B[pd];W[cc];B[pq];W[cq];B[qk];W[ed];B[jc];W[dj];B[pf];W[po];B[np];W[nl];B[ok];W[nk];B[ol];W[nm];B[nj];W[mj];B[mi];W[lj];B[ni];W[li];B[fp];W[do];B[dq];W[dp];B[eq];W[cr];B[fn];W[em];B[gc];W[jp];B[hp];W[qq];B[qr];W[qp];B[or];W[no];B[mo];W[op];B[mq];W[lp];B[mp];W[jn];B[cd];W[dc];B[bj];W[bh];B[ci];W[dg];B[cm];W[bn];B[di];W[fj];B[fi];W[iq];B[hq];W[gj];B[en];W[dn];B[dm];W[bm];B[om];W[nn];B[gi];W[lq];B[mr];W[el];B[ln];W[km];B[lm];W[kl];B[ll];W[lk];B[hj];W[hk];B[ik];W[hl];B[fg];W[ef];B[lh];W[ir];B[io];W[jo];B[go];W[hi];B[fe];W[ij];B[bf];W[cg];B[gg];W[ff];B[gf];W[fd];B[gd];W[ig];B[jh];W[ih];B[pc];W[ee];B[ge];W[kf];B[bc];W[bb];B[ab];W[cb];B[eb];W[lg];B[in];W[mg];B[nf];W[ng];B[og];W[oh];B[nh];W[ld];B[lc];W[oe];B[md];W[rl];B[rk];W[me];B[nd];W[ne];B[ph];W[od];B[oc];W[mc];B[nc];W[kc];B[lb];W[kd];B[kb];W[of];B[pg];W[rr];B[rs];W[rq];B[oq];W[qm];B[rn];W[qn];B[rm];W[ql];B[sl];W[jd];B[ro];W[ic];B[jb];W[ie];B[ib];W[on];B[im];W[il];B[bl];W[cl];B[dl];W[ck];B[bg];W[ch];B[ce];W[ag];B[eg];W[cf];B[ae];W[ah];B[bk];W[ej];B[dh];W[af];B[bd];W[ac];B[fl];W[fm];B[gm];W[ek];B[ec];W[dd];B[ad];W[aa];B[fc];W[ca];B[dr];W[hr];B[gr];W[gs];B[fr];W[lo];B[mn];W[lr];B[ba];W[be];B[bf];W[aa];B[cs];W[bs];B[ds];W[br];B[ba];W[de];B[db];W[aa];B[da];W[ac];B[bp];W[cp];B[ab];W[df];B[ba];W[bg];B[mh];W[kh];B[gl];W[hc];B[hb];W[pp];B[cj];W[dk];B[pk];W[ei];B[eh];W[hm];B[hn];W[ms];B[ns];W[ls];B[pe];W[al];B[fs];W[hs];B[kn];W[jm];B[ko];W[kp];B[ml];W[mk];B[pm];W[pn];B[ak];W[am];B[ai];W[be];B[le];W[mf];B[bf];W[aa];B[bi];W[ac];B[if];W[jf];B[hf];W[gh];B[fh];W[hh];B[eo];W[gk];B[sm];W[so];B[sp];W[rp];B[sn])goban-1.1.orig/games/M-70-4.sgf0000644000175000017500000000354206252650510013535 0ustar alal( ; DT[1970-] RO[4] KM[5] EV[9th Meijin 1970] BR[9 dan] WR[Meijin] PB[Fujisawa Shuko] PW[Rin Kaiho] RE[B+5] ;B[qd];W[qp];B[cp];W[eq];B[dc];W[oc];B[op];W[de];B[hp] ;W[fp];B[dn];W[cq];B[bq];W[dp];B[co];W[cr];B[cj];W[fd];B[kc] ;W[fb];B[pe];W[ld];B[kd];W[le];B[ke];W[lf];B[jg];W[lh];B[hd] ;W[be];B[pm];W[ki];B[ph];W[jq];B[fn];W[oq];B[nq];W[pq];B[np] ;W[hq];B[ro];W[qo];B[rn];W[rp];B[mi];W[pn];B[om];W[qm];B[qn] ;W[rm];B[po];W[sn];B[on];W[so];B[mb];W[mc];B[nb];W[nc];B[ne] ;W[lc];B[lb];W[mh];B[ni];W[ii];B[hb];W[ec];B[ql];W[rl];B[qk] ;W[rk];B[rj];W[ig];B[ih];W[hh];B[jh];W[ji];B[hi];W[of];B[oe] ;W[qj];B[pj];W[hj];B[gi];W[gj];B[gh];W[ej];B[fj];W[fk];B[fi] ;W[gl];B[kg];W[lg];B[ek];W[qi];B[ri];W[dh];B[dk];W[fm];B[ip] ;W[iq];B[em];W[gn];B[hm];W[fo];B[ik];W[ij];B[en];W[gm];B[qh] ;W[bi];B[kk];W[ko];B[jn];W[kn];B[jm];W[km];B[kl];W[il];B[hl] ;W[hk];B[hn];W[jk];B[jl];W[gp];B[ee];W[ed];B[df];W[ce];B[ch] ;W[ci];B[di];W[eh];B[cg];W[dg];B[cf];W[ef];B[bh];W[ei];B[dj] ;W[bf];B[bj];W[bg];B[ai];W[hg];B[gg];W[ie];B[if];W[hf];B[he] ;W[gf];B[ff];W[jf];B[ge];W[if];B[eg];W[kf];B[pb];W[pc];B[qb] ;W[ob];B[oa];W[br];B[pn];W[or];B[lq];W[kq];B[lp];W[jo];B[lm] ;W[lj];B[bp];W[qc];B[rc];W[ic];B[ib];W[jc];B[jb];W[fe];B[hc] ;W[ef];B[fh];W[nk];B[ml];W[oi];B[oh];W[oj];B[mk];W[mj];B[nh] ;W[nj];B[pi];W[nf];B[kr];W[jr];B[qr];W[rr];B[nr];W[rd];B[rb] ;W[qe];B[pd];W[pf];B[qf];W[re];B[rf];W[me];B[sd];W[nl];B[nm] ;W[qq];B[lr];W[ln];B[mn];W[lk];B[ll];W[kj];B[ho];W[je];B[ar] ;W[js];B[ee];W[kb];B[ka];W[ef];B[sk];W[sm];B[ee];W[na];B[pa] ;W[ef];B[rs];W[pr];B[ee];W[nd];B[se];W[ef];B[sr];W[qs];B[ee] ;W[jd];B[kb];W[ef];B[sp];W[sq];B[ee];W[aq];B[ef];W[db];B[ap] ;W[gb];B[ng];W[lo];B[mo];W[ks];B[ls];W[pg];B[qg];W[eo];B[el] ;W[ha];B[ia];W[ga];B[os];W[im];B[in];W[ik];B[gc];W[ag];B[ns] ;W[ps];B[bs];W[cs];B[ol];W[ok];B[pk];W[as];B[dr];W[aq];B[dq] ;W[er];B[ar];W[ds];B[bs];W[sj];B[si];W[as];B[aq];W[bs] C[288 moves complete.] ) goban-1.1.orig/games/M-69-2.mgt0000644000175000017500000000237006252627042013555 0ustar alal(;GM[1]SZ[19]PB[Takagawa Kaku]PW[Rin Kaiho]KM[5]DT[1969-08-29,30]RE[B+R]ID[69/2]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[dp];B[oc];W[qo];B[qm];W[oo];B[np] ;W[lo];B[no];W[pm];B[pl];W[om];B[qn];W[pn];B[qk];W[nn];B[lq] ;W[kq];B[kr];W[lr];B[mr];W[mq];B[lp];W[mp];B[kp];W[nq];B[nr] ;W[oq];B[or];W[ko];B[jp];W[op];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[cj];W[cl];B[ej];W[rd];B[rc];W[qi];B[ro];W[qq];B[rp] ;W[pr];B[qg];W[oi];B[ol];W[fq];B[og];W[jc];B[lc];W[mi];B[cn] ;W[bp];B[dm];W[dl];B[el];W[bn];B[bo];W[co];B[bm];W[ao];B[bl] ;W[em];B[en];W[fm];B[fl];W[fn];B[cm];W[jq];B[jr];W[iq];B[ir] ;W[hq];B[ls];W[fe];B[nl];W[qe];B[pd];W[rg];B[rf];W[qf];B[qh] ;W[rh];B[re];W[rj];B[mg];W[rk];B[rl];W[fg];B[bf];W[be];B[dd] ;W[cc];B[je];W[lb];B[kb];W[kc];B[jb];W[ld];B[mc];W[ib];B[mb] ;W[ic];B[kf];W[lj];B[nj];W[sf];B[sd];W[pg];B[ph];W[oh];B[pf] ;W[pi];B[pe];W[mh];B[lg];W[hr];B[rq];W[rr];B[gf];W[ff];B[ll] ;W[kk];B[kd];W[mk];B[qp];W[pp];B[nm];W[sq];B[po];W[on];B[sp] ;W[sr];B[mj];W[lk];B[sn];W[jd];B[ke];W[gl];B[gk];W[hk];B[gj] ;W[hj];B[gi];W[hl];B[hd];W[ie];B[id];W[gc];B[if];W[eh];B[dh] ;W[af];B[ag];W[ae];B[bh];W[io];B[eo];W[lm];B[gd];W[fd];B[li] ;W[nk];B[oj];W[ok];B[pj];W[ki];B[lh];W[qj];B[pk];W[si];B[mm] ;W[ja];B[la];W[ii];B[ln];W[kn];B[km];W[jm];B[go])goban-1.1.orig/games/Hon-65-1.mgt0000644000175000017500000000223506045540372014100 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1965-04-28,29]PB[Yamabe Toshiro]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[oc];W[qo];B[pl];W[pn];B[oo] ;W[pp];B[oq];W[qq];B[qr];W[op];B[np];W[nq];B[nr];W[mq];B[mp] ;W[lq];B[lp];W[kq];B[kp];W[rr];B[jq];W[ps];B[de];W[nn];B[fd] ;W[ce];B[cd];W[dd];B[cc];W[cb];B[bb];W[cf];B[db];W[eb];B[ca] ;W[ee];B[ec];W[df];B[fe];W[ff];B[gf];W[fg];B[gg];W[gh];B[ed] ;W[dm];B[kr];W[or];B[lr];W[pr];B[mr];W[oq];B[fp];W[dp];B[de] ;W[hh];B[ch];W[cj];B[dj];W[ck];B[ef];W[eg];B[dg];W[ee];B[em] ;W[gq];B[dn];W[gp];B[di];W[fi];B[dl];W[dk];B[ek];W[cm];B[fj] ;W[cn];B[ef];W[cg];B[dh];W[ee];B[hj];W[dd];B[if];W[ii];B[jk] ;W[kj];B[go];W[ip];B[jp];W[ho];B[gn];W[hn];B[jn];W[ir];B[jr] ;W[gm];B[hm];W[im];B[hl];W[jm];B[kn];W[in];B[jj];W[ji];B[ll] ;W[kk];B[kl];W[gk];B[gl];W[hk];B[il];W[jl];B[ik];W[fo];B[fn] ;W[fl];B[fm];W[ij];B[gm];W[eo];B[fk];W[mk];B[nm];W[mi];B[ld] ;W[nd];B[nc];W[je];B[jf];W[md];B[lc];W[le];B[jd];W[rd];B[qe] ;W[re];B[qc];W[kf];B[ie];W[qf];B[pf];W[qg];B[pg];W[ph];B[qh] ;W[rh];B[qi];W[ri];B[ni];W[nh];B[oh];W[pi];B[mh];W[ng];B[mg] ;W[nf];B[kg];W[kh];B[mj];W[li];B[qj];W[pj];B[qk];W[nj];B[nk] ;W[lj];B[on];W[rc];B[lf];W[mf];B[ke];W[qb];B[pb];W[mm])goban-1.1.orig/games/Hon-75-1.sgf0000644000175000017500000000272706243711164014076 0ustar alal( ; SZ[19] EV[30th Honinbo, game 1] PW[Sakata Eio] WR[9 dan] PB[Ishida Yoshio] BR[Honinbo] DT[1975-05-15,16] KM[5.5] RE[W+R] ;B[qd];W[cq];B[ec];W[qq];B[od];W[cd];B[pp];W[pq];B[op];W[ro] ;B[pm];W[nr];B[df];W[ed];B[dd];W[de];B[dc];W[ce];B[ee];W[fd] ;B[cc];W[fc];B[cf];W[bf];B[bg];W[bc];B[af];W[bd];B[bb];W[cb] ;B[db];W[ba];B[ca];W[ab];B[aa];W[ef];B[fe];W[ba];B[ge];W[cb] ;B[fb];W[da];B[eb];W[eg];B[dh];W[gc];B[hc];W[gb];B[hb];W[fa] ;B[dn];W[gg];B[di];W[ig];B[ie];W[kg];B[ld];W[eq];B[mg];W[ql] ;B[gi];W[ii];B[cp];W[dp];B[co];W[bq];B[hk];W[jk];B[hm];W[hi] ;B[gj];W[lj];B[pi];W[pl];B[nm];W[jb];B[kc];W[qc];B[pc];W[ri] ;B[lh];W[kh];B[li];W[ki];B[mj];W[lk];B[ol];W[qi];B[qm];W[pj] ;B[rl];W[rd];B[qe];W[re];B[rf];W[qf];B[qg];W[pf];B[rg];W[qb] ;B[ph];W[pb];B[ob];W[nj];B[mk];W[ml];B[nk];W[rk];B[qk];W[pk] ;B[rn];W[sl];B[rm];W[sh];B[se];W[sc];B[of];W[og];B[pg];W[nf] ;B[oe];W[qj];B[lr];W[qo];B[fn];W[ae];B[be];W[on];B[om];W[ok] ;B[nl];W[bf];B[bh];W[eo];B[en];W[an];B[ap];W[bp];B[bo];W[ao] ;B[am];W[aq];B[bn];W[hq];B[ir];W[hr];B[iq];W[lq];B[kq];W[mq] ;B[kp];W[ha];B[ia];W[ea];B[ic];W[ni];B[mi];W[nh];B[ng];W[no] ;B[so];W[rp];B[hp];W[gp];B[hs];W[fr];B[pn];W[po];B[gh];W[hh] ;B[hf];W[hg];B[kl];W[ik];B[mo];W[oo];B[lf];W[hj];B[hl];W[fh] ;B[fi];W[ib];B[ga];W[eh];B[ei];W[ha];B[rh];W[sk];B[ga];W[ap] ;B[bm];W[ha];B[si];W[sj];B[ga];W[hd];B[jc];W[go];B[fo];W[fp] ;B[sf];W[rb];B[sd];W[sa];B[rc];W[rd];B[mp];W[np];B[mr];W[ll] ;B[be];W[gn];B[gm];W[bf];B[re];W[rc];B[be];W[ms];B[kr];W[bf] ;B[ls];W[ag];B[ns];W[or] ) goban-1.1.orig/games/Hon-65-2.mgt0000644000175000017500000000156306045540372014104 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1965-05-07,08]PB[Sakata Eio]PW[Yamabe Toshiro]RE[B+R]FF[3]BR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[oq];W[ec];B[do];W[co];B[cn] ;W[cp];B[dm];W[fq];B[ci];W[qj];B[cf];W[qm];B[qi];W[pd];B[pc] ;W[od];B[pj];W[ri];B[pi];W[rj];B[qg];W[oc];B[qd];W[kc];B[ee] ;W[ed];B[fe];W[gd];B[go];W[ej];B[gj];W[fh];B[ei];W[cg];B[ce] ;W[fi];B[bd];W[dg];B[cc];W[dd];B[bf];W[di];B[cj];W[bg];B[ef] ;W[dk];B[ck];W[fl];B[ic];W[bb];B[cb];W[bc];B[ab];W[ae];B[ac] ;W[hd];B[mc];W[af];B[be];W[md];B[lc];W[ld];B[kb];W[kd];B[jc] ;W[hb];B[ib];W[gf];B[ba];W[en];B[dl];W[qe];B[re];W[rf];B[qf] ;W[pe];B[sd];W[hc];B[ie];W[je];B[id];W[if];B[nb];W[ob];B[he] ;W[ge];B[hf];W[hg];B[ig];W[jf];B[gg];W[hh];B[gh];W[la];B[gi] ;W[ih];B[ha];W[ga];B[ia];W[na];B[gb];W[fb];B[fa];W[ea];B[fc] ;W[ga];B[ma];W[mb];B[fa];W[bn];B[ff];W[bm];B[dj];W[fj];B[dh] ;W[eg];B[fm];W[ek];B[cl];W[em];B[el];W[dn];B[gl];W[fk];B[gk] )goban-1.1.orig/games/T-12-3.mgt0000644000175000017500000000201506252627522013550 0ustar alal(;GM[1]VW[]SZ[19]PW[Sonoda Yuichi]PB[Kobayashi Koichi]DT[1986-12-03]RE[B+R]ID[12/3]FF[3];B[qd];W[pp];B[cp];W[dd];B[oc];W[ep];B[eq];W[fq];B[dq] ;W[fp];B[cn];W[kp];B[qn];W[np];B[qj];W[jd];B[cf];W[el];B[fc] ;W[fd];B[gd];W[fe];B[ec];W[dc];B[ie];W[id];B[ge];W[ff];B[hc] ;W[ne];B[md];W[je];B[me];W[if];B[ed];W[de];B[ee];W[df];B[ef] ;W[dg];B[eg];W[rd];B[qc];W[lg];B[mg];W[mh];B[lf];W[ng];B[mf] ;W[lh];B[oi];W[oh];B[ni];W[nh];B[kf];W[ih];B[jh];W[jg];B[kg] ;W[kh];B[ji];W[ii];B[jf];W[ig];B[he];W[jj];B[on];W[qo];B[rn] ;W[nn];B[nm];W[oo];B[om];W[mn];B[en];W[fn];B[ck];W[ci];B[qg] ;W[ro];B[ll];W[mj];B[nk];W[sn];B[sm];W[so];B[rl];W[do];B[co] ;W[qh];B[rh];W[ph];B[bj];W[bi];B[km];W[qe];B[pe];W[pf];B[re] ;W[pj];B[pi];W[qi];B[ri];W[qf];B[rf];W[pg];B[rg];W[qk];B[rj] ;W[mk];B[ml];W[nj];B[oj];W[ok];B[pk];W[nl];B[ol];W[jn];B[jm] ;W[im];B[kn];W[nk];B[mm];W[ko];B[in];W[jo];B[em];W[fm];B[fr] ;W[gr];B[er];W[dl];B[hr];W[gs];B[gq];W[hq];B[gp];W[ir];B[cm] ;W[fo];B[il];W[hm];B[db];W[cb];B[eb];W[ca];B[dh];W[eh];B[cg] ;W[be];B[di];W[cj];B[ch])goban-1.1.orig/games/M-63-5.mgt0000644000175000017500000000263206252627042013553 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-09-13,14]ID[63/5]PB[Sakata Eio]PW[Fujisawa Shuko]RE[W+2]FF[3]BR[9 Dan];B[qc];W[cd];B[pp];W[dq];B[ed];W[ec];B[fc];W[dc];B[fd] ;W[de];B[kd];W[ff];B[id];W[cn];B[pi];W[nq];B[np];W[mp];B[no] ;W[oq];B[pq];W[lq];B[pn];W[ln];B[fq];W[hq];B[cl];W[cj];B[cp] ;W[dp];B[co];W[do];B[bn];W[dn];B[cm];W[pd];B[qd];W[pe];B[qe] ;W[pf];B[qf];W[pg];B[qg];W[ph];B[qh];W[oi];B[pj];W[bq];B[cq] ;W[cr];B[bp];W[ap];B[bo];W[br];B[dj];W[ci];B[el];W[gn];B[di] ;W[dh];B[ch];W[bh];B[cg];W[bg];B[cf];W[dg];B[ck];W[df];B[ho] ;W[hn];B[er];W[dr];B[iq];W[ir];B[hr];W[gr];B[in];W[im];B[fn] ;W[fo];B[jm];W[io];B[jn];W[jq];B[nc];W[ne];B[oc];W[md];B[mc] ;W[fj];B[ej];W[mi];B[nj];W[ni];B[lm];W[mn];B[nl];W[nm];B[ol] ;W[fb];B[gb];W[eb];B[bk];W[bi];B[hc];W[jo];B[or];W[nr];B[pr] ;W[ld];B[lc];W[ke];B[je];W[kf];B[lh];W[jf];B[jh];W[ie];B[jd] ;W[kj];B[ii];W[ij];B[hj];W[ji];B[hh];W[il];B[ik];W[jl];B[km] ;W[kh];B[hm];W[gm];B[hl];W[jk];B[jj];W[ki];B[kk];W[ij];B[jr] ;W[ip];B[jj];W[dk];B[fk];W[ij];B[hk];W[lk];B[mm];W[nn];B[fm] ;W[go];B[kl];W[jj];B[lj];W[li];B[mj];W[oj];B[mk];W[on];B[po] ;W[ei];B[ek];W[dm];B[dl];W[ok];B[pk];W[fh];B[ns];W[ms];B[os] ;W[mr];B[if];W[he];B[hf];W[ge];B[jg];W[kg];B[gi];W[fi];B[mo] ;W[lo];B[gg];W[fg];B[fa];W[ea];B[ga];W[pc];B[pb];W[gf];B[hg] ;W[gl];B[gk];W[nk];B[ml];W[bm];B[am];W[om];B[pm];W[aj];B[bj] ;W[ai];B[bf];W[ce];B[ak];W[be];B[en];W[eo];B[kn];W[ko];B[od] ;W[oe];B[ee];W[ef];B[hd];W[gd];B[gc])goban-1.1.orig/games/Hon-51-5.sgf0000644000175000017500000000341206243707340014065 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[ 6/5] FF[3] PB[Sakata Eio] PW[Hashimoto Utaro] DT[1951-05-31,06-01] RE[W+10.5] KM[4.5] ;B[pd];W[dp];B[pq];W[cc];B[po];W[kp];B[fq];W[qm];B[pj];W[om] ;B[pl];W[pm];B[no];W[hq];B[fo];W[cm];B[ho];W[ro];B[qp];W[rj] ;B[jq];W[eq];B[fr];W[jp];B[iq];W[ip];B[hp];W[mo];B[nn];W[hr] ;B[kq];W[lq];B[lr];W[mr];B[kr];W[mp];B[nq];W[mq];B[ir];W[lm] ;B[mn];W[ln];B[nl];W[qj];B[ml];W[jd];B[ko];W[jo];B[kn];W[jn] ;B[km];W[jm];B[kl];W[jl];B[kk];W[jk];B[ii];W[jj];B[hd];W[nc] ;B[em];W[ig];B[ih];W[gk];B[cl];W[er];B[cn];W[gi];B[hg];W[hh] ;B[gg];W[jg];B[ki];W[kh];B[ji];W[kj];B[li];W[lj];B[mk];W[mj] ;B[kf];W[jf];B[ke];W[je];B[lh];W[mf];B[nh];W[oi];B[pi];W[oh] ;B[nf];W[nj];B[kd];W[kc];B[lc];W[jb];B[ic];W[jc];B[lb];W[ne] ;B[lg];W[he];B[ge];W[gd];B[ie];W[hc];B[hf];W[gc];B[of];W[pc] ;B[qc];W[qd];B[pe];W[qb];B[oc];W[rc];B[ob];W[qf];B[ol];W[df] ;B[ph];W[og];B[pg];W[ei];B[hj];W[fl];B[gj];W[fj];B[rh];W[gh] ;B[ek];W[fk];B[rp];W[bm];B[dm];W[cj];B[bl];W[bp];B[hk];W[hl] ;B[gm];W[gl];B[fd];W[fc];B[ef];W[ff];B[bo];W[ng];B[pf];W[md] ;B[nb];W[mg];B[ld];W[es];B[gq];W[pb];B[ka];W[id];B[hm];W[im] ;B[cd];W[cf];B[oj];W[mh];B[lo];W[lp];B[dc];W[bc];B[ec];W[bd] ;B[fb];W[gb];B[ib];W[ha];B[fa];W[fe];B[ga];W[he];B[ik];W[il] ;B[hd];W[ed];B[ja];W[hb];B[ia];W[he];B[re];W[qe];B[hd];W[fd] ;B[rf];W[rd];B[kg];W[qg];B[qh];W[bj];B[dj];W[di];B[bq];W[ap] ;B[cp];W[cq];B[do];W[co];B[mi];W[ni];B[cp];W[mc];B[mb];W[co] ;B[fg];W[gf];B[he];W[eg];B[cp];W[br];B[ep];W[co];B[fh];W[fi] ;B[cp];W[rg];B[dq];W[cr];B[sg];W[ps];B[ao];W[aq];B[or];W[os] ;B[qs];W[nr];B[qr];W[se];B[sh];W[sf];B[dr];W[ds];B[dp];W[np] ;B[op];W[dk];B[dd];W[ee];B[ck];W[ej];B[el];W[fm];B[fn];W[lk] ;B[ll];W[nk];B[ak];W[ok];B[pk];W[aj];B[jh];W[eh];B[kb];W[if] ;B[fs];W[cs];B[pa];W[qa];B[oa];W[bk];B[al];W[ls];B[hn];W[ks] ;B[js];W[ms];B[oq]) goban-1.1.orig/games/M-62-l09.sgf0000644000175000017500000000224706252641314014002 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] BR[8 dan] WR[8 dan] KM[5] PB[Hashimoto Shoji] PW[Fujisawa Shuko] RE[B+R] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[dh];B[df];W[fd];B[bc];W[jc];B[cn] ;W[cp];B[dk];W[qf];B[lc];W[ff];B[eg];W[fi];B[fg];W[hf];B[cj] ;W[hh];B[ei];W[ej];B[di];W[jp];B[ep];W[eq];B[gp];W[fo];B[fp] ;W[do];B[jo];W[ip];B[hn];W[ho];B[go];W[gn];B[eo];W[gm];B[en] ;W[hl];B[kp];W[io];B[dp];W[co];B[dn];W[ko];B[oe];W[og];B[on] ;W[om];B[lo];W[jn];B[mn];W[ml];B[jd];W[ic];B[kq];W[ld];B[md] ;W[kd];B[me];W[mg];B[km];W[re];B[cq];W[bq];B[cr];W[br];B[bn] ;W[ao];B[rn];W[rm];B[pn];W[qm];B[nm];W[nl];B[kn];W[jm];B[kl] ;W[rc];B[kc];W[lf];B[lk];W[qc];B[pc];W[bb];B[cc];W[cb];B[dd] ;W[ec];B[jb];W[ib];B[le];W[ke];B[kf];W[je];B[nj];W[li];B[lj] ;W[mi];B[nk];W[ok];B[gg];W[ih];B[ki];W[jj];B[kj];W[kg];B[oj] ;W[pj];B[rd];W[sd];B[qe];W[rg];B[qb];W[rb];B[ro];W[pb];B[ob] ;W[qa];B[bo];W[bp];B[pi];W[qj];B[ir];W[kb];B[lb];W[ja];B[la] ;W[ac];B[ad];W[ab];B[be];W[el];B[fr];W[dr];B[fh];W[fj];B[sm] ;W[sl];B[sn];W[rl];B[jk];W[dl];B[cl];W[oa];B[na];W[pa];B[pf] ;W[ij];B[kh];W[lg];B[pg];W[an];B[am];W[ap];B[cm] C[167 moves complete.] ) goban-1.1.orig/games/M-80-6.mgt0000644000175000017500000000315506252627042013554 0ustar alal(;GM[1]RO[6]PB[Cho Chikun]PW[Otake Hideo]DT[1980-11-05,06]RE[B+1.5]ID[80/5]SZ[19]FF[3]BS[0]WS[0]WR[9 Dan]BR[8 Dan];B[qd];W[pp];B[cp];W[dc];B[eq];W[oc];B[ld];W[of];B[qg] ;W[cf];B[hc];W[jc];B[jd];W[kc];B[kd];W[lc];B[mc];W[mb];B[md] ;W[nc];B[pc];W[ob];B[ic];W[jq];B[pb];W[pa];B[qa];W[oa];B[qn] ;W[np];B[jb];W[ka];B[rb];W[oe];B[fc];W[ie];B[id];W[ck];B[cm] ;W[gq];B[rp];W[qq];B[pl];W[de];B[ph];W[qf];B[ng];W[qe];B[pd] ;W[mf];B[od];W[nd];B[ne];W[nf];B[me];W[kb];B[kg];W[nh];B[mh] ;W[og];B[oh];W[mg];B[ni];W[lh];B[mi];W[lg];B[jh];W[li];B[jj] ;W[lk];B[kp];W[oj];B[oi];W[jp];B[nk];W[kl];B[kn];W[jo];B[jn] ;W[il];B[in];W[nl];B[ol];W[nm];B[mp];W[no];B[mk];W[ml];B[lm] ;W[ll];B[kq];W[go];B[gn];W[fo];B[jr];W[ir];B[kr];W[fn];B[nq] ;W[oq];B[nr];W[bp];B[bo];W[cq];B[dp];W[dr];B[bq];W[br];B[ap] ;W[er];B[ff];W[rq];B[on];W[nn];B[dg];W[cg];B[dh];W[bm];B[bn] ;W[or];B[ko];W[ch];B[db];W[cb];B[di];W[ci];B[ec];W[dd];B[gj] ;W[bl];B[dn];W[ho];B[io];W[ip];B[hr];W[iq];B[jk];W[kf];B[jf] ;W[kh];B[jg];W[ro];B[qo];W[rn];B[rm];W[qp];B[sn];W[sp];B[dq] ;W[cr];B[is];W[gr];B[eb];W[ej];B[dj];W[dk];B[fi];W[fe];B[ge] ;W[ar];B[aq];W[ef];B[fg];W[sg];B[ri];W[si];B[rg];W[qm];B[ql] ;W[sf];B[sj];W[sh];B[rj];W[ns];B[mr];W[ca];B[ib];W[fd];B[gd] ;W[pn];B[pm];W[po];B[ms];W[os];B[om];W[qm];B[qn];W[hq];B[lj] ;W[kj];B[mj];W[kk];B[ji];W[ki];B[ja];W[la];B[ek];W[fk];B[el] ;W[fl];B[em];W[hk];B[fm];W[jl];B[fj];W[hj];B[cj];W[bj];B[hi] ;W[hs];B[js];W[fq];B[am];W[al];B[ke];W[lf];B[an];W[rd];B[rc] ;W[rf];B[sd];W[se];B[re];W[rh];B[qh];W[rd];B[sc];W[eo];B[do] ;W[da];B[ea];W[eg];B[eh];W[ep];B[dl];W[bk];B[ij];W[mo];B[lo] ;W[gk];B[oo];W[op];B[gm];W[re];B[pe];W[pf];B[ng])goban-1.1.orig/games/M-67-2.sgf0000644000175000017500000000273306252650214013543 0ustar alal( ; GM[1] EV[6th Meijin Title Match] RO[2] PB[Sakata Eio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Aug 20/21, 1967] PC[Sapporo] RE[W+1] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[qo];B[pl];W[pn];B[oo];W[pp] ;B[oq];W[qq];B[qr];W[op];B[nq];W[np];B[mp];W[rq];B[de];W[ce] ;B[cf];W[cd];B[do];W[df];B[eq];W[er];B[ep];W[fq];B[fr];W[gr] ;B[dr];W[fs];B[cq];W[mo];B[lp];W[lr];B[mr];W[cg];B[qh];W[jc] ;B[ie];W[kd];B[ic];W[ib];B[hc];W[hb];B[fc];W[gc];B[gd];W[gb] ;B[fe];W[mc];B[ck];W[qj];B[pj];W[qk];B[pk];W[qi];B[ph];W[pi] ;B[oi];W[ql];B[oh];W[lq];B[mq];W[jq];B[fp];W[gp];B[go];W[rr] ;B[hp];W[gq];B[jp];W[iq];B[ip];W[dj];B[dk];W[fj];B[ek];W[ej] ;B[cj];W[gf];B[ef];W[dg];B[eg];W[ci];B[fh];W[bh];B[fk];W[gj] ;B[hg];W[ds];B[cr];W[fb];B[gk];W[hj];B[dh];W[di];B[jd];W[ke] ;B[ri];W[rj];B[rh];W[nk];B[oj];W[pm];B[nb];W[im];B[lo];W[bj] ;B[bk];W[ak];B[al];W[aj];B[bm];W[mb];B[nd];W[mn];B[cs];W[kq] ;B[hn];W[nf];B[ne];W[of];B[pe];W[mf];B[ec];W[eb];B[ig];W[pr] ;B[or];W[qs];B[es];W[fr];B[il];W[jl];B[ik];W[ln];B[nl];W[jn] ;B[kp];W[ls];B[ll];W[kg];B[jf];W[kf];B[ma];W[la];B[na];W[je] ;B[id];W[kb];B[hm];W[mk];B[ml];W[pf];B[qf];W[mi];B[sj];W[sk] ;B[si];W[rl];B[km];W[kn];B[jm];W[oe];B[od];W[kj];B[nn];W[on] ;B[nm];W[no];B[mh];W[lh];B[mg];W[jg];B[if];W[in];B[hq];W[hr] ;B[jk];W[kk];B[kl];W[jh];B[me];W[le];B[ed];W[dd];B[ee];W[hk] ;B[hl];W[pg];B[qg];W[gh];B[gg];W[nc];B[ob];W[md];B[os];W[ps] ;B[eh];W[ch];B[lk];W[lj];B[ji];W[ki];B[hh];W[gi];B[ms];W[io] ;B[ho];W[ng];B[nh];W[ol];B[ds] ) goban-1.1.orig/games/T-19-1.mgt0000644000175000017500000000313506433230724013554 0ustar alal( ;FF[4] EV[19th Tengen title] RO[1] PB[Kataoka Satoshi] BR[9 dan] PW[Rin Kaiho] WR[Tengen] KM[5.5] DT[1993-11-11] PC[Japan] RE[W+1.5] SO[Go Moon 37, 1994] US[Klaus Blumberg] ;B[qd];W[dd];B[pq];W[dp];B[oc];W[po];B[qo];W[qn];B[qp];W[pn] ;B[nq];W[pj];B[ph];W[dj];B[fc];W[hc];B[cc];W[cd];B[dc];W[ed] ;B[bc];W[fd];B[fb];W[ld];B[fq];W[dn];B[dr];W[cq];B[hp];W[qf] ;B[rl];W[ql];B[pf];W[qg];B[pg];W[qh];B[qe];W[pi];B[qk];W[pk] ;B[qm];W[rn];B[pl];W[ol];B[qi];W[qj];B[ri];W[rj];B[rh];W[bd] ;B[om];W[pm];B[eh];W[ch];B[hh];W[jq];B[iq];W[jp];B[cr];W[in] ;B[ej];W[ek];B[fj];W[dk];B[ij];W[gc];B[lb];W[mb];B[mc];W[lc] ;B[nb];W[op];B[oq];W[sp];B[rq];W[gi];B[gh];W[gj];B[kb];W[md] ;B[nc];W[jh];B[jg];W[kg];B[ig];W[kh];B[hi];W[fi];B[dg];W[fh] ;B[fg];W[hf];B[gf];W[ef];B[eg];W[he];B[ih];W[ac];B[ab];W[ad] ;B[ba];W[kj];B[ge];W[gd];B[je];W[jd];B[id];W[ie];B[kf];W[jc] ;B[lf];W[nf];B[ne];W[me];B[mf];W[ng];B[mh];W[oh];B[kk];W[lj] ;B[lk];W[mj];B[jj];W[nl];B[im];W[hk];B[jm];W[hm];B[cg];W[bg] ;B[ei];W[il];B[jl];W[ho];B[ln];W[ip];B[hq];W[mg];B[mk];W[ec] ;B[eb];W[mp];B[lg];W[lh];B[nj];W[mi];B[ik];W[hl];B[hj];W[gk] ;B[ji];W[fp];B[bq];W[bp];B[gp];W[eq];B[er];W[fr];B[gq];W[db] ;B[cb];W[go];B[dq];W[ep];B[gr];W[cp];B[ki];W[br];B[li];W[ir] ;B[fs];W[ni];B[lr];W[kr];B[lq];W[jb];B[bs];W[aq];B[gb];W[ls] ;B[ms];W[si];B[rf];W[sh];B[rg];W[sq];B[sr];W[ro];B[rp];W[so] ;B[qr];W[ks];B[mq];W[bf];B[fk];W[fl];B[hb];W[nk];B[sg];W[sj] ;B[ib];W[ic];B[ja];W[nd];B[di];W[ci];B[nn];W[jn];B[np];W[kn] ;B[ml];W[nm];B[on];W[no];B[mm];W[ql];B[km];W[oo];B[mn];W[ka] ;B[la];W[hs];B[hr];W[kq];B[gs];W[is];B[oe];W[od];B[ko];W[pd] ;B[pc];W[mo];B[lo];W[jo];B[df];W[de];B[cf];W[ce]) goban-1.1.orig/games/M-95-1.mgt0000644000175000017500000000376206252627044013563 0ustar alal(;GM[1]BS[0]WS[0]BL[1800.0]WL[1800.0]SZ[19]DT[1995-09-06, 07]BR[9 Dan]WR[9 Dan]KM[5.5]EV[20th Meijin Title Match]RO[1]PC[Nagoya Hilton Hotel, Nagoya]PB[Takemiya Masaki]PW[Kobayashi Koichi]SO[Asahi Shinbun]US[Takayuki Okamoto]TM[8 hours each]FF[3]RE[B+0.5]ID[95/1];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[jd];W[qc];B[pc] ;W[qd];B[pe];W[pb];B[ob];W[qb];B[oc];W[qf];B[fc];W[cf];B[jp] ;W[gp];B[np];W[nb];B[na];W[ma];B[oa];W[lb];B[jb];W[me];B[pf] ;W[qg];B[pg];W[ke];B[qh];W[rh];B[ri];W[je];B[id];W[lh];B[rg] ;W[rf];B[sh];W[eb];B[fb];W[co];B[dj];W[ec];B[fd];W[lk];B[cg] ;W[df];B[dg];W[eg];B[eh];W[fh];B[ef];W[fg];B[bf];W[be];B[bg] ;W[cd];B[cl];W[ei];B[dh];W[oi];B[oj];W[ni];B[pi];W[qq];B[qp] ;W[lq];B[ko];W[or];B[pq];W[nq];B[mp];W[jr];B[iq];W[lp];B[lo] ;W[ir];B[hq];W[qr];B[pr];W[ps];B[rq];W[rr];B[rp];W[fq];B[oq] ;W[mr];B[ff];W[oh];B[nd];W[md];B[kd];W[ld];B[ph];W[ej];B[di] ;W[ek];B[gg];W[gh];B[hg];W[bm];B[cm];W[bn];B[jg];W[kg];B[em] ;W[hj];B[jh];W[bk];B[bl];W[al];B[bj];W[aj];B[ck];W[gm];B[ak] ;W[mm];B[km];W[nk];B[om];W[hr];B[kk];W[ll];B[kl];W[fm];B[el] ;W[fl];B[hl];W[hk];B[eo];W[kj];B[jj];W[ki];B[ji];W[il];B[hm] ;W[hn];B[im];W[in];B[jm];W[fp];B[cb];W[bc];B[ed];W[db];B[fa] ;W[da];B[bp];W[cp];B[cq];W[br];B[am];W[bo];B[qe];W[re];B[mq] ;W[nr];B[os];W[ns];B[sr];W[ok];B[pk];W[no];B[ik];W[oo];B[mo] ;W[pm];B[pn];W[ol];B[pl];W[on];B[qm];W[nm];B[nj];W[mj];B[ng] ;W[po];B[qo];W[pm];B[sf];W[sd];B[om];W[sq];B[sp];W[pm];B[qn] ;W[ie];B[he];W[kb];B[mc];W[mb];B[kc];W[lc];B[ja];W[if];B[hf] ;W[ij];B[jk];W[rs];B[sq];W[sb];B[ep];W[eq];B[og];W[mh];B[lf] ;W[kf];B[hi];W[hh];B[fi];W[ih];B[ii];W[ig];B[fj];W[gi];B[fk] ;W[gj];B[dk] (;W[fo];B[op];W[en];B[om];W[nn];B[dn];W[do];B[mg];W[lr];B[ka] ;W[le];B[ss];W[kp];B[jo];W[jq];B[ip];W[ne];B[ho];W[de];B[ae] ;W[ad];B[af];W[an];B[al];W[ee];B[fe];W[cn];B[dm];W[lm];B[gq] ;W[gr];B[go];W[gn];B[nh];W[mi];B[pa];W[qa];B[sg];W[se];B[pm] ;W[lg];B[mf];W[jn];B[kn];W[od];B[oe];W[nf];B[qs];W[os];B[gl] ;W[nd]C[Black wins by 0.5 points.]) (;W[op];B[gl];W[gk];B[gn];W[fn];B[go];W[fo];B[ho]))goban-1.1.orig/games/M-80-2.mgt0000644000175000017500000000164706252627042013554 0ustar alal(;GM[1]SZ[19]PW[Otake Hideo]PB[Cho Chikun]RE[B+R]ID[80/2]FF[3]BS[0]WS[0]DT[1980]WR[9 Dan]BR[8 Dan];B[pd];W[dp];B[pq];W[dd];B[qk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[fq];W[dn];B[dr];W[cq];B[iq];W[po];B[np];W[qq];B[qr] ;W[qp];B[rr];W[qm];B[cf];W[fd];B[ci];W[ce];B[cl];W[cm];B[dl] ;W[bf];B[nn];W[om];B[ml];W[dh];B[di];W[eh];B[fj];W[fn];B[hn] ;W[je];B[cr];W[bl];B[bk];W[bm];B[hj];W[ok];B[pi];W[hh];B[ql] ;W[rn];B[rl];W[oi];B[oh];W[pj];B[qi];W[ni];B[li];W[nh];B[ji] ;W[og];B[pg];W[no];B[mo];W[oo];B[mp];W[mm];B[lm];W[nm];B[mn] ;W[kh];B[jh];W[jg];B[kg];W[lg];B[ec];W[dc];B[bg];W[cg];B[kf] ;W[lh];B[mc];W[ph];B[qh];W[md];B[df];W[bh];B[ed];W[ee];B[lc] ;W[kb];B[jf];W[ig];B[ld];W[ne];B[if];W[hf];B[nb];W[oc];B[me] ;W[nd];B[ie];W[ke];B[le];W[ic];B[kd];W[jd];B[id];W[jc];B[lf] ;W[lb];B[mb];W[nf];B[gd];W[gc];B[gf];W[gh];B[qb];W[pa];B[fc] ;W[gb];B[fe];W[ef];B[he];W[hg];B[hc];W[hb];B[fb];W[ga];B[fa] ;W[ia];B[db];W[cb];B[ca];W[ba];B[da])goban-1.1.orig/games/T-06-3.mgt0000644000175000017500000000170406265075160013556 0ustar alal(;SZ[19]EV[6th Tengen Titel match]RO[Game 3]DT[1980-12-08]PC[Sapporo]PB[Kato Masao]BR[9d]PW[Yamabe Toshiro]WR[9d]KM[5.]RE[B+R]SO[Go world 24];B[qd];W[cc];B[pq];W[cq];B[oc];W[qk];B[qo];W[qh];B[jq];W[ck];B[fp];W[do];B[fd];W[de];B[id];W[kc];B[dc];W[ec];B[dd];W[ed];B[cd];W[ce];B[bd];W[db];B[cb];W[fe];B[eb];W[fb];B[da];W[gd];B[dq];W[dp];B[eq];W[cr];B[fn];W[pr];B[oq];W[or];B[qr];W[nq];B[mq];W[np];B[mr];W[nr];B[pl];W[ql];B[pm];W[mp];B[kq];W[qm];B[oo];W[mn];B[pk];W[ko];B[qj];W[rj];B[pj];W[qi];B[qn];W[re];B[rd];W[ip];B[hq];W[hm];B[je];W[nc];B[nd];W[md];B[od];W[mc];B[lf];W[ib];B[rg];W[rh];B[rm];W[rl];B[sl];W[rk];B[jm];W[hp];B[gq];W[kl];B[jl];W[jk];B[km];W[ll];B[il];W[lm];B[ik];W[ij];B[jj];W[kk];B[gl];W[hj];B[ji];W[li];B[gj];W[gi];B[fj];W[kn];B[cm];W[ih];B[jh];W[ig];B[jg];W[if];B[mh];W[dl];B[jn];W[iq];B[ir];W[hr];B[jo];W[jr];B[kr];W[is];B[jp];W[gr];B[fr];W[gp];B[go];W[fq];B[gq];W[gs];B[no];W[mo];B[nm];W[nn];B[on];W[lh];B[lg];W[nj];B[mk];W[nh];B[ng];W[mi];B[kj])goban-1.1.orig/games/Hon-97-4.mgt0000644000175000017500000000261106363326770014115 0ustar alal( ; EV[52nd Honinbo title] RO[4th game] PB[Cho Chikun] BR[9 dan] PW[Kato Masao] WR[9 dan] KM[5.5] DT[16/17 June 1997] PC[Japan] RE[B+R] SY[Written by GoBase-0.0.9] ;B[pd];W[dc];B[pp];W[dq];B[de];W[ce];B[cf];W[cd];B[do];W[cm] ;B[cq];W[cj];B[dp];W[eq];B[bp];W[hq];B[jq];W[ho];B[nq];W[nc] ;B[pf];W[jd];B[di];W[dj];B[ei];W[ej];B[fi];W[ch];B[fe];W[gc] ;B[qj];W[qc];B[pc];W[pb];B[qd];W[rb];B[rc];W[qb];B[qo];W[pk] ;B[pj];W[nk];B[ok];W[ol];B[oj];W[ll];B[jo];W[dg];B[df];W[eg] ;B[fc];W[fb];B[fg];W[ef];B[ee];W[ff];B[gf];W[gg];B[gd];W[hc] ;B[hf];W[fh];B[cg];W[gi];B[ec];W[eb];B[fp];W[bh];B[hd];W[gr] ;B[fj];W[fl];B[dd];W[cc];B[gj];W[hg];B[gl];W[gm];B[hl];W[hm] ;B[jl];W[il];B[ik];W[im];B[kl];W[lk];B[kn];W[pm];B[jj];W[qk] ;B[lc];W[ld];B[nm];W[nl];B[jf];W[dh];B[ic];W[kc];B[ib];W[hb] ;B[ha];W[gb];B[id];W[mc];B[mm];W[qn];B[rn];W[rm];B[pn];W[qm] ;B[ro];W[rj];B[ri];W[sk];B[qh];W[on];B[no];W[dr];B[bn];W[br] ;B[cr];W[cs];B[bq];W[bm];B[cn];W[ir];B[jr];W[bf];B[rd];W[js] ;B[ks];W[is];B[kr];W[om];B[bg];W[ag];B[dm];W[dl];B[em];W[ep] ;B[eo];W[fo];B[fn];W[go];B[hi];W[po];B[op];W[nh];B[og];W[ig] ;B[am];W[bk];B[be];W[af];B[aj];W[bj];B[ak];W[ai];B[al];W[ii] ;B[ji];W[if];B[ie];W[je];B[mf];W[ne];B[me];W[nf];B[ng];W[mg] ;B[lg];W[mh];B[kf];W[md];B[li];W[nj];B[oh];W[jb];B[ga];W[lm] ;B[ln];W[ih];B[lh];W[ni];B[hj];W[ke];B[lf];W[kk];B[jk];W[ip] ;B[ci];W[bi];B[sb];W[jp];B[kp];W[jn];B[jm];W[in];B[fk];W[fm] ;B[gh];W[en];B[bs];W[as];B[aq]) goban-1.1.orig/games/Hon-71-1.mgt0000644000175000017500000000211006045540400014055 0ustar alal (;GM[1]SZ[19]PW[Ishida Yoshio]PB[Rin Kaiho]DT[1971-04-26,27]RE[B+R]FF[3]PC[Hakone]BS[0]WS[0]KM[4.5];B[cp];W[pp];B[dc];W[eq];B[pd];W[de];B[hp];W[go];B[cm] ;W[dn];B[cn];W[cq];B[bq];W[dp];B[co];W[jp];B[fd];W[pj];B[nq] ;W[pq];B[jq];W[kq];B[kp];W[lp];B[ko];W[lq];B[jo];W[jr];B[ip] ;W[ir];B[ql];W[mn];B[qo];W[po];B[qn];W[rp];B[ok];W[qf];B[on] ;W[oo];B[of];W[ni];B[dh];W[mk];B[rj];W[hc];B[jc];W[he];B[ef] ;W[lc];B[kd];W[cc];B[cb];W[db];B[eb];W[dd];B[da];W[fc];B[gd] ;W[fe];B[ge];W[gf];B[hf];W[hg];B[if];W[ff];B[ec];W[ig];B[jf] ;W[jg];B[kf];W[in];B[km];W[ll];B[il];W[im];B[kl];W[hl];B[lj] ;W[ik];B[jk];W[pc];B[qc];W[ri];B[mj];W[nj];B[nk];W[ml];B[pi] ;W[oj];B[qj];W[pk];B[qi];W[lh];B[ij];W[hk];B[ji];W[kg];B[gj] ;W[ed];B[gc];W[hj];B[hi];W[gi];B[mh];W[gb];B[fb];W[hd];B[fc] ;W[mg];B[nh];W[mi];B[li];W[lf];B[ol];W[jb];B[me];W[le];B[ib] ;W[jd];B[hb];W[ke];B[oc];W[ck];B[cr];W[eg];B[dk];W[dj];B[ek] ;W[cl];B[dm];W[ej];B[fi];W[gh];B[fj];W[fk];B[fl];W[jl];B[kk] ;W[dl];B[el];W[ci];B[gk];W[em];B[ei];W[fm];B[gl];W[gm];B[ch] ;W[bh];B[bg];W[bj];B[ah];W[ai];B[bi];W[oh];B[ng];W[bh];B[ag] ;W[cg];B[bi];W[oe];B[ne])goban-1.1.orig/games/M-73-1.mgt0000644000175000017500000000314106260321036013535 0ustar alal(;SZ[19]EV[12 Meijin match game 1]PB[Rin]PW[Ishida]KM[5.5]RE[W+0.5]SO[Rin collected games]GC[The book says .5 for W but I count 4.5]DT[1973 August 28,29]TM[10 hrs each]US[Jan van Rongen];B[qd];W[dc];B[cp];W[pq];B[oc];W[qo];B[eq];W[ce];B[ic];W[qi];B[kq];W[dk];B[cm];W[gc];B[qg];W[mq];B[qk];W[pj];B[qn];W[po];B[ro];W[rp];B[pk];W[nj];B[ok];W[oj];B[ml];W[lj];B[kk];W[lk];B[ll];W[kl];B[jk];W[km];B[ln];W[lm];B[mm];W[mn];B[om];W[jn];B[lo];W[nn];B[rn];W[jp];B[jq];W[ip];B[hr];W[kp];B[ie];W[kh];B[di];W[cl];B[dm];W[ej];B[cf];W[bf];B[be];W[bd];B[de];W[ae];B[cd];W[be];B[ge];W[dd];B[ih];W[pn];B[pm];W[pg];B[qf];W[rj];B[rk];W[ij];B[gj];W[ik];B[hm];W[gk];B[fk];W[fj];B[hk];W[gi];B[gl];W[hj];B[gk];W[il];B[df];W[hh];B[ig];W[lf];B[ji];W[ki];B[on];W[oo];B[lq];W[lp];B[mr];W[hq];B[gr];W[eh];B[ed];W[ec];B[ld];W[ne];B[nd];W[hd];B[id];W[bm];B[bn];W[he];B[hf];W[gf];B[fe];W[hg];B[if];W[ff];B[fc];W[fb];B[hc];W[fd];B[gd];W[ee];B[bl];W[bk];B[am];W[hb];B[nq];W[mp];B[no];W[np];B[ef];W[ed];B[dl];W[ck];B[ek];W[dj];B[or];W[pe];B[qe];W[jb];B[ib];W[ia];B[lb];W[mo];B[ph];W[og];B[qh];W[rh];B[go];W[nm];B[nl];W[se];B[sj];W[qj];B[rg];W[sg];B[sf];W[rf];B[sd];W[jj];B[jc];W[me];B[rq];W[sp];B[qq];W[qp];B[pr];W[iq];B[ir];W[rd];B[re];W[sc];B[rc];W[rb];B[sd];W[md];B[mc];W[rd];B[qc];W[sd];B[sf];W[lr];B[jr];W[rf];B[ak];W[sf];B[bj];W[bi];B[bh];W[ci];B[ai];W[ch];B[sb];W[sa];B[qb];W[oq];B[nr];W[od];B[nc];W[ke];B[oh];W[kd];B[kc];W[nh];B[sq];W[so];B[sn];W[ol];B[rm];W[nk];B[pl];W[hn];B[gn];W[gq];B[fq];W[gp];B[fp];W[ho];B[fh];W[eg];B[ii];W[hi];B[bg];W[cg];B[ah];W[im];B[qa];W[mk];B[ol];W[hl];B[gm];W[oi];B[pf];W[of];B[pd];W[oe];B[kb];W[ja];B[ka];W[ha];B[kg];W[lg];B[jg])goban-1.1.orig/games/M-81-3.mgt0000644000175000017500000000310606252627042013546 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Kato Masao]DT[1981-10-01,02]RE[W+3.5]ID[81/3]FF[3]BS[0]WS[0]BR[9 Dan];B[qd];W[cc];B[pq];W[cq];B[oc];W[qo];B[pl];W[pn];B[np] ;W[qq];B[qr];W[pp];B[oq];W[rq];B[jq];W[qj];B[qh];W[oj];B[oh] ;W[kp];B[kq];W[mp];B[mq];W[lp];B[lq];W[no];B[nl];W[mk];B[ml] ;W[lk];B[ll];W[kk];B[jm];W[il];B[im];W[hm];B[hn];W[jl];B[kl] ;W[hl];B[gn];W[in];B[kn];W[io];B[jp];W[gp];B[fo];W[fp];B[ho] ;W[hp];B[ip];W[eo];B[en];W[dn];B[em];W[dm];B[el];W[dl];B[ek] ;W[cj];B[ec];W[jd];B[cd];W[bd];B[dd];W[be];B[cb];W[bc];B[hc] ;W[ne];B[mi];W[nc];B[nk];W[ki];B[mg];W[rl];B[kf];W[hd];B[ic] ;W[jc];B[jj];W[id];B[ii];W[gc];B[di];W[df];B[gb];W[hb];B[ck] ;W[ib];B[do];W[ep];B[dk];W[gh];B[fg];W[gj];B[fi];W[hi];B[ig] ;W[ij];B[ji];W[gg];B[gf];W[hf];B[fe];W[jk];B[nb];W[mc];B[mb] ;W[od];B[pc];W[lb];B[ld];W[ma];B[ob];W[lc];B[co];W[li];B[fh] ;W[ch];B[kg];W[mh];B[nh];W[lh];B[nf];W[nj];B[pe];W[fd];B[ee] ;W[ed];B[dc];W[de];B[fc];W[gd];B[ga];W[ea];B[da];W[eb];B[bb] ;W[ab];B[ba];W[db];B[fb];W[ca];B[gr];W[aa];B[fr];W[er];B[dr] ;W[es];B[bq];W[br];B[bp];W[dq];B[hq];W[ar];B[ci];W[bh];B[ri] ;W[of];B[me];W[oe];B[pg];W[bn];B[bm];W[pf];B[qf];W[bj];B[bi] ;W[ai];B[bk];W[rr];B[mo];W[op];B[nq];W[mn];B[lo];W[nn];B[rj] ;W[ge];B[ff];W[ln];B[ko];W[ni];B[dh];W[dg];B[pr];W[if];B[hg] ;W[hh];B[jg];W[aq];B[cn];W[ql];B[rk];W[qk];B[sl];W[sm];B[sk] ;W[rs];B[kd];W[je];B[gk];W[hk];B[ke];W[lg];B[lf];W[og];B[ng] ;W[pi];B[ph];W[pk];B[pm];W[qm];B[na];W[la];B[fj];W[ap];B[ao] ;W[fl];B[fm];W[gl];B[dj];W[aj];B[ak];W[ah];B[fk];W[cp];B[bo] ;W[fs];B[gs];W[gq];B[hr];W[kc];B[kj];W[lj];B[om];W[on];B[pd] ;W[nd];B[qs];W[eg];B[eh])goban-1.1.orig/games/T-14-4.mgt0000644000175000017500000000256606433230520013553 0ustar alal( ; EV[14th Tengen title] RO[4] PB[Cho Chikun] BR[9 dan] PW[Sonoda Yuichi] WR[9 dan] DT[1988-12-] PC[Japan] RE[W+0.5] KM[5.5] ;B[qd];W[dp];B[pq];W[dd];B[oc];W[po];B[qo];W[qn];B[qp];W[pn] ;B[nq];W[pj];B[cj];W[qf];B[cm];W[oe];B[fq];W[dn];B[bo];W[dm] ;B[cl];W[dk];B[dl];W[el];B[ek];W[dj];B[em];W[fl];B[di];W[ej] ;B[ck];W[fk];B[fo];W[eq];B[en];W[fr];B[do];W[nc];B[nb];W[ob] ;B[pb];W[od];B[pc];W[mb];B[oa];W[mc];B[gq];W[gr];B[dr];W[hq] ;B[er];W[gd];B[fh];W[hh];B[ee];W[hf];B[ge];W[he];B[gc];W[ec] ;B[fd];W[hd];B[fc];W[de];B[ic];W[eb];B[kc];W[jd];B[jc];W[le] ;B[id];W[je];B[ld];W[me];B[gi];W[hi];B[gj];W[hl];B[hj];W[ij] ;B[ik];W[hk];B[gg];W[ii];B[ln];W[ef];B[gf];W[ei];B[dg];W[df] ;B[eh];W[ci];B[dh];W[bg];B[bf];W[cf];B[cg];W[be];B[bh];W[ll] ;B[rf];W[rg];B[re];W[qh];B[jm];W[il];B[jq];W[jp];B[kq];W[kp] ;B[lp];W[ip];B[ho];W[lq];B[lr];W[lo];B[mp];W[mo];B[no];W[mn] ;B[nn];W[mm];B[om];W[pl];B[ol];W[ok];B[nl];W[mk];B[in];W[io] ;B[gn];W[gh];B[fg];W[fi];B[pf];W[pe];B[qe];W[qg];B[km];W[lm] ;B[ir];W[hp];B[gp];W[rn];B[pm];W[ql];B[hr];W[fb];B[gb];W[sp] ;B[kn];W[ko];B[ie];W[if];B[rq];W[op];B[np];W[af];B[ke];W[kf] ;B[kd];W[jf];B[nk];W[nj];B[lb];W[gm];B[hn];W[ah];B[bi];W[sq] ;B[sr];W[ro];B[rp];W[so];B[qr];W[hc];B[hb];W[la];B[ka];W[ma] ;B[hg];W[ig];B[jl];W[jk];B[kl];W[kk];B[qm];W[rm];B[na];W[md] ;B[kb];W[fm];B[fn];W[oq];B[or];W[ai];B[aj];W[ag];B[sg];W[sh] ;B[sf];W[ga];B[ha];W[fa];B[iq];W[ed];B[fe];W[ml] ) goban-1.1.orig/games/Hon-82-4.mgt0000644000175000017500000000331606045540436014104 0ustar alal (;GM[1]PW[Cho Chikun]PB[Kobayashi Koichi]SZ[19]FF[3]DT[1982-06-30,07-01]PC[Fukuyama]RE[W+11.5]BS[0]WS[0]KM[5.5];B[pd];W[pq];B[cd];W[cp];B[qo];W[pk];B[pp];W[oq];B[qq] ;W[qr];B[rq];W[lq];B[op];W[np];B[no];W[mp];B[pi];W[nk];B[ed] ;W[jc];B[hc];W[mc];B[oc];W[qg];B[qi];W[og];B[ni];W[mg];B[pf] ;W[pg];B[li];W[rd];B[me];W[qe];B[rc];W[rj];B[ri];W[qc];B[qd] ;W[rb];B[lc];W[lb];B[re];W[sc];B[qf];W[rf];B[pe];W[se];B[md] ;W[kc];B[rg];W[qe];B[qh];W[sg];B[rh];W[kg];B[ld];W[nb];B[je] ;W[jh];B[nc];W[mb];B[lf];W[lg];B[ji];W[ii];B[jj];W[nm];B[ij] ;W[ig];B[nh];W[ng];B[id];W[hi];B[hj];W[gi];B[fk];W[ei];B[dk] ;W[eq];B[pb];W[qb];B[ci];W[mj];B[mi];W[ff];B[ib];W[ob];B[hp] ;W[cm];B[df];W[he];B[er];W[fr];B[fq];W[dr];B[ep];W[dq];B[gr] ;W[es];B[mo];W[qm];B[on];W[oj];B[oi];W[rr];B[kp];W[kq];B[ml] ;W[mm];B[ol];W[om];B[pl];W[pm];B[ql];W[rl];B[nl];W[rn];B[lo] ;W[qk];B[ll];W[ro];B[lm];W[rp];B[eg];W[fd];B[fc];W[dh];B[eh] ;W[ee];B[dd];W[di];B[fi];W[fj];B[fh];W[gj];B[pc];W[pa];B[ej] ;W[ne];B[nd];W[ke];B[kf];W[jf];B[if];W[jg];B[kd];W[ie];B[jd] ;W[dj];B[ek];W[cj];B[gg];W[hg];B[gf];W[hf];B[bl];W[cf];B[bf] ;W[bg];B[ce];W[cg];B[gk];W[gh];B[ge];W[gd];B[fg];W[bk];B[cl] ;W[hd];B[be];W[fe];B[de];W[bi];B[qp];W[gc];B[gb];W[ic];B[hb] ;W[jb];B[ja];W[kb];B[sp];W[so];B[sq];W[sj];B[oe];W[fb];B[ec] ;W[jp];B[jo];W[lp];B[ko];W[ia];B[ha];W[fp];B[fo];W[gq];B[hq] ;W[hr];B[gp];W[gs];B[ok];W[iq];B[ip];W[jq];B[do];W[co];B[dm] ;W[dn];B[en];W[cn];B[ao];W[em];B[fm];W[pj];B[nj];W[dl];B[ck] ;W[ak];B[am];W[dp];B[bq];W[eo];B[fn];W[bo];B[an];W[br];B[re] ;W[sf];B[sh];W[qe];B[qj];W[rk];B[re];W[sd];B[sr];W[ar];B[rs] ;W[pr];B[qn];W[rm];B[ap];W[mf];B[le];W[af];B[ae];W[ag];B[cq] ;W[cr];B[el];W[dm];B[ki];W[mn];B[ln];W[pn];B[nf];W[of];B[eb] ;W[ka];B[fa];W[qs];B[oo];W[ss];B[qe];W[rs];B[ne])goban-1.1.orig/games/T-20-4.mgt0000644000175000017500000000250606252627522013555 0ustar alal(;GM[1]PB[Rin Kaiho]BR[9p]PW[Ryu Shikun]WR[9p]DT[1994-]PC[Japan]KM[5.5]RE[W+R]FF[3]SZ[19]ID[20/4];B[pd];W[dd];B[pp];W[dp];B[fq];W[hq];B[cq];W[dq];B[cp] ;W[do];B[dr];W[er];B[cr];W[eq];B[cn];W[nc];B[pf];W[pb];B[mc] ;W[md];B[lc];W[ld];B[nb];W[oc];B[jc];W[kd];B[ib];W[qc];B[qd] ;W[ob];B[qi];W[nq];B[pn];W[pr];B[qq];W[lp];B[kp];W[ko];B[jp] ;W[lo];B[hp];W[gp];B[iq];W[ho];B[hr];W[ip];B[io];W[jo];B[hp] ;W[co];B[bo];W[ip];B[lq];W[in];B[mq];W[mp];B[jr];W[nr];B[lr] ;W[gr];B[gs];W[hc];B[jd];W[hb];B[jf];W[pi];B[qj];W[hf];B[if] ;W[hg];B[cd];W[ce];B[be];W[de];B[bd];W[bf];B[dc];W[ec];B[db] ;W[eb];B[bb];W[jh];B[kg];W[of];B[og];W[ng];B[ne];W[pg];B[oh] ;W[nf];B[nd];W[lf];B[lg];W[ph];B[pe];W[pj];B[li];W[mj];B[mf] ;W[qk];B[qm];W[fs];B[hs];W[rl];B[rg];W[rh];B[qh];W[qg];B[ri] ;W[pl];B[ok];W[ol];B[nk];W[nl];B[mk];W[pk];B[rm];W[lj];B[ck] ;W[ki];B[nh];W[mh];B[mg];W[dj];B[dn];W[dk];B[fm];W[cl];B[fo] ;W[fp];B[gl];W[cg];B[bl];W[bk];B[bm];W[dm];B[el];W[cj];B[eo] ;W[qr];B[rr];W[gj];B[il];W[hk];B[hl];W[kl];B[rd];W[mb];B[lb] ;W[na];B[rb];W[qb];B[he];W[ge];B[hd];W[gd];B[qf];W[rs];B[sr] ;W[fk];B[oe];W[ni];B[oi];W[oj];B[lh];W[mi];B[jk];W[em];B[kj] ;W[kk];B[jj];W[ih];B[en];W[fl];B[gn];W[oo];B[on];W[nn];B[hi] ;W[op];B[gk];W[rp];B[qp];W[rj];B[si];W[rn];B[ro];W[qo];B[po] ;W[so];B[sm];W[rq];B[qn];W[sq];B[ro];W[js];B[ir];W[qo];B[sn] ;W[ss];B[ro];W[gi])goban-1.1.orig/games/M-79-5.mgt0000644000175000017500000000314006252627042013555 0ustar alal(;GM[1]SZ[19]PB[Otake Hideo]BR[9 Dan]PW[Sakata Eio]WR[9 Dan]DT[1979-10-23]PC[Ito]RE[B+7.5]ID[79/5]FF[3]BS[0]WS[0];B[qd];W[cc];B[pp];W[cq];B[oc];W[qi];B[qg];W[qn];B[qk] ;W[nq];B[np];W[mp];B[oq];W[no];B[op];W[on];B[mo];W[mn];B[lo] ;W[lp];B[ln];W[mm];B[lm];W[kp];B[qo];W[rn];B[nr];W[pj];B[ml] ;W[nl];B[ll];W[nk];B[dp];W[cp];B[dn];W[jo];B[im];W[go];B[dq] ;W[do];B[fo];W[co];B[gp];W[in];B[ho];W[jm];B[hm];W[jl];B[lj] ;W[hn];B[gn];W[gm];B[hl];W[fm];B[eo];W[gk];B[hk];W[hj];B[ik] ;W[kk];B[gj];W[fk];B[hi];W[lk];B[cn];W[dr];B[er];W[cr];B[jq] ;W[fj];B[ij];W[cj];B[jp];W[ko];B[io];W[jn];B[en];W[gh];B[ig] ;W[pn];B[bo];W[bp];B[bm];W[ao];B[dd];W[cd];B[df];W[ed];B[ee] ;W[ec];B[gf];W[eg];B[dg];W[eh];B[fe];W[gd];B[ch];W[ci];B[dh] ;W[di];B[ic];W[gc];B[ie];W[hf];B[hg];W[cl];B[he];W[mj];B[mg] ;W[qc];B[pd];W[og];B[nf];W[ji];B[lh];W[hh];B[ih];W[rd];B[re] ;W[rb];B[pb];W[qb];B[fi];W[ei];B[gi];W[sd];B[bk];W[bl];B[al] ;W[ck];B[bh];W[bj];B[ak];W[el];B[gl];W[dk];B[ro];W[so];B[sp] ;W[sn];B[rq];W[hb];B[ib];W[pc];B[ob];W[pg];B[pf];W[qh];B[bn] ;W[es];B[fr];W[gr];B[eq];W[ds];B[ej];W[aj];B[am];W[dm];B[fl] ;W[ek];B[em];W[cm];B[rg];W[of];B[oe];W[mi];B[si];W[rj];B[fs] ;W[kr];B[jr];W[mr];B[mq];W[js];B[lr];W[kq];B[ir];W[ia];B[ja] ;W[ha];B[jb];W[ge];B[ff];W[bf];B[nh];W[oi];B[kj];W[jj];B[kh] ;W[fh];B[ii];W[is];B[hr];W[qf];B[pe];W[jk];B[se];W[sc];B[dc] ;W[db];B[de];W[jh];B[jg];W[rh];B[sh];W[sj];B[sg];W[ng];B[mh] ;W[br];B[cb];W[bb];B[be];W[ce];B[cf];W[bd];B[bg];W[rf];B[qe] ;W[ae];B[eb];W[ca];B[fd];W[fc];B[hc];W[fb];B[hd];W[ea];B[oh] ;W[ph];B[qa];W[ra];B[pa];W[hs];B[gs];W[ks];B[ls];W[ni];B[oo] ;W[nn];B[ki];W[lq];B[ms];W[mk];B[gg])goban-1.1.orig/games/M-89-5.mgt0000644000175000017500000000131206252627042013555 0ustar alal(;GM[1]SZ[19]PW[Awaji Shuzo]PB[Kobayashi Koichi]DT[1989-11-01,02]RE[B+R]ID[89/5]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[dp];B[qo];W[kq];B[cn];W[fp];B[bp] ;W[cq];B[ck];W[nc];B[qf];W[pb];B[qc];W[kc];B[mq];W[pj];B[ql] ;W[ci];B[cc];W[dc];B[cd];W[ce];B[be];W[bf];B[cf];W[de];B[bg] ;W[df];B[af];W[cg];B[ch];W[dg];B[dh];W[eh];B[bi];W[ne];B[je] ;W[jg];B[jc];W[jd];B[id];W[kd];B[hf];W[ic];B[hc];W[jb];B[hh] ;W[hj];B[jh];W[di];B[bh];W[ek];B[gi];W[gg];B[ig];W[gj];B[fi] ;W[ei];B[fj];W[dk];B[fk];W[cl];B[bk];W[em];B[bm];W[gm];B[fl] ;W[dn];B[fm];W[fn];B[hl];W[qp];B[pp];W[ii];B[ih];W[kj];B[hm] ;W[gn];B[ki];W[li];B[lj];W[kk];B[mj];W[lh];B[ik];W[ij];B[ll] ;W[kl];B[km];W[jm];B[lm];W[gl];B[gk];W[hk];B[jj])goban-1.1.orig/games/Hon-57-3.mgt0000644000175000017500000000220206045540246014075 0ustar alal (;GM[1]SZ[19]DT[1957-07-22,23]PW[Fujisawa Hosai]RE[B+R]PB[Takagawa Kaku]FF[3]BS[0]WS[0]KM[4.5]PC[Osaka]KI[9];B[qd];W[cp];B[pq];W[dc];B[od];W[ep];B[po];W[de];B[qj] ;W[cj];B[jp];W[jd];B[lc];W[hq];B[ke];W[io];B[je];W[jo];B[oj] ;W[ej];B[jj];W[jh];B[hi];W[he];B[ig];W[qc];B[pc];W[lp];B[lk] ;W[rd];B[rc];W[ie];B[jg];W[np];B[cq];W[dq];B[bp];W[bq];B[nn] ;W[rj];B[rk];W[qi];B[pj];W[qe];B[qb];W[qg];B[rf];W[kg];B[kd] ;W[rh];B[re];W[rl];B[sk];W[lj];B[mk];W[nh];B[oh];W[qk];B[ql] ;W[pk];B[pl];W[oi];B[pi];W[ph];B[og];W[ok];B[nj];W[jf];B[kf] ;W[ih];B[hg];W[sj];B[rn];W[sl];B[rk];W[ol];B[pn];W[ni];B[mj] ;W[kj];B[kk];W[hh];B[gh];W[gg];B[kh];W[lg];B[ji];W[lh];B[ng] ;W[ki];B[ii];W[kh];B[if];W[gi];B[fh];W[jk];B[ik];W[jl];B[il] ;W[pg];B[rg];W[mf];B[jm];W[fi];B[eh];W[of];B[mh];W[nf];B[mi] ;W[fg];B[ch];W[pf];B[df];W[nd];B[ee];W[ce];B[eg];W[fe];B[ed] ;W[gc];B[ec];W[nc];B[jc];W[ic];B[id];W[hd];B[ib];W[hb];B[hc] ;W[hj];B[kl];W[ic];B[mb];W[db];B[eb];W[jb];B[hc];W[hf];B[jf] ;W[ic];B[nb];W[bi];B[hc];W[ff];B[ef];W[ic];B[dd];W[cd];B[hc] ;W[ro];B[rp];W[ic];B[lf];W[mg];B[hc];W[sn];B[qo];W[ic];B[cc] ;W[cb];B[hc];W[rm];B[qn];W[ic];B[bc];W[bb];B[hc];W[fb];B[ea] ;W[ic];B[be])goban-1.1.orig/games/M-83-1.mgt0000644000175000017500000000311406252627042013545 0ustar alal(;GM[1]RO[1]PB[Otake Hideo]PW[Cho Chikun]DT[1983-09-07,08]PC[Tokyo]RE[W+1.5]ID[83/1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[dp];B[fc];W[df];B[kc];W[po];B[qo] ;W[qn];B[qp];W[pm];B[nq];W[qf];B[od];W[qi];B[ck];W[ic];B[ge] ;W[ec];B[fb];W[ie];B[gg];W[ig];B[jf];W[if];B[gi];W[ii];B[ch] ;W[dh];B[di];W[eh];B[cg];W[ff];B[gf];W[cf];B[kd];W[eb];B[fj] ;W[of];B[fq];W[cn];B[mn];W[pc];B[pd];W[qc];B[oc];W[rd];B[re] ;W[rc];B[qe];W[rf];B[ik];W[lf];B[nl];W[ok];B[kf];W[lg];B[jd] ;W[kh];B[id];W[dr];B[hp];W[jq];B[iq];W[jo];B[on];W[pn];B[lq] ;W[kq];B[lp];W[in];B[gn];W[jm];B[kk];W[il];B[hk];W[kn];B[sf] ;W[ob];B[nb];W[pb];B[oi];W[mj];B[nh];W[me];B[nk];W[mc];B[qh] ;W[rh];B[qj];W[ph];B[pi];W[ri];B[ql];W[rj];B[qk];W[mb];B[og] ;W[pg];B[li];W[sm];B[nf];W[ne];B[sk];W[rk];B[rl];W[sl];B[rm] ;W[sj];B[sn];W[bl];B[ki];W[ji];B[lh];W[kg];B[cl];W[cm];B[bk] ;W[gm];B[fm];W[hm];B[er];W[eq];B[fr];W[fp];B[gp];W[fo];B[ir] ;W[fn];B[em];W[go];B[ds];W[cs];B[kr];W[fd];B[gd];W[es];B[fe] ;W[ed];B[ho];W[hn];B[hb];W[bg];B[bh];W[bf];B[bm];W[bn];B[al] ;W[gr];B[gq];W[fs];B[jr];W[gc];B[gb];W[ja];B[an];W[ib];B[hc] ;W[bo];B[ao];W[ap];B[am];W[bp];B[ee];W[dg];B[de];W[ce];B[cd] ;W[cc];B[bd];W[bc];B[ea];W[db];B[kb];W[ka];B[ei];W[ll];B[kl] ;W[lm];B[lk];W[ah];B[bi];W[sk];B[rn];W[gl];B[en];W[eo];B[fl] ;W[gk];B[fk];W[mg];B[pf];W[oe];B[jp];W[ko];B[kp];W[he];B[hd] ;W[fh];B[jg];W[jh];B[ha];W[lb];B[fa];W[da];B[ld];W[md];B[hr] ;W[gs];B[hs];W[ds];B[jj];W[dm];B[dl];W[io];B[ng];W[mh];B[mi] ;W[ml];B[mk];W[ip];B[hq];W[lo];B[mo];W[mm];B[nm];W[je];B[ke] ;W[ai];B[aj];W[ag];B[jl];W[hl];B[dn];W[do];B[hh];W[ih];B[oh] ;W[pe])goban-1.1.orig/games/Hon-93-2.mgt0000644000175000017500000000307106045540454014102 0ustar alal (;GM[1]SZ[19]DT[1993-05-24,25]RE[B+3.5]FF[3]PW[Cho Chikun]PB[Yamashiro Hiroshi]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[cp];W[pq];B[qo];W[pk];B[no];W[mq];B[lp] ;W[lq];B[kp];W[kq];B[jp];W[iq];B[pi];W[nk];B[lk];W[nm];B[op] ;W[oq];B[lm];W[ni];B[pg];W[qm];B[cf];W[fc];B[gd];W[gc];B[id] ;W[hd];B[he];W[hc];B[ie];W[qc];B[qd];W[cj];B[pc];W[jc];B[cm] ;W[ce];B[df];W[ej];B[ff];W[be];B[gj];W[fi];B[gi];W[fg];B[ed] ;W[gf];B[ge];W[ec];B[eg];W[gh];B[eh];W[fh];B[de];W[bf];B[bg] ;W[bh];B[cd];W[dc];B[ag];W[bd];B[dk];W[ch];B[dj];W[cg];B[di] ;W[ii];B[oj];W[nj];B[li];W[kj];B[lj];W[hk];B[fj];W[ip];B[io] ;W[ho];B[hn];W[in];B[jo];W[gn];B[hm];W[gm];B[go];W[hp];B[im] ;W[gl];B[gp];W[gq];B[ep];W[eo];B[fp];W[dp];B[dq];W[do];B[eq] ;W[ei];B[ek];W[hh];B[em];W[jq];B[gk];W[jm];B[jl];W[dh];B[ic] ;W[co];B[bp];W[il];B[jn];W[hl];B[km];W[fn];B[bo];W[fe];B[ib] ;W[ke];B[lc];W[cn];B[bn];W[cl];B[dm];W[ng];B[mh];W[ph];B[qh] ;W[oh];B[qi];W[pf];B[qf];W[og];B[qg];W[me];B[ld];W[mg];B[rk] ;W[qp];B[rp];W[nc];B[le];W[lf];B[nd];W[fd];B[kh];W[jf];B[ig] ;W[jg];B[jh];W[ih];B[kd];W[rq];B[pp];W[qq];B[hf];W[on];B[oi] ;W[nh];B[pn];W[pm];B[rn];W[md];B[mc];W[ne];B[od];W[rm];B[nn] ;W[sp];B[ro];W[qk];B[rj];W[om];B[np];W[lg];B[gg];W[ef];B[ee] ;W[dg];B[fa];W[bk];B[bl];W[al];B[bm];W[fr];B[ea];W[ds];B[cr] ;W[cb];B[ci];W[bi];B[ck];W[bj];B[ok];W[ol];B[ml];W[nl];B[rl] ;W[je];B[jd];W[kg];B[of];W[cs];B[bs];W[er];B[dr];W[es];B[ca] ;W[ba];B[da];W[br];B[bq];W[bb];B[ar];W[ki];B[lh];W[hb];B[ha] ;W[oe];B[pe];W[ql];B[nq];W[nr];B[sm];W[mp];B[mo];W[mm];B[fl] ;W[kk];B[jk];W[ij];B[mn];W[kl];B[ll];W[am];B[an];W[ak];B[fq] ;W[gr];B[so];W[sq];B[nf];W[mf];B[pf])goban-1.1.orig/games/T-11-1.mgt0000644000175000017500000000327106265077450013555 0ustar alal(;SZ[19]EV[11th Tengen Title match]PB[Ishida Yoshio]BR[9d, Tengen]PW[Kobayashi Koichi]WR[9d, Judan]KM[5.5]SO[Go world 44]RO[Game 1]DT[1985-11-16]RE[W+R]PC[Nagoya branch of Nihon Ki-in];B[qd];W[dp];B[pq];W[dc];B[de];W[ce];B[dd];W[cd];B[ec];W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb];W[eb];B[bg];W[bf];B[bh];W[bd];B[fc];W[eg];B[fe];W[fb];B[ci];W[gc];B[gd];W[hc];B[id];W[hd];B[he];W[ie];B[hf];W[ff];B[ee];W[je];B[ig];W[ei];B[cl];W[hj];B[kg];W[md];B[po];W[jj];B[jp];W[hq];B[oc];W[lp];B[jr];W[oq];B[op];W[nq];B[pr];W[ln];B[fq];W[iq];B[jq];W[ho];B[io];W[gp];B[lr];W[mr];B[lq];W[mp];B[jl];W[ll];B[ke];W[jd];B[kk];W[jh];B[jg];W[jm];B[im];W[il];B[in];W[jk];B[kl];W[lj];B[hl];W[ik];B[km];W[kn];B[lk];W[mk];B[lm];W[mm];B[ml];W[kj];B[jn];W[nl];B[ae];W[ad];B[ba];W[ab];B[nk];W[ll];B[af];W[jm];B[ac];W[qp];B[pp];W[qo];B[dq];W[cq];B[ep];W[dr];B[eq];W[cp];B[fo];W[qm];B[qq];W[rp];B[rq];W[eo];B[en];W[do];B[fp];W[gn];B[fn];W[gm];B[gq];W[hp];B[hr];W[gl];B[er];W[pn];B[or];W[nr];B[rs];W[qf];B[bo];W[bn];B[cn];W[dn];B[cm];W[bp];B[on];W[om];B[pl];W[pm];B[fk];W[gk];B[qh];W[pg];B[qj];W[ph];B[pi];W[rh];B[ri];W[qg];B[re];W[qi];B[rk];W[oi];B[qh];W[ir];B[is];W[qi];B[cr];W[br];B[qh];W[gr];B[hs];W[qi];B[ds];W[co];B[qh];W[gf];B[ge];W[qi];B[bm];W[ao];B[qh];W[js];B[ks];W[qi];B[rm];W[rn];B[qh];W[gs];B[js];W[qi];B[ql];W[pj];B[sj];W[pk];B[qk];W[sm];B[rf];W[sh];B[sl];W[rl];B[bs];W[ar];B[rm];W[sq];B[sr];W[rl];B[am];W[an];B[rm];W[sn];B[si];W[rl];B[ap];W[aq];B[rm];W[nb];B[rl];W[pc];B[pd];W[ob];B[qc];W[pb];B[qb];W[od];B[fi];W[fh];B[gi];W[ej];B[kd];W[kc];B[dh];W[fj];B[hh];W[di];B[ol];W[ok];B[nn];W[nm];B[mg];W[cj];B[bj];W[lf];B[kf];W[ld];B[jc];W[ic];B[nd];W[oe];B[lc];W[jb];B[kb];W[jc];B[ne];W[nc];B[me];W[le];B[lg];W[mc];B[of];W[qa])goban-1.1.orig/games/M-72-1.sgf0000644000175000017500000000271206252650712013536 0ustar alal( ; GM[1] TM[1800] DT[1972-] GN[72M1] EV[11th Meijin 1972] RO[1] BR[9 dan] WR[Meijin] KM[5] PB[Fujisawa Shuko] PW[Rin Kaiho] RE[B+R] ;B[pd];W[dp];B[pq];W[dc];B[po];W[ce];B[fq];W[jq];B[cq] ;W[dq];B[cp];W[do];B[dr];W[er];B[cr];W[eq];B[cn];W[fp];B[ic] ;W[qj];B[ql];W[qf];B[nd];W[rd];B[qh];W[qc];B[pc];W[gc];B[ie] ;W[pf];B[pi];W[nf];B[qb];W[rb];B[qd];W[rc];B[rg];W[rf];B[ni] ;W[qp];B[pp];W[ld];B[me];W[jd];B[id];W[kf];B[le];W[ke];B[lg] ;W[kg];B[mg];W[ig];B[gd];W[fc];B[gg];W[jc];B[lq];W[qq];B[qo] ;W[jo];B[gi];W[hf];B[ed];W[ec];B[ef];W[pr];B[or];W[rr];B[cg] ;W[em];B[jh];W[kh];B[jg];W[ji];B[ih];W[ii];B[hh];W[oh];B[og] ;W[ng];B[nh];W[li];B[oi];W[ro];B[rn];W[rp];B[ps];W[qr];B[jr] ;W[iq];B[dn];W[en];B[dl];W[fj];B[dk];W[lo];B[gj];W[gk];B[hk] ;W[fl];B[ij];W[mb];B[lc];W[lb];B[mc];W[jk];B[pb];W[ra];B[gl] ;W[fk];B[ml];W[fd];B[ge];W[mj];B[nl];W[nn];B[mp];W[rm];B[qm] ;W[sn];B[qn];W[kr];B[kq];W[jb];B[ib];W[nb];B[mi];W[jj];B[hl] ;W[lh];B[mh];W[co];B[bo];W[fi];B[fh];W[rl];B[rk];W[sm];B[qk] ;W[di];B[ci];W[eh];B[eg];W[cj];B[dj];W[bn];B[bm];W[ch];B[bi] ;W[bh];B[bj];W[bg];B[kc];W[kb];B[cf];W[bf];B[ir];W[hr];B[lr] ;W[hn];B[lk];W[lj];B[kk];W[hb];B[ia];W[jm];B[kn];W[dm];B[cm] ;W[km];B[ln];W[lm];B[ko];W[jn];B[mm];W[fe];B[ff];W[mk];B[ll] ;W[oj];B[ok];W[bp];B[an];W[kp];B[mn];W[ds];B[bq];W[nj];B[pj] ;W[gm];B[kj];W[ki];B[hc];W[ah];B[ai];W[nc];B[od];W[of];B[ee] ;W[gb];B[de];W[cd];B[lp];W[qs];B[os];W[kd];B[md];W[sk];B[sj] ;W[jp];B[sl];W[oq];B[nr];W[sk];B[im];W[ik];B[hj] C[217 moves complete.] ) goban-1.1.orig/games/Hon-70-3.sgf0000644000175000017500000000314506243710140014057 0ustar alal( ; DT[1970-] EV[25th Honinbo 1970] RO[3] BR[9 dan] WR[Honinbo] KM[4.5] PB[Sakata Eio] PW[Rin Kaiho] RE[W+6.5] ;B[pd];W[dc];B[pp];W[dp];B[ce];W[dh];B[df];W[fd];B[bc] ;W[jc];B[qj];W[nq];B[pn];W[pr];B[qq];W[kq];B[cn];W[fp];B[dk] ;W[ff];B[eg];W[ei];B[fk];W[gi];B[cq];W[cp];B[bp];W[bo];B[bq] ;W[co];B[er];W[dn];B[dm];W[cm];B[en];W[bn];B[fq];W[hk];B[hm] ;W[gp];B[hq];W[hp];B[eo];W[gq];B[gr];W[iq];B[ej];W[fi];B[gn] ;W[gl];B[em];W[jl];B[jm];W[km];B[il];W[ik];B[kn];W[kl];B[hr] ;W[ip];B[in];W[nd];B[fg];W[gg];B[gh];W[hh];B[gf];W[hg];B[fe] ;W[ge];B[ef];W[he];B[pf];W[nf];B[ed];W[fc];B[nc];W[mc];B[od] ;W[nb];B[oc];W[md];B[mb];W[lb];B[oi];W[qc];B[qd];W[ob];B[pb] ;W[og];B[pg];W[oh];B[pi];W[ni];B[nj];W[mj];B[nk];W[ln];B[ko] ;W[mp];B[qr];W[mk];B[nl];W[cg];B[dd];W[hl];B[kp];W[im];B[jn] ;W[ir];B[jq];W[kr];B[cj];W[bl];B[di];W[bi];B[ci];W[gm];B[hn] ;W[el];B[dl];W[bj];B[bk];W[ak];B[ck];W[bg];B[mo];W[cb];B[cc] ;W[db];B[bf];W[no];B[ag];W[bh];B[nn];W[oo];B[lo];W[oq];B[ml] ;W[fl];B[mi];W[nh];B[lk];W[ll];B[mn];W[lj];B[jp];W[jr];B[bb] ;W[qb];B[oa];W[rd];B[re];W[ma];B[pc];W[rb];B[sd];W[sc];B[rc] ;W[fn];B[fo];W[rd];B[se];W[qa];B[pa];W[sa];B[ec];W[eb];B[rc] ;W[fm];B[dq];W[rd];B[fb];W[gb];B[rc];W[ep];B[go];W[rd];B[ne] ;W[me];B[rc];W[qs];B[rs];W[rd];B[kj];W[li];B[rc];W[ps];B[sr] ;W[rd];B[lh];W[kk];B[rc];W[po];B[qo];W[rd];B[pq];W[rc];B[or] ;W[nr];B[ns];W[ms];B[os];W[op];B[oe];W[hf];B[hs];W[ca];B[lm] ;W[ff];B[ee];W[eh];B[il];W[mh];B[of];W[ba];B[mf];W[ng];B[on] ;W[lq];B[ph];W[lf];B[ao];W[an];B[ap];W[ab];B[ac];W[ah];B[af] ;W[cf];B[be];W[eq];B[fr];W[fh];B[is];W[js];B[na];W[mb];B[ek] ;W[gj];B[do];W[cn];B[io];W[aa];B[im];W[gf] C[246 moves complete.] ) goban-1.1.orig/games/T-21-2.mgt0000644000175000017500000000204406252627522013551 0ustar alal(;RO[2]PW[Ryu Shikun]WR[9 dan]PB[Kobayashi Koichi]BR[9 dan]DT[1995-11-23]PC[Japan]KM[5.5]RE[B+R]FF[3]GM[1]VW[]SZ[19]B[pd]ID[21/2];W[dd];B[qp];W[dp];B[oq];W[qj];B[cj];W[ch];B[cm];W[gq] ;B[ql];W[qf];B[qh];W[of];B[nd];W[pi];B[qe];W[rf];B[kc];W[co] ;B[iq];W[oo];B[po];W[op];B[nq];W[pn];B[pp];W[qn];B[pk];W[nm] ;B[ph];W[oh];B[oi];W[oj];B[ni];W[pj];B[nl];W[nj];B[om];W[on] ;B[mm];W[pl];B[pm];W[rl];B[qm];W[rm];B[qk];W[rk];B[og];W[nh] ;B[pf];W[mi];B[ro];W[nn];B[ll];W[lo];B[ri];W[kn];B[jl];W[in] ;B[lq];W[oe];B[pe];W[ng];B[pg];W[hl];B[kj];W[ej];B[di];W[fh] ;B[ei];W[fi];B[dg];W[cg];B[eg];W[ce];B[ij];W[gf];B[bn];W[bo] ;B[el];W[ji];B[ki];W[kd];B[lc];W[nk];B[ol];W[jj];B[jh];W[ii] ;B[lh];W[mk];B[ml];W[rj];B[ih];W[hi];B[kf];W[bl];B[fj];W[cl] ;B[dl];W[fk];B[bm];W[bj];B[gj];W[kk];B[lk];W[jk];B[lj];W[ek] ;B[dk];W[bk];B[ci];W[bi];B[ee];W[fc];B[ge];W[hh];B[ed];W[ec] ;B[rn];W[sj];B[gk];W[fl];B[gl];W[fm];B[gm];W[fn];B[jm];W[ho] ;B[gn];W[he];B[gd];W[ik];B[go];W[gp];B[fo];W[dn];B[eo];W[dm] ;B[hp];W[if];B[hc];W[ip];B[hq];W[eq];B[im];W[hm];B[hn];W[io] ;B[jn])goban-1.1.orig/games/Hon-97-2.mgt0000644000175000017500000000236506363326730014115 0ustar alal( ; EV[52nd Honinbo title] RO[2nd game] PB[Cho Chikun] BR[9 dan] PW[Kato Masao] WR[9 dan] KM[5.5] DT[26/27 May 1997] PC[Japan] RE[B+R] SY[Written by GoBase-0.0.9] ;B[pd];W[dc];B[dq];W[qp];B[ce];W[do];B[cm];W[ed];B[fp];W[en];B[dk] ;W[cq];B[cr];W[cp];B[er];W[gn];B[dh];W[oq];B[ho];W[lq];B[hc];W[cd] ;B[de];W[be];B[bf];W[bd];B[hn];W[gl];B[qf];W[qk];B[qi];W[go];B[gp] ;W[hm];B[qm];W[pl];B[on];W[ro];B[mp];W[no];B[mq];W[ko];B[lp];W[kp] ;B[kq];W[jq];B[lr];W[kr];B[ln];W[nn];B[pq];W[op];B[or];W[lo];B[qr] ;W[pp];B[rq];W[lq];B[mr];W[qq];B[pr];W[rp];B[rr];W[ob];B[pb];W[pc] ;B[oc];W[qc];B[qb];W[od];B[nc];W[qd];B[pe];W[nb];B[rb];W[mc];B[nd] ;W[jc];B[he];W[md];B[ne];W[me];B[nf];W[bg];B[lb];W[kb];B[bh];W[cg] ;B[ch];W[ff];B[hg];W[dg];B[eg];W[ef];B[ag];W[eh];B[ei];W[fg];B[fi] ;W[if];B[hf];W[gh];B[jh];W[lg];B[hh];W[gi];B[ki];W[li];B[lj];W[mi] ;B[ik];W[hp];B[hq];W[ip];B[jl];W[ij];B[hj];W[hi];B[ii];W[jj];B[kj] ;W[hk];B[ll];W[nl];B[jf];W[lc];B[rj];W[rk];B[oi];W[id];B[hd];W[pj] ;B[pi];W[ie];B[ig];W[fc];B[cf];W[km];B[jk];W[gj];B[jm];W[kn];B[kl] ;W[cn];B[dm];W[bm];B[bl];W[bn];B[sk];W[sl];B[sj];W[rl];B[gb];W[el] ;B[bk];W[dl];B[cl];W[dj];B[ej];W[ek];B[ck];W[fb];B[fa];W[eb];B[bq] ;W[bp];B[br];W[ir];B[fo];W[fn];B[hr];W[ib];B[in];W[lm];B[ml];W[mm] ;B[ke];W[mf];B[ng];W[oj];B[nk] ) goban-1.1.orig/games/Hon-53-4.mgt0000644000175000017500000000213206045540242014070 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+R]DT[1953-06-15,16]BS[0]WS[0];B[pd];W[dq];B[pp];W[cd];B[ed];W[ec];B[fc];W[eb];B[do] ;W[co];B[dp];W[cp];B[eq];W[cq];B[dn];W[cm];B[fp];W[nq];B[lq] ;W[qq];B[qp];W[pq];B[op];W[nr];B[mo];W[qj];B[qg];W[pl];B[fe] ;W[dd];B[de];W[ce];B[df];W[cf];B[dg];W[fb];B[gc];W[nc];B[pc] ;W[kc];B[nl];W[jq];B[lp];W[gq];B[dr];W[jo];B[jm];W[ho];B[cn] ;W[bn];B[cr];W[bp];B[oj];W[pn];B[rq];W[rr];B[ro];W[sq];B[rp] ;W[rm];B[qn];W[nm];B[mm];W[om];B[qm];W[ml];B[ql];W[mn];B[lm] ;W[ln];B[qk];W[lo];B[np];W[no];B[mp];W[ll];B[km];W[nk];B[jk] ;W[og];B[ni];W[lj];B[mh];W[ki];B[ld];W[qf];B[pf];W[pg];B[qe] ;W[qh];B[rf];W[rg];B[qf];W[pi];B[ri];W[nf];B[kh];W[lf];B[li] ;W[jh];B[kj];W[ji];B[kg];W[kd];B[mj];W[lk];B[hm];W[if];B[ig] ;W[jg];B[kf];W[le];B[jf];W[dm];B[em];W[el];B[fm];W[hg];B[ie] ;W[ih];B[jd];W[fo];B[gp];W[hp];B[go];W[lr];B[kr];W[mr];B[jr] ;W[ir];B[kq];W[jp];B[dl];W[cl];B[dk];W[fr];B[er];W[is];B[ck] ;W[bk];B[bj];W[ik];B[ij];W[jj];B[kk];W[hj];B[gh];W[he];B[hd] ;W[gg];B[fh];W[hh];B[ge];W[gi];B[jn];W[ko];B[hk];W[fi];B[gk] ;W[di];B[bl];W[bm];B[ak];W[br];B[cg];W[bi];B[bh])goban-1.1.orig/games/M-84-2.mgt0000644000175000017500000000174006270527546013562 0ustar alal(;GM[1]VW[]FF[3]DT[1984-09-26,27]SZ[19]PB[Cho Chikun] PW[Otake Hideo]KM[5.5]PC[Akanesaki]RE[W+R]ID[84/2]BS[0]WS[0]KI[11] ;B[pd];W[dd];B[pq];W[dp];B[qk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[fq];W[cn];B[dr];W[po];B[nq];W[cq];B[hp];W[no];B[cf] ;W[be];B[bf];W[ce];B[df];W[fd];B[cj];W[qq];B[qr];W[qp];B[rr] ;W[qm];B[ok];W[lq];B[mp];W[jq];B[iq];W[ln];B[mo];W[mn];B[kp] ;W[jp];B[ko];W[ip];B[hq];W[in];B[kn];W[ho];B[om];W[pl];B[ol] ;W[pk];B[pj];W[pm];B[on];W[qj];B[qi];W[rj];B[pi];W[rk];B[ld] ;W[lc];B[nd];W[oc];B[jl];W[od];B[fo];W[il];B[ik];W[hl];B[cl] ;W[jm];B[km];W[jk];B[kl];W[cr];B[ij];W[go];B[jr];W[gp];B[eq] ;W[gq];B[gr];W[fp];B[kq];W[fr];B[hr];W[he];B[je];W[dh];B[ei] ;W[eh];B[fh];W[fg];B[eg];W[fi];B[gh];W[gg];B[hh];W[hg];B[ih] ;W[jf];B[kf];W[jg];B[ee];W[id];B[jd];W[jc];B[fe];W[ed];B[ge] ;W[gd];B[hf];W[if];B[gf];W[ke];B[ae];W[ig];B[di];W[oe];B[lh] ;W[kh];B[ki];W[jh];B[ji];W[lg];B[mh];W[oo];B[mf];W[pe];B[qe] ;W[qf];B[rf];W[qg];B[rg];W[mg];B[nf];W[re];B[qd];W[rh];B[ri] ;W[pg])goban-1.1.orig/games/Hon-91-6.mgt0000644000175000017500000000255006045540452014103 0ustar alal (;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1991-07-]RE[W+R]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dd];B[pq];W[dp];B[qo];W[jp];B[cj];W[nc];B[qf] ;W[cl];B[cf];W[fd];B[cq];W[dq];B[cp];W[do];B[bn];W[cn];B[co] ;W[bm];B[dn];W[cm];B[dr];W[er];B[cr];W[fq];B[dh];W[ce];B[bf] ;W[mq];B[kc];W[ic];B[ke];W[bo];B[bp];W[an];B[ar];W[ld];B[kd] ;W[jb];B[ne];W[pc];B[qc];W[qd];B[oc];W[pb];B[od];W[rd];B[ob] ;W[qb];B[pk];W[qi];B[qk];W[oj];B[nl];W[qg];B[pg];W[pf];B[qe] ;W[ph];B[og];W[rg];B[re];W[rc];B[ho];W[iq];B[lp];W[mp];B[lo] ;W[lq];B[jo];W[be];B[id];W[hd];B[hc];W[hb];B[he];W[gc];B[ni] ;W[oi];B[nh];W[gl];B[rj];W[ri];B[fl];W[fm];B[gm];W[fk];B[el] ;W[ek];B[gk];W[hl];B[dk];W[hm];B[dl];W[hk];B[en];W[bk];B[hq] ;W[hr];B[gj];W[hj];B[gn];W[kj];B[jj];W[jk];B[ji];W[gi];B[fj] ;W[hg];B[fi];W[kk];B[mj];W[kh];B[jh];W[jg];B[hh];W[gh];B[ig] ;W[hi];B[ih];W[eh];B[ki];W[hf];B[fh];W[fg];B[eg];W[ef];B[dg] ;W[if];B[ie];W[ge];B[jf];W[df];B[bh];W[qq];B[pr];W[qp];B[pp] ;W[ro];B[rr];W[qn];B[po];W[rl];B[qm];W[rm];B[pn];W[rk];B[qj] ;W[sj];B[rn];W[sn];B[si];W[sk];B[sm];W[qn];B[hp];W[gr];B[rn] ;W[se];B[pe];W[qn];B[ap];W[ao];B[rn];W[rf];B[so];W[nb];B[na] ;W[lb];B[kb];W[ka];B[lc];W[mb];B[ae];W[ad];B[af];W[bd];B[nr] ;W[md];B[nd];W[mc];B[jr];W[kr];B[kp];W[jq];B[kq];W[ir];B[lr] ;W[js];B[mr];W[kg];B[kf];W[mg];B[lf];W[li];B[lh];W[lg];B[lj] ;W[mh];B[mi];W[ij];B[lh];W[bs];B[li];W[ds];B[km];W[fo];B[fn] ;W[bj];B[bi];W[jd])goban-1.1.orig/games/Hon-94-7.mgt0000644000175000017500000000304306045540456014111 0ustar alal (;GM[1]SZ[19]DT[1994-07-21,22]KM[5.5]PC[Taishi-cho, Ibaragi]PB[Cho Chikun]PW[Kataoka Satoshi]RE[B+3.5]FF[3]BS[0]WS[0];B[pd];W[dc];B[dp];W[pp];B[ce];W[di];B[fe];W[gc];B[dk] ;W[fi];B[he];W[id];B[hi];W[ek];B[el];W[fk];B[dj];W[ei];B[hk] ;W[dl];B[cl];W[dm];B[cm];W[dn];B[cn];W[fm];B[do];W[ij];B[hj] ;W[gn];B[kd];W[ie];B[if];W[jf];B[je];W[hd];B[ig];W[kf];B[md] ;W[kh];B[kj];W[mi];B[mg];W[mh];B[mk];W[ng];B[qe];W[pi];B[gq] ;W[jl];B[gf];W[nb];B[oc];W[lc];B[ld];W[kc];B[fc];W[fb];B[jp] ;W[pn];B[mp];W[mn];B[pq];W[oq];B[qp];W[op];B[qn];W[qq];B[rq] ;W[qo];B[qr];W[ro];B[or];W[mq];B[nr];W[lp];B[kl];W[km];B[lm] ;W[eq];B[dq];W[kk];B[ll];W[jj];B[kn];W[jm];B[ln];W[fd];B[cg] ;W[ch];B[bg];W[mo];B[jn];W[nc];B[nd];W[pb];B[ob];W[oa];B[qc] ;W[qg];B[jc];W[jb];B[mc];W[mb];B[ib];W[kb];B[la];W[lb];B[gd] ;W[ge];B[jd];W[hf];B[ic];W[hb];B[ha];W[ga];B[ia];W[bd];B[cd] ;W[cc];B[bi];W[ee];B[eg];W[fg];B[im];W[il];B[hm];W[hl];B[lk] ;W[jk];B[bc];W[bb];B[ci];W[rp];B[qq];W[nl];B[en];W[em];B[gm] ;W[fn];B[gl];W[gk];B[ho];W[fl];B[lg];W[kg];B[go];W[fo];B[fp] ;W[eo];B[ep];W[rf];B[nk];W[ok];B[ol];W[pl];B[oj];W[pk];B[re] ;W[se];B[sd];W[sf];B[rc];W[jr];B[ir];W[oe];B[od];W[kr];B[mr] ;W[lr];B[nf];W[og];B[be];W[hr];B[iq];W[is];B[gs];W[gr];B[fr] ;W[hs];B[fs];W[ac];B[dh];W[ef];B[lj];W[ki];B[ni];W[nh];B[hq] ;W[js];B[qf];W[rg];B[nm];W[om];B[hc];W[gb];B[ed];W[ec];B[of] ;W[mm];B[lf];W[oi];B[nj];W[dd];B[pj];W[qj];B[pg];W[ph];B[pf] ;W[eh];B[dg];W[ms];B[ns];W[ls];B[sp];W[so];B[sq];W[ke];B[le] ;W[df];B[ml];W[nn];B[nq];W[np];B[kq];W[kp];B[jq];W[lq];B[hn] ;W[ko];B[jo];W[cf];B[bf];W[ae];B[af];W[ad];B[ej];W[fj])goban-1.1.orig/games/M-85-7.mgt0000644000175000017500000000144106252627042013556 0ustar alal(;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1985-11-20,21]RE[B+R]ID[85/7]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[cc];B[pq];W[dp];B[fq];W[qo];B[pm];W[qm];B[ql] ;W[pl];B[qn];W[rm];B[om];W[pn];B[pk];W[on];B[rl];W[rn];B[nm] ;W[nq];B[np];W[mp];B[op];W[nn];B[mo];W[mm];B[nk];W[lp];B[no] ;W[rq];B[mn];W[ip];B[fo];W[lm];B[kn];W[mk];B[nj];W[jl];B[in] ;W[kp];B[ko];W[gp];B[fp];W[dn];B[hm];W[hr];B[em];W[dm];B[el] ;W[li];B[dl];W[bl];B[bn];W[cq];B[cl];W[bm];B[cm];W[cn];B[bk] ;W[bo];B[oc];W[re];B[qd];W[qg];B[mi];W[lh];B[mh];W[lg];B[rj] ;W[ri];B[qi];W[mg];B[ng];W[nf];B[of];W[og];B[nh];W[oe];B[pf] ;W[nd];B[mf];W[ne];B[qf];W[kd];B[ce];W[de];B[df];W[ee];B[cd] ;W[dc];B[dg];W[nc];B[fc];W[cf];B[bf];W[ec];B[jd];W[jc];B[ic] ;W[id];B[je];W[ie];B[kc];W[jb];B[jf];W[if];B[kb];W[ib];B[jg] ;W[ke];B[kf])goban-1.1.orig/games/Hon-53-3.mgt0000644000175000017500000000335706045540242014101 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[W+3.5]DT[1953-06-05,06]BS[0]WS[0];B[pq];W[qd];B[cp];W[cd];B[po];W[fq];B[dq];W[iq];B[oc] ;W[ld];B[ec];W[hd];B[fd];W[ee];B[dd];W[ce];B[cc];W[bc];B[de] ;W[cf];B[df];W[dg];B[cb];W[pc];B[kq];W[qk];B[qi];W[qm];B[rn] ;W[qg];B[oi];W[ok];B[mi];W[eg];B[ef];W[fg];B[od];W[pf];B[nf] ;W[cl];B[jd];W[lf];B[of];W[ie];B[bb];W[ri];B[cg];W[ch];B[bg] ;W[bf];B[bh];W[ci];B[bd];W[af];B[lc];W[mc];B[lb];W[kd];B[jc] ;W[je];B[ob];W[oq];B[op];W[nq];B[mp];W[pr];B[qq];W[qr];B[rr] ;W[rs];B[rp];W[sr];B[rq];W[lr];B[kr];W[lq];B[lp];W[mq];B[ip] ;W[np];B[hq];W[oo];B[pp];W[fo];B[gp];W[fp];B[dm];W[fm];B[dl] ;W[bk];B[cm];W[ho];B[ir];W[io];B[jp];W[nn];B[hm];W[gr];B[jm] ;W[hr];B[hp];W[go];B[kn];W[fk];B[ek];W[gm];B[fj];W[il];B[gf] ;W[jh];B[gg];W[ei];B[kg];W[jg];B[kf];W[lh];B[lg];W[mg];B[mf] ;W[kh];B[le];W[ke];B[md];W[jf];B[lf];W[kk];B[kl];W[ll];B[lk] ;W[lm];B[jk];W[kj];B[jl];W[lj];B[gk];W[hl];B[pe];W[ln];B[ij] ;W[hj];B[js];W[qe];B[hk];W[er];B[im];W[gl];B[ik];W[cr];B[dr] ;W[ds];B[br];W[bs];B[cq];W[cs];B[aq];W[en];B[ck];W[bl];B[bm] ;W[cj];B[rm];W[ph];B[mh];W[pi];B[qb];W[hb];B[ql];W[pl];B[rl] ;W[jb];B[kc];W[rc];B[rk];W[qj];B[on];W[no];B[om];W[nm];B[ic] ;W[hc];B[ol];W[nl];B[pn];W[oh];B[nh];W[pb];B[pa];W[rb];B[ib] ;W[ia];B[do];W[fl];B[ej];W[fb];B[eb];W[gh];B[hi];W[ff];B[fe] ;W[hh];B[ge];W[dj];B[dk];W[bi];B[rj];W[sj];B[pm];W[nj];B[mj] ;W[mk];B[oj];W[pj];B[ni];W[pd];B[oe];W[og];B[ng];W[ii];B[gj] ;W[ra];B[qa];W[mb];B[ma];W[am];B[an];W[al];B[fc];W[fa];B[hs] ;W[gs];B[ls];W[ms];B[eq];W[gq];B[eo];W[em];B[ep];W[lo];B[gi] ;W[fi];B[sk];W[si];B[ea];W[gc];B[hn];W[gn];B[kp];W[ks];B[jq] ;W[ls];B[is];W[ad];B[ac];W[ae];B[mo];W[mn];B[hg];W[ja];B[la] ;W[jj];B[ig];W[ih];B[li];W[ki];B[nk];W[pk];B[he];W[id];B[if] ;W[or];B[dn];W[qs];B[sq];W[ss];B[nj])goban-1.1.orig/games/M-78-1.mgt0000644000175000017500000000244706252627042013561 0ustar alal(;PB[Rin Kaiho]PW[Otake Hideo]DT[1978-09-07,08]PC[Tokyo]RE[B+R]KM[5.5]ID[78/1]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[cq];B[pp];W[dc];B[oc];W[qj];B[ce];W[cj];B[qh] ;W[qm];B[jq];W[rp];B[fp];W[do];B[dq];W[dp];B[eq];W[cr];B[ch] ;W[cd];B[de];W[ed];B[cl];W[dh];B[bo];W[ci];B[cg];W[bp];B[el] ;W[fo];B[en];W[eo];B[ff];W[ej];B[gd];W[bd];B[hf];W[dg];B[df] ;W[be];B[hp];W[bf];B[gl];W[ld];B[jc];W[lg];B[cf];W[dn];B[hj] ;W[dm];B[dl];W[bh];B[ng];W[kp];B[kq];W[mp];B[on];W[mn];B[pl] ;W[pm];B[om];W[ol];B[pk];W[nl];B[oq];W[qo];B[pj];W[lq];B[qq] ;W[rq];B[pn];W[qn];B[nm];W[mm];B[ml];W[mk];B[ll];W[nk];B[nr] ;W[mr];B[pr];W[rr];B[qr];W[nq];B[os];W[ms];B[ns];W[ni];B[rl] ;W[il];B[rm];W[gk];B[no];W[hk];B[kn];W[ln];B[jp];W[in];B[ko] ;W[lp];B[km];W[np];B[op];W[kr];B[jr];W[js];B[is];W[ks];B[hm] ;W[im];B[lj];W[rj];B[rk];W[jo];B[hr];W[fr];B[hn];W[go];B[ho] ;W[iq];B[io];W[jn];B[hq];W[fq];B[gs];W[gr];B[er];W[gp];B[gq] ;W[ep];B[fs];W[fp];B[em];W[fk];B[gn];W[bn];B[bm];W[ao];B[bk] ;W[bj];B[hl];W[jk];B[jj];W[fm];B[fn];W[fl];B[al];W[li];B[kj] ;W[og];B[mj];W[nj];B[oh];W[nh];B[pg];W[of];B[nf];W[id];B[kh] ;W[ck];B[cm];W[aj];B[ak];W[if];B[ig];W[hg];B[jf];W[ie];B[gg] ;W[hh];B[gh];W[he];B[gf];W[oi];B[ij];W[ph];B[qg];W[ik];B[am] ;W[ge];B[ne];W[jg];B[ih];W[jh];B[hi];W[kg];B[lc];W[md];B[mc] ;W[nd];B[od];W[kd];B[oe])goban-1.1.orig/games/M-82-2.mgt0000644000175000017500000000274206252627042013553 0ustar alal(;PB[Otake Hideo]PW[Cho Chikun]KM[5.5]ID[82/2]GM[1]SZ[19]FF[3]BS[0]WS[0]PC[ ]DT[1982-]BR[9 Dan]WR[9 Dan]RE[W+R]KI[11];B[qd];W[pq];B[cd];W[cp];B[qo];W[od];B[oc];W[nc];B[pc] ;W[md];B[qf];W[ic];B[gc];W[ie];B[ed];W[eq];B[cj];W[op];B[jq] ;W[lq];B[gq];W[cl];B[ej];W[el];B[hf];W[bd];B[ce];W[if];B[ig] ;W[hg];B[gf];W[hh];B[jg];W[fh];B[dh];W[ji];B[lg];W[kf];B[kg] ;W[og];B[li];W[gj];B[pm];W[kk];B[lk];W[ll];B[mk];W[ml];B[ok] ;W[pe];B[qe];W[hr];B[kl];W[nl];B[nk];W[km];B[jl];W[jm];B[il] ;W[im];B[hl];W[hm];B[gl];W[fk];B[ij];W[fn];B[mq];W[lp];B[mp] ;W[mr];B[lo];W[mo];B[mn];W[no];B[ln];W[nn];B[dq];W[dr];B[er] ;W[fr];B[ep];W[fq];B[fm];W[en];B[gn];W[gm];B[fl];W[ek];B[em] ;W[dm];B[dn];W[do];B[fp];W[dp];B[gr];W[cq];B[hq];W[ip];B[ho] ;W[jp];B[kp];W[kq];B[ko];W[jo];B[iq];W[ii];B[jj];W[cc];B[be] ;W[eb];B[kr];W[lr];B[hd];W[bc];B[ne];W[nd];B[kd];W[kc];B[fb] ;W[ec];B[id];W[jd];B[je];W[jc];B[ke];W[ld];B[mf];W[pf];B[pg] ;W[ph];B[qg];W[nf];B[me];W[pd];B[oh];W[qc];B[qb];W[nb];B[oa] ;W[nh];B[oi];W[ni];B[nj];W[qn];B[rn];W[qm];B[pn];W[rm];B[rp] ;W[po];B[ol];W[kn];B[ir];W[qp];B[ro];W[rq];B[ls];W[ms];B[ks] ;W[lm];B[ql];W[bk];B[ob];W[lb];B[bj];W[eg];B[dg];W[hb];B[db] ;W[dc];B[ea];W[cb];B[da];W[fc];B[gb];W[fd];B[hc];W[ee];B[dd] ;W[ge];B[he];W[ca];B[fa];W[ff];B[gg];W[df];B[cf];W[fi];B[hj] ;W[hi];B[eo];W[cn];B[fo];W[dn];B[hp];W[sp];B[rl];W[le];B[jf] ;W[ha];B[na];W[ma];B[mi];W[lf];B[mg];W[ng];B[ck];W[bl];B[gh] ;W[gi];B[dk];W[ei];B[di];W[dl];B[hn];W[bg];B[cg];W[ki];B[kj] ;W[bi];B[aj];W[ae];B[af];W[ah])goban-1.1.orig/games/Hon-89-3.mgt0000644000175000017500000000264306045540446014115 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Cho Chikun]DT[1989-06-07,08]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[pq];W[dd];B[oc];W[po];B[pl];W[mp];B[oo] ;W[on];B[no];W[pp];B[nq];W[qq];B[oq];W[nn];B[mo];W[qr];B[pn] ;W[pm];B[qn];W[qm];B[ro];W[qo];B[rn];W[rm];B[rp];W[qp];B[om] ;W[rk];B[qk];W[rl];B[de];W[ed];B[cd];W[cc];B[ce];W[ee];B[ef] ;W[ff];B[fg];W[gf];B[gg];W[ol];B[hf];W[gd];B[nm];W[mn];B[lo] ;W[ln];B[kn];W[ml];B[bc];W[bb];B[hd];W[eg];B[df];W[eh];B[hg] ;W[hc];B[dc];W[cb];B[gc];W[fe];B[ic];W[hb];B[he];W[gb];B[ec] ;W[fc];B[ge];W[fd];B[fb];W[gc];B[ib];W[eb];B[ch];W[gp];B[iq] ;W[jd];B[id];W[ng];B[nl];W[nk];B[ok];W[mm];B[ol];W[mj];B[oi] ;W[qi];B[nj];W[mk];B[mi];W[pg];B[ki];W[km];B[jm];W[jn];B[ko] ;W[kl];B[im];W[jj];B[rq];W[rr];B[of];W[pj];B[oj];W[nh];B[ni] ;W[ph];B[rj];W[qj];B[sr];W[pr];B[or];W[sm];B[ji];W[ij];B[op] ;W[sq];B[rs];W[ss];B[ha];W[db];B[sr];W[ii];B[lg];W[ss];B[me] ;W[cj];B[di];W[dj];B[ei];W[qs];B[cp];W[co];B[cq];W[bo];B[dq] ;W[ep];B[fq];W[qe];B[pe];W[rd];B[qc];W[ho];B[gq];W[jp];B[jq] ;W[kp];B[ip];W[jo];B[io];W[in];B[hn];W[hm];B[gn];W[lp];B[kq] ;W[fp];B[hp];W[gm];B[qf];W[go];B[rg];W[mr];B[mq];W[lq];B[lr] ;W[fn];B[kr];W[rh];B[qg];W[qh];B[hn];W[gn];B[ej];W[mf];B[lf] ;W[ne];B[nd];W[ek];B[fk];W[el];B[bi];W[bj];B[ih];W[ar];B[gj] ;W[eq];B[er];W[fr];B[cr];W[gr];B[hq];W[br];B[bd];W[bp];B[hr] ;W[cs];B[gs];W[gi];B[fi];W[os];B[ns];W[hn];B[ps];W[np];B[ms] ;W[os];B[nr];W[pf];B[re];W[oe];B[od];W[nf];B[aj];W[ak];B[ai] ;W[fl];B[bk])goban-1.1.orig/games/Hon-87-3.mgt0000644000175000017500000000254106045540444014106 0ustar alal (;GM[1]SZ[19]PW[Yamashiro Hiroshi]PB[Takemiya Masaki]DT[1987-06-17,18]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[pb];B[jp] ;W[qc];B[fq];W[qq];B[pq];W[qp];B[qn];W[rn];B[qm];W[pr];B[or] ;W[qr];B[nq];W[cn];B[me];W[im];B[fo];W[eq];B[fr];W[io];B[ip] ;W[ho];B[kn];W[qo];B[po];W[jl];B[en];W[ll];B[dl];W[hp];B[hq] ;W[dr];B[mc];W[re];B[fc];W[md];B[ld];W[nd];B[le];W[df];B[jn] ;W[ij];B[bm];W[bn];B[ch];W[ge];B[hc];W[rm];B[eg];W[fd];B[ec] ;W[dc];B[nb];W[id];B[hd];W[he];B[ie];W[ic];B[ib];W[jb];B[hb] ;W[mb];B[lc];W[lb];B[kc];W[kb];B[jc];W[if];B[je];W[ej];B[gj] ;W[el];B[gl];W[em];B[ii];W[dm];B[jj];W[gm];B[ik];W[iq];B[hr] ;W[go];B[ce];W[de];B[bf];W[bd];B[fp];W[fn];B[cd];W[cc];B[be] ;W[bc];B[cj];W[dg];B[dh];W[eh];B[fg];W[ei];B[gh];W[hg];B[bk] ;W[cl];B[qd];W[rd];B[ob];W[oa];B[pc];W[qb];B[gg];W[fb];B[eb] ;W[db];B[fa];W[ed];B[oc];W[jh];B[ih];W[jf];B[na];W[bl];B[bi] ;W[ke];B[jd];W[lh];B[lj];W[ql];B[pl];W[jo];B[ko];W[kp];B[jq] ;W[mo];B[mp];W[lo];B[lp];W[kq];B[jr];W[qk];B[pk];W[ln];B[rf] ;W[mj];B[fk];W[ek];B[mi];W[li];B[nj];W[mk];B[hl];W[ji];B[jk] ;W[fj];B[hj];W[fl];B[hh];W[gk];B[gi];W[ng];B[qg];W[qj];B[qi] ;W[ri];B[rj];W[pi];B[qh];W[rk];B[ni];W[nk];B[ph];W[qe];B[pe] ;W[ak];B[aj];W[al];B[do];W[co];B[er];W[ds];B[rh];W[sj];B[lk] ;W[kr];B[lr];W[mg];B[nm];W[js];B[ir];W[km];B[lq];W[mm];B[no] ;W[oh];B[oi];W[ck];B[bj];W[ne];B[kf];W[jg];B[bg];W[og];B[sb] )goban-1.1.orig/games/Hon-60-5.sgf0000644000175000017500000000270506243707544014077 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[5] FF[3] BR[Honinbo] WR[8 dan] PB[Takagawa Shukaku] PW[Fujisawa Shuko] RE[B+R] KM[4.5] ID[15/5] ;B[qd];W[dc];B[pq];W[dq];B[od];W[qk];B[co];W[qo];B[qm] ;W[op];B[oq];W[np];B[mq];W[qh];B[on];W[pp];B[qq];W[om];B[qp] ;W[po];B[pl];W[rp];B[rq];W[rl];B[pk];W[rn];B[ce];W[dh];B[gd] ;W[de];B[dd];W[ed];B[cd];W[cc];B[ee];W[fd];B[df];W[fe];B[ff] ;W[ge];B[kc];W[cl];B[ep];W[eq];B[fp];W[fq];B[gp];W[eg];B[ef] ;W[cg];B[gq];W[bp];B[bo];W[gh];B[dg];W[ch];B[fh];W[fi];B[hf] ;W[fg];B[gf];W[he];B[ie];W[id];B[je];W[nq];B[nr];W[mp];B[lq] ;W[or];B[mr];W[sq];B[sr];W[sp];B[rs];W[ic];B[bc];W[bb];B[ec] ;W[fc];B[bq];W[br];B[ar];W[cq];B[ap];W[aq];B[eb];W[db];B[bq] ;W[pr];B[qr];W[aq];B[rm];W[sm];B[bq];W[gr];B[hr];W[aq];B[da] ;W[cb];B[bq];W[fs];B[cr];W[aq];B[fb];W[gb];B[bq];W[hq];B[iq] ;W[aq];B[gc];W[hd];B[bq];W[qs];B[ps];W[aq];B[hb];W[ga];B[bq] ;W[bs];B[qj];W[rj];B[cs];W[aq];B[ql];W[rk];B[bq];W[ig];B[if] ;W[aq];B[sn];W[ao];B[sl];W[ln];B[hp];W[ml];B[pj];W[qf];B[ri] ;W[rh];B[qi];W[rd];B[rc];W[re];B[of];W[oh];B[mj];W[jb];B[rg] ;W[qc];B[pc];W[qb];B[rb];W[pe];B[pd];W[oe];B[ne];W[nf];B[me] ;W[sg];B[ng];W[rf];B[nn];W[pn];B[mm];W[lm];B[nl];W[kk];B[ll] ;W[kl];B[mk];W[ko];B[ik];W[il];B[hl];W[hk];B[im];W[jl];B[gl] ;W[gk];B[fk];W[ij];B[el];W[nb];B[pb];W[lb];B[ab];W[ea];B[lp] ;W[mo];B[gj];W[hj];B[fj];W[hh];B[pf];W[dm];B[en];W[bd];B[be] ;W[ac];B[kg];W[bm];B[pg];W[ph];B[qe];W[qg];B[jn];W[kn];B[ro] ;W[lc];B[ld];W[kd];B[jd];W[jc];B[ke];W[hm];B[hn];W[dj];B[ah] ;W[ki];B[af] ) goban-1.1.orig/games/Hon-68-2.mgt0000644000175000017500000000306706045540376014114 0ustar alal (;GM[1]SZ[19]KM[4.5]PW[Sakata Eio]PB[Rin Kaiho]RE[B+8.5]DT[1968-05-09,10]FF[3]BS[0]WS[0];B[qd];W[dd];B[oc];W[pp];B[dq];W[co];B[dl];W[dn];B[fp] ;W[bq];B[jq];W[qj];B[qh];W[fc];B[qn];W[nq];B[di];W[qo];B[pn] ;W[ql];B[no];W[nk];B[mq];W[np];B[mp];W[mo];B[nn];W[lo];B[nr] ;W[or];B[mr];W[mm];B[pk];W[pl];B[ro];W[rp];B[rm];W[op];B[ol] ;W[om];B[ok];W[nl];B[rq];W[so];B[pi];W[qk];B[cd];W[cc];B[dc] ;W[db];B[sn];W[rn];B[de];W[ec];B[ro];W[sp];B[qq];W[qp];B[on] ;W[nm];B[ni];W[rn];B[kd];W[rh];B[ri];W[qi];B[rg];W[ph];B[sh] ;W[qg];B[oh];W[rh];B[mn];W[ln];B[qh];W[pg];B[rh];W[pd];B[pe] ;W[pc];B[od];W[qc];B[re];W[sm];B[br];W[cq];B[cr];W[hq];B[ip] ;W[eq];B[dp];W[er];B[do];W[hp];B[cp];W[ir];B[in];W[jr];B[lp] ;W[ep];B[eo];W[fo];B[en];W[go];B[jo];W[kq];B[kp];W[lr];B[ob] ;W[km];B[hm];W[gm];B[gl];W[fm];B[ch];W[dk];B[ck];W[ek];B[cj] ;W[em];B[dm];W[dr];B[bp];W[ce];B[ic];W[mh];B[mi];W[lh];B[ng] ;W[le];B[ld];W[li];B[hj];W[ne];B[nf];W[md];B[mc];W[ke];B[cf] ;W[bd];B[bf];W[hc];B[id];W[ib];B[jb];W[mf];B[os];W[pr];B[hb] ;W[gb];B[ia];W[ee];B[nd];W[me];B[jk];W[il];B[jl];W[gk];B[ll] ;W[jm];B[im];W[kl];B[hk];W[fl];B[hl];W[mj];B[oe];W[rj];B[ds] ;W[es];B[cs];W[gp];B[hd];W[kk];B[jj];W[df];B[kj];W[lj];B[gc] ;W[dg];B[cg];W[jh];B[lq];W[kr];B[oi];W[mg];B[gj];W[pj];B[fk] ;W[el];B[fb];W[gd];B[ga];W[ge];B[ps];W[qs];B[ns];W[qr];B[if] ;W[iq];B[ko];W[kn];B[je];W[oj];B[qf];W[gh];B[eh];W[fg];B[eg] ;W[fj];B[lk];W[lm];B[ih];W[jg];B[hh];W[gi];B[ff];W[hg];B[fi] ;W[ef];B[ej];W[jp];B[io];W[jf];B[he];W[ae];B[af];W[gf];B[ki] ;W[kh];B[be];W[ad];B[sj];W[sk];B[ea];W[da];B[eb];W[ii];B[hi] ;W[ij];B[ik];W[ji];B[nh];W[ls];B[si];W[jq])goban-1.1.orig/games/M-79-2.mgt0000644000175000017500000000316406252627042013560 0ustar alal(;GM[1]PB[Sakata Eio]PW[Otake Hideo]BR[9 Dan]WR[9 Dan]PC[Kyoto]DT[1979-09-26]RE[W+0.5]ID[79/2]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dc];B[pq];W[dq];B[pk];W[do];B[cf];W[cd];B[ci] ;W[ck];B[ip];W[nc];B[pf];W[pb];B[qc];W[kc];B[np];W[ef];B[ei] ;W[ek];B[ld];W[lc];B[nd];W[oc];B[je];W[ko];B[kq];W[qo];B[qp] ;W[rp];B[rq];W[op];B[oq];W[no];B[mp];W[qm];B[qk];W[nl];B[ol] ;W[nm];B[nk];W[mk];B[om];W[pp];B[qq];W[nn];B[nj];W[od];B[oe] ;W[md];B[ne];W[ke];B[jf];W[me];B[ll];W[ml];B[gd];W[dh];B[ch] ;W[gf];B[ed];W[ec];B[fc];W[de];B[eb];W[db];B[jc];W[bj];B[dg] ;W[jb];B[ib];W[ic];B[hc];W[jd];B[id];W[jc];B[gb];W[ea];B[fg] ;W[fe];B[hf];W[eg];B[eh];W[gg];B[hg];W[gh];B[df];W[fd];B[cq] ;W[cp];B[dr];W[cr];B[eq];W[bq];B[ep];W[be];B[bf];W[hh];B[jh] ;W[lh];B[mf];W[lf];B[ih];W[kg];B[jg];W[nh];B[oh];W[og];B[ng] ;W[qb];B[ni];W[qe];B[qf];W[go];B[gp];W[ho];B[hp];W[er];B[fr] ;W[jj];B[hi];W[ds];B[jn];W[rc];B[re];W[rl];B[rk];W[rd];B[qd] ;W[se];B[rf];W[lm];B[rn];W[ro];B[pn];W[po];B[qn];W[bi];B[ij] ;W[ge];B[he];W[jk];B[km];W[kl];B[ln];W[lk];B[fn];W[dj];B[di] ;W[en];B[em];W[fj];B[ce];W[fm];B[gn];W[gm];B[eo];W[dn];B[hm] ;W[hl];B[im];W[fq];B[fp];W[bd];B[gi];W[kn];B[fh];W[dd];B[jm] ;W[lo];B[fs];W[fb];B[rb];W[sb];B[ra];W[qa];B[gk];W[fk];B[hk] ;W[il];B[mo];W[mn];B[jo];W[sq];B[sr];W[sp];B[rr];W[gc];B[hd] ;W[kp];B[jp];W[lq];B[lp];W[ln];B[mq];W[sn];B[sm];W[oo];B[so] ;W[hn];B[fo];W[sn];B[rm];W[bh];B[bg];W[mh];B[ah];W[on];B[pm] ;W[ia];B[hb];W[ji];B[ii];W[kh];B[es];W[cj];B[dr];W[mg];B[nf] ;W[er];B[ae];W[ad];B[dr];W[lr];B[mr];W[er];B[ff];W[dr];B[ee] ;W[ef];B[gl];W[fl];B[mi];W[li];B[mj];W[sa];B[sf];W[lj];B[sd] ;W[gj];B[ai];W[aj];B[ag];W[fi];B[if];W[fc];B[af];W[so])goban-1.1.orig/games/M-65-3.mgt0000644000175000017500000000373406252627042013557 0ustar alal(;GM[1]VW[]FF[3]DT[1965-08-19,20]SZ[19]PB[Sakata Eio]PW[Rin Kaiho]KM[5]WR[8 Dan]PC[Sapporo]BS[0]WS[0]ID[65/3]RO[3]RE[W+0];B[qd];W[dc];B[qq];W[do];B[oc];W[ce];B[dq];W[fp];B[fq] ;W[gp];B[co];W[cn];B[cp];W[dm];B[gq];W[hp];B[dh];W[jc];B[qj] ;W[cj];B[df];W[ee];B[dj];W[dk];B[ej];W[ci];B[fg];W[rd];B[qc] ;W[pp];B[qp];W[po];B[or];W[gf];B[id];W[gg];B[ff];W[fe];B[gh] ;W[hh];B[gi];W[jd];B[if];W[hi];B[hj];W[ij];B[hk];W[ie];B[cc] ;W[dd];B[db];W[eb];B[bb];W[bd];B[bc];W[ji];B[cd];W[cf];B[ik] ;W[jk];B[jl];W[kk];B[im];W[da];B[ca];W[cb];B[lm];W[nj];B[db] ;W[ea];B[de];W[dg];B[hg];W[he];B[ki];W[jh];B[kh];W[mk];B[ih] ;W[ii];B[jg];W[ig];B[ec];W[ef];B[ih];W[jj];B[nl];W[pk];B[nk] ;W[km];B[kl];W[ll];B[ml];W[lk];B[oj];W[mi];B[kn];W[mm];B[ln] ;W[ok];B[om];W[pm];B[on];W[pj];B[pn];W[rm];B[fb];W[cb];B[oi] ;W[pi];B[oh];W[ph];B[og];W[hf];B[db];W[jn];B[jm];W[cb];B[lg] ;W[ig];B[db];W[eq];B[er];W[cb];B[en];W[qo];B[dn];W[cm];B[db] ;W[oq];B[pq];W[cb];B[qn];W[rn];B[ro];W[no];B[sp];W[ep];B[pg] ;W[rg];B[qh];W[qi];B[ri];W[rj];B[db];W[fr];B[dr];W[cb];B[qk] ;W[rk];B[ql];W[qg];B[db];W[rq];B[rr];W[cb];B[gn];W[hn];B[db] ;W[hm];B[fa];W[kq];B[jp];W[jo];B[kp];W[ko];B[lo];W[lp];B[ip] ;W[io];B[mp];W[lq];B[mq];W[mr];B[jr];W[mo];B[nq];W[mn];B[km] ;W[ir];B[fk];W[rl];B[nr];W[lr];B[gr];W[qm];B[oo];W[mc];B[qf] ;W[rf];B[ol];W[pl];B[re];W[mf];B[sf];W[rh];B[ng];W[mg];B[mh] ;W[pf];B[qe];W[oe];B[of];W[ne];B[pe];W[li];B[lh];W[ni];B[nh] ;W[fl];B[ek];W[el];B[ck];W[di];B[dl];W[bk];B[ei];W[eh];B[fh] ;W[eg];B[gk];W[nb];B[bn];W[bm];B[ao];W[qa];B[le];W[me];B[lf] ;W[ld];B[ib];W[rb];B[rc];W[jf];B[qb];W[pa];B[od];W[cl];B[dk] ;W[am];B[is];W[jq];B[hr];W[iq];B[jb];W[kb];B[be];W[af];B[dp] ;W[eo];B[ad];W[gc];B[bf];W[bg];B[gb];W[fj];B[il];W[ic];B[hc] ;W[hd];B[hb];W[ja];B[gd];W[fd];B[fc];W[ke];B[ed];W[de];B[ob] ;W[oa];B[nc];W[mb];B[ia];W[ka];B[sb];W[ra];B[gl];W[gm];B[ae] ;W[ag];B[lj];W[mj];B[kj];W[sg];B[se];W[pb];B[pc];W[an];B[bo] ;W[sn];B[ks];W[in];B[np];W[so];B[rp];W[ns];B[os];W[kg];B[kf] ;W[jg];B[ms];W[ls];B[hs];W[ns];W[ms])goban-1.1.orig/games/T-01-1.mgt0000644000175000017500000000300106261062522013531 0ustar alal(;SZ[19]EV[1st Tengen match, game 1]DT[1975-12-11]PB[Ohira Shuzo]BR[9d]PW[Fujisawa Shuko]WR[9d]KM[5.5]RE[W+8]SO[Kido yearbook];B[qd];W[dd];B[cp];W[pp];B[eq];W[oc];B[ld];W[of];B[qg];W[ph];B[qh];W[pi];B[qi];W[pj];B[qk];W[pe];B[qe];W[jd];B[ql];W[dj];B[nq];W[or];B[lg];W[lf];B[fc];W[kf];B[db];W[hc];B[fe];W[cb];B[cc];W[dc];B[bb];W[cd];B[ca];W[bc];B[cb];W[dg];B[gc];W[hd];B[cl];W[el];B[fg];W[cn];B[dm];W[dp];B[dq];W[do];B[em];W[cq];B[bp];W[br];B[bq];W[cr];B[ar];W[fq];B[ep];W[eo];B[fp];W[fo];B[gp];W[go];B[gm];W[hp];B[gq];W[bo];B[dr];W[ck];B[dh];W[ch];B[cg];W[eh];B[dk];W[ek];B[dl];W[ej];B[fl];W[hn];B[il];W[bk];B[kl];W[bl];B[df];W[eg];B[ef];W[cf];B[pc];W[ob];B[ce];W[bg];B[be];W[kj];B[jn];W[hm];B[hl];W[gk];B[gl];W[ko];B[nr];W[oo];B[kq];W[kn];B[ml];W[mj];B[jj];W[ji];B[ii];W[jh];B[oq];W[pq];B[qo];W[om];B[ol];W[pr];B[nn];W[on];B[no];W[nm];B[mm];W[jm];B[im];W[in];B[hq];W[ro];B[rn];W[rp];B[pb];W[pd];B[oa];W[na];B[pa];W[nb];B[pg];W[og];B[ip];W[jp];B[ho];W[gn];B[jq];W[gf];B[ff];W[bf];B[bd];W[qm];B[rm];W[qn];B[hb];W[ib];B[gb];W[qj];B[rj];W[rk];B[ri];W[mn];B[ok];W[nl];B[hj];W[jk];B[jl];W[ij];B[ik];W[np];B[jj];W[qc];B[qb];W[ij];B[gj];W[ih];B[jj];W[rc];B[rb];W[ij];B[gh];W[hi];B[gi];W[pf];B[qf];W[fk];B[hk];W[gg];B[fh];W[hh];B[he];W[ie];B[ge];W[if];B[oj];W[oi];B[ia];W[jb];B[mo];W[mp];B[ln];W[lo];B[mn];W[mq];B[mr];W[lr];B[lq];W[op];B[kr];W[nj];B[rl];W[ja];B[io];W[jo];B[lk];W[lj];B[hf];W[hg];B[sn];W[km];B[so];W[sp];B[ha];W[ae];B[ad];W[af];B[cs];W[co];B[cm];W[bm];B[gd];W[ap];B[bs];W[ns];B[ls];W[kk];B[pm];W[pn];B[pl];W[lp];B[ei];W[di];B[fi])goban-1.1.orig/games/T-02-3.mgt0000644000175000017500000000331206261100406013533 0ustar alal(;SZ[19]EV[2nd Tengen match]BR[9d]PW[Kobayashi Koichi]WR[7d]KM[5.5]SO[Kido yearbook]RO[Game 3]DT[1976-12-16]PB[Suguichi Masao]RE[W+0.5];B[pd];W[dp];B[pq];W[dc];B[qk];W[nc];B[pf];W[jd];B[de];W[dh];B[ge];W[gc];B[fq];W[jp];B[cq];W[dq];B[cp];W[do];B[dr];W[er];B[cr];W[eq];B[cn];W[mp];B[po];W[cl];B[dn];W[en];B[em];W[fn];B[dl];W[dk];B[fm];W[fp];B[ck];W[co];B[bo];W[bk];B[cj];W[bm];B[bn];W[dj];B[cc];W[cb];B[hc];W[hd];B[gd];W[ic];B[fc];W[hb];B[gb];W[cd];B[hc];W[ci];B[he];W[gc];B[nd];W[oc];B[hc];W[pc];B[qd];W[gc];B[md];W[lb];B[hc];W[qc];B[id];W[ok];B[pk];W[oj];B[ol];W[nl];B[om];W[ph];B[nm];W[ng];B[ml];W[mf];B[rc];W[rb];B[re];W[op];B[pp];W[oq];B[sb];W[io];B[ni];W[pg];B[qb];W[pb];B[ra];W[jc];B[je];W[lh];B[oi];W[ke];B[kd];W[jf];B[ie];W[jh];B[or];W[nr];B[pr];W[mq];B[mh];W[lf];B[kc];W[kb];B[mc];W[mb];B[od];W[ha];B[li];W[ki];B[lg];W[kg];B[kh];W[ji];B[ig];W[lh];B[pa];W[nb];B[kh];W[jg];B[ce];W[be];B[bf];W[bd];B[cg];W[qi];B[rj];W[kk];B[lj];W[qj];B[pj];W[ri];B[rk];W[gm];B[kj];W[ik];B[jk];W[il];B[jl];W[jm];B[jj];W[ij];B[gl];W[hi];B[ek];W[hl];B[km];W[kn];B[ln];W[lm];B[kl];W[ko];B[mn];W[gk];B[es];W[fs];B[ds];W[fr];B[ej];W[bj];B[eb];W[db];B[bh];W[fl];B[el];W[ef];B[dd];W[df];B[cf];W[ff];B[ec];W[rg];B[ei];W[qf];B[ih];W[ii];B[ae];W[bc];B[of];W[rf];B[eh];W[dg];B[oa];W[se];B[sd];W[sf];B[qe];W[lh];B[na];W[ma];B[kh];W[oo];B[on];W[lh];B[lo];W[lp];B[kh];W[sj];B[sk];W[si];B[no];W[np];B[bi];W[fh];B[gh];W[fi];B[gg];W[fg];B[am];W[al];B[an];W[cm];B[dm];W[lh];B[jb];W[ib];B[kh];W[mo];B[nn];W[lh];B[ja];W[ka];B[kh];W[fe];B[ed];W[lh];B[ga];W[ia];B[kh];W[ne];B[oe];W[lh];B[kq];W[kp];B[kh];W[hh];B[hg];W[lh];B[im];W[jn];B[kh];W[ob];B[qa];W[lh];B[jb];W[ja];B[kh];W[os];B[ps];W[ns];B[gi];W[fj];B[gj];W[fk];B[lh];W[ai];B[ah];W[aj];B[ea];W[ad];B[af];W[ca];B[hj])goban-1.1.orig/games/M-87-3.mgt0000644000175000017500000000237606252627042013564 0ustar alal(;GM[1]SZ[19]PW[Rin Kaiho]PB[Kato Masao]DT[1987-10-07,08]RE[B+F]ID[87/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[cp];W[pp];B[oc];W[ep];B[eq];W[fq];B[dq] ;W[gp];B[fo];W[go];B[fr];W[gr];B[fp];W[gq];B[fn];W[gm];B[fm] ;W[fl];B[gn];W[hn];B[el];W[fk];B[hm];W[gl];B[in];W[ho];B[dl] ;W[ek];B[dk];W[dj];B[cj];W[ci];B[di];W[ej];B[ch];W[bi];B[bk] ;W[bh];B[cg];W[dh];B[ei];W[fi];B[eh];W[dg];B[fh];W[cf];B[gi] ;W[hl];B[im];W[il];B[km];W[kl];B[ll];W[jl];B[kn];W[lk];B[jq] ;W[er];B[mk];W[ml];B[lm];W[lj];B[mj];W[nl];B[mi];W[kh];B[oo] ;W[mn];B[ir];W[ip];B[lo];W[np];B[mm];W[nm];B[op];W[no];B[on] ;W[nn];B[oq];W[nq];B[lq];W[kr];B[jp];W[lr];B[iq];W[ds];B[dr] ;W[fs];B[cr];W[hs];B[hr];W[io];B[hq];W[kq];B[kp];W[is];B[js] ;W[gs];B[jr];W[mq];B[cs];W[lp];B[jo];W[em];B[eo];W[ln];B[es] ;W[jm];B[jn];W[ds];B[bg];W[bf];B[es];W[do];B[dp];W[ds];B[eg] ;W[df];B[es];W[jd];B[jf];W[ds];B[li];W[ki];B[lg];W[ks];B[es] ;W[kg];B[fr];W[kf];B[hp];W[qn];B[je];W[ke];B[id];W[jc];B[kj] ;W[kk];B[he];W[gg];B[ic];W[jb];B[fc];W[ff];B[db];W[fd];B[gd] ;W[qp];B[qj];W[ql];B[ld];W[ec];B[fe];W[ee];B[ed];W[pc];B[pd] ;W[fd];B[eb];W[mc];B[md];W[nc];B[od];W[oj];B[oi];W[pi];B[pj] ;W[oh];B[ni];W[qi];B[ri];W[rh];B[rj];W[qg];B[ph];W[gc];B[ed] ;W[qh];B[pg];W[fd];B[fb];W[ge];B[ib];W[pf];B[og];W[hd];W[ne] )goban-1.1.orig/games/M-73-6.sgf0000644000175000017500000000361706253434714013554 0ustar alal( ; EV[12th Meijin Title] RO[6] PB[Ishida Yoshio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Oct 11/12, 1973] PC[Tokyo] RE[W+Jigo] KM[5] ;B[pd];W[dc];B[dp];W[qq];B[ce];W[dh];B[fe];W[gc];B[dj];W[fh] ;B[hd];W[gd];B[ge];W[he];B[ec];W[eb];B[ed];W[db];B[gg];W[id] ;B[hf];W[ie];B[fj];W[gh];B[if];W[hi];B[hk];W[ji];B[kf];W[fq] ;B[dq];W[ip];B[kp];W[em];B[fl];W[fo];B[fm];W[en];B[cn];W[cm] ;B[bm];W[ck];B[ci];W[bl];B[bn];W[dk];B[ej];W[cf];B[be];W[ef] ;B[dd];W[bg];B[ch];W[cg];B[jn];W[li];B[ho];W[er];B[dr];W[co] ;B[do];W[dn];B[bo];W[po];B[el];W[dl];B[hq];W[hp];B[gp];W[go] ;B[fp];W[bj];B[io];W[gq];B[ep];W[iq];B[ah];W[mg];B[ai];W[aj] ;B[kd];W[ic];B[nd];W[pj];B[om];W[ir];B[fn];W[nn];B[eo];W[dm] ;B[ml];W[ln];B[nm];W[on];B[lm];W[nj];B[ph];W[lk];B[kn];W[lo] ;B[jp];W[kl];B[km];W[pf];B[qm];W[rf];B[rd];W[qk];B[mq];W[kr] ;B[lq];W[ro];B[rn];W[oq];B[nf];W[ng];B[of];W[og];B[pg];W[qg] ;B[pe];W[qf];B[jb];W[ds];B[cs];W[es];B[cr];W[le];B[ke];W[lf] ;B[jc];W[il];B[rl];W[rk];B[rp];W[so];B[qo];W[qp];B[pn];W[qn] ;B[gr];W[hr];B[qo];W[op];B[sn];W[qn];B[eq];W[fr];B[qo];W[re] ;B[se];W[qn];B[qh];W[rh];B[qo];W[qc];B[qd];W[qn];B[ri];W[qi] ;B[qo];W[ld];B[lc];W[qn];B[sh];W[rg];B[qo];W[ob];B[qb];W[qn] ;B[ga];W[hb];B[qo];W[pc];B[rc];W[qn];B[fs];W[gs];B[qo];W[jg] ;B[jf];W[ia];B[ja];W[qn];B[cc];W[cb];B[qo];W[rb];B[sb];W[qn] ;B[ih];W[ii];B[qo];W[ne];B[oe];W[qn];B[hh];W[gi];B[qo];W[hm] ;B[sp];W[gn];B[ik];W[jl];B[hl];W[im];B[al];W[ak];B[am];W[cj] ;B[di];W[pl];B[pm];W[eh];B[gm];W[hn];B[ag];W[bc];B[nr];W[cd] ;B[de];W[mp];B[jh];W[bf];B[af];W[ek];B[fk];W[md];B[mc];W[bd] ;B[lh];W[mh];B[lg];W[mf];B[sd];W[sg];B[ib];W[ha];B[pr];W[or] ;B[qr];W[rr];B[rs];W[rq];B[os];W[pq];B[nq];W[np];B[ok];W[kh] ;B[kg];W[ki];B[oj];W[oi];B[nk];W[mk];B[fg];W[eg];B[df];W[dg] ;B[jk];W[kk];B[jj];W[kj];B[pk];W[ql];B[sk];W[sj];B[sl];W[ff] ;B[gf];W[ad];B[ae];W[lr];B[ol];W[si];B[jq];W[jr];B[fc];W[fb] ;B[mn];W[mo];B[mm];W[gj];B[gk];W[rj];B[ns];W[ls] ) goban-1.1.orig/games/Hon-86-2.mgt0000644000175000017500000000261706045540442014106 0ustar alal (;GM[1]SZ[19]DT[1986-05-28,29]PC[Gero]RE[W+2.5]PW[Yamashiro Hiroshi]PB[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[dj];W[qj];B[cn];W[fq];B[ql];W[qg];B[mc];W[rd];B[oq] ;W[pc];B[oc];W[qc];B[jp];W[ob];B[nb];W[od];B[nc];W[np];B[nq] ;W[qn];B[pn];W[qo];B[po];W[qp];B[qq];W[rq];B[qm];W[qr];B[pr] ;W[pq];B[dd];W[qq];B[cc];W[bc];B[cb];W[bb];B[be];W[bd];B[ec] ;W[db];B[eb];W[ca];B[pj];W[qi];B[mp];W[kd];B[le];W[ke];B[kf] ;W[jf];B[jg];W[ig];B[if];W[je];B[kg];W[hf];B[ih];W[hg];B[oi] ;W[fe];B[en];W[hp];B[in];W[pk];B[ok];W[hh];B[ii];W[gj];B[hk] ;W[bp];B[kb];W[og];B[nh];W[hj];B[ij];W[gk];B[ep];W[eq];B[do] ;W[cp];B[hl];W[jq];B[kq];W[ip];B[jo];W[jr];B[gc];W[fd];B[fb] ;W[eg];B[hd];W[id];B[ib];W[he];B[kr];W[ci];B[cj];W[dh];B[ed] ;W[ek];B[dl];W[oe];B[js];W[pi];B[oj];W[qk];B[pl];W[ir];B[is] ;W[hs];B[ks];W[hr];B[pb];W[qb];B[oa];W[hc];B[gb];W[gd];B[nf] ;W[of];B[or];W[bl];B[cl];W[bj];B[bk];W[ak];B[ck];W[bh];B[bm] ;W[qa];B[rm];W[rn];B[sj];W[si];B[sn];W[sp];B[ei];W[hb];B[ha] ;W[ic];B[jc];W[rk];B[fh];W[gh];B[fg];W[bf];B[bg];W[ae];B[cg] ;W[ef];B[oh];W[ph];B[ne];W[ag];B[al];W[aj];B[fl];W[fk];B[go] ;W[fp];B[fo];W[el];B[fm];W[kc];B[bo];W[ao];B[an];W[ap];B[co] ;W[pa];B[ob];W[md];B[me];W[em];B[dm];W[ho];B[hn];W[gl];B[gm] ;W[ng];B[mg];W[jb];B[ja];W[ps];B[os];W[qs];B[so];W[ro];B[sm] ;W[rl];B[gp];W[gq];B[sl];W[sk];B[nd];W[ld];B[gf];W[jd];B[jb] ;W[ch];B[ga];W[ea];B[ej];W[ge];B[eo])goban-1.1.orig/games/Hon-56-1.mgt0000644000175000017500000000333406045540244014077 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-06-07,06]BR[8 dan]WR[Honinbo]KM[4.5]RO[1]PC[Tokyo]PB[Shimamura Toshihiro]PW[Takagawa Kaku]RE[W+6.5]TM[10 h]FF[3];B[pd];W[dc];B[pp];W[dp];B[de];W[cg];B[fq];W[dn];B[jp] ;W[qn];B[np];W[qj];B[ef];W[gc];B[dh];W[cd];B[ce];W[ck];B[qf] ;W[jd];B[ql];W[rl];B[lc];W[pl];B[qo];W[pn];B[rn];W[rm];B[ec] ;W[eb];B[fb];W[fc];B[ed];W[db];B[ic];W[dr];B[id];W[lq];B[iq] ;W[oq];B[op];W[nq];B[pq];W[mp];B[ci];W[hp];B[hq];W[cj];B[bi] ;W[be];B[bf];W[bd];B[pc];W[bg];B[gb];W[hb];B[gd];W[fa];B[fd] ;W[ga];B[ej];W[kh];B[kf];W[mg];B[mf];W[ng];B[nf];W[mn];B[kq] ;W[gi];B[cm];W[dm];B[cl];W[dl];B[bk];W[bj];B[bl];W[ek];B[bo] ;W[fj];B[lr];W[jc];B[je];W[jb];B[lp];W[mq];B[lo];W[mo];B[km] ;W[lb];B[mb];W[mc];B[kb];W[ld];B[la];W[kc];B[lb];W[ie];B[if] ;W[he];B[hf];W[hd];B[ke];W[kd];B[md];W[ro];B[rp];W[sn];B[rr] ;W[po];B[qp];W[kn];B[jn];W[ln];B[jm];W[ko];B[jo];W[kp];B[kr] ;W[ll];B[qh];W[aj];B[cq];W[ge];B[gf];W[eq];B[cr];W[dg];B[fh] ;W[eh];B[ei];W[eg];B[fi];W[fg];B[gj];W[fk];B[hi];W[ff];B[le] ;W[ja];B[ni];W[pi];B[lm];W[mm];B[li];W[mj];B[fp];W[cp];B[bp] ;W[br];B[bs];W[ai];B[lh];W[pg];B[ph];W[oh];B[ri];W[oi];B[lj] ;W[gg];B[gh];W[hg];B[mk];W[nc];B[nb];W[nk];B[gm];W[ih];B[ji] ;W[jk];B[lk];W[ii];B[ij];W[jj];B[ik];W[ki];B[ml];W[il];B[gk] ;W[hk];B[hj];W[jl];B[nl];W[cn];B[bn];W[hl];B[gl];W[go];B[hn] ;W[gn];B[hm];W[qg];B[rg];W[pf];B[pe];W[rf];B[qe];W[rj];B[om] ;W[pr];B[qr];W[os];B[pm];W[qm];B[pk];W[qk];B[ok];W[fr];B[mr] ;W[gr];B[nr];W[on];B[gq];W[or];B[fn];W[fo];B[eo];W[en];B[fm] ;W[ep];B[ho];W[do];B[hr];W[si];B[rh];W[gp];B[ak];W[ds];B[cs] ;W[hs];B[is];W[gs];B[kl];W[bh];B[dj];W[dk];B[of];W[og];B[lg] ;W[hh];B[di];W[sg];B[re];W[sh];B[sf];W[sj];B[sp];W[kj];B[so] ;W[rn];B[ns];W[mh];B[mi];W[oj];B[nj];W[im];B[ip];W[eo];B[in] ;W[qs];B[rs];W[ps];B[no];W[nn])goban-1.1.orig/games/Hon-95-3.sgf0000644000175000017500000000304206243541342014070 0ustar alal( ; FF[1] GM[1] VW[] SZ[19] PB[Kato Masao] BR[9 dan] PW[Cho Chikun] WR[9 dan] EV[50th Honinbo title] RO[3] DT[7-8 June 1995] PC[Japan] RE[W+4.5] KM[5.5] B[pd];W[dc];B[dq];W[pp];B[ce];W[fd];B[ch];W[nc];B[qf];W[pb]; B[qc];W[kc];B[do];W[jq];B[hq];W[np];B[qk];W[cd];B[de];W[cj]; B[cl];W[ej];B[eh];W[el];B[dm];W[cq];B[dr];W[cp];B[dp];W[bn]; B[co];W[bo];B[br];W[bl];B[bk];W[cm];B[ck];W[bj];B[al];W[dl]; B[bm];W[cn];B[dk];W[dn];B[ek];W[fk];B[dj];W[em];B[fn];W[jo]; B[hn];W[gm];B[gn];W[hk];B[hc];W[gc];B[hd];W[qo];B[kp];W[jp]; B[hm];W[hp];B[gq];W[jm];B[gb];W[fb];B[ib];W[be];B[bf];W[bd]; B[kn];W[ko];B[hl];W[gl];B[gj];W[fj];B[gi];W[gk];B[fm];W[fl]; B[jk];W[bq];B[ld];W[lc];B[nd];W[md];B[me];W[mc];B[ne];W[le]; B[ke];W[kd];B[lf];W[qb];B[qq];W[pq];B[nk];W[qm];B[ql];W[pm]; B[ol];W[rc];B[rd];W[pc];B[qd];W[cr];B[cs];W[ar];B[ii];W[ml]; B[mk];W[rl];B[rk];W[ff];B[je];W[bg];B[bh];W[om];B[ll];W[lm]; B[mm];W[mn];B[ir];W[jr];B[sl];W[rm];B[sm];W[sn];B[sk];W[ro]; B[ge];W[kl];B[lk];W[fe];B[fa];W[ea];B[ga];W[ec];B[la];W[rb]; B[cg];W[gp];B[fp];W[iq];B[bs];W[en];B[eo];W[hr];B[gr];W[is]; B[gs];W[hg];B[gg];W[gf];B[hf];W[gh];B[hh];W[fg];B[ig];W[gd]; B[he];W[nm];B[ma];W[jb];B[ja];W[nb];B[pl];W[ij];B[jj];W[ae]; B[af];W[df];B[dg];W[di];B[ci];W[ef];B[cf];W[fi];B[hi];W[an]; B[am];W[sd];B[se];W[sc];B[od];W[jl];B[ei];W[jd];B[id];W[in]; B[ho];W[fh];B[na];W[oa];B[oc];W[ob];B[kk];W[eg];B[dh];W[nl]; B[hs];W[ir];B[io];W[ip];B[im];W[jn];B[ld];W[ic];B[jc];W[re]; B[sf];W[ic];B[pr];W[rq];B[jc];W[rf];B[sg];W[ic];B[rr];W[qp]; B[jc];W[rg];B[sh];W[ic];B[le];W[jc];B[ka];W[il];B[fo];W[dd]; B[ee];W[gg]) goban-1.1.orig/games/Hon-87-2.mgt0000644000175000017500000000245206045540444014106 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Yamashiro Hiroshi]DT[1987-06-04,05]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[cd];W[pp];B[oc];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[jq];W[qj];B[nq];W[lq];B[qq];W[qp];B[pq] ;W[op];B[np];W[oq];B[or];W[pr];B[qr];W[nr];B[ps];W[no];B[mp] ;W[jp];B[mo];W[iq];B[nn];W[qm];B[kq];W[kp];B[lr];W[ir];B[kr] ;W[fp];B[cq];W[cp];B[bp];W[bo];B[br];W[oo];B[mn];W[dr];B[dq] ;W[eq];B[cr];W[nc];B[nd];W[mc];B[od];W[le];B[dj];W[eg];B[dh] ;W[qg];B[if];W[dd];B[cc];W[id];B[er];W[fr];B[ds];W[cl];B[ho] ;W[in];B[hn];W[hm];B[gm];W[gl];B[io];W[jn];B[eo];W[ep];B[fl] ;W[hl];B[fm];W[fo];B[fj];W[gn];B[gk];W[hk];B[hj];W[jl];B[fn] ;W[go];B[cn];W[bn];B[fe];W[fd];B[qk];W[rk];B[rj];W[pk];B[qi] ;W[pj];B[rh];W[qe];B[pi];W[rd];B[qc];W[og];B[oi];W[sj];B[ri] ;W[ol];B[pf];W[pg];B[nh];W[ng];B[rc];W[pe];B[lh];W[mg];B[lj] ;W[bj];B[ck];W[bk];B[cm];W[bm];B[dl];W[bl];B[ik];W[jk];B[ij] ;W[eb];B[db];W[kg];B[fs];W[gr];B[bh];W[ap];B[bq];W[en];B[dm] ;W[co];B[kh];W[jg];B[hg];W[fb];B[lg];W[lf];B[je];W[jh];B[ji] ;W[kf];B[fg];W[df];B[ce];W[rq];B[on];W[pn];B[rr];W[rp];B[il] ;W[im];B[kn];W[jo];B[oe];W[md];B[rf];W[qf];B[re];W[gf];B[gg] ;W[nb];B[ff];W[ef];B[om];W[pm];B[jd];W[jc];B[lp];W[rg];B[sg] ;W[pb];B[ob];W[oa];B[km];W[ml];B[qb];W[gs];B[es];W[eh];B[jm] ;W[kl];B[ko];W[ip];B[ll];W[lk];B[lm];W[mk];B[kj];W[kk];B[oj] ;W[nk])goban-1.1.orig/games/Hon-82-1.mgt0000644000175000017500000000155206045540436014101 0ustar alal (;GM[1]PB[Cho Chikun]PW[Kobayashi Koichi]SZ[19]FF[3]DT[1982-05-26,27]PC[Hakone]RE[W+R]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[dq];W[qp];B[ce];W[ci];B[fe];W[gc];B[ck] ;W[ei];B[gi];W[ek];B[cm];W[eg];B[ed];W[ec];B[hd];W[hc];B[id] ;W[gg];B[ic];W[cd];B[bd];W[de];B[dd];W[ee];B[cc];W[fd];B[cd] ;W[ge];B[nc];W[co];B[ff];W[gf];B[dh];W[dg];B[ch];W[bf];B[bh] ;W[bg];B[bb];W[db];B[ac];W[eh];B[di];W[oq];B[qj];W[kd];B[kb] ;W[pi];B[pj];W[qi];B[oi];W[pg];B[oh];W[qf];B[rd];W[nf];B[nk] ;W[le];B[qn];W[dl];B[bm];W[gp];B[ep];W[dn];B[fo];W[go];B[fm] ;W[dm];B[gn];W[io];B[lp];W[oo];B[ln];W[hn];B[hm];W[im];B[hl] ;W[il];B[hk];W[pm];B[rp];W[ml];B[jn];W[in];B[qq];W[pp];B[nm] ;W[nl];B[pn];W[mm];B[nn];W[ol];B[rr];W[ro];B[qo];W[sp];B[rq] ;W[on];B[om];W[qm];B[rn];W[mn];B[no];W[mo];B[np];W[mp];B[nq] ;W[mq];B[nr];W[mr];B[op];W[ns];B[po];W[en];B[fn];W[re];B[qe] ;W[rf];B[md];W[ne];B[pe];W[og];B[lc];W[rc])goban-1.1.orig/games/M-70-3.sgf0000644000175000017500000000205206252650472013536 0ustar alal( ; DT[1970-] RO[3] KM[5] EV[9th Meijin 1970] BR[Meijin] WR[9 dan] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[B+R] ;B[qd];W[dc];B[cp];W[qq];B[eq];W[oc];B[ce];W[cj];B[ld] ;W[nd];B[pf];W[qb];B[qj];W[cn];B[ch];W[eo];B[gc];W[de];B[cd] ;W[fc];B[fd];W[eb];B[gb];W[gd];B[fe];W[hd];B[ic];W[ee];B[ff] ;W[dg];B[cg];W[eg];B[fg];W[fh];B[gh];W[ei];B[hg];W[cc];B[fi] ;W[eh];B[dj];W[fj];B[ck];W[ci];B[di];W[bk];B[dk];W[bl];B[gi] ;W[ej];B[bh];W[bj];B[dh];W[co];B[dp];W[em];B[fl];W[el];B[bc] ;W[bb];B[ac];W[hk];B[ab];W[fq];B[fr];W[gq];B[gr];W[iq];B[pn] ;W[lb];B[lf];W[ep];B[dr];W[op];B[mc];W[mb];B[pc];W[pd];B[pe] ;W[od];B[qc];W[pb];B[kc];W[nn];B[hq];W[hp];B[hr];W[jp];B[rb] ;W[ra];B[rc];W[kb];B[jb];W[nf];B[qp];W[pp];B[qo];W[rq];B[jr] ;W[pj];B[qi];W[qm];B[lq];W[pk];B[or];W[pi];B[qh];W[ba];B[be] ;W[lc];B[md];W[kd];B[jc];W[kg];B[lg];W[ki];B[ne];W[oe];B[of] ;W[me];B[le];W[ng];B[nb];W[ob];B[lh];W[jj];B[li];W[ni];B[lj] ;W[jf];B[je];W[if];B[he];W[jk];B[rl];W[ql];B[rm];W[rn];B[qn] ;W[rk];B[pq];W[sm];B[qr];W[re];B[rf];W[rr];B[rs];W[ss];B[sr] ;W[sq];B[nr];W[ss];B[no]C[153 moves complete.] ) goban-1.1.orig/games/Hon-54-2.mgt0000644000175000017500000000275006045540242014075 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1954-05-28,29]RO[2]PC[Takaishi]PB[Sugiuchi Masao]PW[Takagawa Kaku]RE[B+0.5]FF[3];B[pd];W[dc];B[pp];W[dq];B[de];W[fd];B[dn];W[cl];B[cc] ;W[cb];B[cd];W[dh];B[bb];W[jc];B[jp];W[qn];B[fp];W[cp];B[ql] ;W[qq];B[pq];W[qp];B[po];W[qr];B[eq];W[er];B[fr];W[ep];B[fq] ;W[eo];B[gn];W[fm];B[pn];W[rn];B[hl];W[qf];B[ph];W[of];B[qe] ;W[nd];B[rf];W[qg];B[ne];W[oe];B[od];W[nc];B[me];W[ng];B[ld] ;W[ob];B[rg];W[qh];B[qb];W[lc];B[jd];W[kd];B[ke];W[kc];B[pi] ;W[lf];B[le];W[lh];B[kg];W[lg];B[jh];W[kf];B[jf];W[id];B[je] ;W[ji];B[ih];W[ii];B[hi];W[kh];B[hh];W[lj];B[jk];W[pk];B[ok] ;W[qi];B[pj];W[rk];B[qk];W[rl];B[qm];W[qj];B[dl];W[ck];B[fn] ;W[cn];B[en];W[db];B[bh];W[ll];B[co];W[bn];B[do];W[bo];B[pr] ;W[ln];B[mk];W[kk];B[lo];W[ps];B[os];W[qs];B[nr];W[hf];B[ge] ;W[ef];B[he];W[gf];B[if];W[fe];B[cg];W[ie];B[dr];W[cr];B[es] ;W[ba];B[ab];W[pb];B[rc];W[jl];B[ik];W[ko];B[kp];W[mo];B[lp] ;W[fk];B[dk];W[dj];B[mn];W[ml];B[nn];W[bi];B[ki];W[kj];B[jj] ;W[li];B[gk];W[ek];B[el];W[dp];B[rh];W[in];B[fl];W[fi];B[ri] ;W[rj];B[dd];W[ed];B[jn];W[jm];B[ai];W[ch];B[bg];W[bj];B[io] ;W[bq];B[rm];W[sm];B[nl];W[kn];B[jo];W[hm];B[lm];W[km];B[qo] ;W[ro];B[mm];W[gm];B[gl];W[pe];B[nh];W[oh];B[pg];W[pf];B[og] ;W[nf];B[pc];W[oi];B[oj];W[ni];B[mi];W[mh];B[mj];W[mf];B[fh] ;W[gj];B[hj];W[eh];B[fg];W[jg];B[ig];W[ff];B[pa];W[oa];B[mc] ;W[mb];B[md];W[la];B[qa];W[df];B[cf];W[re];B[qd];W[si];B[sh] ;W[sj];B[se];W[aj];B[ah];W[fo];B[go];W[cs];B[nj];W[nh];B[oc] ;W[nb];B[cm];W[bm];B[hn];W[im];B[ds];W[il];B[ca];W[da];B[dm] ;W[ca])goban-1.1.orig/games/Hon-90-3.mgt0000644000175000017500000000254306045540450014077 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Kobayashi Koichi]DT[1990-06-07,08]RE[B+0.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pq];W[cp];B[eq];W[po];B[pl];W[mp];B[oo] ;W[on];B[no];W[pp];B[nq];W[qq];B[oq];W[nn];B[mo];W[qr];B[dn] ;W[ol];B[ok];W[nl];B[qm];W[qn];B[rn];W[ro];B[pm];W[pn];B[jp] ;W[qi];B[qg];W[oi];B[nk];W[mk];B[nj];W[qf];B[pg];W[pf];B[rf] ;W[pk];B[pj];W[qk];B[qj];W[rk];B[oj];W[re];B[rh];W[sf];B[rg] ;W[rj];B[ri];W[qd];B[of];W[pc];B[dp];W[oe];B[rl];W[nf];B[og] ;W[od];B[co];W[ic];B[cf];W[mj];B[ni];W[mi];B[nh];W[mh];B[ng] ;W[mg];B[ef];W[fd];B[gf];W[ce];B[bf];W[dj];B[he];W[hd];B[fj] ;W[dl];B[ek];W[ch];B[dk];W[ck];B[cl];W[bl];B[cj];W[cm];B[bj] ;W[el];B[fl];W[fm];B[em];W[cn];B[do];W[dm];B[en];W[bk];B[bn] ;W[bm];B[di];W[bo];B[bp];W[an];B[jn];W[ie];B[if];W[jf];B[je] ;W[id];B[jg];W[kf];B[jk];W[sn];B[rm];W[df];B[dg];W[de];B[cg] ;W[kn];B[km];W[ln];B[ko];W[lo];B[lp];W[kl];B[jm];W[jl];B[il] ;W[ik];B[hk];W[ij];B[hj];W[lq];B[kp];W[be];B[ih];W[mq];B[kr] ;W[mn];B[nr];W[op];B[np];W[cq];B[bq];W[cr];B[br];W[ar];B[dr] ;W[ap];B[kg];W[lg];B[cs];W[pr];B[ls];W[hl];B[im];W[ji];B[lf] ;W[ke];B[mf];W[ne];B[kj];W[aq];B[dq];W[om];B[sk];W[sj];B[sl] ;W[aj];B[ai];W[bi];B[ak];W[ah];B[aj];W[af];B[ki];W[kk];B[jj] ;W[ge];B[hf];W[kh];B[jh];W[ee];B[eg];W[li];B[lh];W[so];B[si] ;W[kh];B[ii];W[ag];B[bh];W[bg];B[ci];W[bh];B[dh];W[ae];B[lm] ;W[ml];B[al];W[am];B[ff];W[mm];B[fe];W[gd];B[sg];W[se];B[os] ;W[ps])goban-1.1.orig/games/M-96-6.sgf0000644000175000017500000000261706252642022013550 0ustar alal( ; EV[21st Meijin] RO[6] PB[Takemiya Masaki] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[6/7 Nov 1996] PC[Japan] RE[W+R] SY[Written by GoBase-0.0.9] ;B[pd];W[dp];B[pp];W[dc];B[pj];W[ce];B[jd];W[nq];B[oo];W[jp] ;B[cn];W[dn];B[dm];W[co];B[en];W[do];B[em];W[fp];B[di];W[cm] ;B[cl];W[bn];B[bm];W[qq];B[pq];W[qp];B[qn];W[pr];B[or];W[qr] ;B[qo];W[oq];B[pf];W[lc];B[le];W[nc];B[oc];W[nd];B[nf];W[kd] ;B[ke];W[jc];B[id];W[ic];B[hd];W[gc];B[km];W[qh];B[mq];W[mp] ;B[nr];W[mr];B[lq];W[os];B[ko];W[rf];B[qi];W[qc];B[rd];W[oh] ;B[qd];W[ni];B[li];W[mj];B[nk];W[lj];B[kj];W[ng];B[mh];W[mg] ;B[lg];W[kk];B[jj];W[mk];B[ll];W[ml];B[pi];W[ln];B[mm];W[lm] ;B[mn];W[jk];B[kl];W[lk];B[ij];W[im];B[in];W[ik];B[hn];W[hj] ;B[hi];W[gj];B[gi];W[gl];B[hm];W[hl];B[jm];W[pg];B[of];W[ek] ;B[fj];W[fk];B[hk];W[gk];B[dj];W[rh];B[ri];W[nl];B[ok];W[dl] ;B[cn];W[ej];B[ei];W[cm];B[bk];W[ck];B[cn];W[fi];B[fh];W[cm] ;B[kb];W[hc];B[cn];W[pm];B[cm];W[qm];B[qk];W[rm];B[ol];W[nm] ;B[nn];W[om];B[pl];W[ro];B[ob];W[nb];B[hq];W[fr];B[fe];W[ed] ;B[fd];W[fc];B[na];W[ma];B[oa];W[lb];B[bf];W[be];B[lr];W[ns] ;B[gq];W[bo];B[fq];W[eq];B[gr];W[er];B[ld];W[kc];B[cg];W[no] ;B[mo];W[np];B[lo];W[on];B[ae];W[ad];B[af];W[cd];B[df];W[dk] ;B[cj];W[mf];B[me];W[nh];B[lf];W[qf];B[rk];W[ls];B[kr];W[qb] ;B[pe];W[ks];B[js];W[ms];B[jr];W[ne];B[go];W[mi];B[lh];W[ee] ;B[ef];W[gd];B[ge];W[il];B[de];W[dd];B[eo];W[ep];B[rb];W[rc] ;B[sc];W[ra];B[sb];W[se];B[re];W[sf];B[sd];W[sh] ) goban-1.1.orig/games/M-90-6.mgt0000644000175000017500000000267106252627042013557 0ustar alal(;GM[1]FF[3]DT[1990-11-07,08]SZ[19]PB[Kobayashi Koichi]PW[Otake Hideo]KM[5.5]RE[B+R]ID[90/6]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[co];B[cq];W[ep];B[eq];W[fp];B[bo] ;W[cn];B[fq];W[gp];B[bn];W[cm];B[dp];W[do];B[cp];W[po];B[np] ;W[qq];B[qr];W[qp];B[or];W[qk];B[cf];W[de];B[bd];W[dh];B[df] ;W[ef];B[eg];W[dg];B[ee];W[ff];B[dd];W[ed];B[ce];W[fe];B[ec] ;W[de];B[db];W[cd];B[cc];W[dd];B[fd];W[ee];B[bb];W[fc];B[eb] ;W[gd];B[nd];W[qh];B[kd];W[ko];B[nn];W[pm];B[ej];W[fh];B[cj] ;W[gq];B[kq];W[mo];B[lp];W[dk];B[dj];W[no];B[lo];W[ln];B[mn] ;W[oo];B[kn];W[lm];B[km];W[ll];B[kl];W[lk];B[fm];W[en];B[jo] ;W[mp];B[mq];W[nq];B[nr];W[qf];B[qe];W[pf];B[re];W[mf];B[ne] ;W[nf];B[jc];W[fl];B[bg];W[oc];B[nc];W[rf];B[oe];W[se];B[sd] ;W[sf];B[rd];W[kf];B[jj];W[gl];B[li];W[bh];B[lj];W[kk];B[jk] ;W[nk];B[lg];W[lf];B[nj];W[hk];B[kj];W[mk];B[fi];W[bf];B[be] ;W[fg];B[bi];W[cg];B[af];W[ni];B[nh];W[oi];B[il];W[rr];B[rs] ;W[sq];B[hc];W[jr];B[kr];W[id];B[gb];W[jq];B[gm];W[hm];B[hn] ;W[hl];B[gn];W[ck];B[ah];W[gr];B[er];W[im];B[io];W[kg];B[em] ;W[dm];B[js];W[is];B[ir];W[ks];B[iq];W[lr];B[mr];W[gj];B[op] ;W[pp];B[oq];W[mh];B[gi];W[hi];B[hh];W[ii];B[gh];W[ih];B[hf] ;W[if];B[fo];W[eo];B[el];W[ek];B[bk];W[bl];B[al];W[am];B[ak] ;W[bm];B[dl];W[cl];B[ig];W[jg];B[hg];W[lh];B[kh];W[jh];B[je] ;W[ie];B[jf];W[ic];B[ib];W[he];B[ld];W[gc];B[mi];W[ki];B[og] ;W[of];B[oj];W[pi];B[ok];W[nl];B[mj];W[fb];B[fa];W[ch];B[fj] ;W[fk];B[ol];W[om];B[jp];W[gs];B[lq];W[es];B[ds])goban-1.1.orig/games/M-73-7.sgf0000644000175000017500000000303006253434732013542 0ustar alal( ; EV[12th Meijin Title] RO[7] PB[Ishida Yoshio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Oct 19/20, 1973] PC[Tokyo] RE[W+R] KM[5] ;B[pd];W[cq];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[pj];W[nq] ;B[kp];W[qq];B[qp];W[pq];B[op];W[rq];B[np];W[mq];B[mp];W[rp] ;B[qn];W[nc];B[df];W[ed];B[dn];W[eq];B[nd];W[md];B[ne];W[pc] ;B[oc];W[ob];B[od];W[mb];B[qc];W[dj];B[gi];W[eh];B[dp];W[dq] ;B[ep];W[dm];B[fp];W[em];B[gm];W[gr];B[ff];W[hp];B[hf];W[pb] ;B[me];W[ld];B[cp];W[gk];B[hk];W[hl];B[gl];W[hj];B[fk];W[ik] ;B[gj];W[cm];B[hm];W[kf];B[bq];W[br];B[bo];W[aq];B[ap];W[bp] ;B[oq];W[or];B[bq];W[ar];B[bi];W[fn];B[gn];W[fo];B[fr];W[go] ;B[gq];W[hr];B[hq];W[iq];B[ip];W[jq];B[ho];W[gp];B[fq];W[jp] ;B[io];W[jo];B[bp];W[im];B[hk];W[er];B[ds];W[gk];B[fl];W[es] ;B[cr];W[fs];B[gs];W[hs];B[bs];W[jn];B[hn];W[ci];B[bj];W[bh] ;B[bg];W[ch];B[ah];W[bk];B[ck];W[dk];B[bl];W[gh];B[hk];W[gg] ;B[il];W[jl];B[ij];W[jk];B[ii];W[ih];B[cl];W[dl];B[be];W[gd] ;B[gf];W[eg];B[fe];W[ki];B[jh];W[ig];B[kj];W[li];B[ji];W[lk] ;B[hd];W[bd];B[ad];W[ac];B[ae];W[bb];B[jg];W[lj];B[ke];W[if] ;B[le];W[id];B[kc];W[hc];B[qb];W[lc];B[kd];W[kb];B[oi];W[ok] ;B[pk];W[rn];B[ro];W[so];B[qo];W[hl];B[hi];W[qd];B[rd];W[qe] ;B[re];W[rm];B[ql];W[mg];B[nh];W[mh];B[lf];W[kg];B[lg];W[lh] ;B[ej];W[ng];B[og];W[qa];B[rl];W[qf];B[rf];W[of];B[pe];W[pf] ;B[nf];W[qh];B[rg];W[qg];B[qi];W[ni];B[oh];W[jc];B[rh];W[bm] ;B[cg];W[rb];B[rc];W[lq];B[je];W[ie];B[pr];W[nr];B[sp];W[sn] ;B[qm];W[sq];B[ml];W[oj];B[ph];W[nl];B[mk];W[mm];B[lm];W[ll] ;B[nm];W[mn];B[ol];W[mj];B[nk];W[nj];B[nl];W[nn] ) goban-1.1.orig/games/M-75-7.mgt0000644000175000017500000000361606252723464013570 0ustar alal(;SZ[19]EV[Meijin match 1975 game 7]DT[12,13 November 1975]PB[Otake]PW[Ishida]KM[5]RE[B+4]SO[Go Review spring 1976];B[qd];W[cq];B[pq];W[cc];B[oc];W[po];B[pl];W[mp];B[oo];W[on];B[no];W[pp];B[op];W[qq];B[oq];W[qn];B[qr];W[rq];B[fp];W[do];B[ip];W[kp];B[mo];W[iq];B[hq];W[jq];B[hr];W[kn];B[nm];W[rl];B[in];W[lm];B[mm];W[lk];B[qk];W[rk];B[qi];W[jk];B[cm];W[en];B[gn];W[cj];B[el];W[jc];B[lo];W[ko];B[jm];W[km];B[ck];W[dj];B[bo];W[bp];B[co];W[eq];B[de];W[ed];B[ee];W[fd];B[fe];W[gd];B[cd];W[gj];B[cp];W[bq];B[dp];W[fr];B[ep];W[dd];B[ce];W[bc];B[dh];W[ei];B[ge];W[fg];B[he];W[id];B[hg];W[ih];B[hh];W[hi];B[ii];W[ij];B[ji];W[ki];B[jh];W[jj];B[jg];W[qj];B[pj];W[rj];B[lq];W[lp];B[mq];W[dk];B[bk];W[dl];B[dm];W[mi];B[lh];W[li];B[lc];W[qe];B[qg];W[mc];B[mb];W[qc];B[rd];W[nb];B[nc];W[md];B[lb];W[pc];B[ob];W[pd];B[re];W[nd];B[jb];W[qf];B[rf];W[pg];B[ph];W[og];B[oh];W[ng];B[nh];W[rg];B[qh];W[mh];B[mg];W[nf];B[mf];W[me];B[ke];W[kf];B[le];W[od];B[ib];W[hc];B[fl];W[ch];B[cg];W[di];B[bh];W[gh];B[eh];W[fh];B[hk];W[hj];B[fj];W[fk];B[ek];W[gk];B[ej];W[fi];B[mk];W[jl];B[mj];W[im];B[lj];W[kj];B[hl];W[bi];B[ci];W[cl];B[bl];W[ch];B[gb];W[hb];B[ci];W[jn];B[hn];W[ch];B[ha];W[fb];B[ci];W[gl];B[hm];W[ch];B[dq];W[dr];B[ci];W[hp];B[gp];W[ch];B[rc];W[pb];B[na];W[rb];B[ci];W[bm];B[am];W[ch];B[fa];W[eb];B[ci];W[fm];B[em];W[ch];B[ap];W[br];B[ci];W[jp];B[io];W[ch];B[ea];W[da];B[ci];W[ml];B[nl];W[ll];B[rr];W[ch];B[ga];W[gc];B[ia];W[cb];B[ci];W[ni];B[oj];W[ch];B[sb];W[kg];B[kh];W[jf];B[ig];W[if];B[hf];W[ld];B[lg];W[bg];B[ci];W[cn];B[bn];W[ch];B[kd];W[kc];B[kb];W[jd];B[ci];W[dn];B[bm];W[ch];B[ie];W[je];B[ci];W[lf];B[ch];W[kr];B[sq];W[ro];B[ir];W[il];B[bj];W[gm];B[fn];W[ae];B[af];W[bd];B[be];W[ad];B[pm];W[pn];B[cf];W[ms];B[nr];W[ri];B[rh];W[sp];B[sr];W[gr];B[gq];W[eg];B[ra];W[qb];B[bs];W[aq];B[cs];W[ao];B[gs];W[as];B[fs];W[cr];B[si];W[sj];B[sh];W[ql];B[pk];W[oi];B[pi];W[ns];B[os];W[ls];B[qm];W[rm];B[jr];W[kq];B[nj];W[om];B[ol];W[sc];B[sd];W[js];B[oa])goban-1.1.orig/games/Hon-93-4.mgt0000644000175000017500000000262406045540454014107 0ustar alal (;GM[1]SZ[19]DT[1993-06-24,25]RE[W+2.5]PW[Cho Chikun]PB[Yamashiro Hiroshi]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[pb];B[jp] ;W[ne];B[cf];W[gc];B[dj];W[qq];B[qp];W[pq];B[oq];W[or];B[nq] ;W[nr];B[mq];W[rp];B[ro];W[rq];B[qn];W[cl];B[ng];W[qc];B[fl] ;W[cd];B[dl];W[dm];B[cm];W[dn];B[ck];W[bl];B[kh];W[bk];B[go] ;W[el];B[ek];W[dk];B[cj];W[kj];B[dl];W[mi];B[mh];W[oi];B[oj] ;W[nh];B[mg];W[pi];B[nj];W[ni];B[pg];W[qj];B[qk];W[ri];B[qh] ;W[qi];B[rk];W[mj];B[ih];W[nl];B[ol];W[ll];B[jk];W[jl];B[ik] ;W[kk];B[km];W[li];B[ke];W[nk];B[dq];W[cq];B[eq];W[cr];B[ep] ;W[do];B[em];W[om];B[ee];W[fd];B[pl];W[mn];B[bm];W[bn];B[bj] ;W[kc];B[fe];W[ge];B[gf];W[he];B[hf];W[df];B[be];W[cg];B[bg] ;W[ce];B[bf];W[eg];B[ff];W[de];B[bd];W[bc];B[bb];W[cb];B[ac] ;W[cc];B[ie];W[ch];B[bh];W[ic];B[mr];W[fs];B[fr];W[cn];B[qd] ;W[kn];B[jm];W[jn];B[im];W[lm];B[lo];W[ln];B[pc];W[rb];B[rc] ;W[qb];B[in];W[es];B[gs];W[dr];B[er];W[ds];B[gr];W[md];B[hd] ;W[gd];B[id];W[hc];B[kd];W[lc];B[rd];W[rg];B[ns];W[pr];B[on] ;W[pm];B[qm];W[nm];B[fh];W[ji];B[ii];W[ok];B[pk];W[kl];B[il] ;W[fg];B[gg];W[eh];B[ei];W[mo];B[lp];W[rf];B[rh];W[sh];B[nf] ;W[oe];B[pe];W[lh];B[lg];W[jh];B[jg];W[ba];B[ab];W[jo];B[io] ;W[pn];B[oo];W[sb];B[ci];W[ko];B[kp];W[po];B[qo];W[np];B[op] ;W[eo];B[fo];W[en];B[fn];W[jd];B[je];W[jc];B[le];W[me];B[ed] ;W[ec];B[ak];W[am];B[oc];W[ob];B[sp];W[rr];B[jj];W[ki];B[kg] ;W[sq];B[so];W[os];B[ms];W[mf];B[lf];W[si];B[sk];W[od])goban-1.1.orig/games/T-08-1.mgt0000644000175000017500000000350006270527032013546 0ustar alal(;PB[Kato Masao]PW[Kataoka Satoshi]SZ[19]EV[8th Tengen Match] RO[Game 1]DT[1982-11-04]PC[Kashikojima]BR[9d, Tengen and Osa] WR[7d]TM[6 hours each]KM[5.5]RE[B+6.5]SO[Go world 31] ;B[pd];W[dd];B[pq];W[cp];B[eq];W[qo];B[pl];W[pn];B[mp];W[rq];B[dn] ;W[cn];B[do];W[co];B[dm];W[cl];B[jp];W[qj];B[qg];W[ql];B[jc];W[fc] ;B[dk];W[ck];B[dj];W[hq];B[jq];W[ke];B[dl];W[dq];B[er];W[ld];B[gd] ;W[fd];B[ge];W[gc];B[hc];W[ji];B[ie];W[kh];B[jk];W[qc];B[qd];W[pc] ;B[oc];W[ob];B[nc];W[nb];B[mc];W[mb];B[lc];W[rd];B[re];W[rc];B[hj] ;W[kc];B[kb];W[jd];B[kd];W[pf];B[kc];W[oe];B[qi];W[pj];B[og];W[pg] ;B[ph];W[oh];B[nh];W[oi];B[of];W[pe];B[ne];W[nf];B[ng];W[mf];B[me] ;W[kk];B[mh];W[lh];B[mi];W[jl];B[jj];W[kj];B[kl];W[mj];B[lf];W[km] ;B[ll];W[lm];B[ml];W[mm];B[nl];W[li];B[on];W[no];B[oo];W[np];B[po] ;W[il];B[hk];W[om];B[nm];W[nn];B[pm];W[pp];B[qn];W[op];B[ol];W[rh] ;B[nj];W[qh];B[mk];W[mq];B[lq];W[mr];B[jn];W[jm];B[ef];W[ce];B[cg] ;W[ho];B[hn];W[gn];B[hm];W[io];B[in];W[ir];B[gp];W[jo];B[ko];W[kn] ;B[hp];W[ip];B[iq];W[go];B[jr];W[kr];B[lo];W[hr];B[is];W[fp];B[gq] ;W[fq];B[gr];W[fr];B[hs];W[fo];B[cm];W[bm];B[bn];W[bl];B[dp];W[hl] ;B[gm];W[gk];B[gl];W[fk];B[fl];W[gi];B[hi];W[hh];B[gj];W[fj];B[fi] ;W[ik];B[gh];W[ij];B[cq];W[bq];B[cr];W[bo];B[od];W[ii];B[gi];W[hb] ;B[qf];W[pi];B[bj];W[bf];B[br];W[ar];B[bg];W[ic];B[lr];W[ro];B[ms] ;W[nr];B[ns];W[os];B[ls];W[or];B[rl];W[rk];B[rm];W[rg];B[hd];W[ib] ;B[cf];W[be];B[ih];W[id];B[fe];W[cj];B[ci];W[if];B[hf];W[ig];B[hg] ;W[le];B[qe];W[ph];B[lj];W[mo];B[lp];W[sf];B[se];W[rf];B[kf];W[jf] ;B[de];W[ed];B[sd];W[sc];B[md];W[je];B[ma];W[la];B[lb];W[na];B[af] ;W[ae];B[ag];W[ee];B[df];W[bk];B[bi];W[lg];B[mg];W[mf];B[ap];W[aq] ;B[ak];W[an];B[nf];W[al];B[aj];W[lk];B[pk];W[qk];B[oj];W[mj];B[ni] ;W[qm];B[rn];W[sn];B[sk];W[sj];B[sl];W[kg];B[mf];W[jh];B[ka];W[ia] ;B[ln];W[pa];B[hh];W[lj];B[he];W[ma];B[bs])goban-1.1.orig/games/Hon-67-2.mgt0000644000175000017500000000320706045540374014105 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1967-05-11,12]PB[Sakata Eio]PW[Rin Kaiho]RE[B+R]FF[3]BR[9 Dan];B[qd];W[dc];B[pq];W[cp];B[oc];W[qo];B[pl];W[eq];B[ce] ;W[pn];B[oo];W[pp];B[oq];W[qq];B[qr];W[op];B[nq];W[np];B[mp] ;W[rq];B[gd];W[ed];B[dg];W[cd];B[de];W[bd];B[ck];W[mo];B[lp] ;W[ph];B[cn];W[qf];B[qj];W[qi];B[pj];W[nh];B[mk];W[mm];B[iq] ;W[mi];B[ml];W[nm];B[kl];W[mc];B[oe];W[jd];B[me];W[kj];B[gf] ;W[ik];B[kn];W[gq];B[kc];W[kd];B[ld];W[pc];B[nc];W[ob];B[nb] ;W[pd];B[pe];W[qe];B[qc];W[qb];B[rb];W[ra];B[sb];W[rd];B[rc] ;W[se];B[pb];W[pa];B[od];W[pb];B[na];W[jc];B[kb];W[jg];B[be] ;W[dh];B[di];W[eh];B[ch];W[ff];B[fe];W[ee];B[fg];W[ef];B[eg] ;W[gg];B[hf];W[fh];B[gh];W[hg];B[ig];W[hh];B[ih];W[gi];B[hi] ;W[gh];B[jf];W[cg];B[df];W[ci];B[bh];W[bi];B[bg];W[dj];B[fc] ;W[eb];B[bc];W[gc];B[hc];W[gb];B[gj];W[fj];B[fb];W[fd];B[hb] ;W[bb];B[hj];W[fk];B[gl];W[gk];B[hk];W[hl];B[hm];W[il];B[ei] ;W[fi];B[ij];W[fl];B[gm];W[fm];B[im];W[ok];B[ga];W[ac];B[cj] ;W[ej];B[di];W[ai];B[ah];W[fo];B[bj];W[ei];B[bl];W[bo];B[bn] ;W[nj];B[mj];W[mg];B[oi];W[ni];B[pg];W[qg];B[ri];W[rh];B[kf] ;W[rr];B[rk];W[oh];B[gr];W[fr];B[gp];W[dm];B[ao];W[bq];B[co] ;W[fp];B[hq];W[bp];B[cm];W[fq];B[pr];W[pk];B[oa];W[ge];B[he] ;W[hr];B[ir];W[gs];B[jk];W[ho];B[li];W[kg];B[jh];W[kh];B[ki] ;W[lf];B[le];W[is];B[jr];W[lm];B[ec];W[dd];B[io];W[hp];B[ip] ;W[ll];B[lk];W[lo];B[ko];W[js];B[ks];W[hs];B[kr];W[ea];B[eo] ;W[fn];B[dp];W[dq];B[hn];W[go];B[km];W[qs];B[ps];W[rs];B[mf] ;W[lg];B[ng];W[og];B[nf];W[mh];B[ln];W[mn];B[nl];W[ol];B[aj] ;W[di];B[dl];W[dn];B[do];W[ap];B[an];W[pf];B[ae];W[dk];B[ad] ;W[cc];B[el];W[fe];B[nk];W[sd];B[of];W[sc];B[qa];W[db];B[kk] ;W[lh];B[om];W[pm];B[oj];W[ql];B[sf];W[re];B[qk];W[on];B[sh] )goban-1.1.orig/games/Hon-67-5.mgt0000644000175000017500000000406506045540376014115 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1967-06-12,13]PB[Rin Kaiho]PW[Sakata Eio]RE[W+10.5]FF[3]WR[9 Dan];B[qd];W[dc];B[pq];W[oc];B[cp];W[eq];B[qo];W[pe];B[qe] ;W[pf];B[qg];W[pg];B[qh];W[ph];B[pi];W[qf];B[rf];W[oi];B[oj] ;W[re];B[rg];W[qc];B[ni];W[oh];B[rd];W[pj];B[qi];W[nj];B[ok] ;W[nk];B[nl];W[ol];B[pk];W[ml];B[nm];W[mm];B[nn];W[mn];B[no] ;W[mo];B[do];W[qq];B[qp];W[pr];B[qr];W[oq];B[pp];W[eo];B[en] ;W[fo];B[fn];W[gn];B[gm];W[go];B[dq];W[fm];B[fl];W[em];B[dn] ;W[el];B[gl];W[ek];B[im];W[np];B[op];W[er];B[fj];W[cl];B[di] ;W[cr];B[bm];W[cm];B[bl];W[cj];B[cn];W[bo];B[bk];W[bj];B[bp] ;W[cg];B[io];W[bq];B[an];W[iq];B[mk];W[mj];B[lk];W[lj];B[kj] ;W[kk];B[ll];W[ki];B[jj];W[lh];B[kl];W[ji];B[ij];W[ii];B[hi] ;W[hh];B[gi];W[gh];B[dd];W[df];B[ec];W[cc];B[ed];W[cd];B[ic] ;W[gc];B[gd];W[gb];B[hd];W[eb];B[lc];W[jb];B[nc];W[jc];B[ob] ;W[pd];B[pb];W[rc];B[se];W[pc];B[mh];W[li];B[mg];W[jd];B[ne] ;W[mb];B[nb];W[me];B[md];W[nf];B[le];W[mf];B[je];W[ke];B[lf] ;W[lg];B[kf];W[kd];B[ld];W[jf];B[ie];W[if];B[ib];W[ia];B[kb] ;W[ja];B[ka];W[fh];B[kg];W[ig];B[kq];W[qs];B[rr];W[mq];B[lp] ;W[mp];B[nr];W[jl];B[km];W[kn];B[jn];W[oo];B[on];W[jm];B[jk] ;W[pn];B[po];W[om];B[oo];W[jo];B[il];W[kr];B[jh];W[ih];B[lr] ;W[mr];B[dr];W[jq];B[es];W[or];B[ej];W[ck];B[gq];W[hp];B[fr] ;W[fq];B[hr];W[ir];B[ha];W[hb];B[ci];W[bi];B[ch];W[bh];B[ko] ;W[jp];B[eg];W[ef];B[db];W[cb];B[ln];W[kp];B[rs];W[bs];B[ar] ;W[ds];B[cs];W[ei];B[eh];W[ds];B[fb];W[da];B[cs];W[fi];B[dj] ;W[ds];B[kc];W[ga];B[cs];W[gj];B[hj];W[ds];B[id];W[ha];B[cs] ;W[qk];B[pl];W[ds];B[fc];W[fa];B[cs];W[pm];B[ql];W[ds];B[fs] ;W[qb];B[fg];W[ff];B[gg];W[gf];B[of];W[ng];B[cs];W[fk];B[gk] ;W[ds];B[os];W[hs];B[cs];W[rl];B[qm];W[ds];B[gr];W[gp];B[cs] ;W[la];B[pa];W[ds];B[hc];W[ea];B[cs];W[rm];B[qn];W[ds];B[ca] ;W[ba];B[cs];W[hg];B[dh];W[ds];B[ep];W[fp];B[cs];W[na];B[lo] ;W[lq];B[ds];W[oe];B[nd];W[hn];B[bg];W[bf];B[ak];W[in];B[ps] ;W[nq];B[ns];W[dp];B[aj];W[dm];B[qs];W[bn];B[ep];W[lm];B[kn] ;W[dp];B[co];W[ms];B[ep];W[rq];B[rp];W[dp];B[ls];W[ks];B[ep] ;W[sq];B[sp];W[dp];B[nh];W[mi];B[ep];W[sr];B[ss];W[dp];B[qa] ;W[ra];B[ep];W[sc];B[dp];W[sd];B[re];W[ai];B[dk];W[hm];B[hl] )goban-1.1.orig/games/M-78-2.mgt0000644000175000017500000000334006252627042013553 0ustar alal(;PB[Otake Hideo]PW[Rin Kaiho]DT[1978-09-20,21]PC[Takarazuka]RE[B+2.5]KM[5.5]ID[78/2]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[qq];W[dq];B[fc];W[cf];B[db];W[hc];B[cc] ;W[ec];B[eb];W[fd];B[fb];W[gd];B[cn];W[cl];B[cq];W[cp];B[dp] ;W[bq];B[cr];W[do];B[ep];W[co];B[fq];W[br];B[dr];W[eo];B[fo] ;W[fn];B[go];W[gn];B[hn];W[hm];B[in];W[oq];B[po];W[lq];B[jq] ;W[im];B[jm];W[gl];B[no];W[qr];B[pr];W[pq];B[rr];W[qp];B[rq] ;W[or];B[qs];W[jr];B[kr];W[kq];B[ir];W[jp];B[iq];W[lr];B[js] ;W[mo];B[kn];W[nn];B[np];W[pp];B[on];W[qo];B[pm];W[rm];B[rl] ;W[nm];B[mp];W[qm];B[ql];W[pl];B[om];W[ol];B[nl];W[pj];B[rj] ;W[nk];B[qi];W[lo];B[lp];W[ko];B[kp];W[jo];B[mr];W[jn];B[ml] ;W[lm];B[mq];W[oh];B[pg];W[og];B[pf];W[lg];B[kf];W[kg];B[jf] ;W[ig];B[me];W[jg];B[ip];W[jl];B[be];W[bf];B[ce];W[de];B[lc] ;W[qc];B[pd];W[rd];B[re];W[pb];B[ck];W[bl];B[nb];W[nc];B[ob] ;W[rb];B[sd];W[sc];B[rc];W[os];B[ps];W[rd];B[df];W[ae];B[bd] ;W[gf];B[rc];W[rs];B[ss];W[rd];B[dl];W[dg];B[rc];W[ls];B[ms] ;W[rd];B[ef];W[ch];B[rc];W[sr];B[sq];W[rd];B[ci];W[bj];B[rc] ;W[oo];B[op];W[rd];B[bk];W[cj];B[rc];W[mf];B[nf];W[rd];B[bo] ;W[bp];B[rc];W[le];B[ng];W[ne];B[md];W[nd];B[oe];W[rd];B[ak] ;W[se];B[bm];W[dj];B[ao];W[mc];B[nh];W[ph];B[nj];W[oj];B[mk] ;W[ni];B[ok];W[mi];B[pk];W[rf];B[qh];W[qg];B[rg];W[qf];B[ld] ;W[mb];B[lb];W[oc];B[ib];W[hb];B[lf];W[mg];B[ma];W[oa];B[ic] ;W[ie];B[jd];W[dk];B[cm];W[el];B[dm];W[aj];B[al];W[em];B[dc] ;W[ed];B[kk];W[je];B[ke];W[id];B[jc];W[jj];B[li];W[ki];B[jk] ;W[ik];B[kj];W[kh];B[mm];W[mn];B[if];W[hf];B[rh];W[cd];B[bc] ;W[bs];B[lj];W[na];B[cs];W[la];B[ka];W[ja];B[ma];W[ia];B[ad] ;W[af];B[ga];W[la];B[kb];W[gb];B[fa];W[ha];B[dn];W[en];B[io] ;W[km];B[qj];W[mh];B[pi];W[oi];B[mj];W[sg];B[sh];W[sf];B[ap] ;W[aq];B[gc];W[ll];B[ma])goban-1.1.orig/games/Hon-69-4.mgt0000644000175000017500000000223506045540400014077 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Kato Masao]KM[4.5]RE[B+R]DT[1969-05-22,23]FF[3]BS[0]WS[0];B[qd];W[cd];B[ec];W[qp];B[eq];W[hd];B[ef];W[cg];B[dh] ;W[dg];B[eg];W[eh];B[di];W[fh];B[gf];W[ek];B[ce];W[be];B[de] ;W[bg];B[bf];W[bd];B[cf];W[af];B[dk];W[gg];B[dl];W[hf];B[db] ;W[cb];B[dd];W[cc];B[ge];W[he];B[gc];W[hc];B[gb];W[od];B[hg] ;W[hh];B[ig];W[ih];B[jg];W[ki];B[bi];W[ab];B[je];W[jc];B[me] ;W[ld];B[le];W[md];B[ne];W[nd];B[pf];W[lg];B[kg];W[qc];B[rc] ;W[of];B[ji];W[jj];B[ii];W[hj];B[hi];W[gi];B[jh];W[ij];B[oe] ;W[pd];B[qe];W[pe];B[pg];W[nj];B[cp];W[nq];B[pj];W[eo];B[dn] ;W[gp];B[pl];W[em];B[fg];W[nm];B[lk];W[pm];B[qq];W[ol];B[pp] ;W[pq];B[oq];W[pr];B[qo];W[rp];B[po];W[qr];B[ro];W[ql];B[rq] ;W[rr];B[sp];W[np];B[op];W[or];B[no];W[mo];B[nr];W[lp];B[mn] ;W[ln];B[nn];W[mm];B[rm];W[mr];B[gk];W[gj];B[el];W[rb];B[li] ;W[kj];B[lj];W[lh];B[ni];W[oi];B[oj];W[nh];B[mi];W[oh];B[kd] ;W[kc];B[pi];W[lf];B[mh];W[nf];B[kh];W[kf];B[gh];W[jf];B[if] ;W[ie];B[ph];W[kl];B[qb];W[pc];B[sb];W[mf];B[nk];W[cq];B[dq] ;W[co];B[bq];W[bp];B[cr];W[do];B[gq];W[hq];B[hl];W[gm];B[fk] ;W[hm];B[fp];W[gr];B[jl];W[jm];B[im];W[in];B[il];W[kk];B[fo] ;W[fn];B[jn];W[km];B[go];W[fq];B[hn];W[io];B[ep];W[dm];B[bn] )goban-1.1.orig/games/T-06-2.mgt0000644000175000017500000000257406265073716013570 0ustar alal(;SZ[19]EV[6th Tengen Title match]RO[Game 2]DT[1980-11-26]PB[Yamabe Toshiro]BR[9d]PW[Kato Masao]WR[9d]KM[5.5]RE[W+R]SO[Go world 24];B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[dd];W[cd];B[ec];W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb];W[eb];B[bg];W[bf];B[bh];W[bd];B[ci];W[eg];B[fe];W[fc];B[ff];W[ei];B[cl];W[gh];B[ie];W[ic];B[ig];W[ii];B[kh];W[qj];B[el];W[cn];B[qh];W[qm];B[jq];W[dk];B[ck];W[rp];B[dr];W[fq];B[fr];W[gq];B[eq];W[ep];B[cq];W[hg];B[hf];W[ih];B[jg];W[dl];B[dm];W[cm];B[dj];W[ek];B[ej];W[fk];B[fj];W[gk];B[gj];W[hk];B[hj];W[ij];B[ik];W[ki];B[il];W[fm];B[kk];W[lh];B[ae];W[ad];B[af];W[ab];B[ag];W[ba];B[pk];W[qk];B[pl];W[mi];B[ql];W[rl];B[rk];W[rj];B[rm];W[sk];B[qn];W[le];B[ke];W[ld];B[kd];W[kc];B[gg];W[hh];B[id];W[kf];B[lf];W[mf];B[lg];W[mg];B[kg];W[gd];B[dh];W[eh];B[jc];W[jb];B[jd];W[lb];B[nh];W[mh];B[ge];W[pj];B[qf];W[pc];B[qc];W[oc];B[qb];W[gr];B[br];W[lq];B[oq];W[jp];B[pm];W[bp];B[bq];W[fs];B[er];W[kp];B[od];W[nj];B[lj];W[li];B[gm];W[qq];B[fl];W[em];B[gl];W[dn];B[go];W[hp];B[hl];W[dm];B[pr];W[ro];B[ok];W[oj];B[qr];W[sm];B[sn];W[rn];B[sl];W[bj];B[bm];W[bn];B[bl];W[sm];B[jj];W[ji];B[sl];W[am];B[cj];W[sm];B[fp];W[fo];B[gp];W[gn];B[ho];W[hn];B[io];W[ip];B[in];W[cp];B[fn];W[en];B[do];W[ll];B[lm];W[jm];B[im];W[mm];B[kl];W[mk];B[ln];W[mn];B[lo];W[mo];B[jn];W[kj];B[ao];W[ap];B[an];W[bo];B[an];W[lp];B[al];W[jo];B[aq];W[lk];B[eo];W[fn];B[dq];W[kn];B[km];W[ko];B[am];W[jk])goban-1.1.orig/games/T-05-3.mgt0000644000175000017500000000156306262551662013563 0ustar alal(;SZ[19]EV[5th Tengen match]PB[Kato Masao]BR[9d and Tengen]PW[Kataoka Satoshi]WR[5d]SO[Kido yearbook]RO[Game 3]RE[B+R]DT[1979-12-05];B[qd];W[dc];B[dp];W[qp];B[ce];W[di];B[fe];W[gc];B[hd];W[hc];B[id];W[ic];B[jd];W[kc];B[dk];W[fi];B[hi];W[gj];B[ik];W[gl];B[dn];W[im];B[op];W[hg];B[fg];W[hj];B[ij];W[ii];B[ji];W[ih];B[jh];W[jg];B[kg];W[jf];B[kf];W[gg];B[kd];W[lc];B[pn];W[kh];B[kj];W[lh];B[mg];W[mh];B[mj];W[ng];B[mf];W[nj];B[mk];W[oj];B[oe];W[og];B[nd];W[nl];B[lm];W[pl];B[pp];W[qf];B[qo];W[qm];B[rn];W[lq];B[jq];W[or];B[pr];W[jp];B[ip];W[jo];B[iq];W[mn];B[nk];W[ok];B[jm];W[jn];B[hm];W[hn];B[il];W[in];B[nm];W[gp];B[go];W[dq];B[eq];W[cp];B[ep];W[co];B[cn];W[dr];B[er];W[br];B[kq];W[gn];B[lp];W[oc];B[nc];W[nb];B[mb];W[pb];B[na];W[ob];B[mc];W[qc];B[pf];W[pg];B[qe];W[rf];B[sd];W[rc];B[rb];W[ra];B[qa];W[sb];B[sa];W[mm];B[ml];W[ra];B[cc];W[cb];B[sa];W[ln];B[kn];W[ko];B[km];W[ra];B[ec])goban-1.1.orig/games/Hon-86-3.mgt0000644000175000017500000000241606045540444014106 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Yamashiro Hiroshi]DT[1986-06-05,06]RE[W+R]FF[3]PC[Unzen]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[jp];W[pn];B[qo];W[qn];B[po] ;W[on];B[pj];W[oo];B[nq];W[lo];B[kq];W[jc];B[kn];W[mk];B[pl] ;W[ln];B[km];W[ll];B[jk];W[li];B[pg];W[ji];B[cf];W[cd];B[ci] ;W[qc];B[qd];W[pc];B[oc];W[ob];B[nc];W[nb];B[mc];W[rd];B[re] ;W[rc];B[gc];W[df];B[ec];W[cg];B[cb];W[fd];B[gd];W[je];B[gf] ;W[qf];B[pf];W[qe];B[pe];W[rf];B[lg];W[jg];B[rg];W[mg];B[mf] ;W[lh];B[fq];W[cn];B[dr];W[fe];B[cl];W[fp];B[gq];W[cq];B[ng] ;W[mh];B[hb];W[db];B[dc];W[cc];B[eb];W[bb];B[da];W[cr];B[bg] ;W[bf];B[ch];W[dg];B[bm];W[bn];B[lf];W[dj];B[cj];W[gp];B[hp] ;W[ho];B[ip];W[dk];B[dl];W[el];B[ah];W[in];B[eh];W[ei];B[dh] ;W[ko];B[be];W[ce];B[af];W[ge];B[he];W[hf];B[gh];W[hg];B[fi] ;W[gj];B[ie];W[gg];B[fg];W[ff];B[jo];W[jn];B[gn];W[go];B[fk] ;W[fj];B[ek];W[gl];B[hh];W[gk];B[jf];W[mb];B[ig];W[eg];B[fh] ;W[bd];B[cf];W[ba];B[lb];W[lc];B[kb];W[kf];B[if];W[kg];B[jh] ;W[kh];B[ld];W[kc];B[jb];W[ke];B[eq];W[dm];B[qg];W[se];B[ii] ;W[ij];B[ep];W[eo];B[dq];W[do];B[jj];W[ih];B[fl];W[em];B[jh] ;W[ki];B[nl];W[nk];B[rn];W[rm];B[ro];W[ql];B[pm];W[qm];B[nm] ;W[nn];B[hj];W[ik];B[hk];W[il];B[qk];W[ic];B[ib];W[gf];B[nh] ;W[rk];B[rj];W[op];B[oq];W[lq];B[lr];W[bk];B[ck];W[bl];B[cm] ;W[am];B[hl];W[hm];B[hi];W[lm])goban-1.1.orig/games/M-66-2.sgf0000644000175000017500000000331006261340070013526 0ustar alal( ; GM[1] EV[5th Meijin Title Match] RO[2] PB[Rin Kaiho] BR[Meijin] PW[Sakata Eio] WR[Honinbo] DT[Aug 13/14, 1966] PC[Sapporo] RE[B+5] KM[5] SZ[19] C[333 moves, moves after 246 missing] ;B[qd];W[dd];B[pq];W[oc];B[cp];W[eq];B[qo];W[dm];B[do] ;W[gp];B[dq];W[ep];B[dr];W[kq];B[mc];W[pe];B[pd];W[od] ;B[oe];W[ne];B[of];W[md];B[pf];W[lc];B[cf];W[fd];B[di] ;W[nq];B[pj];W[oo];B[cc];W[cd];B[bd];W[dc];B[bb];W[cb] ;B[bc];W[nf];B[kc];W[lb];B[hd];W[hf];B[jf];W[eg];B[dg] ;W[ie];B[kd];W[je];B[ke];W[kf];B[ld];W[mb];B[lf];W[kg] ;B[lg];W[jg];B[li];W[oh];B[qh];W[oj];B[kh];W[mh];B[lh] ;W[jc];B[kb];W[jb];B[ja];W[hb];B[jh];W[ig];B[ih];W[ei] ;B[dj];W[eh];B[ef];W[ej];B[dk];W[ek];B[gg];W[ff];B[hg] ;W[if];B[dl];W[hi];B[el];W[fl];B[kk];W[km];B[fm];W[gm] ;B[hj];W[gj];B[hk];W[hl];B[gk];W[fk];B[fn];W[ii];B[mk] ;W[mj];B[lj];W[jj];B[lm];W[nl];B[nj];W[nk];B[mi];W[ni] ;B[kl];W[qg];B[pg];W[ph];B[rg];W[jm];B[nm];W[ok];B[ml] ;W[qp];B[pp];W[om];B[kn];W[jn];B[nn];W[po];B[ko];W[ro] ;B[qn];W[qq];B[rn];W[rp];B[qk];W[qm];B[rm];W[ql];B[rl] ;W[qi];B[rh];W[rj];B[pk];W[pl];B[rk];W[pi];B[ri];W[no] ;B[hh];W[gi];B[mo];W[mp];B[jo];W[qc];B[jq];W[jr];B[kr] ;W[lr];B[lq];W[ks];B[kp];W[kr];B[lp];W[mq];B[rd];W[rc] ;B[ee];W[qj];B[sj];W[sk];B[sl];W[fe];B[ib];W[ic];B[ia] ;W[gb];B[mg];W[ng];B[nh];W[mj];B[pc];W[pb];B[qe];W[mh] ;B[gf];W[ge];B[nh];W[og];B[nj];W[mh];B[il];W[ik];B[hm] ;W[gl];B[in];W[er];B[es];W[eo];B[en];W[dp];B[co];W[cq] ;B[cr];W[ip];B[nh];W[mj];B[qr];W[rr];B[nj];W[mh];B[io] ;W[iq];B[ds];W[ce];B[be];W[fr];B[me];W[nc];B[nh];W[mj] ;B[rb];W[qb];B[sc];W[db];B[sn];W[so];B[fs];W[gr];B[ba] ;W[dh];B[ch];W[ed];B[df];W[hn];B[im];W[fo];B[ho];W[ra] ;B[sb];W[jk];B[jl];W[mn];B[nj];W[mh];B[lo];W[gn];B[gs] ;W[hs];B[nh];W[jd] ) goban-1.1.orig/games/M-62-l10.sgf0000644000175000017500000000317106252641250013766 0ustar alal( ; RE[W+7] PB[Hashimoto Utaro] PW[Go Seigen] DT[1962-] WR[9 dan] BR[9 dan] EV[1st Meijin 1962 league] RO[League] KM[5] ;B[jj];W[dp];B[pd];W[de];B[pp];W[dc];B[pj];W[nq];B[jd] ;W[qq];B[qp];W[pq];B[no];W[qf];B[qe];W[pf];B[nd];W[ql];B[qj] ;W[op];B[oo];W[po];B[qo];W[pn];B[rm];W[rj];B[rl];W[rk];B[qk] ;W[qi];B[pi];W[qh];B[rq];W[rr];B[pl];W[re];B[rd];W[rf];B[fq] ;W[lp];B[cn];W[fp];B[gp];W[fo];B[dq];W[eq];B[er];W[ep];B[gr] ;W[cq];B[dr];W[cj];B[go];W[co];B[dm];W[fm];B[gn];W[hq];B[gq] ;W[en];B[dk];W[dj];B[fl];W[dn];B[bm];W[fj];B[em];W[bo];B[kq] ;W[mo];B[np];W[oq];B[nn];W[lq];B[gd];W[gf];B[cr];W[bq];B[fh] ;W[gh];B[cd];W[dd];B[bj];W[bi];B[bk];W[ch];B[cc];W[db];B[fb] ;W[lc];B[nc];W[le];B[jc];W[mf];B[cb];W[ce];B[nf];W[jf];B[lb] ;W[da];B[be];W[bf];B[af];W[ba];B[gi];W[hh];B[fi];W[ek];B[gj] ;W[fk];B[gl];W[el];B[fn];W[gk];B[eg];W[cf];B[fe];W[ff];B[ij] ;W[jh];B[ig];W[if];B[ld];W[hd];B[he];W[ge];B[hc];W[fd];B[id] ;W[mn];B[nm];W[jq];B[hk];W[dl];B[cm];W[oe];B[qc];W[md];B[rp] ;W[kd];B[kb];W[sr];B[ne];W[od];B[oc];W[pe];B[qd];W[mm];B[ml] ;W[jn];B[mh];W[lh];B[li];W[ll];B[mk];W[ir];B[io];W[jl];B[jo] ;W[ko];B[lk];W[mc];B[mb];W[jp];B[sk];W[si];B[fc];W[kk];B[ed] ;W[ef];B[kj];W[og];B[in];W[ph];B[nh];W[oh];B[oi];W[lg];B[sq] ;W[hi];B[hj];W[fg];B[br];W[jm];B[dg];W[ck];B[aj];W[dh];B[eh] ;W[hl];B[gm];W[hm];B[ei];W[cl];B[bl];W[ar];B[hr];W[hs];B[gs] ;W[is];B[mp];W[je];B[mq];W[mr];B[hp];W[iq];B[hn];W[kl];B[ji] ;W[ih];B[di];W[ci];B[ai];W[ah];B[cg];W[bg];B[se];W[sf];B[sd] ;W[ie];B[an];W[ao];B[kh];W[kg];B[me];W[kc];B[mg];W[lf];B[fa] ;W[bn];B[am];W[hf];B[sl];W[sj];B[ki];W[ng];B[hd];W[ee];B[fd] ;W[bs];B[cs];W[aq];B[as] C[243 moves complete.];B[bs] C[Black fills the ko.] ) goban-1.1.orig/games/Hon-90-4.mgt0000644000175000017500000000126506045540450014100 0ustar alal (;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Cho Chikun]DT[1990-06-19,20]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pq];W[cp];B[eq];W[po];B[dn];W[ep];B[dp] ;W[do];B[dq];W[co];B[eo];W[fp];B[cq];W[cn];B[dm];W[fo];B[en] ;W[cm];B[fn];W[fq];B[cl];W[bl];B[go];W[fr];B[bp];W[ck];B[dl] ;W[bj];B[ip];W[br];B[bq];W[es];B[er];W[ds];B[gr];W[gq];B[hr] ;W[hq];B[iq];W[cr];B[bm];W[bn];B[ar];W[dr];B[bs];W[am];B[qm] ;W[on];B[om];W[qq];B[qp];W[pp];B[rq];W[qr];B[pr];W[nm];B[qo] ;W[pm];B[ql];W[nq];B[rr];W[ol];B[cc];W[dc];B[cd];W[ce];B[be] ;W[bf];B[db];W[eb];B[ec];W[de];B[fb];W[cb];B[ea];W[bb];B[no] ;W[mo];B[mn];W[lo];B[nn];W[km];B[np];W[mq];B[hp];W[fs];B[gp] ;W[ir];B[jr];W[bo];B[mp];W[lp];B[lq];W[op];B[oq];W[nr])goban-1.1.orig/games/Hon-83-2.mgt0000644000175000017500000000236306045540436014104 0ustar alal (;GM[1]SZ[19]DT[1983-05-25,26]RE[B+R]FF[3]PW[Rin Kaiho]PB[Cho Chikun]PC[Hiroshima]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pq];W[cp];B[eq];W[ip];B[dp];W[co];B[cq] ;W[bq];B[cr];W[cl];B[do];W[dn];B[en];W[dm];B[kp];W[qn];B[qp] ;W[qk];B[oc];W[qh];B[jn];W[fp];B[gr];W[eo];B[fn];W[gq];B[go] ;W[hr];B[fr];W[in];B[gp];W[jm];B[jo];W[io];B[im];W[km];B[mp] ;W[hm];B[il];W[gn];B[fl];W[el];B[pk];W[qj];B[gm];W[hl];B[ik] ;W[hn];B[kk];W[fk];B[fc];W[df];B[cc];W[dc];B[db];W[cd];B[bb] ;W[bc];B[cb];W[on];B[fe];W[fg];B[kd];W[hg];B[pm];W[pn];B[qm] ;W[op];B[oq];W[np];B[mq];W[mo];B[rm];W[nq];B[nr];W[mr];B[lr] ;W[lp];B[lq];W[lo];B[rn];W[kq];B[kr];W[jq];B[qf];W[ni];B[nk] ;W[li];B[lm];W[ll];B[kn];W[kl];B[mm];W[ml];B[nl];W[ln];B[nn] ;W[om];B[nm];W[no];B[mk];W[jp];B[lk];W[ko];B[mh];W[mi];B[pl] ;W[og];B[of];W[ng];B[nf];W[hc];B[jc];W[mf];B[pg];W[ph];B[me] ;W[bd];B[gd];W[qg];B[pf];W[id];B[ie];W[qo];B[ro];W[eb];B[ec] ;W[pp];B[qq];W[je];B[jd];W[he];B[hd];W[if];B[ic];W[br];B[lf] ;W[fq];B[hq];W[hp];B[fo];W[iq];B[dr];W[rg];B[sf];W[mg];B[hj] ;W[gi];B[lg];W[rf];B[re];W[lh];B[pj];W[pi];B[sk];W[sj];B[oj] ;W[oi];B[gj];W[fj];B[hi];W[hh];B[sl];W[ge];B[fb];W[rj];B[ff] ;W[gf];B[de];W[ee];B[ef];W[ed];B[fd];W[eg];B[cf];W[dg];B[ce] ;W[bf];B[cg];W[ch];B[ac];W[be];B[bs];W[ad];B[ab];W[jr];B[ep] ;W[hq];B[ji])goban-1.1.orig/games/T-02-4.mgt0000644000175000017500000000222406261101602013534 0ustar alal(;SZ[19]EV[2nd Tengen match]KM[5.5]SO[Kido yearbook]PB[Kobayashi Koichi]BR[7d]PW[Suguichi Masao]WR[9d]RO[Game 4]DT[1977-01-06]RE[B+R];B[pd];W[dc];B[pq];W[eq];B[cp];W[qo];B[pl];W[pn];B[mp];W[rq];B[iq];W[dp];B[cq];W[co];B[do];W[bo];B[eo];W[dq];B[cr];W[bp];B[fq];W[dr];B[es];W[fr];B[gr];W[er];B[gq];W[br];B[jd];W[qf];B[qh];W[qc];B[qd];W[pc];B[od];W[rd];B[re];W[rc];B[qe];W[nc];B[nm];W[ql];B[qk];W[qm];B[rk];W[nd];B[ne];W[me];B[nf];W[mf];B[mg];W[lg];B[mh];W[lh];B[li];W[ki];B[mi];W[jh];B[md];W[mc];B[ld];W[ke];B[kd];W[hd];B[he];W[ie];B[id];W[gd];B[if];W[je];B[le];W[jg];B[jf];W[kf];B[kg];W[kh];B[lf];W[kg];B[ge];W[fe];B[hg];W[hh];B[gg];W[gh];B[ff];W[ee];B[fh];W[fi];B[eh];W[hj];B[kj];W[ig];B[hf];W[jj];B[kk];W[nn];B[mn];W[om];B[no];W[il];B[cg];W[ce];B[hb];W[gb];B[cj];W[ei];B[di];W[bg];B[jk];W[ch];B[dh];W[ik];B[ii];W[ij];B[bh];W[cf];B[ci];W[in];B[ga];W[gc];B[fb];W[eb];B[hc];W[fc];B[lb];W[se];B[sf];W[sd];B[rf];W[qr];B[pr];W[ol];B[qq];W[rr];B[sm];W[sl];B[rl];W[rm];B[sk];W[op];B[oo];W[ps];B[or];W[pp];B[nq];W[rn];B[oc];W[ob];B[lc];W[nb];B[ok];W[nl];B[jo];W[jn];B[ko];W[dg];B[ag];W[eg];B[fg];W[bf];B[bm];W[ek];B[fk];W[ej];B[fl];W[el];B[fm];W[gk];B[fs];W[cs];B[qp];W[rp];B[go])goban-1.1.orig/games/T-07-2.mgt0000644000175000017500000000250106262633544013555 0ustar alal(;SZ[19]EV[7th Tengen match]KM[5.5]SO[Go world 27]PB[Kata Masao]BR[9d]PW[Kobayashi Koichi]WR[9d]RO[Game 2]DT[1981-12-03]PC[Sapporo]RE[B+R];B[pd];W[dc];B[pq];W[dp];B[fq];W[dn];B[jp];W[qo];B[qm];W[oo];B[np];W[pl];B[qp];W[ro];B[ql];W[pk];B[pm];W[om];B[qk];W[pj];B[qj];W[no];B[mp];W[pi];B[qh];W[nl];B[de];W[dg];B[fe];W[fc];B[cc];W[cb];B[cd];W[bb];B[cg];W[dh];B[ch];W[ci];B[di];W[bi];B[cf];W[ei];B[dj];W[ck];B[ej];W[fh];B[gi];W[gh];B[hi];W[ig];B[he];W[jh];B[gc];W[gb];B[hc];W[fd];B[ge];W[hb];B[kd];W[go];B[jj];W[kj];B[jk];W[kk];B[jl];W[kl];B[ph];W[ji];B[fi];W[eh];B[fl];W[gq];B[cq];W[dq];B[cm];W[dm];B[cj];W[bj];B[bm];W[ek];B[dk];W[dl];B[fj];W[cl];B[cp];W[jm];B[im];W[in];B[jn];W[km];B[hm];W[dr];B[bl];W[bk];B[cr];W[ic];B[oc];W[qc];B[qd];W[ob];B[pc];W[oh];B[og];W[ng];B[nh];W[oi];B[of];W[kc];B[ld];W[jq];B[hp];W[gp];B[kq];W[iq];B[kr];W[je];B[jd];W[id];B[hh];W[hg];B[df];W[ff];B[be];W[nf];B[ne];W[qi];B[ri];W[rh];B[rg];W[me];B[nd];W[pb];B[qb];W[lf];B[lc];W[kb];B[lb];W[la];B[ma];W[ka];B[nb];W[rq];B[qr];W[bc];B[bh];W[co];B[bo];W[al];B[cn];W[eo];B[do];W[rc];B[oa];W[co];B[am];W[cs];B[bs];W[ds];B[ip];W[br];B[bq];W[as];B[aq];W[hq];B[do];W[sl];B[sk];W[kn];B[el];W[gm];B[hl];W[hk];B[hj];W[gl];B[gk];W[hn];B[ik];W[jr];B[rp];W[sp];B[rr];W[mn];B[lo];W[ks];B[ls];W[js];B[mr];W[fm];B[ln];W[mm];B[jc];W[jb];B[ke];W[kf];B[ie];W[jf];B[sm];W[op];B[nq];W[rj];B[sh])goban-1.1.orig/games/Hon-95-5.sgf0000644000175000017500000000224206243541364014077 0ustar alal( ; FF[1] GM[1] VW[] SZ[19] PB[Kato Masao] BR[9 dan] PW[Cho Chikun] WR[9 dan] EV[50th Honinbo] RO[5] DT[June 26/27 1995] PC[Japan] RE[White wins by resignation] SO[Go Weekly] KM[5.5] B[pd];W[dd];B[qp];W[dq];B[oq];W[qj];B[co];W[dl];B[dn];W[bp]; B[go];W[ep];B[fn];W[gq];B[cj];W[ek];B[cf];W[fc];B[dh];W[gk]; B[ip];W[qm];B[nc];W[be];B[qh];W[bf];B[gh];W[fh];B[fg];W[fi]; B[gf];W[hg];B[gg];W[ic];B[ik];W[hj];B[jg];W[ij];B[kk];W[kj]; B[lk];W[ie];B[gi];W[gm];B[fj];W[dj];B[di];W[ck];B[ej];W[bj]; B[dk];W[fk];B[hq];W[gp];B[ho];W[dj];B[cp];W[cq];B[dk];W[qd]; B[qe];W[dj];B[hd];W[pc];B[od];W[ci];B[hc];W[he];B[id];W[ge]; B[jd];W[fe];B[hf];W[rc];B[re];W[ob];B[nb];W[qb];B[im];W[ih]; B[ef];W[nq];B[op];W[jq];B[hr];W[jp];B[jo];W[ko];B[lp];W[jn]; B[io];W[kp];B[lq];W[mo];B[np];W[mm];B[nn];W[mn];B[pl];W[nl]; B[km];W[kn];B[in];W[nj];B[ql];W[pm];B[rm];W[ol];B[lj];W[rn]; B[rk];W[sm];B[rl];W[qo];B[pk];W[rp];B[on];W[qq];B[qr];W[qi]; B[rj];W[om];B[pq];W[ph];B[rh];W[rq];B[rr];W[kr];B[lr];W[jl]; B[jm];W[jk];B[ki];W[jj];B[lm];W[mh];B[oi];W[ir];B[js];W[is]; B[ks];W[oj];B[oh];W[mi];B[li];W[lg];B[kg];W[lf];B[ng];W[kf]; B[je];W[jf];B[if];W[ig];B[ji];W[ii];B[bo];W[gr];B[hs];W[eo]; B[en];W[ld];B[lc];W[de] ) goban-1.1.orig/games/T-17-4.mgt0000644000175000017500000000306406252627522013563 0ustar alal(;PB[Kato Masao]PW[Rin Kaiho]RE[W+0.5]KM[5.5]GM[1]SZ[19]ID[17/4]FF[3];B[pd];W[dd];B[pq];W[cp];B[ep];W[po];B[qo];W[qn];B[qp] ;W[pn];B[nq];W[pj];B[cq];W[qf];B[nc];W[bq];B[dq];W[bo];B[hp] ;W[dn];B[qh];W[ph];B[pi];W[oi];B[qi];W[pg];B[qj];W[pk];B[rl] ;W[op];B[rn];W[oq];B[or];W[pr];B[qr];W[nr];B[ps];W[mq];B[df] ;W[eg];B[ef];W[fc];B[fg];W[np];B[hc];W[bd];B[mf];W[qd];B[qc] ;W[rc];B[pc];W[re];B[ce];W[cd];B[fb];W[eb];B[cl];W[jq];B[iq] ;W[jp];B[jr];W[cj];B[dm];W[eo];B[fm];W[fp];B[fq];W[fo];B[gp] ;W[dp];B[eq];W[ej];B[gj];W[fk];B[cn];W[gk];B[gn];W[bn];B[in] ;W[hj];B[fd];W[gc];B[gd];W[gb];B[hb];W[lg];B[ec];W[fa];B[ed] ;W[dc];B[mg];W[lh];B[ke];W[jf];B[je];W[hm];B[hn];W[kr];B[di] ;W[cr];B[dr];W[br];B[kn];W[dj];B[ha];W[ga];B[gh];W[if];B[hi] ;W[hd];B[id];W[jm];B[im];W[fj];B[gi];W[fn];B[hl];W[hk];B[jl] ;W[he];B[kf];W[kg];B[ii];W[jh];B[jj];W[ic];B[ib];W[jc];B[jb] ;W[kc];B[kb];W[lc];B[lb];W[lf];B[le];W[me];B[md];W[ne];B[mc] ;W[ie];B[jd];W[cg];B[dg];W[bf];B[ci];W[eh];B[ei];W[em];B[el] ;W[fl];B[en];W[fi];B[fh];W[em];B[da];W[gm];B[ea];W[bi];B[of] ;W[db];B[fb];W[ca];B[be];W[ae];B[fa];W[cb];B[ir];W[mh];B[nf] ;W[ll];B[ni];W[nh];B[oj];W[oh];B[pl];W[ok];B[ol];W[nk];B[qk] ;W[qm];B[ql];W[lo];B[ko];W[kp];B[rg];W[qb];B[pb];W[rb];B[ln] ;W[rm];B[sm];W[kj];B[mo];W[lp];B[ks];W[lr];B[kk];W[lk];B[nl] ;W[ml];B[cs];W[bs];B[ds];W[cf];B[de];W[pe];B[oe];W[mn];B[nn] ;W[mm];B[nm];W[kl];B[jk];W[km];B[io];W[no];B[ki];W[lj];B[ji] ;W[li];B[pf];W[qe];B[ge];W[ch];B[dh];W[hg];B[gf];W[ih];B[sf] ;W[se];B[qa];W[ra];B[pa];W[rf];B[sg];W[qg];B[rh];W[ls];B[js] ;W[ns];B[os];W[go];B[il];W[gl];B[kh])goban-1.1.orig/games/M-90-4.mgt0000644000175000017500000000200706252627042013546 0ustar alal(;GM[1]FF[3]DT[1990-10-17,18]SZ[19]PB[Kobayashi Koichi]PW[Otake Hideo]KM[5.5]RE[B+R]ID[90/4]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[co];B[cq];W[ep];B[eq];W[fp];B[fq] ;W[gp];B[bo];W[dq];B[dp];W[dr];B[cp];W[cr];B[do];W[gq];B[po] ;W[qj];B[ql];W[qg];B[qe];W[mc];B[oc];W[jc];B[cl];W[lq];B[cf] ;W[fd];B[bd];W[cc];B[dh];W[fh];B[dj];W[oj];B[pi];W[pj];B[ol] ;W[me];B[ig];W[ff];B[id];W[jd];B[je];W[ic];B[ii];W[ie];B[og] ;W[oi];B[rk];W[qc];B[nd];W[md];B[rd];W[ng];B[nf];W[mg];B[kp] ;W[kq];B[jp];W[jq];B[lj];W[ob];B[pb];W[nb];B[qb];W[mo];B[km] ;W[oq];B[op];W[nq];B[pr];W[bc];B[ip];W[iq];B[mi];W[oh];B[of] ;W[rj];B[rg];W[rh];B[rf];W[mh];B[kg];W[mf];B[de];W[hh];B[if] ;W[he];B[gg];W[dg];B[cg];W[eh];B[cd];W[ed];B[ei];W[ad];B[ae] ;W[ac];B[be];W[gh];B[gf];W[ef];B[ge];W[ke];B[ih];W[gd];B[fn] ;W[gk];B[fl];W[fk];B[ek];W[gl];B[gm];W[il];B[jk];W[ik];B[lh] ;W[or];B[np];W[jl];B[mq];W[kk];B[ml];W[mr];B[mp];W[lp];B[lo] ;W[ps];B[qs];W[ns];B[os];W[ch];B[di];W[ps];B[qr];W[jj];B[ll] ;W[ni];B[lk];W[jf];B[ki];W[ko];B[ln];W[jn];B[os])goban-1.1.orig/games/Hon-54-3.mgt0000644000175000017500000000323506045540242014075 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1954-06-10,11]KM[4.5]RO[3]PC[Kawaguchiko]PB[Takagawa Kaku]PW[Sugiuchi Masao]RE[B+4.5]TM[10h]FF[3];B[pd];W[dc];B[pp];W[dp];B[de];W[ee];B[ef];W[fe];B[dd] ;W[ec];B[cc];W[df];B[cf];W[dg];B[cg];W[dh];B[ch];W[di];B[ed] ;W[fd];B[fc];W[cb];B[bd];W[fb];B[gc];W[bb];B[ci];W[kd];B[gb] ;W[eb];B[jd];W[je];B[ie];W[ff];B[kc];W[ke];B[lc];W[id];B[jc] ;W[if];B[dj];W[ej];B[ek];W[dk];B[cj];W[fj];B[fk];W[dl];B[gk] ;W[dn];B[jp];W[qn];B[np];W[rp];B[qq];W[qk];B[he];W[bc];B[cd] ;W[hd];B[hf];W[gd];B[ig];W[ib];B[kg];W[me];B[nd];W[mg];B[fh] ;W[gi];B[gj];W[fi];B[hi];W[gh];B[pj];W[qj];B[pi];W[mi];B[gg] ;W[hh];B[ih];W[fg];B[hg];W[eh];B[pk];W[mk];B[ij];W[ji];B[ii] ;W[hq];B[cm];W[dm];B[bl];W[cn];B[fq];W[ho];B[jq];W[eq];B[fp] ;W[gr];B[kk];W[lg];B[kh];W[oe];B[od];W[pg];B[qi];W[ql];B[pl] ;W[pe];B[qd];W[on];B[pm];W[pn];B[qm];W[rm];B[rj];W[rk];B[sk] ;W[rl];B[nl];W[lk];B[mm];W[kl];B[rh];W[jk];B[kj];W[lm];B[jl] ;W[mn];B[qf];W[mp];B[no];W[nn];B[mq];W[lo];B[lq];W[qg];B[rg] ;W[gm];B[lh];W[nh];B[fm];W[fn];B[hm];W[rq];B[bn];W[bo];B[co] ;W[an];B[bm];W[do];B[gn];W[go];B[hn];W[io];B[km];W[ll];B[jo] ;W[kn];B[cp];W[bp];B[cq];W[bq];B[cr];W[br];B[fo];W[en];B[fr] ;W[gq];B[ds];W[er];B[es];W[gs];B[fs];W[dr];B[el];W[dq];B[cs] ;W[bs];B[ck];W[gp];B[em];W[eo];B[ic];W[hc];B[jb];W[il];B[hb] ;W[hl];B[gl];W[jj];B[lj];W[qe];B[re];W[jm];B[jf];W[pf];B[rf] ;W[md];B[mc];W[ad];B[ae];W[ac];B[be];W[qr];B[pr];W[rs];B[ir] ;W[ps];B[or];W[jh];B[jg];W[nk];B[os];W[qp];B[pq];W[is];B[js] ;W[ga];B[ia];W[qs];B[ni];W[oi];B[nj];W[oj];B[mj];W[ok];B[mh] ;W[ki];B[li];W[oh];B[ol];W[hk];B[hj];W[po];B[ne];W[nf];B[lf] ;W[mf];B[kf];W[hs];B[lp];W[mo];B[op];W[ko];B[kp];W[ph];B[am] ;W[ao];B[sl];W[sm];B[sj];W[rn];B[qh];W[iq];B[ip])goban-1.1.orig/games/Hon-75-5.sgf0000644000175000017500000000265706243711266014107 0ustar alal( ; DT[1975-] EV[30th Honinbo 1975] RO[5] KM[5.5] TM[9 hours each] BR[Honinbo] WR[9 dan] PB[Ishida Yoshio] PW[Sakata Eio] RE[B+R] ;B[qd];W[cq];B[ec];W[pp];B[cd];W[od];B[oc];W[nc];B[pc] ;W[md];B[qf];W[ic];B[cj];W[jq];B[co];W[ep];B[dn];W[en];B[em] ;W[fn];B[jo];W[fm];B[dm];W[bd];B[bc];W[ko];B[kn];W[kp];B[fp] ;W[eq];B[fl];W[gl];B[gm];W[hn];B[hm];W[el];B[fk];W[im];B[hl] ;W[gn];B[in];W[jm];B[jn];W[km];B[ln];W[gk];B[hk];W[gj];B[hj] ;W[ej];B[fj];W[gi];B[fi];W[fh];B[hi];W[gh];B[ei];W[lm];B[hh] ;W[dd];B[cc];W[hg];B[ig];W[hf];B[mn];W[mm];B[mp];W[jh];B[ih] ;W[ji];B[if];W[he];B[kf];W[lg];B[me];W[le];B[lf];W[mf];B[ne] ;W[ke];B[kg];W[mg];B[kh];W[nn];B[oe];W[mi];B[jd];W[je];B[ie] ;W[id];B[jc];W[ib];B[hd];W[gd];B[gg];W[eh];B[di];W[ff];B[ge] ;W[gf];B[jb];W[lc];B[lj];W[li];B[ki];W[mj];B[hc];W[hb];B[gc] ;W[gb];B[fd];W[fb];B[fc];W[dh];B[jk];W[eb];B[ch];W[cg];B[ef] ;W[bh];B[ci];W[de];B[dc];W[bf];B[dg];W[df];B[eg];W[ee];B[fg] ;W[ce];B[ad];W[be];B[fe];W[no];B[qq];W[pq];B[qp];W[qr];B[rr] ;W[pr];B[eo];W[fo];B[dp];W[do];B[dq];W[dr];B[eo];W[gp];B[er] ;W[do];B[mb];W[lb];B[eo];W[fq];B[cr];W[ro];B[qj];W[ql];B[rm] ;W[rl];B[bi];W[ah];B[qm];W[pm];B[pi];W[pk];B[fs];W[gr];B[nb] ;W[nd];B[gs];W[fr];B[ds];W[hs];B[es];W[hr];B[rk];W[sl];B[og] ;W[kj];B[db];W[ea];B[jj];W[pe];B[pf];W[pd];B[qe];W[kk];B[oj] ;W[ok];B[nj];W[nk];B[bg];W[ag];B[sk];W[do];B[cp];W[ai];B[aj] ;W[jl];B[jf];W[ka];B[ja];W[ob];B[da];W[qc];B[pb];W[qb];B[oa] ;W[qa];B[mc];W[ld];B[pa] C[213 moves complete.] ) goban-1.1.orig/games/Hon-64-4.mgt0000644000175000017500000000240106045540372014075 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1964-05-25,26]PB[Sakata Eio]PW[Takagawa Kaku]RE[B+R]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[dc];B[qp];W[dq];B[op];W[co];B[ce];W[jq];B[gd] ;W[ed];B[dg];W[bd];B[ck];W[qj];B[lq];W[pf];B[nc];W[qm];B[qh] ;W[ph];B[qg];W[pg];B[qf];W[pe];B[qe];W[pc];B[pb];W[pd];B[rb] ;W[qi];B[fc];W[be];B[bf];W[md];B[cd];W[cc];B[ae];W[bc];B[eb] ;W[ef];B[df];W[gf];B[eg];W[fd];B[hd];W[fg];B[kd];W[fh];B[dj] ;W[ob];B[mc];W[pa];B[qb];W[oc];B[nd];W[nq];B[oq];W[np];B[no] ;W[or];B[pr];W[nr];B[kq];W[mo];B[oo];W[jr];B[jp];W[ip];B[iq] ;W[hq];B[mp];W[kp];B[jo];W[lo];B[io];W[ir];B[ko];W[lp];B[mq] ;W[lm];B[mr];W[jm];B[pl];W[qk];B[dn];W[cn];B[hn];W[hl];B[dm] ;W[eo];B[fn];W[bl];B[il];W[kr];B[os];W[im];B[hm];W[ik];B[fp] ;W[ep];B[kl];W[km];B[jl];W[ll];B[jj];W[hk];B[kj];W[mj];B[mm] ;W[nn];B[nm];W[ln];B[pm];W[lj];B[jg];W[fl];B[fm];W[ci];B[di] ;W[bk];B[cj];W[qn];B[hi];W[gi];B[fe];W[ee];B[ge];W[ff];B[kk] ;W[ml];B[gj];W[fj];B[hj];W[db];B[gh];W[fi];B[fk];W[lg];B[nf] ;W[le];B[me];W[ea];B[mh];W[mg];B[ng];W[nh];B[gb];W[kh];B[gp] ;W[fq];B[ro];W[bj];B[bi];W[ie];B[ke];W[la];B[fa];W[ek];B[gk] ;W[dl];B[gl];W[cl];B[bh];W[kb];B[ib];W[rh];B[rg];W[qd];B[rd] ;W[sg];B[re];W[qo];B[rn];W[rm];B[on];W[sf];B[qa];W[oa];B[da] ;W[ig];B[jh];W[lf];B[ki];W[li];B[kc];W[jb];B[jc];W[hh];B[ih] ;W[hg];B[ni];W[oh];B[oj])goban-1.1.orig/games/M-66-5.sgf0000644000175000017500000000347606261340144013550 0ustar alal( ; GM[1] EV[5th Meijin Title Match] RO[5] PB[Sakata Eio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Sept 12/13, 1966] PC[Takaoka] RE[W+9] KM[5] SZ[19] ;B[qd];W[qp];B[dc];W[de];B[eq];W[cp];B[ce];W[cf];B[cd] ;W[hp];B[df];W[dq];B[nq];W[od];B[mc];W[qc];B[do];W[pd] ;B[co];W[ep];B[dp];W[cq];B[fp];W[eo];B[fq];W[fo];B[bp] ;W[bq];B[bo];W[er];B[fr];W[es];B[hq];W[iq];B[gp];W[go] ;B[ip];W[ho];B[ir];W[jq];B[gr];W[jr];B[js];W[ks];B[is] ;W[dl];B[en];W[jo];B[cs];W[qe];B[jc];W[lr];B[qq];W[rq] ;B[rr];W[rp];B[pq];W[oo];B[sr];W[pj];B[pl];W[cm];B[dm] ;W[cl];B[dg];W[em];B[dr];W[bs];B[aq];W[br];B[ar];W[bn] ;B[ap];W[nj];B[mp];W[or];B[oq];W[om];B[qn];W[po];B[qj] ;W[qi];B[rj];W[nr];B[pr];W[mq];B[lq];W[mr];B[no];W[pk] ;B[ko];W[jp];B[ri];W[mn];B[ps];W[ql];B[rl];W[qk];B[rk] ;W[rm];B[qh];W[kd];B[kc];W[rg];B[pi];W[oh];B[oi];W[ni] ;B[rf];W[qg];B[pg];W[qf];B[nh];W[og];B[ph];W[mh];B[rh] ;W[he];B[ci];W[dn];B[as];W[hc];B[gd];W[hd];B[ld];W[nb] ;B[nc];W[ob];B[je];W[hg];B[lf];W[eh];B[ff];W[fc];B[gf] ;W[hf];B[gb];W[gc];B[fb];W[hb];B[ec];W[kg];B[ng];W[of] ;B[me];W[mg];B[nn];W[nm];B[kn];W[lp];B[mo];W[kl];B[mm] ;W[ml];B[lm];W[ll];B[fh];W[gi];B[fi];W[fj];B[gh];W[hh] ;B[ej];W[fk];B[ek];W[el];B[jn];W[in];B[jm];W[kf];B[ke] ;W[il];B[rn];W[qm];B[pn];W[on];B[sm];W[cj];B[dj];W[bi] ;B[bj];W[ck];B[ch];W[aj];B[bh];W[bk];B[oj];W[ok];B[pm] ;W[ol];B[nf];W[mf];B[ne];W[ei];B[di];W[fe];B[sg];W[ge] ;B[ef];W[ah];B[bf];W[mb];B[lb];W[re];B[oc];W[pc];B[jl] ;W[jk];B[sf];W[kp];B[lo];W[ag];B[im];W[hm];B[if];W[ig] ;B[lg];W[lh];B[le];W[jg];B[ib];W[ga];B[eb];W[ma];B[ia] ;W[ha];B[oe];W[pf];B[pe];W[rd];B[ee];W[ic];B[jb];W[nd] ;B[md];W[af];B[ae];W[se];B[sh];W[gg];B[fg];W[fa];B[ea] ;W[la];B[ka];W[ed];B[bg];W[ai];B[an];W[am];B[cr];W[cn] ;B[os];W[op];B[np];W[km];B[ln];W[ns];B[dd];W[fd];B[ie] ;W[id];B[jd];W[nk];B[kh];W[ki];B[pb];W[qb];B[kj];W[ik] ;B[ao] ) goban-1.1.orig/games/Hon-81-2.mgt0000644000175000017500000000242006045540434014072 0ustar alal (;GM[1]SZ[19]DT[1981-06-03,04]FF[3]PC[Yunoyama]RE[B+R]PB[Cho Chikun]PW[Takemiya Masaki]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[ld];W[nd];B[pf] ;W[nf];B[pb];W[pg];B[qg];W[qh];B[ph];W[og];B[qi];W[rh];B[rg] ;W[ri];B[qj];W[pi];B[oh];W[nh];B[oi];W[oj];B[ni];W[pj];B[mh] ;W[qk];B[ne];W[nj];B[mi];W[me];B[oe];W[md];B[mf];W[jd];B[fc] ;W[ec];B[jc];W[kd];B[fd];W[ic];B[df];W[ee];B[ed];W[de];B[dc] ;W[cc];B[eb];W[cb];B[hc];W[id];B[ib];W[jb];B[cf];W[ef];B[eg] ;W[fg];B[eh];W[mg];B[lf];W[lg];B[ng];W[ch];B[be];W[bd];B[kf] ;W[cj];B[bi];W[ci];B[cg];W[gf];B[fh];W[gh];B[gi];W[hh];B[bh] ;W[dn];B[ep];W[co];B[bp];W[ej];B[bj];W[fi];B[ck];W[dk];B[cl] ;W[dl];B[qp];W[qo];B[hq];W[hb];B[gb];W[ia];B[db];W[nr];B[ro] ;W[rn];B[rp];W[pr];B[oq];W[or];B[qr];W[mp];B[oo];W[on];B[no] ;W[jq];B[iq];W[jp];B[ho];W[hn];B[io];W[eo];B[dp];W[hd];B[gc] ;W[kg];B[of];W[pc];B[qc];W[ki];B[gn];W[gm];B[fn];W[fm];B[jr] ;W[kr];B[ir];W[lo];B[nn];W[om];B[nq];W[mr];B[in];W[hm];B[ks] ;W[lr];B[sn];W[rm];B[qn];W[qm];B[pp];W[pn];B[jg];W[np];B[rr] ;W[jh];B[kh];W[lh];B[li];W[kh];B[ob];W[nb];B[jf];W[qb];B[rb] ;W[bm];B[ce];W[cd];B[ei];W[fj];B[kj];W[ii];B[le];W[lc];B[en] ;W[em];B[do];W[cm];B[ak];W[bo];B[lk];W[ap];B[aq];W[ao];B[bq] ;W[jj];B[jk];W[ik];B[jl];W[al];B[bk];W[ml];B[il];W[hl];B[ig] ;W[ih];B[mq];W[lq];B[sh];W[rj];B[mk])goban-1.1.orig/games/T-04-3.mgt0000644000175000017500000000202706252627522013554 0ustar alal(;PB[Kato Masao]PW[Fujisawa Shuko]DT[1978-11-29]RE[B+R]KM[5.5]GM[1]SZ[19]ID[ 4/3]FF[3];B[qd];W[dd];B[pp];W[cq];B[oc];W[qj];B[qh];W[qm];B[mq] ;W[rp];B[fc];W[df];B[jd];W[cj];B[fp];W[do];B[ip];W[oe];B[nd] ;W[qe];B[pd];W[pe];B[pj];W[qk];B[oh];W[mf];B[mh];W[rd];B[rc] ;W[rf];B[sd];W[rh];B[cc];W[dc];B[db];W[eb];B[bb];W[da];B[cb] ;W[ec];B[bf];W[dm];B[qg];W[rg];B[re];W[qf];B[fd];W[ff];B[ce] ;W[de];B[ch];W[id];B[ic];W[hc];B[hd];W[ie];B[jc];W[gb];B[hb] ;W[gc];B[fb];W[gd];B[ge];W[he];B[ga];W[hd];B[je];W[ib];B[ha] ;W[fe];B[fa];W[ig];B[jf];W[hg];B[dq];W[dp];B[eq];W[cr];B[en] ;W[kq];B[lp];W[iq];B[hq];W[jp];B[io];W[mr];B[nr];W[lr];B[ro] ;W[nq];B[or];W[qo];B[qp];W[rn];B[rq];W[so];B[np];W[ir];B[hr] ;W[jo];B[jn];W[in];B[hn];W[im];B[kn];W[jr];B[kp];W[ks];B[hm] ;W[il];B[hl];W[ik];B[qi];W[ri];B[hk];W[ij];B[ck];W[bg];B[bh] ;W[cl];B[bk];W[dk];B[bj];W[bl];B[dj];W[ej];B[di];W[mj];B[nk] ;W[mk];B[nj];W[mi];B[ni];W[lh];B[nm];W[ml];B[on];W[fo];B[fn] ;W[le];B[ld];W[kd];B[md];W[ea];B[jb];W[eo];B[go];W[fr];B[fq] ;W[dr];B[er];W[es];B[ek];W[dl];B[fk])goban-1.1.orig/games/T-01-2.mgt0000644000175000017500000000276106261065456013557 0ustar alal(;SZ[19]EV[1st Tengen match, game 2]DT[1975-12-18]PB[Ohira Shuzo]BR[9d]PW[Fujisawa Shuko]WR[9d]KM[5.5]RE[B+7.5]SO[Kido yearbook];B[pd];W[dp];B[pq];W[cc];B[pk];W[nc];B[pf];W[jd];B[jp];W[fq];B[po];W[dj];B[dd];W[cd];B[de];W[eb];B[ce];W[fd];B[fe];W[ge];B[ff];W[gf];B[ec];W[fc];B[db];W[dc];B[ed];W[fb];B[fh];W[gg];B[be];W[bc];B[dh];W[pb];B[qc];W[qq];B[qp];W[ne];B[bo];W[cp];B[dl];W[fj];B[dn];W[bj];B[gm];W[bh];B[bg];W[ch];B[cg];W[di];B[hq];W[fo];B[gk];W[eh];B[fg];W[dg];B[df];W[pr];B[qr];W[in];B[ko];W[il];B[bp];W[bq];B[br];W[cq];B[fn];W[go];B[bm];W[oq];B[rq];W[el];B[em];W[fl];B[hm];W[im];B[hk];W[cl];B[jj];W[ll];B[ln];W[qh];B[nf];W[me];B[pi];W[ph];B[oh];W[qi];B[oi];W[qk];B[ql];W[qj];B[pl];W[rf];B[re];W[qf];B[qe];W[rl];B[rm];W[sl];B[aq];W[ip];B[iq];W[eo];B[bl];W[eg];B[ef];W[fi];B[cr];W[dr];B[hp];W[ho];B[io];W[hn];B[qb];W[qm];B[pm];W[lm];B[km];W[kl];B[jk];W[jl];B[kg];W[nm];B[mn];W[qn];B[rn];W[ki];B[nk];W[nl];B[pn];W[nn];B[no];W[hi];B[en];W[gr];B[hr];W[cs];B[ck];W[oc];B[ke];W[kd];B[mf];W[dk];B[cm];W[se];B[le];W[ld];B[qg];W[rg];B[pg];W[rj];B[lj];W[kh];B[ij];W[ii];B[ig];W[oe];B[sd];W[of];B[og];W[mh];B[mg];W[if];B[sf];W[rh];B[jf];W[qa];B[ra];W[pa];B[rc];W[ie];B[pc];W[ob];B[jn];W[nh];B[ng];W[jm];B[kn];W[bk];B[bd];W[ac];B[sm];W[cj];B[cl];W[co];B[cn];W[hg];B[lg];W[mj];B[nj];W[ih];B[lh];W[mi];B[li];W[mk];B[gs];W[fs];B[hs];W[ds];B[ar];W[jg];B[ji];W[jh];B[gp];W[fp];B[gq];W[fr];B[ad];W[cb];B[od];W[on];B[oo];W[je];B[nd];W[md];B[kf];W[ag];B[af];W[ah];B[bs];W[al];B[am];W[ak];B[fk];W[ek];B[gh];W[sg];B[pj];W[ol];B[ok];B[se])goban-1.1.orig/games/Hon-76-3.sgf0000644000175000017500000000227106243711414014071 0ustar alal( ; EV[31st Honinbo 1976] RO[3] PB[Takemiya Masaki] BR[8 dan] PW[Ishida Yoshio] WR[Honinbo] KM[5.5] DT[1976-] PC[Japan] RE[B+R] TM[9 hours each] ;B[pd];W[dc];B[pp];W[dq];B[pj];W[nc];B[de];W[fd];B[cc] ;W[cb];B[cd];W[eb];B[ci];W[qc];B[qd];W[pc];B[od];W[oc];B[me] ;W[nq];B[lq];W[qq];B[qp];W[pq];B[op];W[nr];B[mo];W[qh];B[oh] ;W[qk];B[qj];W[rj];B[ri];W[rl];B[sj];W[sk];B[rk];W[nd];B[ne] ;W[rj];B[oq];W[or];B[rk];W[oe];B[sl];W[of];B[re];W[ng];B[lf] ;W[rc];B[qf];W[lg];B[kg];W[lh];B[nh];W[mh];B[jf];W[og];B[ph] ;W[pg];B[ki];W[lj];B[kk];W[rg];B[sf];W[ml];B[lm];W[qe];B[pe] ;W[qg];B[sg];W[oj];B[pi];W[pk];B[ql];W[pl];B[rm];W[kj];B[jj] ;W[li];B[ji];W[ni];B[nk];W[qm];B[ok];W[rl];B[om];W[sh];B[rh] ;W[rf];B[si];W[oi];B[qi];W[rn];B[ql];W[rd];B[se];W[rl];B[nj] ;W[mi];B[ql];W[sd];B[pm];W[pf];B[rp];W[rq];B[do];W[co];B[cn] ;W[cp];B[dn];W[fq];B[fe];W[ge];B[ff];W[gf];B[gg];W[hd];B[fg] ;W[cj];B[bj];W[bk];B[ck];W[fn];B[fo];W[cl];B[dj];W[dk];B[go] ;W[cj];B[sq];W[sr];B[ck];W[rl];B[ol];W[cj];B[ed];W[fc];B[ck] ;W[sm];B[ql];W[cj];B[gq];W[gn];B[fr];W[ej];B[ck];W[en];B[eo] ;W[cj];B[mg];W[mf];B[ck];W[ik];B[cj];W[jk];B[er];W[hj];B[lk] ;W[km];B[fl];W[kn];B[hn];W[lo];B[kh] C[165 moves complete. Black: 7hr 53m White: 8hr 54m.]) goban-1.1.orig/games/Hon-60-4.sgf0000644000175000017500000000322606243707522014071 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[4] FF[3] BR[8 dan] WR[Honinbo] PB[Fujisawa Shuko] PW[Takagawa Shukaku] KM[4.5] RE[W+2.5] ID[15/4] ;B[qd];W[dd];B[pp];W[dq];B[oc];W[qj];B[cn];W[cp];B[ck] ;W[qg];B[jq];W[gq];B[fc];W[cf];B[db];W[cc];B[ic];W[nq];B[pn] ;W[pr];B[qq];W[lq];B[jo];W[ci];B[mp];W[mq];B[qr];W[lo];B[kd] ;W[bm];B[cm];W[bl];B[ek];W[cl];B[dl];W[bn];B[km];W[em];B[qk] ;W[rk];B[rl];W[rj];B[hq];W[gp];B[fm];W[fn];B[fl];W[gn];B[en] ;W[pq];B[op];W[np];B[im];W[ql];B[rm];W[pk];B[pf];W[pg];B[of] ;W[hm];B[il];W[hl];B[di];W[dh];B[ei];W[ik];B[kk];W[cj];B[eh] ;W[dj];B[ej];W[dg];B[hk];W[hd];B[hc];W[jk];B[ii];W[kj];B[lk] ;W[hj];B[gk];W[ji];B[jl];W[jh];B[hi];W[mi];B[mn];W[mo];B[lg] ;W[ip];B[jp];W[re];B[rf];W[qf];B[qe];W[rd];B[rc];W[rg];B[nh] ;W[ni];B[oh];W[jn];B[in];W[kn];B[ln];W[ko];B[io];W[qn];B[qm] ;W[pm];B[om];W[ol];B[pl];W[qc];B[sd];W[sf];B[qb];W[pm];B[on] ;W[rn];B[pl];W[rp];B[qp];W[pm];B[kr];W[lr];B[pl];W[og];B[ng] ;W[pm];B[ps];W[ns];B[pl];W[nf];B[pe];W[pm];B[kp];W[lp];B[pl] ;W[jd];B[je];W[pm];B[os];W[nr];B[pl];W[pc];B[pb];W[pm];B[gr] ;W[pl];B[fr];W[eo];B[ed];W[ee];B[dc];W[fd];B[ec];W[kf];B[lf] ;W[cd];B[fe];W[hh];B[gj];W[ke];B[le];W[id];B[jc];W[gd];B[ef] ;W[de];B[gc];W[jf];B[jj];W[er];B[rq];W[sp];B[dk];W[bk];B[bb] ;W[cb];B[ca];W[bc];B[if];W[ie];B[hf];W[ih];B[ge];W[ld];B[kc] ;W[gi];B[ij];W[lh];B[he];W[kg];B[mh];W[lj];B[ph];W[oe];B[pd] ;W[me];B[md];W[lc];B[mg];W[je];B[qh];W[rh];B[gh];W[dn];B[dm] ;W[co];B[fq];W[hp];B[iq];W[mk];B[fp];W[hn];B[ep];W[fs];B[gs] ;W[es];B[dp];W[do];B[cq];W[cr];B[bq];W[br];B[ml];W[nl];B[nm] ;W[oi];B[mf];W[gg];B[fh];W[hg];B[ff];W[ab];B[ba];W[qo];B[ig] ;W[ks];B[js];W[ls];B[sq];W[sn];B[ne];W[kq];B[jr];W[pi];B[qi] ;W[ri];B[eq];W[dr];B[no];W[po];B[oo] ) goban-1.1.orig/games/Hon-45-2.sgf0000644000175000017500000000310106243706720014061 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[ 3/2] FF[3] PB[Iwamoto Kaoru] PW[Hashimoto Utaro] DT[1945-08-04..06] RE[W+5.5] KM[4.5] ;B[qd];W[oq];B[od];W[de];B[dp];W[cn];B[fp];W[qp];B[dc];W[mc] ;B[ee];W[ef];B[ed];W[dg];B[ce];W[cf];B[be];W[qj];B[qh];W[gf] ;B[bf];W[ch];B[jq];W[oj];B[em];W[lq];B[rp];W[pp];B[ol];W[ql] ;B[ml];W[ko];B[mn];W[pn];B[co];W[gp];B[go];W[hp];B[fq];W[ho] ;B[hr];W[km];B[nj];W[oi];B[ni];W[nh];B[li];W[mh];B[jn];W[kn] ;B[kk];W[gn];B[fo];W[il];B[ik];W[hk];B[ij];W[hj];B[jl];W[hl] ;B[ih];W[hi];B[jg];W[pf];B[og];W[of];B[qf];W[pg];B[qg];W[bo] ;B[bp];W[do];B[cp];W[cl];B[on];W[pc];B[pd];W[oc];B[nd];W[nc] ;B[qc];W[jc];B[kd];W[kc];B[pk];W[qk];B[pj];W[nk];B[mk];W[lf] ;B[le];W[kg];B[jf];W[lh];B[pm];W[qm];B[ro];W[rq];B[np];W[oo] ;B[qn];W[po];B[qi];W[rj];B[jm];W[ki];B[nq];W[iq];B[ir];W[jp] ;B[kq];W[lr];B[no];W[nr];B[mr];W[or];B[mq];W[kp];B[kr];W[gc] ;B[ek];W[dk];B[gm];W[ks];B[jr];W[lp];B[ms];W[hm];B[fn];W[hn] ;B[ej];W[ii];B[kf];W[mf];B[ne];W[pi];B[ok];W[mj];B[nl];W[lj] ;B[lk];W[kj];B[ls];W[eb];B[db];W[ld];B[me];W[jd];B[ke];W[bn] ;B[bh];W[bi];B[bg];W[ec];B[dd];W[ap];B[aq];W[ao];B[bq];W[rn] ;B[nf];W[ng];B[ri];W[qb];B[rb];W[pb];B[gd];W[hd];B[ci];W[cj] ;B[di];W[bj];B[ge];W[gb];B[gg];W[eh];B[ff];W[fi];B[ra];W[da] ;B[ca];W[ea];B[cb];W[dm];B[df];W[eg];B[cg];W[jh];B[he];W[lm] ;B[id];W[hc];B[ns];W[mm];B[nm];W[os];B[op];W[pq];B[ei];W[fh] ;B[hh];W[ie];B[je];W[ic];B[pl];W[fj];B[fk];W[gl];B[fm];W[gh] ;B[hf];W[jj];B[jk];W[gq];B[gr];W[si];B[sh];W[sj];B[gk];W[gj] ;B[eo];W[dn];B[qa];W[pa];B[md];W[lc];B[ai];W[aj];B[ah];W[ph] ;B[pe];W[dh];B[fc];W[fb];B[fd];W[mo];B[if];W[mp];B[nn];W[ln] ) goban-1.1.orig/games/M-85-2.mgt0000644000175000017500000000225506252627042013555 0ustar alal(;PB[Cho Chikun]PW[Kobayashi Koichi]DT[1985-09-25,26]RE[B+R]ID[85/2]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[cp];B[eq];W[qn];B[dn];W[ep];B[dp] ;W[do];B[dq];W[co];B[eo];W[fp];B[cq];W[cn];B[dm];W[bl];B[fq] ;W[fo];B[en];W[fn];B[dl];W[ck];B[bm];W[bn];B[fm];W[ho];B[ej] ;W[ch];B[hm];W[gq];B[gr];W[hq];B[hr];W[kp];B[qp];W[qk];B[jc] ;W[qf];B[nd];W[rd];B[fc];W[dc];B[fe];W[dg];B[eg];W[eh];B[di] ;W[fg];B[cm];W[ci];B[am];W[gd];B[gc];W[qc];B[pc];W[id];B[ic] ;W[fd];B[iq];W[ip];B[jq];W[jp];B[qd];W[rb];B[qb];W[rc];B[mp] ;W[md];B[ne];W[le];B[ed];W[hd];B[ec];W[ee];B[db];W[cb];B[eb] ;W[de];B[jd];W[kf];B[og];W[pg];B[oh];W[ph];B[oi];W[of];B[nf] ;W[je];B[kq];W[lp];B[lq];W[mo];B[no];W[np];B[mq];W[mn];B[oo] ;W[po];B[op];W[mg];B[ng];W[mi];B[mb];W[hi];B[cc];W[bc];B[ca] ;W[bb];B[ij];W[hj];B[ik];W[hk];B[hl];W[il];B[jm];W[jl];B[kl] ;W[jk];B[kn];W[lm];B[km];W[im];B[in];W[hn];B[ll];W[jj];B[nm] ;W[io];B[jn];W[gn];B[fl];W[gp];B[qj];W[nl];B[pk];W[pl];B[ok] ;W[ol];B[ml];W[rj];B[qi];W[ri];B[lo];W[pi];B[pj];W[qh];B[ql] ;W[rk];B[nk];W[pm];B[ro];W[hc];B[hb];W[gb];B[ib];W[mc];B[nb] ;W[lj];B[rm];W[rn];B[sn];W[qo];B[rq];W[rl];B[fi];W[fh];B[mf] ;W[lc];B[lb];W[lg];B[kd];W[ke];B[pb])goban-1.1.orig/games/Hon-75-2.sgf0000644000175000017500000000401406243711200014055 0ustar alal( ; DT[1975-] EV[30th Honinbo 1975] RO[2] KM[5.5] BR[9 dan] WR[Honinbo] PB[Sakata Eio] PW[Ishida Yoshio] RE[B+3.5] TM[9 hours each] ;B[pd];W[dp];B[pq];W[dc];B[qk];W[de];B[ic];W[nc];B[oc] ;W[nd];B[pf];W[kc];B[ie];W[ke];B[cn];W[fq];B[cj];W[ch];B[bp] ;W[cq];B[dl];W[po];B[np];W[qq];B[qr];W[qp];B[rr];W[qm];B[hq] ;W[qc];B[qd];W[ob];B[pc];W[pb];B[qb];W[bq];B[ol];W[nm];B[lp] ;W[om];B[ql];W[jq];B[ip];W[or];B[nq];W[pr];B[oq];W[pm];B[ok] ;W[dm];B[cm];W[gc];B[ge];W[kp];B[lo];W[rq];B[sr];W[ko];B[kn] ;W[jo];B[fr];W[eq];B[hn];W[jn];B[lm];W[jl];B[gq];W[km];B[ln] ;W[ll];B[er];W[fo];B[gp];W[bo];B[ml];W[lk];B[im];W[jm];B[mk] ;W[li];B[kg];W[mh];B[mg];W[ng];B[nf];W[lg];B[lf];W[mf];B[me] ;W[mg];B[ne];W[le];B[kf];W[je];B[ig];W[md];B[mb];W[nb];B[oh] ;W[hk];B[ji];W[il];B[kb];W[jb];B[jc];W[lb];B[lc];W[ka];B[kd] ;W[kb];B[fm];W[gi];B[fh];W[gh];B[ef];W[fg];B[ee];W[ed];B[df] ;W[ce];B[cf];W[eh];B[be];W[bd];B[jf];W[ld];B[gf];W[el];B[em] ;W[dk];B[dn];W[bf];B[bg];W[ae];B[dh];W[di];B[ci];W[dg];B[bh] ;W[hc];B[fk];W[gk];B[dj];W[ej];B[fj];W[fi];B[fl];W[ii];B[ih] ;W[ij];B[gj];W[hi];B[ki];W[kj];B[bn];W[dr];B[co];W[fp];B[id] ;W[rb];B[rc];W[qa];B[ib];W[qc];B[eo];W[cp];B[ao];W[bs];B[qb] ;W[rl];B[rk];W[rm];B[sq];W[sp];B[nr];W[sk];B[ro];W[rp];B[mj] ;W[lj];B[on];W[rn];B[pn];W[oo];B[nn];W[no];B[mn];W[so];B[sj] ;W[sl];B[ri];W[qc];B[rd];W[og];B[pg];W[hb];B[ha];W[ga];B[ia] ;W[gd];B[kr];W[kq];B[jr];W[lr];B[ep];W[aq];B[lq];W[ir];B[mr] ;W[js];B[ls];W[iq];B[ek];W[es];B[gr];W[hm];B[fn];W[go];B[ho] ;W[ni];B[oi];W[do];B[en];W[nj];B[jj];W[jk];B[sb];W[oj];B[pj] ;W[qb];B[gn];W[cg];B[eg];W[hf];B[hg];W[he];B[hd];W[fe];B[dh] ;W[ff];B[if];W[cg];B[ei];W[dg];B[dq];W[ch];B[eq];W[jd];B[in] ;W[ag];B[ai];W[di];B[gl];W[hl];B[dh];W[pl];B[pk];W[di];B[fc] ;W[fd];B[dh];W[ph];B[pi];W[di];B[pp];W[qo];B[dh];W[qs];B[os] ;W[di];B[mi];W[nh];B[dh];W[rs];B[ps];W[di];B[kh];W[lh];B[dh] ;W[qh];B[qg];W[di];B[cr];W[ds];B[dh];W[rj];B[qj];W[di];B[ap] ;W[cs];B[dh];W[pr];B[or];W[di];B[gb];W[fb];B[dh];W[od];B[oe] ;W[di];B[ks];W[ej];B[is];W[ei];B[hr];W[of];B[pe];W[fs];B[gs] ;W[mo];B[mp];W[io]C[312 moves complete.] ) goban-1.1.orig/games/M-78-4.mgt0000644000175000017500000000212706252627042013557 0ustar alal(;PB[Otake Hideo]PW[Rin Kaiho]DT[1978-10-11,12]PC[Futsuka]RE[B+R]KM[5.5]ID[78/4]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[dp];W[qq];B[ce];W[od];B[oc];W[nc];B[pc] ;W[dh];B[fe];W[gc];B[nd];W[fq];B[cn];W[dr];B[cq];W[iq];B[dj] ;W[fh];B[pn];W[np];B[pj];W[cc];B[he];W[gf];B[ff];W[gg];B[ge] ;W[hc];B[if];W[mc];B[ne];W[kd];B[fj];W[cj];B[ck];W[ci];B[bk] ;W[kf];B[ih];W[gj];B[ed];W[de];B[df];W[dd];B[cg];W[ef];B[eg] ;W[ee];B[dg];W[fi];B[fg];W[di];B[ej];W[jg];B[ig];W[hk];B[le] ;W[ke];B[lg];W[jk];B[ki];W[lk];B[nn];W[nj];B[kl];W[kk];B[ip] ;W[jq];B[hi];W[gi];B[lo];W[ll];B[lq];W[ng];B[lf];W[nq];B[ld] ;W[lc];B[kc];W[jc];B[kb];W[jb];B[qp];W[rp];B[pp];W[rr];B[ro] ;W[so];B[sn];W[sp];B[rn];W[pi];B[fc];W[fb];B[oj];W[oi];B[ni] ;W[qj];B[nk];W[mj];B[mi];W[rk];B[ol];W[qf];B[gp];W[gq];B[re] ;W[rf];B[pg];W[qh];B[oh];W[ji];B[jh];W[li];B[lh];W[kj];B[lj] ;W[mk];B[qg];W[rg];B[ri];W[rh];B[rl];W[ql];B[sl];W[rm];B[sm] ;W[qm];B[no];W[qn];B[qo];W[op];B[po];W[sk];B[sj];W[qi];B[sf] ;W[sg];B[si];W[se];B[rd];W[kp];B[pl];W[mm];B[oo];W[nm];B[ko] ;W[jo];B[jp];W[jn];B[kq];W[hp];B[lp];W[io];B[pm];W[qk];B[nr] )goban-1.1.orig/games/Hon-83-6.mgt0000644000175000017500000000200406045540440014073 0ustar alal (;GM[1]SZ[19]DT[1983-07-14,15]PC[Yamanaka]RE[W+R]PB[Cho Chikun]PW[Rin Kaiho]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[qp];W[cc];B[fq];W[dn];B[kq];W[qj];B[ci] ;W[iq];B[dq];W[cq];B[cr];W[br];B[cp];W[bq];B[ip];W[nq];B[hq] ;W[qq];B[pq];W[pp];B[pr];W[qr];B[rp];W[oq];B[po];W[op];B[rr] ;W[or];B[rq];W[ps];B[ql];W[qf];B[qh];W[rh];B[nc];W[qn];B[rn] ;W[ck];B[cf];W[fc];B[mr];W[mq];B[lr];W[on];B[dr];W[ep];B[fp] ;W[di];B[cj];W[dj];B[bk];W[ch];B[cl];W[dk];B[bm];W[bn];B[bh] ;W[bi];B[bj];W[bg];B[cg];W[ah];B[dh];W[eh];B[bh];W[qo];B[qm] ;W[ch];B[dg];W[dl];B[bf];W[cm];B[bl];W[pn];B[ro];W[kc];B[qe] ;W[pf];B[rf];W[rg];B[re];W[eg];B[qi];W[ri];B[pj];W[qk];B[pk] ;W[rl];B[rm];W[oh];B[pi];W[qg];B[nf];W[rk];B[ol];W[lf];B[nh] ;W[sj];B[jf];W[mc];B[nd];W[nb];B[ob];W[jd];B[jh];W[mb];B[fd] ;W[de];B[bd];W[cd];B[bc];W[df];B[bh];W[he];B[cb];W[db];B[bb] ;W[ff];B[fo];W[en];B[le];W[eq];B[er];W[ig];B[jg];W[jj];B[ld] ;W[oe];B[na];W[ne];B[md];W[ni];B[eb];W[da];B[ec];W[fb];B[ic] ;W[id];B[kb];W[jb];B[jc];W[ib];B[dc];W[ea];B[hc];W[ka];B[hb] ;W[ed];B[kd];W[lb])goban-1.1.orig/games/M-63-6.mgt0000644000175000017500000000222006252627042013545 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-09-20,21]ID[63/6]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan];B[qd];W[dc];B[pq];W[co];B[od];W[qn];B[qp];W[qk];B[ce] ;W[cg];B[dq];W[ep];B[eq];W[fp];B[gq];W[de];B[jd];W[cf];B[cq] ;W[pc];B[pd];W[qh];B[cm];W[dn];B[dk];W[oc];B[qc];W[mc];B[nd] ;W[lc];B[jb];W[le];B[gc];W[dm];B[dl];W[cj];B[gl];W[fn];B[dj] ;W[ci];B[lp];W[kf];B[bp];W[bo];B[gj];W[bl];B[cl];W[bm];B[hq] ;W[nq];B[mp];W[lr];B[kq];W[kr];B[pn];W[jq];B[qm];W[qf];B[ng] ;W[ie];B[id];W[he];B[fb];W[eb];B[ed];W[dd];B[ec];W[db];B[ff] ;W[hg];B[nc];W[nb];B[ob];W[kb];B[mb];W[lb];B[gd];W[ma];B[rg] ;W[qg];B[rf];W[rh];B[re];W[or];B[pa];W[qr];B[rk];W[rl];B[ql] ;W[rm];B[pk];W[qj];B[rn];W[rj];B[sm];W[sk];B[pr];W[ps];B[rr] ;W[ir];B[ig];W[if];B[hh];W[gg];B[jg];W[kd];B[jp];W[iq];B[lh] ;W[gh];B[hi];W[ni];B[mj];W[hm];B[ip];W[ho];B[nj];W[hl];B[km] ;W[jl];B[kl];W[ij];B[ib];W[li];B[lg];W[ei];B[di];W[dh];B[gf] ;W[hf];B[eh];W[fi];B[fk];W[mi];B[jh];W[eg];B[lj];W[oq];B[qq] ;W[oo];B[op];W[np];B[no];W[pl];B[pm];W[qo];B[ro];W[nn];B[mo] ;W[ol];B[po];W[oj];B[ns];W[mq];B[hr];W[is];B[os];W[ms];B[qs] ;W[lq];B[oi];W[nk];B[ki];W[oh];B[pi];W[nh];B[ph];W[og];B[pg] ;W[of];B[pf];W[kj])goban-1.1.orig/games/Hon-96-3.sgf0000644000175000017500000000227406243540650014100 0ustar alal( ; EV[51st Honinbo title] RO[3] PW[Ryu Shikun] WR[9 dan] PB[Cho Chikun] BR[9 dan] KM[5.5] DT[1996-06-25] PC[Japan] RE[W+R] ; B[pd];W[dd];B[qp];W[dq];B[oq]; W[qj];B[cf];W[ch];B[dn];W[cl];B[co];W[fp];B[fn];W[bp];B[gp];W[fq]; B[ef];W[fd];B[cj];W[eh];B[bh];W[bg];B[cg];W[bi];B[dh];W[ci];B[di]; W[bj];B[hc];W[ge];B[jd];W[el];B[bf];W[ei];B[ej];W[dg];B[dj];W[eg]; B[ag];W[ck];B[fj];W[gl];B[df];W[gi];B[gf];W[hh];B[cc];W[cd];B[bd]; W[ie];B[ig];W[je];B[kd];W[ke];B[ld];W[kg];B[gj];W[hj];B[hk];W[gk]; B[fi];W[fh];B[ij];W[hi];B[ii];W[ik];B[hl];W[ih];B[jh];W[ji];B[jj]; W[jg];B[ki];W[hm];B[il];W[hg];B[hf];W[if];B[gm];W[fm];B[gn];W[im]; B[jl];W[jm];B[io];W[kl];B[jk];W[kn];B[kp];W[hq];B[iq];W[hp];B[ho]; W[np];B[nq];W[ff];B[mk];W[nm];B[ok];W[lp];B[lq];W[mp];B[mq];W[po]; B[qk];W[qo];B[rp];W[pp];B[pq];W[rk];B[ql];W[rl];B[qm];W[rn];B[rm]; W[sm];B[pj];W[qi];B[mn];W[mm];B[op];W[oo];B[lo];W[lk];B[lj];W[mj]; B[mi];W[ko];B[no];W[jp];B[mo];W[ip];B[jo];W[kq];B[lp];W[ml];B[on]; W[nk];B[nj];W[mk];B[em];W[fl];B[ol];W[ni];B[oj];W[mh];B[li];W[eo]; B[en];W[cn];B[cm];W[bn];B[bm];W[bo];B[lm];W[ln];B[qg];W[pg];B[kk]; W[do];B[qf];W[ph];B[ng];W[nh];B[mg];W[lh];B[oh];W[og];B[oi];W[pe]; B[qe];W[me];B[om];W[fo];B[ne];W[nd];B[le];W[oe] ) goban-1.1.orig/games/M-94-2.mgt0000644000175000017500000000307306252627044013556 0ustar alal(;GM[1]SZ[19]DT[1994-09-21,22]KM[5.5]RO[2]PC[Tokuyama, Yamaguchi]PB[Kobayashi Koichi]PW[Rin Kaiho]TM[8 hours each]RE[B+R]FF[3]ID[94/2]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dp];B[pq];W[dd];B[qo];W[jp];B[cn];W[cl];B[cq] ;W[dq];B[cp];W[do];B[bn];W[em];B[fc];W[id];B[cf];W[ee];B[cc] ;W[dc];B[cd];W[dg];B[de];W[ed];B[ef];W[df];B[ce];W[gd];B[ff] ;W[di];B[db];W[ge];B[eb];W[nq];B[eh];W[dh];B[hh];W[hg];B[ih] ;W[gh];B[gi];W[fi];B[hj];W[gj];B[hi];W[gg];B[gk];W[fj];B[lq] ;W[lp];B[kp];W[ko];B[kq];W[mp];B[jq];W[ip];B[gr];W[li];B[lk] ;W[cr];B[br];W[er];B[cs];W[ds];B[dr];W[hp];B[hq];W[cr];B[bs] ;W[qq];B[pr];W[kk];B[kl];W[jk];B[lj];W[kj];B[kn];W[ll];B[lo] ;W[jo];B[ml];W[lm];B[mn];W[pp];B[qp];W[po];B[rq];W[mk];B[mj] ;W[mm];B[nm];W[nl];B[km];W[om];B[nn];W[ol];B[ln];W[ml];B[op] ;W[il];B[im];W[hm];B[nj];W[on];B[in];W[no];B[gp];W[hn];B[ho] ;W[go];B[io];W[fp];B[gq];W[jl];B[iq];W[oq];B[pn];W[oo];B[gn] ;W[gl];B[md];W[qd];B[qc];W[qe];B[pc];W[qh];B[fo];W[ql];B[lf] ;W[kg];B[lg];W[kh];B[dn];W[nf];B[of];W[nh];B[og];W[ng];B[qg] ;W[rg];B[ph];W[qf];B[oe];W[pi];B[oh];W[oi];B[ni];W[oj];B[rl] ;W[lc];B[ld];W[kc];B[mc];W[rk];B[rm];W[pg];B[je];W[gb];B[ie] ;W[jf];B[if];W[ig];B[gm];W[hl];B[bh];W[qm];B[mh];W[mi];B[dl] ;W[dm];B[cm];W[dk];B[bl];W[el];B[bj];W[rn];B[qn];W[ro];B[rp] ;W[sl];B[rd];W[re];B[mb];W[lb];B[hc];W[gc];B[la];W[ka];B[jc] ;W[jb];B[jd];W[ma];B[ib];W[ia];B[ob];W[rc];B[rb];W[sd];B[sb] ;W[or];B[qr];W[mr];B[lr];W[hb];B[ic];W[cj];B[bk];W[fb];B[ne] ;W[kf];B[mf];W[nk];B[na];W[ec];B[la];W[en];B[eo];W[ma];B[ni] ;W[nj];B[la];W[co];B[bo];W[ma];B[pm];W[pl];B[la];W[bi];B[ai] ;W[ma];B[ci])goban-1.1.orig/games/T-07-3.mgt0000644000175000017500000000164006262641616013560 0ustar alal(;SZ[19]EV[7th Tengen match]KM[5.5]SO[Go world 27]PB[Kato Masao]BR[9d, Tengen & Oza]PW[Kobayashi Koichi]WR[9d]DT[1981-12-10]RO[Game 3]RE[B+R];B[pd];W[dp];B[pp];W[dc];B[pj];W[de];B[jd];W[nq];B[lq];W[qq];B[qp];W[pq];B[op];W[nr];B[mo];W[qf];B[qe];W[pf];B[nd];W[qh];B[qj];W[oi];B[nk];W[mf];B[nh];W[oe];B[od];W[oj];B[ok];W[mi];B[mh];W[oh];B[fp];W[li];B[dn];W[fq];B[gq];W[eq];B[gp];W[ld];B[ec];W[ed];B[fc];W[db];B[fd];W[lb];B[nb];W[hd];B[ef];W[id];B[gf];W[cg];B[je];W[hf];B[jc];W[ib];B[jb];W[hg];B[dh];W[jg];B[kg];W[kf];B[jf];W[kh];B[ch];W[lg];B[lc];W[dg];B[eg];W[bh];B[bi];W[bg];B[ei];W[fh];B[eh];W[bp];B[bn];W[bj];B[ai];W[dj];B[ci];W[fk];B[dk];W[ik];B[gr];W[cn];B[co];W[cm];B[bo];W[dm];B[do];W[cj];B[ej];W[ek];B[bl];W[dl];B[cp];W[bm];B[am];W[bk];B[gj];W[gk];B[hh];W[gg];B[ee];W[dd];B[gh];W[ge];B[fe];W[gb];B[ig];W[if];B[ih];W[fg];B[jh];W[kg];B[hj];W[jl];B[fb];W[ie];B[ff];W[ia];B[hb];W[kc];B[mc];W[kb];B[kd];W[fa];B[ea];W[ha];B[le])goban-1.1.orig/games/T-15-2.mgt0000644000175000017500000000161206424742074013555 0ustar alal(;SZ[19]EV[Tengen 15th match]RO[Game 2]DT[1989]PW[Rin Kaiho]RE[W+R]US[JBvR]SO[Go 26/6]GC[132 moves]PB[Cho Chikun];B[qc];W[dd];B[cq];W[pp];B[nq];W[pn];B[pr];W[qq];B[kq];W[dn];B[ep];W[cj];B[fc];W[hc];B[cc];W[cd];B[dc];W[ed];B[fb];W[ge];B[ql];W[cp];B[pf];W[bq];B[dq];W[br];B[hp];W[lp];B[lq];W[ph];B[ol];W[np];B[oq];W[qm];B[rl];W[nh];B[nf];W[mk];B[nm];W[lm];B[mn];W[op];B[ln];W[rm];B[km];W[lh];B[lf];W[pc];B[pd];W[oc];B[qb];W[od];B[oe];W[lc];B[kk];W[me];B[mf];W[jh];B[cl];W[dp];B[eo];W[eq];B[fq];W[er];B[fr];W[dk];B[dl];W[el];B[em];W[fl];B[cn];W[dr];B[jc];W[jd];B[ic];W[id];B[hb];W[kc];B[ii];W[jl];B[kl];W[jj];B[hk];W[do];B[dm];W[fm];B[en];W[ij];B[hj];W[il];B[hl];W[hm];B[fj];W[in];B[di];W[ci];B[ji];W[kj];B[ih];W[gi];B[fi];W[gh];B[ch];W[bh];B[cg];W[bg];B[cf];W[bf];B[gg];W[fh];B[fe];W[fd];B[gf];W[eh];B[he];W[gd];B[if];W[ef];B[ce];W[be];B[ke];W[kb];B[ib];W[pb];B[nd];W[nc];B[md];W[mc];B[eg];W[fg];B[ff];W[df])goban-1.1.orig/games/Hon-83-4.mgt0000644000175000017500000000275206045540440014103 0ustar alal (;GM[1]SZ[19]DT[1983-06-22,23]FF[3]PC[Oshima]RE[W+R]PB[Cho Chikun]PW[Rin Kaiho]BS[0]WS[0]KM[5.5];B[pd];W[cc];B[pq];W[dp];B[fq];W[po];B[cn];W[dn];B[dm] ;W[en];B[em];W[co];B[cm];W[fn];B[cq];W[bo];B[dq];W[di];B[dk] ;W[hn];B[cf];W[fd];B[bi];W[hq];B[ep];W[np];B[go];W[gn];B[ip] ;W[hp];B[ho];W[io];B[iq];W[ir];B[hr];W[jo];B[jr];W[jq];B[is] ;W[jp];B[ir];W[qf];B[pi];W[nc];B[pf];W[pg];B[of];W[qe];B[qd] ;W[og];B[nd];W[oc];B[od];W[lc];B[ng];W[oh];B[qm];W[ro];B[om] ;W[nh];B[mg];W[mh];B[qh];W[qg];B[oj];W[lg];B[lf];W[kf];B[kg] ;W[lh];B[ke];W[jf];B[le];W[jc];B[je];W[jg];B[qb];W[hd];B[ge] ;W[gd];B[im];W[in];B[rn];W[nk];B[oo];W[pp];B[op];W[oq];B[nq] ;W[or];B[no];W[qq];B[nr];W[pr];B[mp];W[gk];B[km];W[qj];B[qi] ;W[ml];B[ln];W[ik];B[rp];W[so];B[qo];W[qp];B[qn];W[rq];B[sn] ;W[sp];B[cd];W[dc];B[ej];W[pn];B[pl];W[fh];B[gj];W[hj];B[gi] ;W[jl];B[jm];W[gl];B[hi];W[ii];B[id];W[ic];B[ih];W[jh];B[ei] ;W[ef];B[kl];W[dh];B[cg];W[kk];B[jj];W[ji];B[bc];W[bb];B[bd] ;W[cj];B[bj];W[ck];B[bk];W[pb];B[pc];W[ob];B[rd];W[lq];B[jk] ;W[kj];B[nj];W[mj];B[lr];W[kr];B[ks];W[kq];B[mq];W[md];B[me] ;W[mn];B[mo];W[nm];B[ko];W[fo];B[eh];W[dg];B[ee];W[fe];B[ed] ;W[ec];B[gp];W[ab];B[cp];W[do];B[il];W[ar];B[rg];W[rf];B[sg] ;W[br];B[cr];W[qa];B[ra];W[pa];B[rb];W[fp];B[gq];W[pe];B[kc] ;W[kb];B[kd];W[lb];B[oe];W[pm];B[qk];W[ok];B[pk];W[sf];B[rh] ;W[cl];B[bl];W[bn];B[bm];W[ie];B[fg];W[gg];B[he];W[jd];B[eg] ;W[df];B[ff];W[dd];B[hg];W[fk];B[ce];W[de];B[hl];W[hk];B[dl] ;W[ig];B[hh];W[bs];B[cs];W[bp];B[ll];W[lk];B[ol];W[mm];B[bq] ;W[aq];B[fm];W[gm])goban-1.1.orig/games/T-09-1.mgt0000644000175000017500000000344306262651546013566 0ustar alal(;SZ[19]EV[9th Tengen match]PB[Awaji Shuzo]BR[8d]PW[Kataoka Satoshi]WR[Tengen]KM[5.5]SO[Go world]RO[Game 1]DT[1983-11-07]PC[Nagoya]RE[W+0.5];B[pd];W[dc];B[dq];W[pp];B[ce];W[ci];B[fe];W[gc];B[ck];W[ei];B[hd];W[gd];B[ge];W[he];B[hc];W[gb];B[jd];W[ie];B[hb];W[ee];B[fg];W[de];B[hg];W[je];B[kd];W[jg];B[dg];W[cg];B[dh];W[ch];B[di];W[dj];B[cj];W[cf];B[fi];W[dk];B[cl];W[fk];B[ec];W[eb];B[db];W[cc];B[hi];W[do];B[dl];W[eq];B[fm];W[dp];B[cq];W[fp];B[bo];W[pj];B[fb];W[ed];B[ea];W[fd];B[ga];W[pf];B[lf];W[kh];B[gl];W[mh];B[cb];W[bb];B[hp];W[gn];B[fn];W[dr];B[cr];W[hq];B[ip];W[iq];B[jp];W[bp];B[jq];W[bn];B[er];W[fr];B[ds];W[gp];B[gr];W[fs];B[gq];W[fq];B[ir];W[bs];B[nd];W[co];B[og];W[pg];B[oh];W[ph];B[oj];W[pk];B[ok];W[oi];B[ni];W[pi];B[nh];W[mg];B[of];W[lj];B[ji];W[mf];B[le];W[gh];B[gg];W[ij];B[hj];W[mk];B[mj];W[jj];B[jh];W[ki];B[ol];W[mi];B[nj];W[jl];B[pl];W[qd];B[qc];W[pe];B[pc];W[rd];B[nq];W[oq];B[np];W[qo];B[kg];W[lg];B[kf];W[rc];B[rl];W[nr];B[mr];W[or];B[rj];W[ri];B[rn];W[ro];B[df];W[ef];B[eg];W[oe];B[rb];W[od];B[oc];W[md];B[mc];W[ne];B[nc];W[me];B[ld];W[no];B[pn];W[mq];B[mp];W[lq];B[lp];W[kr];B[so];W[sp];B[sn];W[rp];B[bd];W[bc];B[bf];W[bg];B[bi];W[be];B[ae];W[cd];B[be];W[ag];B[ah];W[bj];B[fc];W[ad];B[ac];W[ab];B[ff];W[dd];B[ba];W[ad];B[br];W[af];B[es];W[oo];B[qk];W[qj];B[sj];W[qn];B[qm];W[si];B[sm];W[ii];B[eo];W[ep];B[aq];W[hh];B[fh];W[ig];B[bm];W[hk];B[gk];W[ho];B[jn];W[im];B[gs];W[sb];B[ra];W[bk];B[bl];W[bh];B[gi];W[jr];B[js];W[is];B[hs];W[lr];B[in];W[hm];B[kl];W[ll];B[km];W[ln];B[lm];W[mn];B[mm];W[nm];B[ml];W[ko];B[kp];W[lk];B[hl];W[ik];B[gm];W[hn];B[kk];W[il];B[kn];W[lo];B[nl];W[dn];B[om];W[em];B[el];W[ao];B[nn];W[mo];B[fo];W[go];B[ih];W[hh];B[on];W[id];B[ic];W[bq];B[ar];W[kj];B[ak];W[ai];B[hf];W[ks];B[cp];W[ap];B[hr];W[is];B[ms];W[ns];B[js];W[ca];B[da];W[is];B[al];W[aj];B[js];W[aa];B[ca];W[an];B[is])goban-1.1.orig/games/Hon-74-7.sgf0000644000175000017500000000226206243711072014073 0ustar alal( ; GM[1] FF[3] DT[1974-07-17,18] SZ[19] PB[Takemiya Masaki] PW[Ishida Yoshio] ID[29/7] PC[Atami] KM[4.5] RE[W+R] ;B[pd];W[dc];B[pp];W[dq];B[pj];W[do];B[de];W[ce];B[dd] ;W[cd];B[ec];W[cf];B[df];W[eb];B[cc];W[db];B[cg];W[bc];B[dg] ;W[fc];B[cm];W[nq];B[en];W[co];B[eq];W[fp];B[dr];W[cq];B[hq] ;W[ck];B[dk];W[dj];B[ek];W[cl];B[dm];W[ej];B[fj];W[eh];B[fi] ;W[ei];B[ff];W[fh];B[ci];W[cj];B[hf];W[fk];B[gk];W[fl];B[gl] ;W[fm];B[ep];W[dl];B[eo];W[cr];B[em];W[el];B[jq];W[gg];B[ie] ;W[ih];B[kf];W[qq];B[pq];W[pr];B[or];W[qr];B[oq];W[ro];B[qn] ;W[hn];B[jn];W[hp];B[ip];W[jm];B[km];W[qo];B[po];W[pn];B[qm] ;W[kl];B[lm];W[im];B[ll];W[io];B[iq];W[jo];B[ko];W[hd];B[gf] ;W[kk];B[lk];W[kj];B[mi];W[lh];B[mg];W[nr];B[os];W[kp];B[jp] ;W[pm];B[ql];W[mh];B[nh];W[ng];B[li];W[kh];B[lp];W[oh];B[ni] ;W[nf];B[bf];W[nd];B[bd];W[cb];B[be];W[qc];B[pc];W[qd];B[pe] ;W[qe];B[pf];W[qf];B[pg];W[qg];B[me];W[ph];B[ne];W[jc];B[qi] ;W[qh];B[rn];W[qp];B[er];W[lc];B[nc];W[md];B[le];W[ri];B[rj] ;W[sh];B[bn];W[bo];B[dp];W[ar];B[go];W[gn];B[og];W[rk];B[qk] ;W[sj];B[qb];W[rb];B[gp];W[qj];B[cp];W[bp];B[rj];W[oo];B[on] ;W[qj];B[pi];W[oi];B[oj];W[om];B[nn];W[ob];B[gd];W[gc];B[kc] ;W[kb];B[pb];W[oc];B[kd];W[id];B[ra];W[sb];B[jb];W[mb]) goban-1.1.orig/games/Hon-94-6.mgt0000644000175000017500000000241206045540456014107 0ustar alal (;GM[1]SZ[19]DT[1994-07-12,13]RE[W+R]PW[Kataoka Satoshi]PB[Cho Chikun]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[dp];W[cp];B[eq] ;W[cn];B[dn];W[dm];B[cq];W[dr];B[bq];W[cr];B[cm];W[cl];B[br] ;W[er];B[bm];W[bn];B[fq];W[bp];B[bl];W[fr];B[ck];W[em];B[fo] ;W[gq];B[gp];W[hq];B[fm];W[fl];B[gm];W[en];B[eo];W[ek];B[ch] ;W[gl];B[dl];W[el];B[im];W[hm];B[hn];W[hl];B[jn];W[jk];B[hp] ;W[jq];B[cf];W[nc];B[fc];W[pf];B[nd];W[md];B[ne];W[oc];B[pe] ;W[qb];B[ee];W[ph];B[qf];W[qg];B[of];W[pg];B[nh];W[pk];B[qm] ;W[rf];B[jj];W[kj];B[lf];W[ci];B[di];W[dj];B[cj];W[ei];B[dh] ;W[ji];B[db];W[kd];B[me];W[ld];B[hc];W[qq];B[qp];W[pq];B[oq] ;W[rp];B[ro];W[rr];B[op];W[od];B[oe];W[ic];B[hd];W[id];B[li] ;W[ql];B[rm];W[or];B[nr];W[pr];B[lq];W[rl];B[ao];W[ap];B[ib] ;W[jb];B[sp];W[rq];B[an];W[ar];B[ol];W[pl];B[pm];W[nj];B[qc] ;W[rb];B[jh];W[ih];B[ki];W[ij];B[jg];W[hb];B[gb];W[ia];B[hh] ;W[ig];B[hg];W[hf];B[bs];W[jf];B[kf];W[mi];B[lj];W[cs];B[kk] ;W[mh];B[jj];W[ii];B[nk];W[kh];B[lh];W[kg];B[lg];W[fg];B[am] ;W[aq];B[gf];W[he];B[ge];W[gg];B[jl];W[ok];B[mk];W[kp];B[lp] ;W[ko];B[eh];W[fi];B[fh];W[gh];B[ir];W[iq];B[kq];W[jp];B[jr] ;W[io];B[ho];W[ng];B[hr];W[gr];B[sl];W[sk];B[lm];W[ik];B[sm] ;W[rk];B[mg];W[ni];B[og];W[oh];B[qe];W[ns];B[mr];W[fe];B[gd] ;W[ff];B[fd];W[ef];B[df];W[eb];B[fb];W[cb])goban-1.1.orig/games/T-09-2.mgt0000644000175000017500000000352506262654634013571 0ustar alal(;SZ[19]EV[9th Tengen match]PB[Kataoka Satoshi]BR[Tengen]PW[Awaji Shuzo]WR[8d]KM[5.5]SO[Go world 36]RO[Game 2]DT[1983-11-16]PC[Nihon Ki-in]RE[W+4.5];B[qd];W[qp];B[cp];W[cc];B[oq];W[oc];B[ep];W[cj];B[kc];W[of];B[qg];W[ic];B[ke];W[ie];B[kg];W[oh];B[ki];W[de];B[pc];W[pe];B[qe];W[pb];B[qb];W[pd];B[qc];W[oj];B[po];W[pp];B[op];W[oo];B[qo];W[pr];B[pm];W[no];B[pq];W[qq];B[or];W[rr];B[ps];W[ro];B[rn];W[rp];B[nm];W[lp];B[lr];W[lj];B[ln];W[kj];B[mp];W[jf];B[ng];W[nh];B[nc];W[od];B[nb];W[kf];B[ob];W[mg];B[ej];W[dh];B[eh];W[eg];B[fh];W[fg];B[gh];W[gg];B[ii];W[hq];B[jq];W[er];B[cr];W[jr];B[kr];W[ho];B[cl];W[fo];B[el];W[jp];B[iq];W[ip];B[ir];W[hr];B[jb];W[ib];B[di];W[ci];B[qm];W[qr];B[bk];W[dj];B[ei];W[bh];B[hg];W[hf];B[ig];W[ol];B[om];W[mq];B[np];W[lq];B[mr];W[lo];B[mo];W[le];B[ld];W[je];B[me];W[kd];B[lf];W[lg];B[ke];W[jd];B[fp];W[gp];B[fr];W[kn];B[lm];W[dm];B[dl];W[fm];B[dn];W[qi];B[pg];W[le];B[md];W[mf];B[ia];W[ha];B[ja];W[hb];B[ai];W[eo];B[do];W[ah];B[km];W[jn];B[fq];W[em];B[cm];W[kq];B[js];W[rh];B[rg];W[qk];B[og];W[nf];B[rl];W[sg];B[rj];W[qj];B[rk];W[se];B[gl];W[hs];B[gr];W[li];B[gm];W[il];B[fl];W[hk];B[fn];W[rb];B[kh];W[ml];B[nl];W[nk];B[pl];W[qs];B[os];W[gj];B[in];W[jm];B[hn];W[go];B[en];W[ij];B[hi];W[kl];B[ll];W[fj];B[dk];W[fk];B[ek];W[bj];B[aj];W[lk];B[hj];W[gk];B[jj];W[jk];B[ik];W[hl];B[ok];W[mk];B[sb];W[sc];B[ra];W[sa];B[dg];W[ch];B[sb];W[nr];B[ns];W[sa];B[gf];W[cg];B[sb];W[ck];B[bl];W[sa];B[df];W[ef];B[sb];W[is];B[jr];W[sa];B[sq];W[sr];B[sb];W[lc];B[lb];W[sa];B[cf];W[bf];B[sb];W[nq];B[mm];W[sa];B[io];W[jo];B[sb];W[gs];B[fs];W[sa];B[ce];W[cd];B[sb];W[ls];B[ms];W[sa];B[be];W[bd];B[sb];W[qn];B[pn];W[sa];B[ae];W[ad];B[sb];W[mn];B[nn];W[sa];B[kp];W[ko];B[sb];W[ij];B[rc];W[ji];B[pk];W[sd];B[rf];W[sf];B[jh];W[jj];B[pi];W[pj];B[ph];W[oi];B[lh];W[mh];B[if];W[he];B[ri];W[qh];B[si];W[sh];B[so];W[sp];B[sn];W[jg];B[ih];W[gi];B[hh];W[re];B[qf];W[jc];B[mc];W[ne])goban-1.1.orig/games/Hon-62-4.sgf0000644000175000017500000000274006243707774014104 0ustar alal( ; DT[1962-] EV[17th Honinbo] RO[4] KM[4.5] BR[Honinbo] WR[9 dan] PB[Sakata Eio] PW[Handa Dogen] RE[B+9.5] ;B[qc];W[dd];B[qp];W[dq];B[oq];W[qj];B[co];W[ck];B[dp] ;W[eq];B[cq];W[cr];B[bq];W[gp];B[iq];W[qm];B[cf];W[be];B[di] ;W[ep];B[dn];W[ek];B[dl];W[dk];B[fi];W[gk];B[fc];W[ee];B[hi] ;W[gd];B[ic];W[gc];B[bc];W[ce];B[gb];W[db];B[fd];W[fe];B[eb] ;W[ec];B[ge];W[eh];B[gf];W[ei];B[od];W[pg];B[of];W[lp];B[ho] ;W[gn];B[ij];W[io];B[lr];W[lg];B[pi];W[qi];B[le];W[og];B[ng] ;W[li];B[mh];W[lh];B[nf];W[lk];B[mj];W[oi];B[pj];W[ph];B[oj] ;W[lj];B[ni];W[qf];B[hp];W[hn];B[in];W[jo];B[jn];W[kn];B[km] ;W[ln];B[ko];W[kp];B[lm];W[ik];B[mn];W[lo];B[jk];W[jl];B[kl] ;W[jm];B[ml];W[gh];B[hk];W[kk];B[jj];W[hl];B[il];W[im];B[hh] ;W[kr];B[mr];W[lq];B[ro];W[ea];B[fb];W[gg];B[hg];W[ff];B[hd] ;W[br];B[bm];W[bl];B[cl];W[bk];B[re];W[qe];B[rd];W[rn];B[pl] ;W[qd];B[rc];W[pm];B[ol];W[nm];B[om];W[qo];B[po];W[pn];B[qn] ;W[hf];B[he];W[qo];B[rp];W[bp];B[bo];W[cm];B[am];W[aq];B[cp] ;W[dm];B[ap];W[nr];B[nq];W[mq];B[or];W[oo];B[qn];W[mm];B[ll] ;W[qo];B[pp];W[nn];B[on];W[oh];B[no];W[mo];B[op];W[nh];B[mi] ;W[nl];B[mk];W[ql];B[rg];W[rf];B[sf];W[rh];B[se];W[nk];B[nj] ;W[pd];B[pc];W[rj];B[fj];W[ik];B[hj];W[en];B[eo];W[fo];B[qn] ;W[rm];B[cn];W[el];B[ej];W[dj];B[fh];W[fg];B[ed];W[dc];B[fk] ;W[fl];B[ar];W[ls];B[ns];W[oe];B[ne];W[qg];B[sg];W[pe];B[ok] ;W[mn];B[al];W[ak];B[fa];W[da];B[dr];W[er];B[bs];W[ds];B[sh] ;W[si];B[qk];W[rk];B[sn];W[sm];B[so];W[il];B[pk];W[do] C[218 moves complete. Each side connects one ko.] ;B[aq] ;W[eo] ) goban-1.1.orig/games/M-64-1.mgt0000644000175000017500000000323306252627042013546 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1964-07-28,29]FF[3]ID[64/1]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+4]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[ce];W[oc];B[md];W[ne];B[pf] ;W[qc];B[pd];W[pc];B[nd];W[od];B[oe];W[nf];B[nb];W[nc];B[mc] ;W[ob];B[ph];W[lf];B[jd];W[gc];B[hd];W[de];B[df];W[ee];B[cd] ;W[cc];B[cg];W[qn];B[pk];W[qq];B[qp];W[pp];B[rq];W[qr];B[po] ;W[op];B[qo];W[rr];B[pn];W[mp];B[hc];W[gb];B[kq];W[hq];B[ko] ;W[dn];B[jg];W[oj];B[pj];W[oh];B[pi];W[kh];B[nq];W[oq];B[or] ;W[pr];B[jh];W[ki];B[cl];W[dl];B[dq];W[cp];B[dk];W[ck];B[dm] ;W[el];B[cn];W[em];B[cm];W[cj];B[do];W[en];B[co];W[dp];B[eo] ;W[ep];B[fo];W[ej];B[bi];W[ci];B[bh];W[bj];B[fg];W[gm];B[ho] ;W[gp];B[go];W[iq];B[rc];W[rb];B[rd];W[mb];B[lb];W[na];B[fk] ;W[ek];B[hm];W[hl];B[il];W[im];B[hn];W[ik];B[jl];W[jk];B[kl] ;W[kk];B[ll];W[hh];B[gd];W[hb];B[ib];W[gh];B[bc];W[bb];B[ec] ;W[eb];B[fc];W[fb];B[dd];W[np];B[oi];W[if];B[jf];W[gf];B[ff] ;W[mj];B[mq];W[bd];B[be];W[lp];B[kp];W[jr];B[mr];W[lc];B[rp] ;W[ns];B[kr];W[nr];B[ld];W[kc];B[kd];W[kb];B[ie];W[ni];B[ad] ;W[ab];B[fp];W[fq];B[bp];W[bq];B[ao];W[aq];B[og];W[of];B[pe] ;W[nh];B[gl];W[hk];B[fm];W[fl];B[gn];W[gk];B[hp];W[gq];B[sb] ;W[om];B[pm];W[ra];B[fh];W[fi];B[dh];W[ic];B[jc];W[jb];B[di] ;W[dj];B[ia];W[ip];B[ji];W[ln];B[lo];W[mn];B[kn];W[ok];B[ng] ;W[mg];B[pg];W[bl];B[bm];W[hi];B[io];W[jj];B[sr];W[gg];B[kf] ;W[le];B[ke];W[kg];B[me];W[mf];B[ol];W[nl];B[pl];W[mk];B[nm] ;W[ml];B[nn];W[eh];B[ei];W[ch];B[eg];W[bg];B[ag];W[ai];B[bf] ;W[am];B[an];W[al];B[js];W[is];B[ks];W[lm];B[km];W[ha];B[id] ;W[oo];B[on];W[jp];B[ms];W[os];B[jo];W[gm];B[fn];W[lq];B[lr] ;W[ap];B[bo];W[ge];B[fe];W[ig];B[jq];W[ir];B[lk];W[lj];B[ac] ;W[he];B[ii];W[ij];B[gl];W[rs];B[gm])goban-1.1.orig/games/M-62-l03.sgf0000644000175000017500000000355606252641302013775 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Sakata Eio] BR[9 dan] PW[Go Seigen] WR[9 dan] DT[1962-08-05, 06] PC[Tokyo] RE[W+J] SZ[19] KM[5] ;B[qc];W[dc];B[qp];W[op];B[oq];W[nq];B[pq];W[np];B[po] ;W[dq];B[co];W[fp];B[jp];W[cf];B[ck];W[pd];B[pc];W[od];B[re] ;W[cm];B[pf];W[ld];B[jd];W[hc];B[jb];W[mg];B[nf];W[mf];B[ne] ;W[mc];B[jf];W[kg];B[fc];W[oh];B[fe];W[he];B[kf];W[me];B[hf] ;W[ie];B[kd];W[if];B[jg];W[ig];B[jh];W[nd];B[db];W[ec];B[de] ;W[fb];B[cc];W[cd];B[ce];W[bc];B[cb];W[bd];B[dd];W[eb];B[be] ;W[bb];B[ch];W[hp];B[jn];W[nn];B[cq];W[cr];B[dp];W[bq];B[eq] ;W[cp];B[dr];W[cq];B[ep];W[bo];B[en];W[hn];B[dl];W[il];B[km] ;W[ko];B[kp];W[kl];B[lm];W[dm];B[em];W[el];B[fl];W[ek];B[gm] ;W[hm];B[fj];W[om];B[nm];W[jo];B[io];W[lo];B[ho];W[gn];B[in] ;W[ip];B[gp];W[jr];B[on];W[go];B[gq];W[iq];B[mn];W[no];B[lp] ;W[mo];B[ol];W[pm];B[nl];W[pp];B[qo];W[qq];B[qr];W[rq];B[rr] ;W[nr];B[rp];W[hi];B[hr];W[ki];B[kr];W[lr];B[lb];W[ob];B[kh] ;W[li];B[lh];W[mh];B[js];W[is];B[ir];W[jq];B[hs];W[kq];B[lq] ;W[ks];B[hq];W[is];B[pi];W[js];B[ph];W[oj];B[pj];W[mb];B[kc] ;W[fo];B[do];W[ej];B[fk];W[ei];B[fi];W[ci];B[bi];W[dh];B[cg] ;W[fh];B[gh];W[cj];B[bj];W[cl];B[bk];W[gi];B[fg];W[eh];B[dk] ;W[gg];B[bn];W[ib];B[ic];W[id];B[hb];W[jc];B[ii];W[hj];B[ic] ;W[qe];B[qf];W[jc];B[kk];W[ij];B[ic];W[rd];B[qd];W[jc];B[jj] ;W[jk];B[ic];W[pe];B[rc];W[jc];B[lk];W[ji];B[ic];W[rf];B[sd] ;W[jc];B[ih];W[hh];B[ic];W[bm];B[ao];W[ap];B[bp];W[jc];B[aq] ;W[ic];B[fq];W[of];B[kj];W[mj];B[ll];W[oi];B[gf];W[hg];B[ok] ;W[ae];B[ad];W[ac];B[dj];W[ra];B[eg];W[bf];B[df];W[pr];B[sq] ;W[or];B[rb];W[af];B[bg];W[ba];B[dg];W[qa];B[qq];W[rg];B[qh] ;W[sb];B[pb];W[pa];B[jl];W[gl];B[fm];W[oc];B[qg];W[ge];B[ff] ;W[fd];B[ed];W[gc];B[og];W[ng];B[ik];W[hk];B[nj];W[ni];B[ag] ;W[ad];B[ps];W[sa];B[sc];W[se];B[sf];W[sg];B[se];W[os];B[qs] ;W[gh];B[di];W[eo];B[dn];W[mk];B[nk];W[oo];B[pn];W[kn];B[jm] ;W[pg];B[jk];W[og] C[282 moves complete.] ) goban-1.1.orig/games/M-62-l16.sgf0000644000175000017500000000214506252641356014003 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[9 dan] PB[Hashimoto Utaro] PW[Handa Dogen] RE[B+R] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[qn];B[qp];W[qk];B[do] ;W[co];B[cn];W[cp];B[dm];W[en];B[dn];W[ep];B[eo];W[fp];B[fo] ;W[go];B[ci];W[lq];B[ce];W[ed];B[ef];W[di];B[ch];W[gn];B[kp] ;W[lp];B[ko];W[jr];B[hp];W[gp];B[lo];W[op];B[kq];W[kr];B[mp] ;W[oq];B[nr];W[mo];B[mq];W[lr];B[or];W[mn];B[hq];W[ip];B[io] ;W[iq];B[ho];W[jn];B[jo];W[hr];B[km];W[qf];B[ic];W[cd];B[be] ;W[of];B[ll];W[bd];B[on];W[ml];B[ol];W[lm];B[mk];W[kl];B[lk] ;W[kn];B[jm];W[in];B[ln];W[mm];B[no];W[hn];B[jl];W[gq];B[qi] ;W[pi];B[nl];W[jq];B[qj];W[pj];B[rk];W[ql];B[qh];W[ph];B[qg] ;W[pg];B[rf];W[ok];B[gl];W[gj];B[ik];W[gh];B[hi];W[ff];B[md] ;W[eg];B[mf];W[mh];B[nk];W[rl];B[rj];W[ro];B[rp];W[nj];B[ni] ;W[mi];B[mj];W[oj];B[gc];W[df];B[dj];W[pc];B[pd];W[qc];B[ob] ;W[re];B[qe];W[rd];B[se];W[pe];B[pf];W[pp];B[qq];W[qf];B[od] ;W[jc];B[id];W[jd];B[je];W[ke];B[kf];W[ib];B[hb];W[rg];B[pf] ;W[ie];B[jf];W[qf];B[sf];W[sd];B[pf];W[hd];B[oe];W[hc];B[nh] ;W[ng];B[mg];W[oh];B[nf];W[oi];B[nh];W[og];B[sn]C[157 moves complete.]) goban-1.1.orig/games/Hon-97-3.mgt0000644000175000017500000000275706363326752014127 0ustar alal( ; EV[52nd Honinbo title] RO[3rd game] PB[Kato Masao] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[2/3 June 1997] PC[Japan] RE[W+16.5] ;B[qd];W[dc];B[dp];W[qp];B[ce];W[ed];B[oc];W[oq];B[ci];W[qj] ;B[jp];W[jc];B[qh];W[hq];B[io];W[ho];B[hn];W[go];B[in];W[dn] ;B[en];W[cq];B[dq];W[cp];B[do];W[co];B[em];W[jq];B[kq];W[jr] ;B[cn];W[bn];B[dm];W[bm];B[oo];W[pn];B[nq];W[ip];B[kp];W[nr] ;B[or];W[mq];B[np];W[pr];B[ql];W[gn];B[gm];W[qe];B[pd];W[ol] ;B[mr];W[os];B[pk];W[kn];B[lm];W[ln];B[mn];W[mm];B[ml];W[nm] ;B[km];W[pi];B[ok];W[nk];B[nj];W[mk];B[ph];W[oi];B[rj];W[rk] ;B[qk];W[ri];B[qi];W[pj];B[sj];W[si];B[nh];W[oh];B[og];W[pg] ;B[ni];W[sk];B[rj];W[sj];B[oj];W[rj];B[qg];W[pf];B[qf];W[pe] ;B[re];W[ng];B[of];W[oe];B[nf];W[ne];B[mf];W[rf];B[rg];W[jm] ;B[lk];W[sg];B[sf];W[rh];B[sh];W[hm];B[im];W[sg];B[ir];W[rf] ;B[iq];W[lj];B[mj];W[nl];B[kk];W[kj];B[jk];W[ll];B[jg];W[kl] ;B[il];W[lf];B[mg];W[df];B[cf];W[cr];B[dr];W[lr];B[kr];W[ds] ;B[es];W[cs];B[er];W[dg];B[cg];W[if];B[ig];W[hf];B[hg];W[gg] ;B[jf];W[je];B[ke];W[jd];B[gh];W[fg];B[bc];W[mp];B[mb];W[bb] ;B[cc];W[cb];B[kb];W[jb];B[ei];W[ck];B[cl];W[bl];B[bj];W[bk] ;B[de];W[ee];B[ja];W[ia];B[ka];W[hb];B[le];W[ek];B[fk];W[rd] ;B[rc];W[se];B[rm];W[sc];B[rb];W[qm];B[qn];W[pm];B[rl];W[rn] ;B[ab];W[sb];B[dd];W[eb];B[ra];W[lc];B[lb];W[sn];B[ej];W[fh] ;B[fi];W[dh];B[cj];W[nc];B[nb];W[od];B[pc];W[dk];B[cm];W[ch] ;B[bh];W[me];B[mc];W[ld];B[kf];W[aj];B[ai];W[ak];B[el];W[ko] ;B[lp];W[lo];B[lq];W[ms];B[jl];W[jn];B[eh];W[eg];B[nd];W[md] ;B[nc];W[ls];B[ks];W[jo];B[hp];W[ba] ) goban-1.1.orig/games/M-93-5.mgt0000644000175000017500000000254206252627044013560 0ustar alal(;GM[1]DT[1993-10-20,21]FF[3]PB[Otake Hideo]PW[Kobayashi Koichi]PC[ ]RE[W+R]SZ[19]KM[5.5]ID[93/5]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[cp];W[qp];B[oq];W[kq];B[on];W[qm];B[iq] ;W[ko];B[io];W[km];B[ol];W[pk];B[kk];W[ok];B[ml];W[mn];B[nn] ;W[mm];B[nl];W[np];B[op];W[po];B[oo];W[jk];B[jj];W[jl];B[ij] ;W[hl];B[ep];W[kj];B[mj];W[ki];B[kl];W[in];B[mh];W[kg];B[hn] ;W[im];B[gj];W[ke];B[jh];W[kh];B[qq];W[rq];B[rr];W[qh];B[rp] ;W[di];B[gf];W[hg];B[hf];W[ig];B[gg];W[gh];B[fh];W[fi];B[jg] ;W[if];B[jf];W[ie];B[je];W[jd];B[id];W[hh];B[kf];W[lf];B[kd] ;W[jc];B[le];W[hd];B[kc];W[ji];B[ic];W[jb];B[hb];W[ih];B[ke] ;W[kb];B[lb];W[lc];B[mc];W[me];B[ld];W[md];B[lc];W[mg];B[nd] ;W[ne];B[oe];W[fc];B[ib];W[dl];B[cf];W[ce];B[eh];W[ei];B[ef] ;W[dg];B[dh];W[df];B[ch];W[ci];B[ee];W[de];B[ed];W[ec];B[gd] ;W[ge];B[he];W[fg];B[fe];W[eg];B[ii];W[gi];B[lh];W[lg];B[ng] ;W[hj];B[lj];W[ik];B[rh];W[ri];B[rg];W[ro];B[sq];W[pi];B[qg] ;W[pg];B[pf];W[qf];B[og];W[ph];B[rf];W[qe];B[re];W[gq];B[hp] ;W[dq];B[cq];W[fp];B[fo];W[eq];B[dp];W[gp];B[go];W[hr];B[cm] ;W[cl];B[dm];W[bm];B[bn];W[em];B[bl];W[dn];B[am];W[eo];B[fn] ;W[cn];B[bm];W[en];B[ir];W[fr];B[kr];W[lr];B[jq];W[lq];B[ls] ;W[nr];B[gm];W[qd];B[qc];W[bj];B[dr];W[er];B[ea];W[fb];B[db] ;W[dc];B[fa];W[ga];B[gb];W[cb];B[rn];W[rm];B[so];W[qn];B[qo] ;W[rk];B[gl];W[ek];B[nf];W[hi];B[mf];W[cr];B[br];W[ds];B[gc] ;W[bs];B[ar];W[bp])goban-1.1.orig/games/Hon-81-3.mgt0000644000175000017500000000301506045540434014074 0ustar alal (;GM[1]SZ[19]DT[1981-06-16,17]FF[3]PC[Kagoshima]RE[W+3.5]PW[Cho Chikun]PB[Takemiya Masaki]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dc];B[pj];W[de];B[jd];W[nq];B[lq] ;W[qq];B[qp];W[pq];B[op];W[rq];B[np];W[nr];B[cj];W[ch];B[cn] ;W[gp];B[lo];W[lc];B[le];W[nc];B[ne];W[pb];B[qc];W[jb];B[eh] ;W[di];B[dk];W[ei];B[fi];W[fh];B[cc];W[cd];B[gh];W[fg];B[gg] ;W[gf];B[db];W[gi];B[fj];W[hi];B[ih];W[ii];B[ig];W[ki];B[ec] ;W[dd];B[ff];W[eg];B[fl];W[ge];B[mi];W[gk];B[fk];W[hm];B[go] ;W[fp];B[ho];W[lh];B[ji];W[jj];B[jh];W[kj];B[ld];W[kc];B[nh] ;W[ng];B[og];W[mg];B[je];W[oh];B[of];W[ni];B[ph];W[mh];B[nj] ;W[oi];B[pi];W[mj];B[oj];W[li];B[bb];W[bc];B[cb];W[bo];B[dq] ;W[cq];B[eq];W[ep];B[cr];W[er];B[rp];W[sp];B[so];W[sq];B[rn] ;W[bn];B[hk];W[cm];B[hl];W[iq];B[qb];W[fb];B[bd];W[be];B[ac] ;W[eb];B[ib];W[ic];B[hc];W[hb];B[gb];W[ia];B[fc];W[ij];B[im] ;W[ml];B[gc];W[fe];B[ir];W[hr];B[jq];W[jr];B[ip];W[hq];B[kr] ;W[is];B[gm];W[oc];B[km];W[nm];B[om];W[jl];B[jm];W[on];B[nn] ;W[mn];B[no];W[ol];B[pm];W[ll];B[pl];W[qa];B[ra];W[pa];B[pc] ;W[ob];B[mr];W[rb];B[ns];W[ps];B[rs];W[or];B[rc];W[sa];B[oq] ;W[rr];B[mq];W[qs];B[bi];W[bh];B[bk];W[dn];B[gj];W[od];B[oe] ;W[sc];B[rd];W[hp];B[jp];W[ln];B[kn];W[fn];B[cl];W[bm];B[em] ;W[dm];B[kl];W[kk];B[jc];W[id];B[hd];W[ae];B[ie];W[ai];B[aj] ;W[ah];B[ib];W[ic];B[ci];W[bl];B[dl];W[gn];B[hn];W[ga];B[fa] ;W[ea];B[id];W[ib];B[kg];W[hf];B[if];W[ad];B[bc];W[mo];B[mp] ;W[nk];B[ok];W[nl];B[lm];W[mm];B[en];W[fo];B[md];W[mc];B[mf] ;W[lg];B[lf];W[kd];B[ke];W[eo];B[ks];W[js];B[al];W[am];B[ak] ;W[fm];B[el];W[ej];B[sd];W[ra];B[sb];B[sc])goban-1.1.orig/games/Hon-41-2.mgt0000644000175000017500000000305306045540234014067 0ustar alal (;SZ[19]PW[Kato Shin]PB[Sekiyama Riichi]KM[0]TM[13h]RE[B+1]GM[1]FF[3]DT[1941-]BS[0]WS[0];B[qd];W[dd];B[od];W[pp];B[ep];W[cp];B[cq];W[bq];B[dq] ;W[bo];B[jq];W[dm];B[nq];W[qn];B[kc];W[gp];B[en];W[em];B[fn] ;W[ip];B[jp];W[io];B[fm];W[jo];B[fk];W[lq];B[lr];W[mq];B[mr] ;W[np];B[oq];W[op];B[ko];W[kn];B[mp];W[lp];B[lo];W[mo];B[ln] ;W[kp];B[km];W[jl];B[jn];W[in];B[lk];W[qi];B[pj];W[pi];B[oj] ;W[rk];B[jj];W[ij];B[ii];W[hj];B[hl];W[il];B[hm];W[im];B[ji] ;W[jk];B[kk];W[hi];B[el];W[cm];B[fi];W[hg];B[hd];W[mm];B[lm] ;W[pr];B[or];W[os];B[ns];W[ps];B[kq];W[mp];B[pq];W[qq];B[nr] ;W[qr];B[ir];W[hr];B[gr];W[iq];B[jr];W[fh];B[ei];W[ih];B[li] ;W[fg];B[fc];W[ec];B[fd];W[ce];B[df];W[cf];B[jg];W[dg];B[oi] ;W[kd];B[lc];W[pg];B[dh];W[cg];B[of];W[rd];B[rc];W[qe];B[pd] ;W[ie];B[id];W[fb];B[gb];W[jh];B[kh];W[kg];B[kf];W[lg];B[je] ;W[nh];B[oh];W[lh];B[ki];W[og];B[ph];W[qh];B[qg];W[pf];B[rg] ;W[re];B[qj];W[ri];B[rj];W[sj];B[ni];W[ql];B[ng];W[nf];B[mh] ;W[oe];B[pe];W[qf];B[me];W[rb];B[qc];W[sc];B[qb];W[eb];B[sf] ;W[sh];B[hk];W[ik];B[bh];W[ck];B[bj];W[bg];B[ga];W[sb];B[ra] ;W[kl];B[ll];W[ol];B[ne];W[mg];B[nh];W[sg];B[br];W[ar];B[cs] ;W[hq];B[is];W[bk];B[ig];W[hh];B[hf];W[fr];B[fq];W[gq];B[er] ;W[gs];B[nm];W[nl];B[mn];W[nn];B[ml];W[om];B[ff];W[gj];B[fp] ;W[gk];B[gl];W[dl];B[ek];W[eh];B[ci];W[ch];B[di];W[ef];B[ee] ;W[de];B[nk];W[of];B[mf];W[rf];B[qk];W[rl];B[do];W[co];B[dn] ;W[gn];B[cn];W[bn];B[dk];W[bm];B[fa];W[ea];B[gf];W[ed];B[fe] ;W[hn];B[ap];W[bp];B[fo];W[go];B[jm];W[cj];B[ag];W[af];B[ah] ;W[aj];B[bi];W[es];B[ds];W[fs];B[hs];W[gr];B[pl];W[pm];B[pk] ;W[gg];B[gi];W[mm];B[bs];W[nm])goban-1.1.orig/games/Hon-94-3.mgt0000644000175000017500000000322206045540456014104 0ustar alal (;GM[1]SZ[19]PB[Kataoka Satoshi]PW[Cho Chikun]DT[1994-06-09,10]PC[Miyazaki]RE[W+6.5]KM[5.5]FF[3]BS[0]WS[0];B[pd];W[dc];B[pq];W[cp];B[eq];W[po];B[qo];W[qn];B[qp] ;W[hp];B[cf];W[ch];B[cc];W[cd];B[dd];W[bc];B[cb];W[de];B[ed] ;W[ce];B[bb];W[fe];B[ee];W[ef];B[ec];W[df];B[gp];W[gq];B[fp] ;W[dn];B[hq];W[iq];B[hr];W[ip];B[ir];W[jr];B[gr];W[qf];B[pi] ;W[nc];B[pf];W[pg];B[of];W[qe];B[nd];W[og];B[ng];W[nh];B[oh] ;W[qh];B[mg];W[rj];B[oc];W[qc];B[cl];W[cm];B[el];W[pn];B[nq] ;W[ni];B[fm];W[bl];B[mo];W[mm];B[kn];W[kp];B[mk];W[ok];B[jo] ;W[mq];B[np];W[nr];B[or];W[lr];B[ck];W[li];B[bk];W[dr];B[qd] ;W[rd];B[er];W[dq];B[ff];W[fg];B[gf];W[mc];B[rc];W[rb];B[md] ;W[kc];B[ic];W[ib];B[hb];W[jb];B[lh];W[hc];B[nj];W[oj];B[hd] ;W[gc];B[gb];W[gd];B[ge];W[id];B[he];W[jc];B[fd];W[ob];B[pb] ;W[oa];B[jp];W[jq];B[lp];W[in];B[bm];W[bn];B[oi];W[nk];B[mj] ;W[mi];B[ki];W[lj];B[jl];W[ll];B[kk];W[lk];B[ko];W[jm];B[hm] ;W[km];B[im];W[jn];B[io];W[am];B[eh];W[eg];B[bi];W[bh];B[bd] ;W[be];B[ac];W[fh];B[qb];W[sc];B[pa];W[nb];B[ke];W[hn];B[ho] ;W[rn];B[ro];W[ei];B[ds];W[cs];B[es];W[cr];B[nn];W[nm];B[ie] ;W[kj];B[ji];W[hh];B[lb];W[lc];B[ma];W[ia];B[ka];W[jf];B[je] ;W[ig];B[jj];W[so];B[sp];W[sn];B[gi];W[hi];B[hj];W[ii];B[ij] ;W[sq];B[rp];W[ci];B[on];W[om];B[fj];W[pp];B[qq];W[kf];B[if] ;W[jh];B[gh];W[gg];B[hg];W[hf];B[qg];W[rg];B[hg];W[lq];B[ms] ;W[hf];B[ae];W[fi];B[gj];W[hg];B[bf];W[lf];B[le];W[op];B[oq] ;W[mn];B[no];W[ln];B[gn];W[kl];B[jk];W[mf];B[eo];W[kh];B[nf] ;W[pe];B[od];W[lo];B[kq];W[bj];B[do];W[co];B[ak];W[cj];B[fc] ;W[ic];B[en];W[dk];B[dl];W[ek];B[ej];W[dj];B[fk];W[dm];B[lg] ;W[ra];B[kg];W[jg];B[al];W[bm];B[cg];W[ha];B[fb];W[ga];B[fa] ;W[aj];B[ag];W[em];B[fl];W[ah];B[dg];W[dh];B[ad];W[dp])goban-1.1.orig/games/Hon-56-2.mgt0000644000175000017500000000205706045540244014101 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-06-17,18]BR[Honinbo]WR[8 dan]KM[4.5]RO[2]PC[Tokyo]PB[Takagawa Kaku]PW[Shimamura Toshihiro]RE[W+R]TM[10 h]FF[3];B[pd];W[dp];B[pp];W[ec];B[cd];W[ic];B[gc];W[ee];B[df] ;W[dh];B[dg];W[ch];B[fg];W[gb];B[cn];W[fh];B[gg];W[gh];B[hg] ;W[co];B[dn];W[fo];B[fl];W[cl];B[dl];W[ck];B[hl];W[bf];B[de] ;W[em];B[cq];W[dq];B[bo];W[cp];B[bp];W[bq];B[en];W[fm];B[fn] ;W[gm];B[gn];W[hm];B[dm];W[im];B[fq];W[hq];B[ho];W[jq];B[jo] ;W[lp];B[kn];W[nq];B[qm];W[kl];B[jl];W[jk];B[il];W[jm];B[km] ;W[gl];B[ij];W[gj];B[hj];W[hh];B[ih];W[ll];B[gk];W[fk];B[ik] ;W[hk];B[er];W[dr];B[gk];W[el];B[dk];W[fj];B[gq];W[bm];B[bn] ;W[br];B[hp];W[ig];B[jh];W[if];B[be];W[oe];B[mh];W[od];B[ph] ;W[pe];B[nn];W[pr];B[bh];W[bg];B[bi];W[cj];B[cg];W[bj];B[kf] ;W[qj];B[qg];W[ql];B[pl];W[pk];B[rl];W[rk];B[qk];W[lj];B[li] ;W[ql];B[kc];W[ol];B[qk];W[ki];B[kh];W[ql];B[pm];W[gd];B[pc] ;W[qd];B[qc];W[re];B[nc];W[oc];B[ob];W[rc];B[rb];W[nb];B[pb] ;W[mc];B[nd];W[mb];B[md];W[sb];B[qa];W[ld];B[nf];W[lc];B[rf] ;W[rm];B[qk];W[mi];B[lh];W[ql];B[aq];W[sl];B[ar];W[oa];B[ne] ;W[na];B[pa];W[je])goban-1.1.orig/games/T-07-4.mgt0000644000175000017500000000355706262644144013571 0ustar alal(;SZ[19]EV[7th Tengen match]KM[5.5]SO[Go world 27]PB[Kata Masao]BR[9d]PW[Kobayashi Koichi]WR[9d]RO[Game 4]DT[1981-12-21]PC[Nihon Ki-in]RE[B+2.5];B[pd];W[cq];B[pq];W[dd];B[fp];W[dn];B[jp];W[qo];B[qm];W[oo];B[np];W[pl];B[qp];W[ro];B[ql];W[pk];B[pm];W[om];B[qk];W[pj];B[qi];W[on];B[mo];W[oh];B[qh];W[jc];B[cf];W[be];B[cj];W[bf];B[co];W[cn];B[cp];W[dp];B[bq];W[dq];B[do];W[eo];B[bn];W[bm];B[bo];W[em];B[ep];W[br];B[cm];W[cl];B[ar];W[ap];B[cr];W[bp];B[dr];W[eq];B[fq];W[er];B[es];W[fr];B[gr];W[aq];B[fs];W[bq];B[bs];W[as];B[en];W[fn];B[ar];W[qj];B[ao];W[rj];B[ej];W[qc];B[qd];W[pb];B[pc];W[rb];B[rc];W[qb];B[nc];W[rd];B[re];W[sc];B[fc];W[ec];B[fd];W[cg];B[eg];W[qe];B[pf];W[qf];B[rf];W[qg];B[pg];W[rg];B[pe];W[se];B[kd];W[jd];B[je];W[ie];B[kc];W[jf];B[ke];W[hd];B[eb];W[db];B[ed];W[dc];B[if];W[hf];B[ig];W[hg];B[ge];W[he];B[fh];W[dh];B[gi];W[hi];B[hj];W[ih];B[bl];W[dm];B[bk];W[gl];B[jg];W[jh];B[kg];W[kh];B[lg];W[ph];B[rp];W[sp];B[sq];W[so];B[rq];W[op];B[oq];W[il];B[gb];W[ij];B[hk];W[ik];B[jn];W[nb];B[da];W[ca];B[ea];W[bb];B[hn];W[fk];B[fj];W[hl];B[ek];W[el];B[mc];W[go];B[mm];W[hp];B[ho];W[gp];B[iq];W[hb];B[ib];W[hc];B[ha];W[jb];B[bh];W[hq];B[hr];W[gj];B[gh];W[ic];B[df];W[bg];B[bi];W[ln];B[mn];W[lm];B[ml];W[ll];B[lo];W[mk];B[ng];W[nh];B[mh];W[mi];B[nk];W[nl];B[mj];W[lk];B[ni];W[li];B[nm];W[ol];B[pi];W[oi];B[oj];W[nj];B[po];W[pn];B[ni];W[ff];B[gf];W[nj];B[pp];W[qn];B[ni];W[gg];B[fg];W[nj];B[rh];W[sf];B[ni];W[ei];B[di];W[nj];B[ce];W[cd];B[ni];W[eh];B[fi];W[nj];B[hh];W[gk];B[ni];W[dk];B[dj];W[nj];B[cb];W[cc];B[ni];W[fe];B[gd];W[nj];B[ba];W[og];B[of];W[ok];B[cb];W[nf];B[ca];W[ad];B[ia];W[ga];B[fa];W[ja];B[ga];W[mb];B[lb];W[la];B[kb];W[ka];B[mg];W[oc];B[od];W[ob];B[nd];W[kn];B[ko];W[jm];B[in];W[am];B[bc];W[ab];B[ch];W[dg];B[de];W[bd];B[gc];W[ip];B[gm];W[gn];B[hm];W[al];B[ak];W[ah];B[ai];W[ag];B[ck];W[no];B[dl];W[jq];B[ir];W[dk];B[ii];W[hj];B[dl];W[mp];B[nq];W[dk];B[ma];W[na];B[dl];W[cm];B[dk])goban-1.1.orig/games/T-23-3.mgt0000644000175000017500000000264006445641000013545 0ustar alal( ; FF[4] EV[23rd Tengen title] RO[3] PB[Ryu Shikun] BR[8 dan] PW[Kudo Norio] WR[9 dan] KM[5.5] DT[1997-12-04] PC[Japan] RE[B+F] ;B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df];W[fc] ;B[ck];W[qj];B[fq];W[cn];B[dr];W[cq];B[fo];W[cr];B[kp];W[qn] ;B[np];W[nc];B[qf];W[gf];B[ql];W[rl];B[rk];W[qk];B[rm];W[pl] ;B[qm];W[pm];B[rn];W[qo];B[ro];W[qp];B[qq];W[rp];B[rq];W[oo] ;B[op];W[rj];B[sl];W[pb];B[ed];W[fd];B[md];W[nd];B[mc];W[mb] ;B[lb];W[nb];B[me];W[of];B[qc];W[qb];B[ph];W[ng];B[oi];W[nj] ;B[ni];W[oj];B[rh];W[lg];B[kc];W[dh];B[ff];W[fe];B[fg];W[gg] ;B[fh];W[rb];B[mi];W[pg];B[qg];W[lk];B[ki];W[jg];B[ib];W[dj] ;B[dk];W[ej];B[bi];W[bh];B[bg];W[bj];B[ch];W[cj];B[gh];W[ii] ;B[gj];W[jk];B[rc];W[sc];B[sd];W[sb];B[kf];W[lh];B[mj];W[mk] ;B[kj];W[hi];B[fj];W[ek];B[kk];W[kl];B[jl];W[km];B[ik];W[ko] ;B[hg];W[ne];B[ec];W[eb];B[fb];W[gb];B[db];W[fa];B[cb];W[ic] ;B[hc];W[hd];B[hb];W[hf];B[if];W[bb];B[bc];W[ig];B[hh];W[jc] ;B[jb];W[jf];B[jd];W[id];B[je];W[ie];B[jp];W[cc];B[ba];W[le] ;B[ld];W[jo];B[ip];W[lp];B[lq];W[jj];B[ih];W[il];B[jh];W[ab] ;B[ac];W[kg];B[no];W[lf];B[kd];W[pi];B[oh];W[da];B[aa];W[bb] ;B[ab];W[ea];B[be];W[on];B[hl];W[jm];B[dm];W[cm];B[el];W[bk] ;B[dd];W[sq];B[sr];W[hk];B[sp];W[rd];B[se];W[qe];B[re];W[pe] ;B[qd];W[eo];B[fn];W[fr];B[eq];W[er];B[dq];W[gq];B[gp];W[ds] ;B[gr];W[hq];B[fs];W[hp];B[ho];W[fp];B[es];W[go];B[ep];W[gn] ;B[gp] C[White takes the ko without making a ko threat first and thus looses the game.] ) goban-1.1.orig/games/M-92-3.mgt0000644000175000017500000000366306252640030013550 0ustar alal(;GM[1]VW[]FF[3]DT[1992-09-30,10-01]SZ[19]PB[Kobayashi Koichi]PW[Otake Hideo]PC[Shizuoka]RE[B+1.5]ID[92/3]BS[0]WS[0];B[pd];W[dp];B[pq];W[dc];B[qo];W[ci];B[fq];W[dn];B[jq] ;W[nc];B[kd];W[qc];B[pc];W[qd];B[pe];W[pb];B[ob];W[qb];B[oc] ;W[qf];B[hd];W[fd];B[qh];W[pf];B[of];W[og];B[nf];W[ng];B[pg] ;W[rf];B[pi];W[mf];B[nd];W[oo];B[pn];W[lh];B[me];W[je];B[jd] ;W[he];B[ei];W[gd];B[bi];W[bh];B[cj];W[bj];B[di];W[ch];B[bk] ;W[dj];B[ck];W[ej];B[co];W[do];B[cn];W[cp];B[fj];W[ek];B[aj] ;W[fi];B[mj];W[lo];B[kj];W[pp];B[qp];W[oq];B[pr];W[lq];B[jo] ;W[on];B[cc];W[cd];B[bd];W[bc];B[be];W[cb];B[dg];W[dh];B[eh] ;W[eg];B[fh];W[fg];B[gi];W[gh];B[fi];W[df];B[hh];W[gg];B[ii] ;W[fk];B[fo];W[fn];B[gn];W[fm];B[or];W[nq];B[hc];W[jh];B[ji] ;W[ol];B[kg];W[kh];B[ni];W[oj];B[pk];W[ip];B[jp];W[gp];B[fp] ;W[iq];B[io];W[jr];B[kr];W[hr];B[kq];W[lk];B[lj];W[fr];B[gq] ;W[gr];B[eq];W[dr];B[er];W[es];B[dq];W[cq];B[js];W[ir];B[lp] ;W[ok];B[oi];W[mp];B[ln];W[ko];B[kn];W[mn];B[kp];W[mo];B[nm] ;W[ml];B[om];W[pm];B[pl];W[qm];B[rm];W[ql];B[rl];W[qk];B[pj] ;W[mm];B[kl];W[rk];B[qn];W[ri];B[rh];W[si];B[sk];W[sj];B[sh] ;W[qj];B[qi];W[sl];B[rn];W[sm];B[sn];W[nl];B[sk];W[sl];B[sm] ;W[nn];B[om];W[nm];B[sk];W[nr];B[hl];W[sl];B[sf];W[re];B[sk] ;W[qq];B[rq];W[sl];B[cr];W[ds];B[sk];W[gm];B[fs];W[gs];B[cs] ;W[fs];B[hm];W[sl];B[cg];W[bg];B[sk];W[qr];B[rr];W[sl];B[cf] ;W[bf];B[sk];W[go];B[hp];W[sl];B[hq];W[br];B[sk];W[hn];B[in] ;W[sl];B[ce];W[de];B[sk];W[hk];B[gk];W[gl];B[gj];W[hg];B[rj] ;W[lr];B[mg];W[gb];B[gc];W[fb];B[hb];W[oa];B[na];W[pa];B[nb] ;W[om];B[fc];W[lg];B[lf];W[ih];B[hi];W[ec];B[ah];W[ad];B[eb] ;W[db];B[ga];W[ea];B[ag];W[ae];B[jf];W[ie];B[ke];W[cm];B[bm] ;W[dm];B[if];W[ig];B[hf];W[ge];B[bp];W[bl];B[bn];W[cl];B[al] ;W[bq];B[aq];W[ar];B[ap];W[mh];B[po];W[op];B[ho];W[gn];B[is] ;W[bs];B[kk];W[id];B[ic];W[se];B[dk];W[dl];B[gf];W[ff];B[en] ;W[em];B[mf];W[nh];B[eo];W[ls];B[ks];W[os];B[qs];W[sg];B[rg] ;W[ki];B[im];W[lm];B[km];W[qg];B[ph];W[qe];B[mk];W[ll];W[sf] )goban-1.1.orig/games/Hon-63-6.mgt0000644000175000017500000000155606045540372014110 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-06-15,16]PB[Sakata Eio]PW[Takagawa Kaku]RE[B+R]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[dc];B[pq];W[dq];B[po];W[co];B[ce];W[jq];B[gd] ;W[ed];B[dg];W[cd];B[de];W[bd];B[ck];W[qj];B[ql];W[qg];B[qe] ;W[kc];B[lq];W[jo];B[mc];W[ke];B[me];W[ee];B[jd];W[kd];B[if] ;W[kg];B[ih];W[mf];B[ne];W[dj];B[dk];W[ej];B[cj];W[dh];B[ch] ;W[eh];B[jc];W[cg];B[bh];W[mh];B[pi];W[qi];B[og];W[oi];B[jf] ;W[kf];B[ph];W[pj];B[oj];W[pl];B[ok];W[qm];B[ni];W[ki];B[rl] ;W[rm];B[pm];W[ol];B[qn];W[pk];B[mk];W[om];B[pn];W[mm];B[kk] ;W[jj];B[kb];W[lb];B[jb];W[lc];B[mb];W[ma];B[na];W[la];B[fc] ;W[nb];B[nc];W[oa];B[pb];W[jk];B[dr];W[er];B[rf];W[rg];B[kj] ;W[ig];B[hg];W[jg];B[hh];W[ji];B[km];W[mj];B[mi];W[li];B[nk] ;W[qf];B[re];W[mp];B[mq];W[np];B[oq];W[kl];B[ll];W[jl];B[lm] ;W[lp];B[nn];W[mn];B[no];W[ml];B[lk];W[ln];B[df];W[eb];B[ff] ;W[fl];B[dn];W[do];B[fm];W[cn];B[gl];W[el];B[hk])goban-1.1.orig/games/T-17-2.mgt0000644000175000017500000000332706252627522013563 0ustar alal(;PB[Kato Masao]BR[9 dan]PW[Rin Kaiho]WR[Tengen]DT[1991-11-22]KM[5.5]RE[W+1.5]GM[1]SZ[19]ID[17/2]FF[3];B[pd];W[dd];B[pq];W[cp];B[ep];W[qo];B[pl];W[eo];B[cq] ;W[dp];B[dq];W[fo];B[fq];W[gq];B[gr];W[fp];B[eq];W[hq];B[hr] ;W[iq];B[qp];W[po];B[np];W[on];B[nm];W[mo];B[mp];W[pj];B[ql] ;W[mn];B[nk];W[qf];B[qh];W[rk];B[rl];W[ph];B[qi];W[pi];B[qj] ;W[qg];B[pk];W[oe];B[nc];W[od];B[oc];W[qc];B[pc];W[rd];B[kc] ;W[op];B[oq];W[lp];B[cn];W[bp];B[dn];W[do];B[cj];W[ch];B[ej] ;W[lq];B[ir];W[ro];B[rp];W[fc];B[ko];W[jq];B[km];W[ll];B[lm] ;W[mm];B[ml];W[lo];B[lk];W[el];B[fm];W[em];B[en];W[fn];B[fl] ;W[fk];B[hl];W[ek];B[cl];W[eh];B[fi];W[dk];B[dj];W[gj];B[bi] ;W[gl];B[hm];W[gm];B[bh];W[cf];B[cc];W[dc];B[bf];W[be];B[cg] ;W[dg];B[bg];W[ce];B[ic];W[pb];B[ob];W[nr];B[or];W[nq];B[pp] ;W[oo];B[gb];W[gc];B[hb];W[qb];B[da];W[eb];B[ea];W[cb];B[ij] ;W[qr];B[rr];W[rs];B[sp];W[br];B[bq];W[aq];B[cr];W[jr];B[me] ;W[is];B[er];W[fs];B[es];W[id];B[jd];W[hc];B[jb];W[ie];B[jg] ;W[hg];B[og];W[pg];B[pe];W[of];B[ng];W[pf];B[ni];W[mf];B[nf] ;W[le];B[ld];W[md];B[ne];W[nd];B[mc];W[kf];B[gg];W[gh];B[hh] ;W[ig];B[fh];W[gf];B[gi];W[ff];B[jh];W[lh];B[ke];W[jf];B[lf] ;W[kg];B[qd];W[qe];B[rg];W[rf];B[rh];W[rm];B[sm];W[sn];B[sl] ;W[hs];B[fr];W[li];B[ho];W[kj];B[lj];W[js];B[gs];W[sr];B[rq] ;W[ps];B[os];W[ns];B[pr];W[so];B[qs];W[an];B[bm];W[ps];B[fb] ;W[ca];B[qs];W[jj];B[ii];W[jl];B[kl];W[jk];B[hk];W[mg];B[ae] ;W[ad];B[af];W[bd];B[qq];W[fa];B[ga];W[sf];B[fg];W[eg];B[mi] ;W[bn];B[am];W[co];B[ih];W[in];B[hn];W[jm];B[jn];W[io];B[im] ;W[jo];B[kn];W[ki];B[kp];W[hj];B[kq];W[kr];B[ik];W[ck];B[bk] ;W[qm];B[oj];W[om];B[ol];W[sg];B[sh];W[oa];B[na];W[pa];B[pm] ;W[pn];B[gp];W[nn];B[gn];W[fm];B[ci];W[dh];B[bs];W[ar];B[fa] ;W[db];B[kk];W[hi];B[nl];W[lg];B[le];W[je])goban-1.1.orig/games/M-80-3.mgt0000644000175000017500000000262406252627042013551 0ustar alal(;GM[1]RO[3]PB[Otake Hideo]PW[Cho Chikun]WR[8 Dan]DT[1980-10-01]PC[Izu Nagaoka]RE[B+R]KM[5.5]ID[80/3]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan];B[qd];W[dp];B[cd];W[qp];B[od];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[oq];W[lp];B[np];W[pn];B[jq];W[pq];B[lq] ;W[qi];B[mc];W[ke];B[cn];W[co];B[dn];W[fq];B[qg];W[dk];B[fn] ;W[bo];B[fk];W[di];B[qk];W[qc];B[pc];W[rd];B[rc];W[qe];B[qb] ;W[pg];B[qh];W[pi];B[ph];W[oi];B[oh];W[ni];B[mg];W[nn];B[ok] ;W[pl];B[om];W[on];B[ol];W[ql];B[jd];W[kd];B[hc];W[gb];B[jb] ;W[kb];B[he];W[df];B[jf];W[je];B[hd];W[de];B[fe];W[ge];B[gf] ;W[hb];B[jc];W[ce];B[if];W[hg];B[eb];W[lg];B[mh];W[kg];B[jh] ;W[ki];B[mi];W[li];B[hh];W[mj];B[nj];W[pk];B[lj];W[gg];B[mk] ;W[ic];B[id];W[hf];B[ie];W[kj];B[ij];W[ik];B[hj];W[kl];B[lm] ;W[km];B[ln];W[md];B[jo];W[ig];B[jg];W[ih];B[ji];W[jj];B[ii] ;W[ff];B[il];W[hk];B[jk];W[jl];B[hl];W[gk];B[gj];W[gl];B[gm] ;W[fl];B[el];W[kk];B[fm];W[jk];B[ek];W[fj];B[fi];W[ej];B[gh] ;W[fh];B[eh];W[fg];B[ei];W[dj];B[gi];W[hm];B[eg];W[ee];B[ch] ;W[cl];B[em];W[im];B[bm];W[bl];B[am];W[be];B[bc];W[bg];B[bh] ;W[bj];B[dh];W[al];B[ci];W[cj];B[bi];W[go];B[aj];W[kq];B[kr] ;W[kp];B[mq];W[or];B[nr];W[mf];B[nf];W[ne];B[lf];W[oe];B[kf] ;W[nc];B[mb];W[pe];B[me];W[nd];B[ob];W[pd];B[qc];W[le];B[mf] ;W[nb];B[na];W[la];B[ma];W[ja];B[ia];W[ib];B[ka];W[rf];B[ri] ;W[ja];B[ef];W[fd];B[ka];W[jp];B[lb];W[jr];B[pr];W[qr];B[os] ;W[qf];B[rh];W[og];B[of];W[nh];B[ng];W[cb];B[bb];W[pf];B[pj] )goban-1.1.orig/games/Hon-63-5.mgt0000644000175000017500000000300306045540372014074 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-06-05,06]PB[Takagawa Kaku]PW[Sakata Eio]RE[W+0.5]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[dp];W[qq];B[ce];W[cj];B[gc];W[ed];B[jc] ;W[cd];B[pn];W[oq];B[pj];W[id];B[ic];W[qc];B[pc];W[qd];B[qe] ;W[re];B[rf];W[qf];B[pe];W[rg];B[pf];W[sf];B[qg];W[rf];B[hd] ;W[qh];B[pg];W[df];B[jq];W[fq];B[eq];W[fp];B[dn];W[ip];B[jp] ;W[io];B[jo];W[in];B[km];W[bn];B[cn];W[cq];B[cp];W[er];B[dr] ;W[dq];B[cr];W[ep];B[bq];W[iq];B[cl];W[dh];B[ih];W[ji];B[jh] ;W[li];B[ki];W[kj];B[kh];W[ll];B[ph];W[mn];B[np];W[oo];B[op] ;W[pp];B[nq];W[or];B[po];W[on];B[om];W[mo];B[lp];W[pm];B[qm] ;W[pl];B[ql];W[ol];B[ro];W[rp];B[nr];W[qk];B[rk];W[qj];B[qo] ;W[qp];B[rj];W[ri];B[rm];W[qb];B[pb];W[lh];B[lg];W[mg];B[lj] ;W[mp];B[lq];W[mj];B[mh];W[lk];B[mi];W[lj];B[oi];W[ns];B[ms] ;W[mr];B[mq];W[ls];B[lr];W[ks];B[ms];W[os];B[kr];W[mr];B[jl] ;W[ii];B[hh];W[ms];B[ik];W[hi];B[jj];W[gh];B[gg];W[gi];B[nk] ;W[jm];B[lm];W[mm];B[kl];W[pk];B[no];W[nm];B[lo];W[kg];B[lf] ;W[hg];B[ig];W[hf];B[if];W[ie];B[he];W[gf];B[jf];W[ir];B[nj] ;W[ij];B[jk];W[sj];B[sk];W[nl];B[jn];W[im];B[ln];W[pa];B[oa] ;W[qa];B[ob];W[qi];B[ff];W[fg];B[ge];W[bk];B[gg];W[bl];B[bo] ;W[ef];B[eb];W[db];B[fh];W[eg];B[bm];W[hk];B[fc];W[dl];B[fl] ;W[hl];B[fn];W[ck];B[el];W[cm];B[an];W[dm];B[fo];W[ek];B[fk] ;W[fj];B[eq];W[dq];B[da];W[ca];B[ea];W[cb];B[si];W[sh];B[go] ;W[ec];B[fb];W[gp];B[ej];W[dk];B[gj];W[fi];B[gk];W[fe];B[gf] ;W[fd];B[hj];W[ei];B[ho];W[pi];B[oj];W[eo];B[en];W[hp];B[nn] ;W[so];B[sn];W[sp];B[jr];W[js];B[om];W[ds];B[cs];W[es];B[on] ;W[al];B[sj];W[am];B[bn];W[gm];B[do])goban-1.1.orig/games/Hon-72-5.sgf0000644000175000017500000000263706243710366014102 0ustar alal(;FF[3] GM[1] SZ[19] PB[Ishida Yoshio] PW[Rin Kaiho] ID[27/5] DT[1972-06-16,17] KM[4.5] RE[W+R] BS[0] WS[0] ;B[qd];W[dc];B[dp];W[qq];B[ce];W[od];B[oc];W[nc];B[pc] ;W[dh];B[fe];W[gc];B[dk];W[nd];B[qf];W[fg];B[dd];W[cc];B[ec] ;W[eb];B[fb];W[fc];B[ed];W[db];B[he];W[id];B[ie];W[jd];B[je] ;W[ke];B[gj];W[hi];B[ei];W[gh];B[kf];W[fq];B[dq];W[ip];B[oq] ;W[qo];B[kq];W[fo];B[jo];W[iq];B[jj];W[di];B[dj];W[hj];B[hk] ;W[ik];B[hl];W[cg];B[ci];W[bf];B[en];W[er];B[qm];W[ji];B[lf] ;W[ki];B[kd];W[le];B[kc];W[hd];B[me];W[ld];B[md];W[lc];B[mc] ;W[lb];B[mb];W[kb];B[jg];W[nb];B[na];W[mf];B[mg];W[nf];B[ob] ;W[oh];B[mh];W[oi];B[mj];W[ok];B[om];W[ne];B[ma];W[qk];B[nk] ;W[rm];B[pg];W[og];B[pj];W[oj];B[rl];W[pe];B[rg];W[ql];B[pl] ;W[pk];B[rn];W[ol];B[pm];W[nl];B[ml];W[nm];B[oo];W[lk];B[lj] ;W[kj];B[ll];W[kk];B[mk];W[mn];B[nn];W[mm];B[kl];W[il];B[jm] ;W[mp];B[im];W[mr];B[pr];W[fn];B[gm];W[em];B[dn];W[fm];B[dm] ;W[hn];B[hm];W[fk];B[io];W[no];B[on];W[pq];B[nq];W[mq];B[pp] ;W[qr];B[or];W[ro];B[qp];W[rp];B[rr];W[rq];B[qs];W[rs];B[ss] ;W[ho];B[kp];W[jr];B[gk];W[cr];B[bq];W[kh];B[lg];W[ps];B[os] ;W[sq];B[rk];W[sr];B[eh];W[eg];B[be];W[ih];B[qj];W[so];B[qn] ;W[kr];B[bh];W[ae];B[ad];W[af];B[df];W[dg];B[bc];W[ge];B[gf] ;W[gd];B[ff];W[ef];B[cd];W[hf];B[cb];W[bb];B[hg];W[ee];B[fd] ;W[if];B[ig];W[jf];B[gg];W[fi];B[fj];W[fh];B[ba];W[ca];B[ab] ;W[aa];B[lr];W[lq];B[ba];W[ej];B[ek];W[aa];B[ms];W[ls];B[ba] ;W[cj];B[cb];W[bj];B[da];W[bm];B[dr];W[ds];B[gb];W[bn]) goban-1.1.orig/games/M-88-5.mgt0000644000175000017500000000255506252627042013566 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Kato Masao]DT[1988-10-19,20]RE[W+R]ID[88/5]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[hq];B[dj];W[ch];B[eh];W[cf];B[ho];W[fq];B[lc];W[ld];B[kd] ;W[ke];B[kc];W[jc];B[md];W[le];B[mc];W[je];B[ci];W[dh];B[ei] ;W[oe];B[pe];W[od];B[pc];W[nb];B[nd];W[oc];B[mf];W[of];B[nf] ;W[og];B[mh];W[pb];B[qb];W[pg];B[oi];W[qf];B[rd];W[qc];B[rc] ;W[qi];B[rf];W[rg];B[qe];W[qg];B[pa];W[rk];B[ql];W[qk];B[pl] ;W[jh];B[jj];W[dm];B[iq];W[ki];B[lk];W[lj];B[mj];W[mi];B[ni] ;W[li];B[nh];W[mk];B[nj];W[kk];B[ll];W[rl];B[ih];W[ji];B[ii] ;W[ij];B[jk];W[kl];B[ik];W[kj];B[hj];W[km];B[ml];W[mm];B[nl] ;W[hp];B[io];W[ko];B[lq];W[ec];B[cc];W[cd];B[if];W[ig];B[hg] ;W[jg];B[hb];W[ib];B[ge];W[gc];B[hc];W[hd];B[gd];W[gb];B[eb] ;W[fb];B[dc];W[db];B[id];W[ha];B[cn];W[dn];B[cp];W[cq];B[co] ;W[do];B[bq];W[cr];B[cm];W[qq];B[pq];W[qp];B[qo];W[ro];B[rn] ;W[pr];B[or];W[qr];B[po];W[rp];B[rm];W[br];B[bi];W[dl];B[cl] ;W[mp];B[lp];W[mo];B[lo];W[nm];B[om];W[nq];B[nr];W[bh];B[ah] ;W[ag];B[ai];W[bf];B[he];W[kb];B[lb];W[la];B[ed];W[ea];B[ob] ;W[ee];B[ef];W[fd];B[hr];W[gr];B[ir];W[fl];B[bp];W[go];B[gn] ;W[fn];B[fo];W[gp];B[fm];W[en];B[gl];W[fk];B[kn];W[lm];B[pk] ;W[na];B[jm];W[dk];B[ln];W[ck];B[bk];W[cj];B[bj];W[gk];B[hk] ;W[fi];B[sg];W[sh];B[sf];W[qj];B[gi];W[ej];B[fh];W[ff];B[fg] ;W[fe];B[gf];W[aq];B[ap];W[ar];B[di];W[fj])goban-1.1.orig/games/T-15-5.mgt0000644000175000017500000000230506424744260013557 0ustar alal(;SZ[19]GC[183 moves]EV[15th Tengen match]RO[5th game]DT[1989]PB[Rin Kaiho]PW[Cho Chikun]KM[5.5]RE[B+R]US[JBvR]SO[G0 27/1];B[pd];W[dp];B[pq];W[dc];B[de];W[ce];B[cf];W[cd];B[fq];W[cn];B[dg];W[dj];B[ec];W[dd];B[ed];W[ee];B[df];W[fe];B[eb];W[db];B[hc];W[fg];B[di];W[id];B[ic];W[jd];B[hd];W[he];B[kb];W[cj];B[ei];W[fk];B[gi];W[if];B[ii];W[eq];B[er];W[dr];B[ep];W[dq];B[jp];W[po];B[pm];W[qq];B[qr];W[qp];B[or];W[no];B[on];W[oo];B[mp];W[qm];B[ql];W[pl];B[rm];W[qn];B[qk];W[ol];B[pi];W[mo];B[lo];W[ln];B[ko];W[qc];B[qd];W[pc];B[nc];W[oc];B[od];W[nb];B[mb];W[mc];B[nd];W[lb];B[lc];W[ma];B[md];W[mb];B[kc];W[hh];B[hi];W[ih];B[fp];W[ji];B[jj];W[kj];B[kk];W[jk];B[ij];W[ki];B[lk];W[jl];B[hl];W[km];B[nk];W[ml];B[dm];W[en];B[ej];W[ek];B[dk];W[dl];B[ck];W[bk];B[cl];W[bl];B[cm];W[bm];B[bc];W[bb];B[ab];W[ea];B[gb];W[ba];B[el];W[dn];B[bj];W[ci];B[ch];W[bi];B[af];W[bf];B[ad];W[bg];B[bh];W[aj];B[ag];W[be];B[ae];W[ah];B[ai];W[fd];B[bj];W[fb];B[lg];W[mh];B[lh];W[nq];B[mq];W[mi];B[mk];W[le];B[ke];W[lf];B[kf];W[mg];B[mf];W[kg];B[nl];W[nm];B[rd];W[rc];B[oh];W[nf];B[me];W[og];B[pg];W[pf];B[qf];W[qg];B[ph];W[hp];B[hq];W[gr];B[fr];W[nr];B[np];W[iq];B[ip];W[mr];B[lr];W[lq];B[lp];W[kq];B[kr];W[jq];B[hr];W[jr];B[oq];W[ls];B[ns];W[gp];B[gq])goban-1.1.orig/games/M-62-l08.sgf0000644000175000017500000000320706252641462014002 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Sugiuchi Masao] BR[9 dan] PW[Sakata Eio] WR[9 dan] DT[1962-] PC[Japan] RE[W+R] KM[5] ;B[qd];W[cc];B[pq];W[co];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[dq];W[ep];B[eq];W[fp];B[gq];W[gp];B[hq] ;W[di];B[fd];W[df];B[id];W[qf];B[ck];W[cj];B[dk];W[fj];B[fm] ;W[fk];B[cn];W[cq];B[hp];W[dp];B[hn];W[dn];B[dm];W[cm];B[ei] ;W[ej];B[dj];W[ci];B[el];W[bn];B[eh];W[dg];B[gh];W[hj];B[hm] ;W[ih];B[ff];W[jk];B[oe];W[kc];B[pg];W[qg];B[jc];W[nc];B[nd] ;W[mc];B[ob];W[je];B[jd];W[kd];B[ke];W[le];B[kf];W[md];B[kh] ;W[ge];B[fe];W[gl];B[gm];W[ie];B[hd];W[he];B[gd];W[lg];B[kg] ;W[hh];B[lf];W[mf];B[kj];W[kk];B[lk];W[ll];B[mh];W[jb];B[ib] ;W[lb];B[jj];W[ij];B[ml];W[lm];B[ja];W[ka];B[kb];W[ne];B[od] ;W[jb];B[ce];W[de];B[kb];W[ng];B[nh];W[jb];B[dh];W[ch];B[kb] ;W[og];B[mk];W[gi];B[cd];W[dd];B[bc];W[bb];B[cb];W[dc];B[ab] ;W[ba];B[be];W[db];B[bg];W[jb];B[gf];W[cg];B[ad];W[fq];B[fr] ;W[jp];B[jm];W[jn];B[kn];W[ln];B[ko];W[hf];B[kb];W[lo];B[la] ;W[kp];B[eb];W[bh];B[bf];W[bj];B[bk];W[fb];B[ec];W[ea];B[cr] ;W[mg];B[oi];W[ph];B[ok];W[or];B[oq];W[gr];B[er];W[hr];B[ir] ;W[ho];B[io];W[ip];B[iq];W[go];B[jo];W[km];B[in];W[il];B[lp] ;W[jr];B[gs];W[lq];B[mp];W[mq];B[hs];W[np];B[mo];W[no];B[mn] ;W[mm];B[nn];W[nm];B[on];W[om];B[oo];W[nj];B[bq];W[bp];B[cp] ;W[bl];B[ak];W[fc];B[ed];W[aj];B[ap];W[cq];B[hg];W[ig];B[cp] ;W[bo];B[mj];W[li];B[lh];W[oj];B[pj];W[pk];B[rn];W[rm];B[so] ;W[sm];B[re];W[ma];B[na];W[ka];B[pi];W[nk];B[la];W[pn];B[op] ;W[ka];B[jl];W[kl];B[la];W[nr];B[lr];W[ka];B[gb];W[jb];B[gc] ;W[fa];B[kb];W[kr];B[mr];W[jb];B[ga];W[da];B[kb];W[kq];B[pr] ;W[jb];B[ia];W[ls];B[os];W[ms];B[js];W[hl] C[246 moves complete.] ) goban-1.1.orig/games/T-17-3.mgt0000644000175000017500000000260106252627522013556 0ustar alal(;PB[Rin Kaiho]BR[Tengen]PW[Kato Masao]WR[9 dan]DT[1991]RE[W+R]KM[5.5]GM[1]SZ[19]ID[17/3]FF[3];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[jp];W[ne];B[pg] ;W[pf];B[qf];W[qe];B[pe];W[of];B[qg];W[qd];B[pc];W[qc];B[qb] ;W[rb];B[pb];W[rf];B[rg];W[ra];B[nb];W[mb];B[md];W[nd];B[ob] ;W[re];B[mc];W[lb];B[kc];W[kb];B[jc];W[jb];B[ke];W[oh];B[ib] ;W[hb];B[ic];W[ia];B[fc];W[hc];B[hd];W[fb];B[ec];W[eb];B[dc] ;W[gc];B[gd];W[qi];B[ri];W[qj];B[pi];W[pk];B[qk];W[rk] ;B[ql];W[ph];B[rj];W[qh];B[rh];W[rl];B[qm];W[rm];B[qn];W[rn] ;B[ro];W[qo];B[rp];W[po];B[om];W[og];B[sj];W[qp];B[qq];W[pq] ;B[qr];W[op];B[ga];W[ha];B[db];W[ma];B[dh];W[cf];B[cg];W[eg] ;B[eh];W[fg];B[fe];W[dg];B[ch];W[gh];B[ce];W[df];B[bf];W[cd] ;B[bd];W[de];B[be];W[gj];B[mq];W[mp];B[lp];W[mo];B[nq];W[lo] ;B[ok];W[kp];B[kq];W[lq];B[lr];W[jo];B[jq];W[ho];B[gq];W[dk] ;B[go];W[gn];B[fo];W[hp];B[fr];W[eq];B[fq];W[dn];B[hn];W[gm] ;B[in];W[io];B[hl];W[jl];B[gl];W[em];B[hi];W[gi];B[hj];W[jj] ;B[hh];W[hg];B[ik];W[nl];B[ig];W[ol];B[pl];W[pn];B[nk];W[pm] ;B[pk];W[mk];B[ml];W[nm];B[mj];W[lk];B[nj];W[lj];B[mh];W[ih] ;B[hf];W[gg];B[jh];W[ii];B[li];W[ij];B[nf];W[me];B[mf];W[oe] ;B[le];W[oi];B[ea];W[gb];B[co];W[do];B[nh];W[na];B[lp];W[ko] ;B[ck];W[cl];B[bl];W[cj];B[bk];W[cm];B[bm];W[ej];B[bj];W[sg] ;B[sk];W[sh];B[sl];W[cp];B[ki];W[hq];B[hr];W[er];B[bn];W[bo] ;B[es];W[ds];B[fs];W[cr];B[fn];W[fm];B[ao];W[bp];B[pr];W[oq] ;B[kj];W[kk];B[cc];W[qa])goban-1.1.orig/games/Hon-78-5.mgt0000644000175000017500000000274306045540406014112 0ustar alal (;PB[Ishida Yoshio]PW[Kato Masao]DT[1978-06-28,29]PC[Atami]RE[B+5.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[qp];W[cc];B[oq];W[qj];B[ql];W[qg];B[jc] ;W[mc];B[ec];W[de];B[gd];W[jq];B[qf];W[rf];B[qe];W[pb];B[pg] ;W[qh];B[lc];W[md];B[oc];W[ob];B[mb];W[nb];B[lb];W[nc];B[qc] ;W[qb];B[oh];W[oj];B[ol];W[dn];B[hq];W[mq];B[eq];W[dq];B[ep] ;W[dl];B[pi];W[pf];B[ne];W[ph];B[og];W[oi];B[rb];W[me];B[mg] ;W[ke];B[kg];W[ie];B[hd];W[jg];B[kh];W[hg];B[cj];W[ch];B[jf] ;W[kf];B[ig];W[if];B[jh];W[id];B[ic];W[gf];B[cm];W[cl];B[bl] ;W[bn];B[bh];W[bg];B[bm];W[cn];B[bi];W[fr];B[iq];W[er];B[jr] ;W[kq];B[kr];W[lr];B[lp];W[lq];B[io];W[ko];B[cg];W[bf];B[dm] ;W[em];B[el];W[dk];B[ck];W[ej];B[fl];W[am];B[bk];W[fm];B[gl] ;W[gm];B[hl];W[hm];B[im];W[fi];B[mo];W[pq];B[pp];W[il];B[jm] ;W[ik];B[hn];W[go];B[gn];W[fo];B[gj];W[ii];B[ll];W[ml];B[lm] ;W[qq];B[pr];W[qr];B[or];W[rp];B[ro];W[sq];B[op];W[rr];B[hh] ;W[gh];B[hi];W[hj];B[gi];W[fh];B[ih];W[aj];B[dh];W[dg];B[ci] ;W[ei];B[df];W[eg];B[ce];W[cf];B[dd];W[be];B[ee];W[db];B[eb] ;W[cd];B[nk];W[mi];B[ek];W[dj];B[lj];W[pk];B[pl];W[fj];B[rk] ;W[rj];B[re];W[sg];B[gk];W[gq];B[so];W[hr];B[ir];W[sp];B[hs] ;W[gr];B[ff];W[fg];B[ef];W[mj];B[mk];W[li];B[ki];W[nf];B[of] ;W[pc];B[rc];W[od];B[oe];W[ea];B[fa];W[da];B[gb];W[lf];B[dc] ;W[cb];B[mh];W[ld];B[hp];W[sj];B[qk];W[gs];B[qa];W[pa];B[ra] ;W[na];B[jd];W[je];B[kd];W[mf];B[gp];W[fp];B[fn];W[en];B[is] ;W[ge];B[fe];W[ma];B[la];W[sk];B[sl];W[ho];B[in];W[ps];B[os] ;W[qs];B[he];W[hf];B[se];W[nd];B[ok];W[pj];B[sf];W[rg];B[de] ;W[jg])goban-1.1.orig/games/Hon-76-1.sgf0000644000175000017500000000306206243711364014072 0ustar alal( ; EV[31st Honinbo 1976] RO[1] PB[Takemiya Masaki] BR[8 dan] PW[Ishida Yoshio] WR[Honinbo] KM[5.5] DT[1976-] PC[Japan] RE[B+5.5] TM[9 hours each] ;B[pd];W[dc];B[pq];W[dp];B[pk];W[de];B[jd];W[jp];B[cj] ;W[ch];B[cn];W[fp];B[pf];W[po];B[np];W[no];B[mo];W[qq];B[qr] ;W[pr];B[pp];W[qp];B[rr];W[qn];B[or];W[nn];B[lp];W[rk];B[eh] ;W[dn];B[dm];W[co];B[en];W[do];B[lm];W[qi];B[oi];W[hd];B[hp] ;W[em];B[dl];W[ho];B[go];W[gp];B[io];W[hn];B[ip];W[in];B[jo] ;W[fm];B[bn];W[pc];B[oc];W[ob];B[od];W[jc];B[kc];W[ic];B[kd] ;W[mb];B[mc];W[qc];B[nb];W[na];B[nc];W[qb];B[bo];W[bp];B[rd] ;W[rc];B[cd];W[dd];B[cg];W[dg];B[dh];W[bg];B[cf];W[ce];B[bf] ;W[be];B[bh];W[df];B[ci];W[gr];B[hr];W[hs];B[nl];W[pl];B[qk] ;W[rl];B[he];W[ge];B[hf];W[ok];B[ol];W[oj];B[pj];W[pi];B[nj] ;W[oh];B[ni];W[hq];B[jn];W[il];B[ik];W[pg];B[hl];W[im];B[gd] ;W[gc];B[jl];W[gm];B[ir];W[iq];B[jq];W[gq];B[jr];W[jm];B[kl] ;W[mg];B[ng];W[nh];B[mh];W[nf];B[lg];W[og];B[lf];W[cm];B[bm] ;W[id];B[ie];W[dk];B[cl];W[hk];B[hj];W[gk];B[gj];W[km];B[ln] ;W[fk];B[ap];W[bq];B[jb];W[ib];B[ae];W[ad];B[af];W[bd];B[gf] ;W[fe];B[qg];W[rq];B[aq];W[ar];B[ao];W[br];B[rh];W[ri];B[sq] ;W[sp];B[sr];W[rf];B[qf];W[qd];B[re];W[pe];B[of];W[ij];B[jk] ;W[gh];B[hh];W[hi];B[gi];W[oe];B[ne];W[qe];B[mf];W[rg];B[ng] ;W[qh];B[ph];W[qj];B[nk];W[fi];B[ii];W[fj];B[jj];W[el];B[lb] ;W[ja];B[ma];W[oa];B[ro];W[qo];B[rp];W[rn];B[so];W[kb];B[fh] ;W[dj];B[ql];W[sn];B[sp];W[pm];B[qm];W[rm];B[ff];W[ef];B[ck] ;W[mm];B[ml];W[kn];B[ko];W[eg];B[is];W[gs];B[ei];W[fg];B[ej] ;W[ek];B[gg];W[ka];B[la];W[op];B[oq];W[oo];B[om];W[pn] C[228 moves. Black: 8hr 49m White: 7hr 40m.]) goban-1.1.orig/games/Hon-80-5.mgt0000644000175000017500000000223406045540434014077 0ustar alal (;GM[1]SZ[19]DT[1980-07-04,05]PC[Fukuyama]RE[W+R]PB[Kato Masao]PW[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[pk];W[jq];B[jd];W[mp];B[po] ;W[qf];B[re];W[qi];B[qk];W[oi];B[ph];W[pi];B[rf];W[nj];B[nl] ;W[lj];B[fc];W[df];B[cn];W[fp];B[bp];W[cq];B[ck];W[nc];B[oc] ;W[nd];B[of];W[nf];B[ng];W[mf];B[mg];W[oe];B[og];W[pe];B[qg] ;W[qd];B[qc];W[rd];B[rc];W[qe];B[sd];W[lf];B[mi];W[mj];B[kh] ;W[jf];B[db];W[hc];B[hd];W[ic];B[id];W[kb];B[gc];W[pb];B[cc] ;W[ll];B[ji];W[jk];B[hi];W[di];B[kc];W[lc];B[ob];W[pc];B[lb] ;W[jb];B[pa];W[qb];B[rb];W[od];B[qa];W[nb];B[pd];W[bi];B[gp] ;W[go];B[hp];W[fo];B[jp];W[kp];B[iq];W[jr];B[jo];W[in];B[ko] ;W[lp];B[fq];W[eq];B[gr];W[fr];B[gq];W[io];B[ip];W[er];B[mn] ;W[ln];B[lo];W[mo];B[lm];W[mm];B[kn];W[nn];B[ml];W[ln];B[ld] ;W[mc];B[mn];W[nm];B[kl];W[lk];B[im];W[jl];B[jm];W[hl];B[hm] ;W[gm];B[gn];W[fm];B[il];W[ik];B[hk];W[gl];B[ho];W[fn];B[hn] ;W[hr];B[ir];W[is];B[gs];W[hs];B[kq];W[kr];B[js];W[ks];B[hq] ;W[ol];B[cj];W[ci];B[bq];W[qm];B[pm];W[pl];B[ql];W[pn];B[qn] ;W[om];B[rm];W[qo];B[pm];W[pp];B[on];W[oo];B[ro];W[pn];B[qq] ;W[cd];B[cr];W[qm];B[rn];W[or];B[oq];W[js];B[lq];W[lr];B[mq] ;W[mr];B[nq];W[nr];B[pr];W[fs];B[os];W[ln])goban-1.1.orig/games/Hon-55-2.mgt0000644000175000017500000000301506045540244014073 0ustar alal (;GM[1]SZ[19]DT[1955-05-19,20]PW[Takagawa Kaku]RE[W+3.5]PB[Shimamura Toshihiro]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dp];B[pq];W[dd];B[qo];W[kq];B[fq];W[eq];B[fp] ;W[dn];B[iq];W[nq];B[ci];W[ck];B[cf];W[ce];B[df];W[fc];B[cq] ;W[dr];B[bo];W[co];B[cr];W[fr];B[bn];W[gq];B[io];W[gp];B[ko] ;W[no];B[go];W[fo];B[fn];W[eo];B[nm];W[mn];B[km];W[mm];B[nk] ;W[om];B[mp];W[np];B[qm];W[pl];B[ql];W[pk];B[or];W[pp];B[qp] ;W[qk];B[qg];W[ll];B[kc];W[qc];B[pc];W[qd];B[pe];W[qe];B[qb] ;W[rb];B[pb];W[qf];B[pf];W[rg];B[rh];W[qh];B[pg];W[ri];B[hc] ;W[bf];B[bg];W[be];B[ff];W[cm];B[cp];W[gd];B[hd];W[ge];B[if] ;W[hg];B[ig];W[hh];B[ei];W[lh];B[lf];W[nr];B[im];W[mg];B[ph] ;W[sh];B[fb];W[eb];B[gc];W[ed];B[fe];W[fd];B[mf];W[kg];B[kf] ;W[jk];B[gm];W[fk];B[hp];W[dj];B[fh];W[eg];B[fg];W[ef];B[ee] ;W[cg];B[dg];W[ch];B[di];W[bh];B[bi];W[qr];B[qq];W[pr];B[rr] ;W[oq];B[qs];W[ni];B[jh];W[os];B[gb];W[pi];B[ra];W[ki];B[kr] ;W[lr];B[jr];W[nf];B[ng];W[og];B[ne];W[nh];B[rk];W[rj];B[rc] ;W[sd];B[rd];W[re];B[sb];W[rl];B[rm];W[sk];B[gr];W[ep];B[hr] ;W[rs];B[ss];W[sm];B[rn];W[pn];B[sq];W[fa];B[ga];W[ea];B[em] ;W[bm];B[bk];W[an];B[ar];W[gi];B[cj];W[dk];B[ai];W[ah];B[bl] ;W[hl];B[dh];W[ag];B[gl];W[gk];B[il];W[ik];B[ji];W[jg];B[ih] ;W[jf];B[je];W[jj];B[of];W[ii];B[kl];W[kk];B[oh];W[ng];B[oi] ;W[oj];B[ap];W[lp];B[lo];W[mo];B[cl];W[fs];B[ds];W[es];B[cs] ;W[dq];B[po];W[jq];B[gs];W[jp];B[hm];W[hk];B[oo];W[on];B[fj] ;W[ej];B[dl];W[ek];B[fi];W[gj];B[sn];W[sl];B[ls];W[ms];B[ks] ;W[ie];B[he];W[hf];B[id];W[jl];B[jo];W[jm];B[jn];W[op];B[al] ;W[am];B[ao];W[fl];B[dm];W[cn];B[en];W[do];B[qn])goban-1.1.orig/games/Hon-85-2.mgt0000644000175000017500000000231406045540442014077 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Rin Kaiho]DT[1985-05-29,30]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[qp];W[dc];B[fq];W[ip];B[cn];W[dn];B[dm] ;W[en];B[cq];W[co];B[dq];W[cm];B[de];W[dg];B[fe];W[fc];B[hd] ;W[op];B[gc];W[fd];B[ge];W[hq];B[ep];W[pn];B[oq];W[nq];B[pq] ;W[np];B[cc];W[cb];B[bb];W[cd];B[bc];W[dd];B[ce];W[bd];B[be] ;W[ae];B[db];W[bf];B[cg];W[cf];B[df];W[ci];B[bg];W[af];B[ck] ;W[eg];B[ef];W[bj];B[bn];W[bo];B[bm];W[em];B[dl];W[bk];B[dh] ;W[eh];B[di];W[ch];B[ei];W[gh];B[fi];W[gg];B[cj];W[bh];B[bl] ;W[kd];B[ho];W[hm];B[hk];W[gp];B[if];W[eb];B[ca];W[ih];B[md] ;W[je];B[hg];W[gi];B[jf];W[ek];B[el];W[fl];B[fk];W[gk];B[fj] ;W[gj];B[lf];W[dj];B[fm];W[gl];B[fn];W[fo];B[eo];W[do];B[ao] ;W[bp];B[bq];W[gn];B[ap];W[gm];B[nc];W[ro];B[rp];W[qd];B[qe] ;W[re];B[qc];W[rd];B[qf];W[pc];B[pb];W[qh];B[rf];W[mi];B[oi] ;W[pe];B[oc];W[pf];B[rh];W[pg];B[rg];W[qi];B[pk];W[rc];B[rb] ;W[od];B[pc];W[mg];B[pm];W[om];B[ol];W[qm];B[ql];W[pl];B[fg] ;W[fh];B[pm];W[aq];B[an];W[pl];B[ac];W[ad];B[pm];W[nm];B[mj] ;W[lj];B[ni];W[mh];B[mk];W[nl];B[og];W[nf];B[ok];W[rm];B[rl] ;W[me];B[le];W[ri];B[lk];W[kj];B[sm];W[sn];B[on];W[pl];B[bi] ;W[ag];B[pm];W[nk];B[nj];W[pl];B[rj];W[qj];B[pm];W[po];B[sl] ;W[sh];B[qn];W[pl];B[of];W[oe];B[pm];W[rn])goban-1.1.orig/games/M-67-1.sgf0000644000175000017500000000316206252650176013546 0ustar alal( ; GM[1] EV[6th Meijin Title Match] RO[1] PB[Rin Kaiho] BR[Meijin] PW[Sakata Eio] WR[Honinbo] DT[Aug 9/10, 1967] PC[Tokyo] RE[B+2] KM[5] SZ[19] ;B[qd];W[dd];B[oc];W[qq];B[dq];W[co];B[dl];W[dn];B[fp] ;W[bq];B[jq];W[qi];B[np];W[pp];B[qg];W[lq];B[lp];W[mq] ;B[mp];W[nq];B[kq];W[op];B[fc];W[df];B[jd];W[cj];B[fn] ;W[ej];B[qk];W[pj];B[pk];W[nj];B[ok];W[oj];B[ml];W[lj] ;B[kk];W[dc];B[ck];W[bj];B[ji];W[og];B[ee];W[de];B[fk] ;W[hc];B[hd];W[gc];B[fd];W[fb];B[eb];W[gb];B[ec];W[id] ;B[ie];W[gd];B[ge];W[he];B[hf];W[hd];B[gf];W[je];B[if] ;W[kd];B[jc];W[kc];B[jb];W[kb];B[ib];W[ka];B[eh];W[ch] ;B[ke];W[jf];B[kf];W[jg];B[lh];W[ih];B[jh];W[ig];B[hi] ;W[gg];B[gh];W[kg];B[lg];W[lf];B[le];W[mf];B[me];W[nd] ;B[ne];W[nf];B[lc];W[lb];B[oe];W[kh];B[ki];W[li];B[hg] ;W[mh];B[ii];W[mg];B[mb];W[ld];B[md];W[mc];B[nc];W[ia] ;B[lc];W[hb];B[br];W[cq];B[cr];W[dp];B[eq];W[eo];B[fo] ;W[nl];B[nm];W[mm];B[mn];W[om];B[lm];W[nk];B[on];W[pn] ;B[cm];W[bn];B[pm];W[ol];B[po];W[qn];B[qo];W[oo];B[rn] ;W[qm];B[rm];W[nn];B[rj];W[ro];B[ql];W[qp];B[ri];W[kr] ;B[jr];W[db];B[da];W[ca];B[ea];W[cb];B[bp];W[ap];B[bm] ;W[en];B[ao];W[aq];B[ar];W[cp];B[fj];W[kj];B[jj];W[mm] ;B[ln];W[pf];B[lr];W[qe];B[rd];W[re];B[rg];W[pe];B[pd] ;W[ms];B[ma];W[mc];B[oq];W[or];B[lc];W[ja];B[mr];W[nr] ;B[ks];W[sd];B[sc];W[se];B[rc];W[sg];B[sh];W[qh];B[rh] ;W[el];B[ek];W[fm];B[gm];W[dj];B[dk];W[ef];B[fg];W[ll] ;B[kl];W[of];B[bk];W[mc];B[od];W[mk];B[aj];W[ai];B[ak] ;W[ci];B[dh];W[cg];B[rl];W[ei];B[fi];W[an];B[cn];W[em] ;B[am];W[bo];B[fl];W[no];B[mo];W[sn];B[sm];W[so];B[pg] ;W[ph];B[pl];W[fa];B[lk];W[ml];B[sf];W[lc];B[ep];W[rf] ;B[hh];W[ns];B[ls];W[eg];B[sg] ) goban-1.1.orig/games/T-08-3.mgt0000644000175000017500000000270306270527242013557 0ustar alal(;PB[Kato Masao]PW[Kataoka Satoshi]SZ[19]EV[8th Tengen match] DT[1982-12-03]PC[Asahikawa City, Hokkaido]BR[9d]WR[7d]KM[5.5]RE[B+2.5] SO[Go world 31] ;B[pd];W[dc];B[pq];W[cp];B[eq];W[qo];B[pl];W[lq];B[po];W[iq];B[qp] ;W[dq];B[ep];W[dn];B[hp];W[ip];B[ho];W[hq];B[gq];W[gr];B[fr];W[gp] ;B[go];W[fq];B[fp];W[gq];B[dr];W[cr];B[em];W[dm];B[el];W[ck];B[ce] ;W[cd];B[de];W[ed];B[dj];W[dk];B[ek];W[ej];B[di];W[fj];B[bj];W[bk] ;B[hl];W[ff];B[fh];W[hj];B[dg];W[hh];B[gd];W[fd];B[ge];W[ef];B[gg] ;W[gf];B[hg];W[hf];B[ig];W[je];B[jl];W[jj];B[kf];W[ke];B[ii];W[gl] ;B[gm];W[eh];B[ei];W[hk];B[im];W[fi];B[hi];W[dh];B[ci];W[eg];B[gj] ;W[ch];B[bh];W[bg];B[bi];W[be];B[mc];W[kc];B[if];W[ie];B[lf];W[qj] ;B[qk];W[pj];B[qh];W[ph];B[qg];W[nk];B[oi];W[ol];B[om];W[rk];B[rl] ;W[ni];B[oh];W[oj];B[nl];W[ml];B[ok];W[pk];B[ql];W[lk];B[lp];W[kq] ;B[mm];W[lm];B[mj];W[nj];B[li];W[mn];B[nm];W[jf];B[jg];W[gh];B[fg] ;W[kh];B[mk];W[ll];B[mi];W[kg];B[ih];W[mh];B[lh];W[lg];B[mg];W[mf] ;B[nh];W[le];B[oc];W[jk];B[gk];W[of];B[pf];W[oo];B[pn];W[lb];B[mb] ;W[or];B[np];W[nq];B[oq];W[nr];B[cs];W[bs];B[ds];W[bq];B[pr];W[ps] ;B[qs];W[os];B[qr];W[fs];B[er];W[en];B[fn];W[aj];B[ai];W[ak];B[gi] ;W[ma];B[na];W[la];B[nc];W[oa];B[nb];W[no];B[mo];W[lo];B[mp];W[nn] ;B[ko];W[ln];B[op];W[ki];B[og];W[oe];B[dp];W[cq];B[dl];W[cl];B[cm] ;W[bm];B[co];W[cn];B[do];W[bo];B[pe];W[lj];B[mh];W[io];B[in];W[kp] ;B[jo];W[lc];B[mq];W[mr];B[md];W[me];B[ld];W[kd];B[kl];W[km];B[jn] ;W[od];B[jp];W[jq];B[pc];W[ag])goban-1.1.orig/games/Hon-71-2.mgt0000644000175000017500000000314206045540402014066 0ustar alal (;GM[1]SZ[19]DT[1971-05-06,07]PC[Osaka]PB[Ishida Yoshio]PW[Rin Kaiho]KM[4.5]RE[B+1.5]FF[3]BS[0]WS[0];B[pd];W[dc];B[dp];W[pq];B[qo];W[ce];B[nq];W[op];B[np] ;W[on];B[no];W[qn];B[rn];W[qm];B[qp];W[oo];B[rm];W[qk];B[qq] ;W[pr];B[ql];W[pl];B[rl];W[jp];B[gq];W[mm];B[ko];W[pk];B[jo] ;W[hp];B[hq];W[io];B[iq];W[ip];B[jm];W[gp];B[fp];W[fo];B[ep] ;W[gm];B[jk];W[dm];B[ic];W[hj];B[ji];W[pg];B[nd];W[ih];B[nh] ;W[jh];B[ki];W[kh];B[nj];W[oi];B[nl];W[mk];B[ml];W[ll];B[nm] ;W[nn];B[nk];W[mn];B[in];W[il];B[jl];W[lp];B[kp];W[lq];B[kr] ;W[lr];B[lo];W[mo];B[kq];W[co];B[cp];W[bp];B[bq];W[gc];B[ie] ;W[dh];B[ke];W[qd];B[qc];W[qe];B[rc];W[pe];B[od];W[bo];B[cd] ;W[dd];B[dj];W[ch];B[gl];W[fm];B[be];W[bd];B[gj];W[gi];B[fj] ;W[hl];B[hi];W[ij];B[eh];W[ii];B[cf];W[de];B[eg];W[df];B[dl] ;W[ck];B[cl];W[cj];B[dn];W[do];B[em];W[eo];B[di];W[ci];B[gg] ;W[fl];B[dk];W[hh];B[hf];W[hb];B[ib];W[li];B[lj];W[jj];B[kj] ;W[mi];B[ni];W[mj];B[kk];W[mg];B[ng];W[mf];B[nf];W[me];B[mh] ;W[lh];B[kf];W[kg];B[of];W[hn];B[ls];W[ms];B[mr];W[ks];B[ns] ;W[mp];B[ls];W[om];B[rk];W[rj];B[js];W[rh];B[se];W[im];B[jn] ;W[rr];B[qr];W[qs];B[rq];W[oh];B[md];W[aq];B[br];W[ia];B[ja] ;W[ha];B[jb];W[fi];B[ei];W[ff];B[gh];W[ge];B[rf];W[rg];B[sj] ;W[si];B[qi];W[sk];B[rs];W[sd];B[rd];W[re];B[sc];W[qf];B[ps] ;W[bk];B[bl];W[en];B[cm];W[jf];B[hc];W[gb];B[je];W[or];B[os] ;W[sf];B[sl];W[ar];B[sj];W[ri];B[oj];W[pj];B[bs];W[nr];B[mq] ;W[if];B[ig];W[jg];B[he];W[hg];B[gf];W[gd];B[ef];W[ee];B[dg] ;W[cg];B[gk];W[hd];B[id];W[le];B[ld];W[jq];B[jr];W[po];B[el] ;W[fk];B[bn];W[cn];B[ak];W[aj];B[al];W[oq];B[ms];W[cq];B[cr] ;W[hk];B[ej];W[an];B[am];W[lm];B[ao];W[ap];B[an];W[sd];B[dm] ;W[se];B[sk])goban-1.1.orig/games/T-20-2.mgt0000644000175000017500000000242206252627522013550 0ustar alal(;GM[1]VW[]SZ[19]PB[Rin Kaiho]BR[9 dan]PW[Ryu Shikun]WR[6 dan]RO[Final]DT[1994-11-22]RE[B+4.5]KM[5.5]B[pd]ID[20/2]FF[3];W[dd];B[qp];W[dp];B[kq];W[gp];B[ci];W[ck];B[cf];W[ce] ;B[df];W[fd];B[pn];W[ej];B[ei];W[fi];B[eh];W[fj];B[gg];W[ko] ;B[lo];W[qq];B[pq];W[ln];B[lp];W[kn];B[fb];W[dc];B[ic];W[qf] ;B[nd];W[rd];B[qc];W[qh];B[cq];W[cp];B[dq];W[ep];B[fr];W[kc] ;B[ke];W[jd];B[gd];W[je];B[fc];W[kf];B[be];W[bd];B[de];W[cd] ;B[bf];W[bb];B[pg];W[pf];B[ng];W[ih];B[bk];W[bl];B[rc];W[ne] ;B[pj];W[md];B[ph];W[qi];B[pi];W[nc];B[qj];W[pp];B[oq];W[rp] ;B[qo];W[qr];B[ro];W[qd];B[ob];W[od];B[bj];W[cl];B[lk];W[nb] ;B[pc];W[oc];B[of];W[pe];B[oa];W[qa];B[ra];W[rb];B[sb];W[sa] ;B[da];W[cb];B[ra];W[jq];B[qb];W[bq];B[br];W[bp];B[hq];W[kr] ;B[lr];W[fq];B[gq];W[gr];B[hr];W[er];B[gs];W[eq];B[jr];W[sq] ;B[qg];W[rg];B[rh];W[nf];B[rf];W[kp];B[lq];W[hp];B[ip];W[io] ;B[so];W[rs];B[kl];W[mm];B[il];W[nl];B[kh];W[ee];B[jb];W[ge] ;B[hd];W[pr];B[or];W[re];B[sg];W[hl];B[og];W[oe];B[hk];W[hm] ;B[gk];W[ij];B[im];W[ik];B[hn];W[jk];B[jl];W[gm];B[in];W[iq] ;B[ir];W[jp];B[gn];W[fm];B[ji];W[ii];B[fn];W[en];B[em];W[fl] ;B[ok];W[li];B[nk];W[mg];B[eo];W[dn];B[fo];W[jn];B[mh];W[lh] ;B[lg];W[mf];B[mi];W[lj];B[kj];W[mj];B[mk];W[nj];B[ni];W[kg] ;B[oj];W[lf];B[ps];W[sr];B[kk];W[mo];B[nn];W[no];B[nm];W[mn] ;B[oo])goban-1.1.orig/games/M-96-4.sgf0000644000175000017500000000177506252641772013565 0ustar alal( ; EV[21st Meijin title] RO[4] PB[Takemiya Masaki] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[9/10 October 1996] PC[Japan] RE[W+R] SY[Written by GoBase-0.0.9] ; ;B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[oe];W[nq];B[oo];W[dj] ;B[md];W[qc];B[qd];W[pc];B[mc];W[nb];B[mp];W[qq];B[qp];W[pq] ;B[mq];W[np];B[no];W[mr];B[lr];W[nr];B[jj];W[mo];B[kp];W[nj] ;B[mn];W[lo];B[kn];W[nd];B[ne];W[me];B[mf];W[le];B[lf];W[ke] ;B[kf];W[je];B[ig];W[qj];B[qi];W[pi];B[ph];W[ll];B[km];W[mm] ;B[ln];W[oi];B[qk];W[kj];B[jk];W[rj];B[qh];W[pk];B[pl];W[oj] ;B[ql];W[ol];B[li];W[pm];B[qm];W[lj];B[kk];W[nm];B[nk];W[mi] ;B[nh];W[ki];B[lh];W[rk];B[rl];W[sk];B[ri];W[pn];B[qn];W[qo] ;B[ro];W[po];B[op];W[rn];B[om];W[on];B[nn];W[om];B[rq];W[so] ;B[rp];W[sl];B[jr];W[cn];B[fc];W[ec];B[fd];W[jc];B[df];W[bd] ;B[cl];W[dl];B[dk];W[ck];B[ek];W[bl];B[cj];W[cm];B[bk];W[rr] ;B[sr];W[ci];B[cl];W[lq];B[ck];W[lp];B[cq];W[dq];B[dr];W[er] ;B[br];W[fq];B[cp];W[fn];B[cc];W[dc];B[ic];W[id];B[hc];W[jb] ;B[cd];W[ce];B[cb];W[de];B[bc];W[ef];B[go];W[co];B[eb];W[dh] ) goban-1.1.orig/games/Hon-70-4.sgf0000644000175000017500000000310106243710156014057 0ustar alal( ; DT[1970-] EV[25th Honinbo 1970] RO[4] BR[Honinbo] WR[9 dan] KM[4.5] PB[Rin Kaiho] PW[Sakata Eio] RE[B+1.5] ;B[qd];W[dd];B[oc];W[cq];B[pq];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[cf];W[gc];B[cc];W[cd];B[dc];W[ed];B[ec] ;W[fc];B[bd];W[be];B[bc];W[ce];B[ef];W[ff];B[eg];W[gf];B[dk] ;W[qf];B[cn];W[mc];B[eq];W[dp];B[fp];W[eo];B[fo];W[co];B[bn] ;W[dm];B[cl];W[ip];B[fm];W[dn];B[fk];W[lq];B[no];W[lo];B[dr] ;W[cr];B[iq];W[jp];B[hq];W[bo];B[nm];W[mn];B[nn];W[pp];B[qq] ;W[ro];B[mr];W[jm];B[oe];W[me];B[pg];W[qg];B[ke];W[kc];B[kg] ;W[eb];B[db];W[jf];B[kf];W[fh];B[bf];W[mg];B[ki];W[nb];B[ob] ;W[ae];B[di];W[lh];B[kh];W[je];B[lm];W[jk];B[lk];W[lj];B[pk] ;W[qk];B[kk];W[ij];B[kj];W[hi];B[fb];W[gb];B[ea];W[pj];B[ih] ;W[hh];B[nc];W[mb];B[rp];W[oa];B[pa];W[na];B[qb];W[re];B[ga] ;W[hb];B[cs];W[bs];B[ds];W[bq];B[ee];W[fe];B[af];W[nk];B[mm] ;W[hp];B[jr];W[kr];B[rn];W[rm];B[so];W[js];B[gq];W[hs];B[jq] ;W[mq];B[op];W[nr];B[or];W[lr];B[hm];W[kn];B[rd];W[fr];B[il] ;W[jl];B[ho];W[gn];B[fn];W[el];B[kp];W[jo];B[gj];W[df];B[dg] ;W[al];B[bl];W[an];B[ak];W[am];B[bj];W[ok];B[ha];W[ia];B[fa] ;W[jb];B[ig];W[gl];B[fl];W[gm];B[is];W[ir];B[gs];W[hk];B[hr] ;W[go];B[jd];W[kd];B[ie];W[id];B[if];W[pf];B[sm];W[rl];B[jg] ;W[jc];B[mj];W[sd];B[sc];W[se];B[rc];W[nh];B[ms];W[kq];B[nj] ;W[oj];B[qe];W[rf];B[ni];W[oi];B[nf];W[of];B[ne];W[li];B[mk] ;W[ng];B[hd];W[je];B[he];W[ep];B[fq];W[hc];B[mp];W[lp];B[mo] ;W[ln];B[dl];W[em];B[eh];W[ej];B[de];W[sl];B[sn];W[dj];B[cj] ;W[pe];B[pd];W[le];B[ad];W[fd];B[ol];W[nl];B[om];W[pl];B[md] ;W[ld];B[nd];W[dq];B[er];W[fi];B[ao];W[ap];B[ek];W[hj];B[en] ;W[ji] C[240 moves complete.] ) goban-1.1.orig/games/Hon-66-1.mgt0000644000175000017500000000215106045540374014100 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1966-04-27,28]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan]BR[9 Dan];B[qd];W[dc];B[pq];W[co];B[po];W[od];B[dq];W[hq];B[cp] ;W[do];B[ep];W[kq];B[ck];W[ce];B[oc];W[nc];B[pc];W[md];B[qf] ;W[id];B[ch];W[el];B[cm];W[dm];B[fq];W[dj];B[cj];W[eh];B[mq] ;W[cg];B[ei];W[di];B[dk];W[ek];B[dh];W[fi];B[dg];W[bg];B[de] ;W[dd];B[bh];W[fe];B[ff];W[he];B[be];W[cf];B[ee];W[fd];B[cd] ;W[bd];B[cc];W[bc];B[cb];W[bb];B[ag];W[af];B[ed];W[ec];B[ah] ;W[db];B[eg];W[fh];B[ql];W[og];B[en];W[dn];B[ip];W[qq];B[qp] ;W[pr];B[qr];W[oq];B[rq];W[mp];B[iq];W[op];B[mr];W[lq];B[or] ;W[nr];B[ps];W[nq];B[ns];W[lr];B[ms];W[ir];B[hp];W[hr];B[lp] ;W[ls];B[os];W[ko];B[mo];W[kp];B[np];W[gp];B[gq];W[go];B[gn] ;W[ho];B[io];W[hn];B[in];W[hm];B[kn];W[ln];B[km];W[im];B[jm] ;W[lo];B[kk];W[jr];B[ml];W[eo];B[ne];W[nf];B[nb];W[mb];B[nd] ;W[mc];B[me];W[oe];B[le];W[lg];B[kc];W[kb];B[kg];W[kf];B[jb] ;W[lb];B[jc];W[lf];B[ld];W[ob];B[na];W[ma];B[pb];W[pa];B[qa] ;W[oa];B[nb];W[na];B[ka];W[qb];B[rb];W[ra];B[qc];W[bl];B[bm] ;W[cl];B[ci];W[rc];B[qa];W[kd];B[lc];W[qb];B[pf];W[of];B[qa] ;W[ej];B[sa];W[dl];B[jf];W[ke];B[hf];W[ig];B[ie];W[if])goban-1.1.orig/games/T-04-4.mgt0000644000175000017500000000273506252627522013563 0ustar alal(;PB[Fujisawa Shuko]PW[Kato Masao]DT[1978-12-13]RE[W+0.5]KM[5.5]GM[1]SZ[19]ID[ 4/4]FF[3];B[pd];W[cq];B[pq];W[dc];B[pk];W[de];B[jd];W[jp];B[dn] ;W[fp];B[cj];W[ch];B[pf];W[cl];B[dl];W[cm];B[dm];W[bo];B[ej] ;W[po];B[np];W[qm];B[rl];W[no];B[mp];W[qq];B[qr];W[pr];B[pp] ;W[qp];B[or];W[rr];B[ps];W[ck];B[dk];W[bj];B[oc];W[gj];B[gm] ;W[fn];B[hl];W[ji];B[jg];W[li];B[oi];W[lg];B[rm];W[rn];B[ld] ;W[hc];B[cc];W[db];B[cd];W[dd];B[cf];W[eh];B[bh];W[bi];B[cg] ;W[bg];B[bf];W[ah];B[cb];W[af];B[ad];W[qc];B[qd];W[fm];B[fl] ;W[gk];B[gl];W[jl];B[go];W[fo];B[jm];W[km];B[jn];W[kn];B[ko] ;W[jo];B[hn];W[hp];B[kl];W[ll];B[kk];W[jk];B[lk];W[lo];B[fi] ;W[ig];B[il];W[ij];B[fk];W[bb];B[ba];W[kp];B[ml];W[jf];B[ib] ;W[ic];B[jb];W[hb];B[eg];W[qf];B[qg];W[pg];B[rf];W[qh];B[qe] ;W[oh];B[og];W[ph];B[nh];W[ni];B[ng];W[oj];B[mi];W[pi];B[mj] ;W[ok];B[pm];W[ol];B[qn];W[om];B[pn];W[on];B[qo];W[oo];B[ro] ;W[mh];B[kr];W[ir];B[if];W[kg];B[hg];W[jh];B[ie];W[ge];B[cn] ;W[bn];B[lq];W[da];B[ab];W[mf];B[ne];W[jc];B[kc];W[ke];B[kd] ;W[hh];B[jr];W[iq];B[dp];W[dq];B[fe];W[fd];B[ee];W[ed];B[rh] ;W[ri];B[si];W[sj];B[sh];W[op];B[oq];W[me];B[md];W[rj];B[cp] ;W[bp];B[gp];W[gq];B[ep];W[eq];B[is];W[hs];B[js];W[hr];B[mg] ;W[lh];B[le];W[lf];B[hi];W[gg];B[ik];W[jj];B[gi];W[je];B[id] ;W[kb];B[lb];W[ia];B[ka];W[hj];B[gf];W[gd];B[hf];W[gh];B[qj] ;W[ei];B[fg];W[fh];B[fj];W[gn];B[io];W[ho];B[df];W[mo];B[ae] ;W[ag];B[hd];W[fb];B[ii];W[ih];B[pl];W[pj];B[qk];W[qi];B[nf] ;W[ca];B[bc];W[ce];B[be];W[em];B[el];W[sl];B[sm];W[sk])goban-1.1.orig/games/Hon-85-3.mgt0000644000175000017500000000257706045540442014113 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Takemiya Masaki]DT[1985-06-06,07]RE[W+9.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pp];W[dp];B[pj];W[nc];B[lc];W[qc];B[qd] ;W[pc];B[od];W[rc];B[nd];W[nb];B[de];W[fd];B[ff];W[he];B[kf] ;W[dh];B[hf];W[ie];B[if];W[jf];B[je];W[jg];B[gf];W[hc];B[ic] ;W[ji];B[jd];W[gd];B[ei];W[cg];B[di];W[ce];B[jk];W[kg];B[eh] ;W[lf];B[me];W[df];B[hj];W[ng];B[pg];W[lj];B[mk];W[kl];B[kk] ;W[lk];B[ll];W[mj];B[ml];W[km];B[nj];W[ni];B[oj];W[im];B[ki] ;W[lh];B[ii];W[oi];B[pi];W[nq];B[le];W[mg];B[pq];W[lp];B[ln] ;W[no];B[on];W[jp];B[fq];W[eq];B[fp];W[dn];B[ip];W[iq];B[jo] ;W[jq];B[cq];W[er];B[hn];W[co];B[in];W[or];B[pr];W[nn];B[om] ;W[hp];B[go];W[fm];B[gl];W[ck];B[bi];W[ek];B[be];W[cd];B[bg] ;W[bk];B[bf];W[bc];B[cf];W[ee];B[eg];W[sf];B[rg];W[oo];B[po] ;W[nm];B[nl];W[fr];B[fl];W[el];B[jj];W[ke];B[kd];W[jh];B[kj] ;W[kf];B[ib];W[hb];B[gq];W[ps];B[qs];W[os];B[qr];W[ko];B[kn] ;W[io];B[jn];W[gr];B[dg];W[fj];B[fn];W[gm];B[em];W[en];B[hm] ;W[dm];B[ha];W[ga];B[ia];W[gb];B[mb];W[mc];B[lb];W[rd];B[na] ;W[ob];B[lo];W[kp];B[ef];W[rf];B[qf];W[sg];B[sh];W[qe];B[pe] ;W[re];B[qh];W[dd];B[oq];W[nr];B[gj];W[fi];B[hq];W[hr];B[fk] ;W[ej];B[og];W[oh];B[nf];W[oa];B[bj];W[aj];B[ai];W[ak];B[bd] ;W[ad];B[fe];W[df];B[bp];W[bo];B[de];W[ed];B[ae];W[ac];B[mo] ;W[mp];B[ma];W[cj];B[gi];W[fh];B[gh];W[ci];B[ch];W[mm];B[lm] ;W[li];B[dj];W[dk];B[oc];W[md];B[pb];W[qb];B[ih];W[fg];B[ig] ;W[gg];B[hg];W[eo];B[gn];W[em];B[df])goban-1.1.orig/games/Hon-74-5.sgf0000644000175000017500000000273106243716756014110 0ustar alal(;SZ[19]EV[Honinbo match 74, game 5]PB[Ishida]BR[Honinbo]PW[Takemia]WR[7d]RE[B+R (231 moves)]SO[Kido Yearbook];B[qd];W[dd];B[oc];W[qo];B[pq];W[mp];B[po];W[pn];B[oo];W[qp];B[qq];W[nq];B[oq];W[mn];B[mm];W[ln];B[nn];W[qk];B[dp];W[hq];B[qi];W[lm];B[cm];W[jd];B[cf];W[dh];B[cc];W[dc];B[cd];W[de];B[cb];W[df];B[cg];W[dg];B[db];W[fc];B[le];W[ok];B[oi];W[qg];B[qj];W[ml];B[mh];W[qe];B[rd];W[nf];B[me];W[nd];B[ne];W[od];B[oe];W[pd];B[pe];W[pc];B[qf];W[lc];B[kc];W[kb];B[fq];W[cp];B[cq];W[co];B[do];W[bq];B[cr];W[cn];B[dn];W[bm];B[bl];W[cl];B[dm];W[am];B[qn];W[rn];B[qm];W[rm];B[ql];W[rl];B[pk];W[rk];B[ol];W[rq];B[rp];W[ro];B[rr];W[sp];B[nm];W[ll];B[nk];W[ho];B[br];W[bk];B[dl];W[ck];B[fb];W[gb];B[ec];W[ed];B[eb];W[gc];B[kd];W[jc];B[lb];W[mb];B[je];W[qc];B[rc];W[sh];B[sj];W[rj];B[ri];W[si];B[rh];W[ce];B[be];W[bh];B[mc];W[la];B[nc];W[ob];B[md];W[nb];B[rb];W[ie];B[jf];W[sk];B[sg];W[qa];B[hr];W[gr];B[gq];W[ir];B[hp];W[iq];B[ip];W[jp];B[io];W[fr];B[go];W[eq];B[ep];W[if];B[jo];W[ko];B[ej];W[jg];B[fi];W[gh];B[fh];W[gg];B[nr];W[mr];B[np];W[mq];B[kn];W[kp];B[hj];W[lg];B[mg];W[ch];B[bf];W[il];B[hl];W[hm];B[im];W[jm];B[in];W[hk];B[gl];W[gk];B[ik];W[ij];B[jl];W[jk];B[il];W[gj];B[bp];W[bo];B[aq];W[ao];B[er];W[es];B[dr];W[hi];B[dk];W[fl];B[fm];W[sj];B[rf];W[lh];B[lf];W[mi];B[ni];W[mj];B[qb];W[pb];B[ga];W[ha];B[fa];W[hb];B[cj];W[bj];B[fg];W[ff];B[ns];W[sr];B[ms];W[ls];B[pr];W[rs];B[lr];W[ks];B[js];W[kr];B[jr];W[lq];B[hs];W[jq];B[fs];W[ps];B[or];W[qr];B[nl];W[kk];B[mk];W[kg];B[lj];W[li];B[lk];W[kj];B[gs])goban-1.1.orig/games/M-66-5.mgt0000644000175000017500000000255506260606140013555 0ustar alal(;SZ[19]GC[Moves after 204 not in source]EV[5th Meijin match game 5]DT[1966 Sept 12,13]PC[Takaoka, Toyama Prefecture]PB[Sakata]PW[Rin]KM[5]RE[W+9]SO[Go review 6/11];B[qd];W[qp];B[dc];W[de];B[eq];W[cp];B[ce];W[cf];B[cd];W[hp];B[df];W[dq];B[nq];W[od];B[mc];W[qc];B[do];W[pd];B[co];W[ep];B[dp];W[cq];B[fp];W[eo];B[fq];W[fo];B[bp];W[bq];B[bo];W[er];B[fr];W[es];B[hq];W[iq];B[gp];W[go];B[ip];W[ho];B[ir];W[jq];B[gr];W[jr];B[js];W[ks];B[is];W[dl];B[en];W[jo];B[cs];W[qe];B[jc];W[lr];B[qq];W[rq];B[rr];W[rp];B[pq];W[oo];B[sr];W[pj];B[pl];W[cm];B[dm];W[cl];B[dg];W[em];B[dr];W[bs];B[aq];W[br];B[ar];W[bn];B[ap];W[nj];B[mp];W[or];B[oq];W[om];B[qn];W[po];B[qj];W[qi];B[rj];W[nr];B[pr];W[mq];B[lq];W[mr];B[no];W[pk];B[ko];W[jp];B[ri];W[mn];B[ps];W[ql];B[rl];W[qk];B[rk];W[rm];B[qh];W[kd];B[kc];W[rg];B[pi];W[oh];B[oi];W[ni];B[rf];W[qg];B[pg];W[qf];B[nh];W[og];B[ph];W[mh];B[rh];W[he];B[ci];W[dn];B[as];W[hc];B[gd];W[hd];B[ld];W[nb];B[nc];W[ob];B[je];W[hg];B[lf];W[eh];B[ff];W[fc];B[gf];W[hf];B[gb];W[gc];B[fb];W[hb];B[ec];W[kg];B[ng];W[of];B[me];W[mg];B[nn];W[nm];B[kn];W[lp];B[mo];W[kl];B[mm];W[ml];B[lm];W[ll];B[fh];W[gi];B[fi];W[fj];B[gh];W[hh];B[ej];W[fk];B[ek];W[el];B[jn];W[in];B[jm];W[kf];B[ke];W[il];B[rn];W[qm];B[pn];W[on];B[sm];W[cj];B[dj];W[bi];B[bj];W[ck];B[ch];W[aj];B[bh];W[bk];B[oj];W[ok];B[pm];W[ol];B[nf];W[mf];B[ne];W[ei];B[di];W[fe];B[sg];W[ge];B[ef];W[ah];B[bf];W[mb];B[lb];W[re])goban-1.1.orig/games/Hon-95-2.sgf0000644000175000017500000000253706243541424014100 0ustar alal( ; FF[1] GM[1] VW[] EV[50th Honinbo title] RO[2] SZ[19] PB[Cho Chikun] BR[9 dan] PW[Kato Masao] WR[9 dan] DT[24, 25 May 1995] PC[Japan] TM[8 hours each] RE[W+R] US[Jan van der Steen] KM[5.5] B[qd];W[dd];B[pq];W[dp];B[oc];W[po];B[qo];W[qn];B[qp];W[rd];B[re];W[qe]; B[qf];W[pe];B[rc];W[pd];B[qc];W[rf];B[sd];W[pn];B[nq];W[qg];B[ep];W[eo]; B[dq];W[cq];B[eq];W[fo];B[cp];W[do];B[bq];W[cr];B[br];W[fp];B[fq];W[gq]; B[gr];W[hr];B[hq];W[gp];B[fr];W[dg];B[iq];W[jd];B[cj];W[ej];B[cl];W[dk]; B[dm];W[cn];B[bo];W[fm];B[cc];W[dc];B[cd];W[cf];B[db];W[eb];B[cb];W[fc]; B[ce];W[de];B[bm];W[pf];B[kj];W[op];B[oq];W[bn];B[an];W[ij];B[kh];W[mj]; B[kf];W[jg];B[kg];W[ld];B[ii];W[hi];B[ih];W[jj];B[nh];W[ki];B[li];W[ji]; B[kd];W[kc];B[ke];W[jc];B[oi];W[pj];B[pi];W[qi];B[qj];W[qk];B[rj];W[ri]; B[jh];W[mi];B[pk];W[oj];B[lj];W[mk];B[hj];W[mh];B[hk];W[il];B[gi];W[kl]; B[mo];W[jp];B[io];W[jo];B[ho];W[hl];B[gf];W[be];B[bd];W[bg];B[ae];W[if]; B[ie];W[je];B[jf];W[he];B[hf];W[id];B[ln];W[fg];B[fj];W[fk];B[gk];W[fi]; B[gl];W[gm];B[hm];W[fl];B[lh];W[ik];B[hh];W[gj];B[mg];W[jm];B[fj];W[co]; B[bp];W[gj];B[hi];W[jq];B[ir];W[ok];B[mc];W[lq];B[ll];W[lk];B[kk];W[kn]; B[jl];W[jk];B[im];W[jl];B[mm];W[mp];B[np];W[no];B[nn];W[oo];B[lp];W[mq]; B[om];W[nl];B[pl];W[ql];B[nm];W[lo];B[ko];W[lm];B[km];W[jn];B[nj];W[rk]; B[kr];W[kq];B[pm];W[lm];B[ni];W[nk];B[km];W[jr];B[js];W[lm];B[qm];W[rm]; B[km];W[lr] ) goban-1.1.orig/games/M-93-4.mgt0000644000175000017500000000245206252627044013557 0ustar alal(;GM[1]PB[Kobayashi Koichi]PW[Otake Hideo]WR[9 Dan]DT[1993-10-06,07]PC[ ]RE[B+R]SZ[19]KM[5.5]ID[93/4]BS[0]WS[0]FF[3]BR[9 Dan];B[pd];W[dp];B[pq];W[ed];B[cc];W[ce];B[ec];W[fd];B[be] ;W[cf];B[fc];W[gd];B[bf];W[cg];B[dd];W[de];B[cd];W[pn];B[np] ;W[pi];B[qg];W[og];B[nd];W[nn];B[lp];W[dm];B[ip];W[kn];B[fq] ;W[in];B[kg];W[qf];B[ke];W[rf];B[ck];W[ci];B[cn];W[dn];B[co] ;W[cp];B[cm];W[do];B[dl];W[kc];B[mc];W[qp];B[qq];W[pp];B[op] ;W[rq];B[rr];W[gc];B[rd];W[rp];B[jo];W[mo];B[lo];W[ln];B[li] ;W[nr];B[mq];W[mj];B[dr];W[bl];B[bk];W[bo];B[bn];W[bp];B[el] ;W[fo];B[gp];W[pr];B[or];W[qr];B[oq];W[rs];B[ps];W[sr];B[nh] ;W[oi];B[gm];W[cr];B[dq];W[cq];B[fi];W[lb];B[mb];W[fg];B[lj] ;W[lk];B[kk];W[ll];B[oh];W[ph];B[pg];W[pf];B[of];W[ng];B[nf] ;W[mg];B[mh];W[lg];B[lf];W[rg];B[jb];W[jc];B[ic];W[id];B[ib] ;W[je];B[gb];W[ih];B[gh];W[ji];B[mf];W[qh];B[lh];W[pg];B[jh] ;W[jf];B[ij];W[hi];B[ii];W[hh];B[ej];W[jg];B[kh];W[gi];B[fh] ;W[gg];B[il];W[ds];B[er];W[kl];B[jk];W[hk];B[gk];W[hj];B[hl] ;W[re];B[qc];W[ma];B[na];W[la];B[ob];W[ko];B[kp];W[hc];B[hb] ;W[eh];B[ei];W[ik];B[jj];W[jl];B[ki];W[bj];B[dh];W[eg];B[ch] ;W[bh];B[di];W[bg];B[cj];W[bi];B[gn];W[io];B[aq];W[ar];B[br] ;W[bs];B[as];W[ak];B[cl];W[ar];B[kd];W[jd];B[as];W[go];B[ho] ;W[ar];B[lc];W[kb];B[as];W[fp];B[hp];W[ar];B[hg];W[ig];B[as] ;W[gj];B[cs];W[fk];B[es])goban-1.1.orig/games/T-19-4.sgf0000644000175000017500000000261406445676366013573 0ustar alal( ; EV[19th Tengen title] RO[4] PB[Rin Kaiho] BR[Tengen] PW[Kataoka Satoshi] WR[9 dan] KM[5.5] DT[1993-12-16] PC[Kobe, Japan] RE[B+R] SO[1994 WeiQi Yearbook (China)] ;B[pd];W[dd];B[qp];W[dq];B[do];W[co];B[cn];W[cp];B[dn] ;W[fq];B[dj];W[oq];B[cf];W[fc];B[mp];W[oo];B[pn];W[mo];B[lo] ;W[mn];B[pq];W[or];B[lp];W[pl];B[pm];W[ql];B[ol];W[ok];B[nl] ;W[on];B[km];W[om];B[rm];W[qm];B[qn];W[rl];B[rn];W[qr];B[pr] ;W[ps];B[rr];W[mr];B[qq];W[kq];B[jp];W[jq];B[ip];W[ll];B[lm] ;W[mm];B[ml];W[lk];B[nk];W[oj];B[nj];W[ni];B[mj];W[oi];B[mi] ;W[ki];B[mg];W[pf];B[qj];W[qi];B[nd];W[jk];B[ri];W[pj];B[rk] ;W[sl];B[qg];W[ng];B[qf];W[mf];B[mh];W[pg];B[lf];W[me];B[kg] ;W[md];B[pe];W[jd];B[ie];W[nc];B[ih];W[hj];B[gp];W[iq];B[hk] ;W[jh];B[jg];W[gk];B[ik];W[ij];B[jl];W[hh];B[ig];W[ei];B[jj] ;W[di];B[cj];W[ci];B[ef];W[ce];B[bg];W[bj];B[bk];W[bh];B[aj] ;W[bi];B[dl];W[cg];B[dg];W[bf];B[ch];W[ag];B[be];W[cg];B[of] ;W[og];B[bg];W[af];B[mc];W[nb];B[od];W[nf];B[mb];W[qh];B[rh] ;W[kc];B[ob];W[lb];B[na];W[gd];B[gf];W[fg];B[ff];W[ii];B[kk] ;W[ji];B[kj];W[gq];B[cc];W[bd];B[cd];W[de];B[bc];W[ae];B[eb] ;W[fb];B[dc];W[ec];B[ea];W[ca];B[ba];W[bb];B[ab];W[aa];B[oc] ;W[lc];B[ba];W[qe];B[re];W[aa];B[fj];W[ej];B[ba];W[rf];B[rg] ;W[aa];B[id];W[ic];B[ba];W[rd];B[qd];W[aa];B[lr];W[lq];B[ba] ;W[em];B[dp];W[fp];B[fo];W[hp];B[cb];W[el];B[cq];W[bq];B[cr] ;W[br];B[bn];W[dr];B[dk];W[rs];B[qs];W[cl];B[dm];W[qr];B[gn] ;W[rq];B[qs];W[li];B[lj];W[qr];B[sr] ) goban-1.1.orig/games/Hon-84-1.mgt0000644000175000017500000000306606045540440014100 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Awaji Shuzo]DT[1984-05-16,17]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[dq];W[pp];B[ce];W[ed];B[nc];W[do];B[eo] ;W[cq];B[dp];W[cp];B[co];W[dn];B[bo];W[dr];B[er];W[cr];B[eq] ;W[cm];B[bm];W[bl];B[bn];W[en];B[cl];W[fo];B[hq];W[ck];B[dl] ;W[bj];B[bp];W[df];B[al];W[bk];B[ek];W[ho];B[ei];W[dh];B[jq] ;W[ip];B[iq];W[fq];B[fr];W[ep];B[gq];W[hk];B[gi];W[ii];B[gg] ;W[hd];B[ig];W[gl];B[cc];W[cb];B[bb];W[bc];B[cd];W[ba];B[ab] ;W[eb];B[cg];W[dg];B[bd];W[kg];B[ff];W[cf];B[bf];W[bg];B[ag] ;W[ch];B[ah];W[hf];B[dj];W[bh];B[bi];W[ai];B[aj];W[ci];B[ai] ;W[ak];B[af];W[cj];B[hj];W[ij];B[de];W[ee];B[ef];W[fj];B[fi] ;W[bq];B[ar];W[aq];B[ds];W[fp];B[es];W[cs];B[hr];W[am];B[bs] ;W[dk];B[el];W[ej];B[gk];W[di];B[fk];W[hg];B[hl];W[ik];B[gm] ;W[il];B[fl];W[im];B[eh];W[eg];B[fg];W[gh];B[fh];W[hh];B[ap] ;W[an];B[gn];W[go];B[fe];W[fd];B[ge];W[he];B[br];W[od];B[oc] ;W[gd];B[gj];W[dm];B[ao];W[hm];B[al];W[am];B[an];W[fm];B[al] ;W[ae];B[be];W[am];B[dj];W[ej];B[al];W[pc];B[pd];W[qc];B[rd] ;W[nd];B[am];W[mc];B[mb];W[md];B[pb];W[lb];B[nb];W[qb];B[rb] ;W[pa];B[ob];W[ma];B[rc];W[qj];B[qn];W[qo];B[pn];W[np];B[ql] ;W[ok];B[nm];W[ro];B[ml];W[mk];B[pg];W[om];B[on];W[nl];B[pm] ;W[ol];B[pj];W[pk];B[qk];W[pi];B[rj];W[qi];B[ri];W[qg];B[qh] ;W[ph];B[rh];W[og];B[pf];W[of];B[lc];W[kb];B[nr];W[mr];B[mq] ;W[nq];B[lr];W[or];B[oe];W[ne];B[pe];W[ns];B[mm];W[lk];B[rn] ;W[lq];B[kq];W[lp];B[lo];W[gl];B[kp];W[hl];B[fj];W[mp];B[so] ;W[sp];B[sn];W[qp];B[kr];W[em];B[dj];W[kn];B[ko];W[ej];B[oj] ;W[oh];B[dj];W[ll];B[ld];W[nf];B[jo];W[ej];B[nk];W[nj];B[dj] ;W[qa];B[ra];W[ej];B[pl];W[hi];B[dj];W[na])goban-1.1.orig/games/M-92-7.mgt0000644000175000017500000000334506252640030013551 0ustar alal(;PB[Otake Hideo]PW[Kobayashi Koichi]DT[1992-11-11,12]KM[5.5]RE[W+1.5]ID[92/7]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dp];B[cd];W[qp];B[cn];W[fq];B[bp];W[fc];B[dc] ;W[ic];B[oc];W[qi];B[nq];W[pq];B[kq];W[iq];B[qg];W[lc];B[cq] ;W[cf];B[ck];W[ci];B[pl];W[oo];B[ko];W[oi];B[nl];W[mo];B[nn] ;W[no];B[km];W[lp];B[kp];W[dq];B[fd];W[gd];B[fe];W[ei];B[ge] ;W[gc];B[gi];W[be];B[bd];W[cp];B[br];W[cr];B[bq];W[ok];B[ol] ;W[mr];B[gp];W[gq];B[ip];W[mj];B[og];W[lk];B[lm];W[eg];B[ce] ;W[bf];B[mh];W[pk];B[ql];W[rg];B[rf];W[rh];B[qk];W[qj];B[jk] ;W[re];B[qf];W[sf];B[rd];W[rk];B[rl];W[sj];B[ph];W[pi];B[nk] ;W[nj];B[oj];W[pj];B[ro];W[rp];B[bi];W[bj];B[cj];W[bh];B[di] ;W[ch];B[bk];W[dn];B[dm];W[en];B[co];W[fp];B[aj];W[dj];B[go] ;W[jr];B[kr];W[lr];B[je];W[kd];B[mb];W[mc];B[nb];W[lb];B[li] ;W[gg];B[ni];W[ri];B[he];W[gh];B[hi];W[ig];B[eb];W[fb];B[fi] ;W[fh];B[ej];W[dh];B[dk];W[em];B[df];W[ef];B[de];W[ff];B[di] ;W[ae];B[gm];W[dl];B[cm];W[ks];B[qo];W[fl];B[gl];W[ec];B[eh] ;W[dg];B[ih];W[jg];B[hg];W[hf];B[hh];W[gf];B[if];W[lg];B[ke] ;W[mg];B[kh];W[le];B[cb];W[ea];B[db];W[ad];B[bc];W[od];B[qe] ;W[pc];B[pd];W[pb];B[ob];W[ma];B[oe];W[oa];B[nd];W[na];B[qc] ;W[nc];B[od];W[rb];B[qb];W[qa];B[kg];W[kk];B[kj];W[fk];B[hq] ;W[hr];B[hp];W[jq];B[lq];W[mq];B[lo];W[mp];B[dr];W[er];B[cs] ;W[gk];B[hk];W[lj];B[ki];W[nh];B[mi];W[oh];B[lf];W[mf];B[kf] ;W[md];B[se];W[so];B[nf];W[me];B[po];W[pp];B[sn];W[sp];B[fo] ;W[on];B[mn];W[rn];B[eo];W[do];B[qn];W[sm];B[rm];W[sn];B[ep] ;W[eq];B[es];W[fs];B[ds];W[jp];B[jo];W[ml];B[mm];W[id];B[ie] ;W[fm];B[gn];W[ik];B[jl];W[hj];B[hl];W[gj];B[ij];W[ac];B[ab] ;W[sg];B[sl];W[sk];B[jd];W[jc];B[hd];W[hc];B[da];W[fa];B[cl] ;W[qh];B[pg];W[ra];B[pa];W[pb];B[sb];W[rc];B[sc];W[ah];B[el] ;W[ai];B[bj];W[ek];B[ei];W[ed];B[dl])goban-1.1.orig/games/Hon-67-4.mgt0000644000175000017500000000370706045540376014116 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1967-06-05,06]PB[Sakata Eio]PW[Rin Kaiho]RE[W+14.5]FF[3]BR[9 Dan];B[qd];W[dc];B[pq];W[dq];B[oc];W[qo];B[pl];W[pn];B[oo] ;W[pp];B[oq];W[qq];B[qr];W[op];B[nq];W[np];B[mp];W[rq];B[ce] ;W[co];B[gd];W[ed];B[dg];W[cd];B[de];W[bd];B[qh];W[dj];B[gf] ;W[mo];B[lp];W[jq];B[gp];W[lr];B[mr];W[lq];B[mq];W[jo];B[lo] ;W[gn];B[ip];W[jp];B[ep];W[eq];B[fq];W[en];B[hn];W[ho];B[do] ;W[rr];B[dn];W[hm];B[mn];W[no];B[iq];W[jr];B[kn];W[jn];B[cn] ;W[cp];B[dl];W[fj];B[kl];W[bj];B[ci];W[di];B[gl];W[ik];B[hl] ;W[jm];B[gj];W[gi];B[hj];W[fo];B[fp];W[el];B[gm];W[em];B[im] ;W[go];B[er];W[dr];B[gr];W[km];B[lm];W[ll];B[ml];W[lk];B[cj] ;W[ck];B[bi];W[cl];B[ds];W[cs];B[es];W[br];B[bo];W[bp];B[ir] ;W[mj];B[mk];W[lj];B[nj];W[ni];B[oj];W[rd];B[qc];W[lg];B[hi] ;W[gh];B[jj];W[jk];B[hh];W[hg];B[ig];W[hf];B[gg];W[he];B[ge] ;W[hd];B[hc];W[ic];B[gb];W[jg];B[if];W[je];B[jf];W[kf];B[jh] ;W[kg];B[ke];W[jd];B[le];W[lc];B[lh];W[mg];B[kc];W[kd];B[ld] ;W[kb];B[mc];W[lb];B[mh];W[nh];B[kh];W[nf];B[og];W[ng];B[mi] ;W[ie];B[ih];W[nd];B[md];W[nc];B[nb];W[od];B[mb];W[pc];B[ob] ;W[pd];B[pb];W[qe];B[rc];W[ph];B[fk];W[pj];B[pk];W[ek];B[hk] ;W[pi];B[io];W[in];B[ij];W[hm];B[re];W[rf];B[hn];W[nm];B[mm] ;W[hm];B[pe];W[se];B[hn];W[jl];B[qf];W[qg];B[re];W[rh];B[sd] ;W[nl];B[nk];W[rl];B[nn];W[om];B[qs];W[hm];B[qm];W[on];B[hn] ;W[ls];B[rk];W[rj];B[sk];W[of];B[bk];W[bl];B[aj];W[dh];B[be] ;W[fh];B[fl];W[eg];B[ee];W[rm];B[rn];W[qn];B[or];W[eb];B[ib] ;W[jb];B[ad];W[ac];B[ae];W[bb];B[sm];W[ro];B[sn];W[ch];B[bh] ;W[cg];B[ja];W[bg];B[ag];W[ka];B[ia];W[sj];B[qk];W[fb];B[ga] ;W[al];B[ak];W[fc];B[gc];W[fd];B[ef];W[bn];B[bm];W[ao];B[cm] ;W[eo];B[dp];W[pf];B[sf];W[rg];B[am];W[dk];B[dm];W[hm];B[qj] ;W[qi];B[hn];W[df];B[cf];W[hm];B[kj];W[kk];B[hn];W[hp];B[hq] ;W[hm];B[an];W[il];B[ar];W[bs];B[qe];W[ap];B[rs];W[ms];B[ns] ;W[so];B[sl];W[ko];B[ln];W[bf];B[af];W[ol];B[ok];W[li];B[fa] ;W[ea];B[js];W[ks];B[is];W[ki];B[ji];W[kp];B[oi];W[oh];B[sg] ;W[sh];B[se];W[fm];B[dg];W[fg];B[sr];W[sq];B[ma];W[bo];B[df] ;W[dd];B[ss])goban-1.1.orig/games/Hon-82-5.mgt0000644000175000017500000000257206045540436014110 0ustar alal (;GM[1]PB[Cho Chikun]PW[Kobayashi Koichi]SZ[19]FF[3]DT[1982-07-08,09]PC[Nagaoka]RE[B+4.5]BS[0]WS[0]KM[5.5];B[qc];W[dq];B[dd];W[qp];B[co];W[cj];B[cl];W[cf];B[ch] ;W[bh];B[fc];W[dh];B[ce];W[df];B[bf];W[bg];B[oq];W[lp];B[np] ;W[pn];B[qr];W[qj];B[jq];W[ko];B[gp];W[ep];B[bq];W[dn];B[cn] ;W[dm];B[jo];W[jn];B[io];W[kq];B[jr];W[mn];B[fq];W[dl];B[cm] ;W[pf];B[nc];W[hc];B[be];W[dk];B[pk];W[pj];B[nk];W[oj];B[ok] ;W[qk];B[nn];W[nm];B[om];W[no];B[on];W[oo];B[pm];W[qn];B[mo] ;W[op];B[mp];W[pq];B[ln];W[mm];B[nq];W[lm];B[pr];W[qm];B[lk] ;W[kk];B[kj];W[jk];B[mi];W[jj];B[ki];W[nd];B[oc];W[ll];B[lf] ;W[ld];B[nf];W[od];B[pd];W[pe];B[mc];W[md];B[mk];W[qd];B[pc] ;W[mg];B[lg];W[mf];B[ih];W[jg];B[ig];W[jf];B[if];W[je];B[jh] ;W[fd];B[ec];W[he];B[nj];W[in];B[kc];W[ho];B[jp];W[rd];B[mh] ;W[ng];B[nh];W[og];B[jc];W[hp];B[hq];W[go];B[hj];W[kp];B[kr] ;W[kn];B[lq];W[hi];B[ii];W[ij];B[gi];W[hh];B[fg];W[gh];B[fh] ;W[gj];B[ee];W[fi];B[gg];W[ef];B[ff];W[le];B[ie];W[lc];B[lb] ;W[rc];B[rb];W[sb];B[ra];W[jd];B[id];W[fp];B[gq];W[bk];B[cr] ;W[cq];B[br];W[an];B[bn];W[rq];B[eh];W[di];B[hg];W[hk];B[qq] ;W[pp];B[rr];W[dr];B[oi];W[bl];B[am];W[bm];B[ao];W[rp];B[ph] ;W[qh];B[ei];W[ej];B[er];W[ds];B[cp];W[es];B[fs];W[kg];B[kh] ;W[de];B[cd];W[sr];B[pi];W[qi];B[rs];W[eq];B[fr];W[cs];B[bs] ;W[pg];B[do];W[eo];B[kd];W[ke];B[ag];W[ah];B[af];W[oh];B[ni] ;W[ip];B[iq];W[ck];B[ql];W[rl];B[pl];W[lo];B[dg];W[cg];B[eg] ;W[al];B[an];W[nl])goban-1.1.orig/games/Hon-95-1.mgt0000644000175000017500000000266506045540456014115 0ustar alal (;GM[1]PB[Kato Masao]BR[9 dan]PW[Cho Chikun]WR[9 dan]DT[1995-05-11,12]PC[Seoul]RE[W+3.5]KM[5.5]BS[0]WS[0]SZ[19]FF[3];B[qd];W[dd];B[cp];W[pp];B[eq];W[oc];B[pf];W[lc];B[cj] ;W[qn];B[kq];W[qh];B[pc];W[od];B[qf];W[cf];B[jc];W[hc];B[je] ;W[mf];B[kh];W[he];B[ld];W[md];B[le];W[kc];B[me];W[ne];B[mc] ;W[mb];B[nd];W[of];B[lb];W[kb];B[nb];W[la];B[ob];W[nc];B[md] ;W[lf];B[kd];W[jb];B[kf];W[oh];B[pi];W[ph];B[ng];W[nf];B[mh] ;W[og];B[nj];W[pk];B[pq];W[oq];B[op];W[nq];B[qp];W[po];B[qr] ;W[no];B[qo];W[pn];B[mp];W[np];B[ip];W[if];B[ih];W[dk];B[dj] ;W[ek];B[ej];W[fk];B[bl];W[en];B[dm];W[em];B[dn];W[cl];B[bm] ;W[fp];B[fq];W[do];B[gp];W[co];B[bo];W[fj];B[eo];W[fh];B[jf] ;W[ch];B[cc];W[cd];B[fg];W[gh];B[eh];W[eg];B[dg];W[ef];B[dh] ;W[df];B[ic];W[id];B[jd];W[ib];B[ie];W[hd];B[hf];W[bi];B[bj] ;W[gf];B[hg];W[gg];B[rg];W[ni];B[mi];W[oj];B[ri];W[rh];B[sh] ;W[mj];B[fo];W[rn];B[or];W[nr];B[rq];W[os];B[pr];W[ro];B[rp] ;W[cm];B[cn];W[rj];B[qi];W[nk];B[lr];W[ln];B[rk];W[ji];B[jh] ;W[rl];B[qk];W[ql];B[qj];W[hh];B[ig];W[in];B[lj];W[lk];B[kj] ;W[kk];B[jj];W[jp];B[jq];W[io];B[hp];W[il];B[ai];W[bg];B[fm] ;W[dl];B[dp];W[kp];B[lp];W[lo];B[ah];W[na];B[pb];W[ii];B[ij] ;W[hi];B[hm];W[im];B[bh];W[cg];B[ci];W[lg];B[ki];W[lh];B[li] ;W[kg];B[jg];W[oa];B[pa];W[mr];B[ma];W[na];B[ls];W[mo];B[pe] ;W[oe];B[lq];W[qg];B[rf];W[ei];B[di];W[fi];B[fn];W[el];B[ag] ;W[af];B[jk];W[jl];B[sl];W[sm];B[sk];W[ck];B[bk];W[rr];B[sr] ;W[sp];B[gj];W[hj];B[gk];W[gl];B[hk];W[hl];B[ik];W[fl];B[pd] ;W[oi])goban-1.1.orig/games/M-65-5.sgf0000644000175000017500000000305406252650122013537 0ustar alal( ; GM[1] EV[4th Meijin Title Match] RO[5] PB[Sakata Eio] BR[Meijin] PW[Rin Kaiho] WR[8 dan] DT[Sept 8/9, 1965] PC[Hyogo] RE[B+R] KM[5] SZ[19] ;B[qd];W[od];B[oc];W[nc];B[pc];W[ec];B[nd];W[qp];B[eq] ;W[oq];B[cp];W[cd];B[cj];W[qj];B[jp];W[mc];B[id];W[je] ;B[jd];W[le];B[ne];W[kd];B[fe];W[lq];B[rp];W[qq];B[df] ;W[hp];B[qo];W[qm];B[qn];W[pm];B[on];W[mn];B[op];W[np] ;B[no];W[mp];B[om];W[ol];B[nl];W[ok];B[nk];W[mo];B[nm] ;W[nj];B[mj];W[mi];B[rm];W[lj];B[mk];W[rl];B[pl];W[rn] ;B[oj];W[ni];B[pj];W[pi];B[oi];W[oh];B[pk];W[ph];B[ro] ;W[sm];B[qg];W[pf];B[qk];W[rk];B[qi];W[rj];B[qh];W[qf] ;B[rf];W[li];B[pg];W[og];B[of];W[nf];B[oe];W[mf];B[fc] ;W[fb];B[gc];W[bp];B[co];W[dj];B[dk];W[ci];B[ck];W[ed] ;B[gb];W[eb];B[kc];W[lc];B[kb];W[rq];B[lk];W[kk];B[ll] ;W[di];B[ek];W[jm];B[mm];W[ie];B[he];W[hf];B[gf];W[bf] ;B[hg];W[if];B[hr];W[cq];B[dq];W[hd];B[ge];W[ib];B[jc] ;W[lb];B[ic];W[ka];B[hb];W[jb];B[hc];W[cr];B[bo];W[aq] ;B[ao];W[bs];B[in];W[hn];B[im];W[iq];B[jq];W[ir];B[jr] ;W[gr];B[fr];W[io];B[jo];W[hs];B[jl];W[eo];B[ep];W[hm] ;B[il];W[fo];B[gq];W[hq];B[gp];W[go];B[gl];W[gm];B[fs] ;W[cn];B[bn];W[cm];B[bm];W[gs];B[ks];W[is];B[fg];W[cg] ;B[kf];W[ke];B[kh];W[ig];B[ki];W[kj];B[ii];W[hh];B[jj] ;W[hi];B[fi];W[ob];B[pb];W[hj];B[ik];W[ih];B[ji];W[mg] ;B[lh];W[mh];B[ce];W[be];B[md];W[ld];B[nb];W[gh];B[nr] ;W[pp];B[oo];W[mr];B[ms];W[nq];B[sq];W[or];B[em];W[dr] ;B[bi];W[bh];B[gg];W[fh];B[eh];W[fj];B[dh];W[ej];B[bj] ;W[ch];B[rr];W[qr];B[sp];W[km];B[kl];W[ln];B[jn];W[rg] ;B[rh];W[sh];B[sg];W[si];B[pe];W[dn];B[sn];W[ri];B[rg] ;W[so];B[ip];W[di] ) goban-1.1.orig/games/Hon-69-3.mgt0000644000175000017500000000156206045540400014100 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Kato Masao]KM[4.5]RE[W+R]DT[1969-05-08,09]FF[3]BS[0]WS[0];B[qd];W[dp];B[cd];W[oc];B[pq];W[ed];B[kc];W[pd];B[qe] ;W[qc];B[rc];W[qb];B[pg];W[df];B[ec];W[dd];B[dc];W[ce];B[bd] ;W[fd];B[be];W[cg];B[qn];W[fc];B[jp];W[gq];B[nd];W[pe];B[pf] ;W[mb];B[ld];W[rb];B[on];W[nf];B[oe];W[pr];B[qq];W[oj];B[mj] ;W[qi];B[qh];W[oh];B[ri];W[mi];B[li];W[mh];B[lj];W[kg];B[od] ;W[pc];B[of];W[qj];B[rj];W[co];B[go];W[ho];B[hp];W[gp];B[hn] ;W[io];B[ip];W[jo];B[fo];W[kp];B[kq];W[im];B[jr];W[eq];B[hm] ;W[lp];B[in];W[jn];B[jm];W[mq];B[lr];W[il];B[ln];W[km];B[jl] ;W[fm];B[ik];W[hl];B[gl];W[hk];B[gm];W[kn];B[jk];W[lm];B[mn] ;W[hj];B[fl];W[ml];B[nk];W[om];B[pm];W[ol];B[mm];W[kj];B[ll] ;W[kl];B[kk];W[lk];B[ko];W[lo];B[mk];W[mr];B[ll];W[ko];B[nl] ;W[hq];B[nr];W[nq];B[or];W[oq];B[qr];W[ks];B[jh];W[fj];B[jf] ;W[kf];B[lh];W[je];B[mg];W[le];B[ng];W[em];B[ej];W[el];B[fk] ;W[ek])goban-1.1.orig/games/M-62-l01.sgf0000644000175000017500000000327206252641266013777 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] GN[meijin/1962/game-a] EV[1st Meijin Tournament] PB[Go Seigen] PW[Hashimoto Shoji] DT[1962/04/02,03] RE[B+9] SO[Go World 21 (1980), has commentary by Go Seigen] BL[1800.0]WL[1800.0];B[pd];W[dc];B[pp];W[dq];B[de];W[ce];B[dd];W[cd];B[ec];W[eb] ;B[db];W[cc];B[fb];W[df];B[fd];W[cn];B[cb];W[cg];B[jq];W[gq] ;B[qn];W[qf];B[re];W[qi];B[bf];W[cf];B[cl];W[cj];B[co];W[cp] ;B[do];W[bo];B[bn];W[bm];B[dn];W[cm];B[dm];W[an];B[dj];W[dk] ;B[gp];W[dl];B[fq];W[nc];B[rf];W[ql];B[qh];W[pc];B[qc];W[qb] ;B[pi];W[qj];B[oc];W[pb];B[od];W[ob];B[rh];W[pj];B[oi];W[oj] ;B[ni];W[nj];B[hq];W[qq];B[pq];W[qp];B[qo];W[pr];B[or];W[qr] ;B[nq];W[rp];B[nm];W[lj];B[rc];W[lc];B[ro];W[sr];B[mi];W[ml] ;B[ln];W[gl];B[kl];W[pm];B[md];W[nd];B[mc];W[qd];B[ne];W[nb] ;B[me];W[mb];B[el];W[ek];B[fk];W[fl];B[em];W[hj];B[fj];W[ej] ;B[fi];W[jk];B[mj];W[mk];B[kk];W[kj];B[lk];W[km];B[jl];W[lm] ;B[il];W[on];B[oo];W[nn];B[gh];W[kd];B[kf];W[hg];B[di];W[ck] ;B[gg];W[lf];B[kg];W[ke];B[of];W[in];B[jm];W[jn];B[kn];W[ll] ;B[nk];W[nl];B[ol];W[ok];B[mm];W[nk];B[ij];W[ii];B[ji];W[hk] ;B[ik];W[hh];B[mn];W[om];B[gn];W[he];B[hl];W[gk];B[gf];W[fn] ;B[fo];W[eo];B[ep];W[dp];B[en];W[fm];B[eo];W[hm];B[jj];W[ho] ;B[no];W[go];B[eq];W[dr];B[hp];W[jo];B[kp];W[ei];B[hf];W[ig] ;B[ic];W[jh];B[kh];W[jc];B[ie];W[id];B[hd];W[jd];B[jg];W[if] ;B[ge];W[jf];B[ib];W[jb];B[eg];W[eh];B[rk];W[rl];B[ri];W[rj] ;B[sj];W[qk];B[er];W[ee];B[ed];W[es];B[fs];W[ds];B[bb];W[bc] ;B[sk];W[sl];B[si];W[sn];B[le];W[rb];B[rd];W[gs];B[fr];W[ef] ;B[so];W[rn];B[rm];W[sm];B[qm];W[pl];B[ko];W[gr];B[fp];W[fg] ;B[ia];W[hc];B[ga];W[ip];B[iq];W[jp];B[ac];W[ad];B[ab];W[sc] ;B[sd];W[sb];B[ih];W[hi];B[fh];W[ff];B[ja];W[ka];B[ps];W[qs] ;B[os];W[sp];B[po];W[fe];B[jh]) goban-1.1.orig/games/Hon-73-2.sgf0000644000175000017500000000240606243710546014072 0ustar alal( ; EV[28th Honinbo] RO[2] BR[Honinbo] WR[Meijin] PB[Ishida Yoshio] PW[Rin Kaiho] KM[4.5] DT[1973-] PC[Japan] RE[B+R] ;B[qd];W[od];B[ce];W[cq];B[dc];W[qc];B[rc];W[pc];B[re] ;W[kc];B[pp];W[nq];B[pn];W[jp];B[pf];W[ql];B[mo];W[lp];B[oq] ;W[nr];B[qm];W[pl];B[nl];W[ph];B[ne];W[mc];B[qj];W[pj];B[qi] ;W[pi];B[qh];W[ng];B[ni];W[pg];B[qf];W[lg];B[ld];W[lc];B[eq] ;W[gq];B[gp];W[hq];B[dp];W[cp];B[co];W[do];B[bo];W[dn];B[cm] ;W[dm];B[cl];W[fp];B[cr];W[dr];B[dq];W[br];B[dl];W[cs];B[li] ;W[jg];B[hg];W[mj];B[ok];W[qo];B[po];W[rm];B[rn];W[qn];B[ro] ;W[pm];B[qp];W[pk];B[mi];W[ml];B[mm];W[ll];B[kh];W[kg];B[ii] ;W[nm];B[nj];W[mk];B[hj];W[nk];B[gd];W[cf];B[be];W[fg];B[em] ;W[fn];B[fk];W[fj];B[gj];W[de];B[gf];W[bf];B[dd];W[cj];B[bi] ;W[bj];B[ch];W[ei];B[dg];W[ci];B[bh];W[ek];B[el];W[eg];B[df] ;W[fl];B[gk];W[fm];B[bk];W[ak];B[al];W[aj];B[bp];W[bq];B[bl] ;W[cn];B[bn];W[am];B[di];W[pr];B[qr];W[qs];B[rr];W[np];B[nn] ;W[om];B[on];W[rs];B[or];W[os];B[pq];W[rq];B[ps];W[ej];B[ai] ;W[pr];B[sq];W[ik];B[hl];W[hc];B[gc];W[gb];B[hd];W[hb];B[fb] ;W[sp];B[ps];W[ih];B[jh];W[pr];B[qq];W[sr];B[ps];W[dj];B[dh] ;W[pr];B[rp];W[ps];B[rk];W[fe];B[ff];W[eb];B[fa];W[fc];B[ec] ;W[fd];B[db];W[id];B[ie];W[if];B[hf];W[je];B[ig];W[he];B[ge] ;W[eh];B[ef];W[gh];B[gi]C[183 moves complete. Black wins by resignation.] ) goban-1.1.orig/games/Hon-50-3.sgf0000644000175000017500000000337606243707212014071 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[ 5/3] FF[3] PB[Iwamoto Kaoru] PW[Hashimoto Utaro] DT[1950-04-20..22] RE[W+4.5] KM[4.5] ;B[qd];W[cd];B[ec];W[oc];B[kc];W[of];B[qg];W[dq];B[df];W[ed] ;B[dd];W[de];B[dc];W[ce];B[ee];W[fd];B[cc];W[cf];B[ef];W[ch] ;B[ge];W[fc];B[hc];W[bc];B[fb];W[cb];B[eb];W[dg];B[co];W[dm] ;B[dn];W[cm];B[gp];W[fo];B[ep];W[dp];B[eo];W[do];B[en];W[cn] ;B[eq];W[er];B[fr];W[dr];B[pp];W[lc];B[lb];W[mb];B[ld];W[mc] ;B[fl];W[nq];B[oq];W[np];B[pn];W[kq];B[pc];W[pe];B[qe];W[pb] ;B[od];W[ob];B[pd];W[md];B[kd];W[me];B[qb];W[kb];B[jb];W[la] ;B[pk];W[qq];B[or];W[ro];B[qo];W[rp];B[rn];W[rr];B[dk];W[em] ;B[fm];W[el];B[ek];W[fk];B[bo];W[bp];B[bn];W[bm];B[bl];W[cp] ;B[fj];W[gk];B[fn];W[eg];B[gj];W[hk];B[hj];W[ik];B[ko];W[ej] ;B[cl];W[ao];B[ij];W[jk];B[ei];W[dj];B[di];W[cj];B[ci];W[bj] ;B[bi];W[al];B[gg];W[aj];B[iq];W[on];B[om];W[nn];B[nm];W[ln] ;B[lo];W[mn];B[jq];W[lk];B[oh];W[fh];B[fi];W[gh];B[ih];W[hg] ;B[gf];W[hh];B[kj];W[nh];B[oi];W[kr];B[bh];W[bg];B[mr];W[nr] ;B[ns];W[mq];B[kn];W[ml];B[kg];W[in];B[io];W[li];B[km];W[ol] ;B[pm];W[ll];B[ki];W[ok];B[pl];W[og];B[oj];W[he];B[hf];W[ig] ;B[lf];W[ie];B[lj];W[mj];B[mi];W[ni];B[lh];W[nj];B[nl];W[qf] ;B[rf];W[nk];B[pg];W[hm];B[hn];W[im];B[kp];W[sn];B[sm];W[so] ;B[rm];W[qa];B[ra];W[pa];B[qs];W[rs];B[rb];W[jc];B[ib];W[jd] ;B[mg];W[ng];B[mh];W[jh];B[ii];W[jg];B[kh];W[kf];B[mf];W[le] ;B[jr];W[lr];B[ms];W[fs];B[gr];W[gn];B[ho];W[gm];B[go];W[pj] ;B[ph];W[gs];B[hs];W[es];B[pf];W[jl];B[gd];W[if];B[fg];W[bb] ;B[oe];W[db];B[gc];W[oo];B[gl];W[hl];B[is];W[mo];B[ic];W[ls] ;B[os];W[po];B[qp];W[pr];B[qn];W[ps];B[pq];W[qr];B[ag];W[af] ;B[ah];W[ea];B[fa];W[da];B[eh];W[bd];B[nd];W[jn];B[jo];W[nc] ;B[lp];W[lq];B[ja];W[js];B[ks];W[qj];B[rk];W[js];B[nf];W[mk] ;B[ks];W[hr];B[fq];W[js];B[ak];W[bk];B[ks];W[rj];B[js];W[sk] ;B[qk]) goban-1.1.orig/games/Hon-84-2.mgt0000644000175000017500000000301206045540440014070 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Awaji Shuzo]RE[W+R]FF[3]DT[1984-]BS[0]WS[0]KM[5.5];B[qd];W[cp];B[cd];W[qp];B[oc];W[eq];B[op];W[ed];B[ec] ;W[oq];B[pp];W[pq];B[qo];W[np];B[qq];W[rp];B[qr];W[ro];B[pn] ;W[no];B[on];W[pr];B[nq];W[nr];B[mq];W[mr];B[lq];W[rr];B[mn] ;W[lp];B[mp];W[mo];B[lo];W[ln];B[kp];W[nn];B[nm];W[mm];B[oo] ;W[mn];B[nl];W[kn];B[iq];W[fc];B[dc];W[gd];B[cf];W[lk];B[kd] ;W[nj];B[pl];W[pj];B[rn];W[qm];B[ql];W[rj];B[qi];W[qj];B[rm] ;W[qf];B[of];W[qh];B[gq];W[pe];B[hc];W[gb];B[fg];W[ic];B[hd] ;W[hb];B[dl];W[cn];B[cm];W[bn];B[pg];W[qg];B[re];W[nd];B[nc] ;W[md];B[kb];W[eb];B[mf];W[le];B[oi];W[oj];B[kg];W[ke];B[id] ;W[je];B[jd];W[mh];B[lf];W[od];B[pd];W[if];B[ge];W[fe];B[gf] ;W[hg];B[gc];W[gi];B[gk];W[ei];B[ik];W[ii];B[kk];W[hl];B[lj] ;W[mk];B[ji];W[jh];B[ki];W[ij];B[ll];W[ml];B[hk];W[jj];B[kj] ;W[hp];B[in];W[hn];B[il];W[io];B[hm];W[hq];B[hr];W[gr];B[fr] ;W[ir];B[gs];W[jq];B[gn];W[ho];B[is];W[ip];B[dq];W[dp];B[er] ;W[cq];B[dr];W[gm];B[gl];W[fm];B[ep];W[dj];B[fl];W[em];B[el] ;W[ng];B[jg];W[ih];B[fj];W[fi];B[hf];W[ig];B[fd];W[eo];B[mc] ;W[gd];B[ef];W[fp];B[cr];W[br];B[bs];W[ar];B[fq];W[js];B[hs] ;W[ld];B[lc];W[cg];B[ck];W[cc];B[dd];W[df];B[dg];W[bf];B[bd] ;W[ce];B[de];W[dh];B[cf];W[be];B[ch];W[df];B[ps];W[or];B[cf] ;W[fs];B[es];W[df];B[rq];W[sq];B[cf];W[kl];B[jk];W[df];B[qs] ;W[os];B[cf];W[db];B[cb];W[df];B[so];W[rs];B[cf];W[bb];B[bc] ;W[df];B[kr];W[eg];B[ff];W[jr];B[jn];W[jm];B[im];W[jo];B[mi] ;W[ni];B[lh];W[mg];B[kh];W[nf];B[bh];W[bi];B[bj];W[ci];B[ai] ;W[ca];B[ab];W[fa];B[fd];W[fb];B[da];W[cc];B[ib];W[ha];B[cb] ;W[qn])goban-1.1.orig/games/Hon-81-5.mgt0000644000175000017500000000227306045540434014103 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Takemiya Masaki]DT[1981-07-08,09]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[cp];B[ep];W[nq];B[lq];W[qq];B[pq] ;W[qp];B[po];W[pr];B[or];W[qr];B[oq];W[qn];B[dn];W[nc];B[co] ;W[pf];B[nd];W[md];B[ne];W[oc];B[pe];W[qb];B[pm];W[qm];B[pl] ;W[me];B[mf];W[lf];B[lg];W[nf];B[mg];W[of];B[qc];W[oe];B[rb] ;W[od];B[dp];W[df];B[jp];W[kg];B[ji];W[jf];B[jk];W[dj];B[dc] ;W[ec];B[eb];W[db];B[cc];W[cb];B[ed];W[fc];B[cd];W[de];B[fb] ;W[bb];B[gc];W[fd];B[hb];W[ic];B[ib];W[jc];B[jb];W[kb];B[kc] ;W[kd];B[lc];W[lb];B[ge];W[gd];B[hd];W[fe];B[ff];W[ee];B[jd] ;W[gf];B[ga];W[cm];B[bn];W[el];B[gm];W[mk];B[mm];W[ll];B[jm] ;W[lm];B[ln];W[kn];B[lo];W[km];B[jn];W[ko];B[kp];W[fm];B[gn] ;W[bm];B[ch];W[dh];B[ci];W[di];B[bf];W[be];B[ce];W[bd];B[cf] ;W[bc];B[bk];W[cj];B[bj];W[af];B[dm];W[cl];B[kh];W[mi];B[nj] ;W[nk];B[ok];W[oj];B[oi];W[pj];B[ni];W[nh];B[pi];W[qj];B[qi] ;W[ri];B[rh];W[rk];B[si];W[rj];B[qf];W[lh];B[qg];W[ki];B[pb] ;W[os];B[ns];W[ps];B[nr];W[nm];B[nn];W[ml];B[mn];W[il];B[jl] ;W[gl];B[he];W[fg];B[jh];W[id];B[ie];W[je];B[hc];W[jd];B[fk] ;W[cn];B[ao];W[dl];B[gj];W[fl];B[ql];W[rl];B[am];W[al];B[bl] ;W[an];B[qo];W[ro];B[am];W[fo];B[ak];W[fp];B[ae];W[ho];B[ab] ;W[jo];B[hg];W[pc];B[qa])goban-1.1.orig/games/Hon-69-6.mgt0000644000175000017500000000166506045540400014107 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Kato Masao]KM[4.5]RE[B+R]DT[1969-06-16,17]FF[3]BS[0]WS[0];B[qd];W[dc];B[pq];W[co];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[cq];W[ep];B[eq];W[fp];B[fq];W[gp];B[cf] ;W[ch];B[bo];W[cn];B[bn];W[cm];B[dh];W[cg];B[dg];W[df];B[bf] ;W[ci];B[dd];W[ef];B[cc];W[ec];B[ed];W[fd];B[cd];W[fe];B[qg] ;W[cb];B[bb];W[pe];B[qe];W[nc];B[nd];W[mc];B[od];W[md];B[hi] ;W[fh];B[kh];W[mf];B[mh];W[eb];B[ca];W[jf];B[ig];W[if];B[ql] ;W[rm];B[pj];W[qj];B[qk];W[pi];B[rj];W[oj];B[ok];W[nj];B[nk] ;W[mj];B[pk];W[ng];B[mk];W[lj];B[kl];W[ln];B[oh];W[nh];B[oi] ;W[ni];B[nn];W[no];B[on];W[dq];B[dr];W[dp];B[jk];W[oo];B[lp] ;W[mp];B[mo];W[mn];B[lo];W[oq];B[or];W[pp];B[op];W[pn];B[ro] ;W[mq];B[np];W[qq];B[qr];W[rq];B[rr];W[jn];B[nm];W[rn];B[sq] ;W[lq];B[jp];W[jq];B[ip];W[iq];B[kp];W[hp];B[kn];W[km];B[lm] ;W[ko];B[mm];W[nr];B[oq];W[cr];B[br];W[bq];B[cs];W[bp];B[kq] ;W[kr];B[jr];W[lr];B[jm];W[pg];B[ri];W[cp];B[cr];W[es];B[hr] ;W[ir];B[fs])goban-1.1.orig/games/M-70-1.sgf0000644000175000017500000000361106252650444013535 0ustar alal( ; DT[1970-] RO[1] FF[3] BR[Meijin] WR[9 dan] KM[5] EV[9th Meijin 1970] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[W+4] ;B[qd];W[dc];B[pq];W[cq];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[ci];B[dd];W[ec];B[cc];W[cb];B[bc] ;W[hc];B[dn];W[fq];B[dk];W[fe];B[qg];W[mc];B[ei];W[df];B[cf] ;W[cg];B[bb];W[fh];B[me];W[kc];B[ql];W[rm];B[pj];W[qc];B[qj] ;W[rd];B[qe];W[pc];B[od];W[re];B[rf];W[op];B[oq];W[mn];B[bg] ;W[dg];B[bh];W[bn];B[co];W[bo];B[cp];W[bq];B[cm];W[bm];B[gq] ;W[gp];B[dq];W[hq];B[bp];W[dr];B[cr];W[dp];B[aq];W[eq];B[cl] ;W[di];B[kq];W[bk];B[bl];W[al];B[bj];W[bi];B[ck];W[aj];B[ak] ;W[lf];B[se];W[ob];B[nb];W[pb];B[nc];W[rb];B[le];W[bk];B[kf] ;W[cj];B[br];W[em];B[dq];W[cq];B[el];W[nj];B[nl];W[mp];B[ll] ;W[mq];B[np];W[no];B[nm];W[om];B[lo];W[mo];B[km];W[kp];B[ki] ;W[rk];B[rl];W[mr];B[nr];W[rj];B[pi];W[pk];B[ok];W[qk];B[so] ;W[sn];B[ro];W[jh];B[id];W[jf];B[kg];W[kh];B[lh];W[ke];B[je] ;W[lg];B[kd];W[jg];B[ke];W[li];B[mh];W[kj];B[mi];W[ji];B[mj] ;W[qh];B[ph];W[ib];B[pp];W[ko];B[gk];W[ej];B[fm];W[gj];B[fk] ;W[fj];B[ho];W[ip];B[ms];W[ls];B[ns];W[kr];B[sd];W[rc];B[rn] ;W[qm];B[sm];W[pl];B[sl];W[oo];B[if];W[db];B[lc];W[kb];B[lb] ;W[fn];B[gm];W[en];B[cn];W[im];B[am];W[an];B[ao];W[ap];B[ik] ;W[gn];B[jn];W[jl];B[hn];W[hm];B[ao];W[kl];B[lm];W[ap];B[jo] ;W[ak];B[go];W[fo];B[ek];W[gl];B[ao];W[am];B[fl];W[hl];B[dm] ;W[hk];B[jp];W[jq];B[hg];W[he];B[ie];W[hh];B[gg];W[pd];B[pe] ;W[rh];B[ed];W[fd];B[gh];W[gi];B[ba];W[ig];B[hd];W[gc];B[fg] ;W[ge];B[hf];W[eg];B[lp];W[lq];B[ln];W[lk];B[hp];W[fp];B[mk] ;W[lj];B[ka];W[ja];B[la];W[ic];B[fb];W[fc];B[ca];W[da];B[jc] ;W[jb];B[ah];W[ai];B[dj];W[hi];B[oa];W[pa];B[na];W[sc];B[sf] ;W[sg];B[ds];W[es];B[cs];W[rg];B[qf];W[mm];B[ml];W[sk];B[sn] ;W[bf];B[be];W[af];B[ae];W[ch];B[ag];W[do];B[nn];W[on];B[de] ;W[ee];B[ff];W[ef];B[ap];W[jd];B[ra];W[qa];B[jc];W[bf];B[af] ;W[jd];B[kn];W[kq];B[jc];W[rq];B[qr];W[jd];B[gr];W[iq];B[jc] C[289 moves complete, black fills the ko.] ;B[jd] ) goban-1.1.orig/games/M-71-3.sgf0000644000175000017500000000324106252650614013536 0ustar alal( ; GM[1] EV[10th Meijin Title Match] RO[3] PB[Fujisawa Shuko] BR[Meijin] PW[Rin Kaiho] WR[9 dan] DT[1971/Sep] PC[Tokyo] RE[B+2] KM[5] SZ[19] ;B[pd];W[dp];B[qp];W[dc];B[oq];W[qj];B[ce];W[cg];B[ee];W[fd] ;B[hd];W[fe];B[dg];W[ch];B[ff];W[gf];B[ge];W[ed];B[fg];W[hf] ;B[jd];W[cd];B[de];W[dj];B[gh];W[jf];B[dm];W[me];B[bd];W[bc] ;B[dd];W[cc];B[gb];W[fb];B[ld];W[eh];B[hi];W[kg];B[md];W[kj] ;B[gl];W[fk];B[gk];W[em];B[eo];W[fl];B[fm];W[fn];B[gm];W[en] ;B[do];W[cp];B[ep];W[gn];B[eq];W[dl];B[co];W[ik];B[ji];W[jj] ;B[ki];W[li];B[lh];W[kh];B[ij];W[jl];B[gj];W[im];B[ig];W[ih] ;B[ii];W[mh];B[eg];W[cf];B[df];W[qn];B[oo];W[bo];B[bn];W[bp] ;B[cl];W[dn];B[cn];W[dr];B[dq];W[cq];B[br];W[cr];B[er];W[bs] ;B[iq];W[ip];B[jq];W[hq];B[hr];W[hp];B[gr];W[qc];B[pc];W[qd] ;B[qe];W[re];B[rf];W[qf];B[pe];W[rg];B[pf];W[sf];B[qg];W[rf] ;B[lj];W[mi];B[lk];W[km];B[lm];W[ln];B[mm];W[rp];B[rq];W[pk] ;B[lf];W[lg];B[kl];W[be];B[kn];W[ko];B[jm];W[jn];B[km];W[jo] ;B[hm];W[pb];B[ob];W[ro];B[hn];W[go];B[pm];W[qm];B[ao];W[ar] ;B[dk];W[cm];B[ck];W[ej];B[bm];W[el];B[qb];W[rb];B[pa];W[gc] ;B[hc];W[hb];B[ib];W[ga];B[lp];W[lo];B[mp];W[in];B[jk];W[qh] ;B[pg];W[mf];B[bi];W[rr];B[qq];W[sq];B[bh];W[bg];B[ph];W[pi] ;B[ra];W[rc];B[qr];W[bj];B[cj];W[ci];B[bk];W[ia];B[ja];W[ha] ;B[jb];W[il];B[le];W[hg];B[jh];W[jg];B[hh];W[nk];B[ng];W[mg] ;B[oi];W[oj];B[fi];W[dh];B[ei];W[di];B[fj];W[ek];B[mj];W[ni] ;B[oh];W[nj];B[pl];W[ql];B[ne];W[sr];B[rs];W[ah];B[aj];W[nf] ;B[of];W[po];B[pn];W[qo];B[pp];W[ol];B[nn];W[nm];B[on];W[ml] ;B[ie];W[if];B[je];W[mo];B[no];W[ap];B[an];W[es];B[fs];W[ds] ;B[kp];W[kf];B[ke];W[ho];B[jp];W[fq];B[gq];W[fp];B[fr];W[hk] ;B[nh];W[fh];B[gg];W[hj];B[kk];W[sb];B[ih];W[dm] ) goban-1.1.orig/games/Hon-54-5.mgt0000644000175000017500000000203606045540244014077 0ustar alal (;GM[1]SZ[19]DT[1954-07-05,06]PW[Sugiuchi Masao]RE[B+R]PB[Takagawa Kaku]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[pp];B[dd];W[co];B[dq];W[cj];B[ep];W[jp];B[hq] ;W[qf];B[nd];W[rd];B[qc];W[qi];B[cl];W[eo];B[fo];W[en];B[el] ;W[fn];B[ej];W[dp];B[eq];W[cf];B[go];W[cq];B[cr];W[bq];B[ce] ;W[df];B[fd];W[dh];B[jc];W[pn];B[gl];W[bl];B[bm];W[bk];B[cn] ;W[br];B[be];W[fk];B[ek];W[bf];B[gn];W[iq];B[hr];W[kn];B[pj] ;W[pi];B[oj];W[qj];B[pl];W[jd];B[ic];W[ld];B[kd];W[ke];B[kc] ;W[mj];B[ni];W[of];B[mi];W[mf];B[lj];W[lc];B[rc];W[je];B[mq] ;W[oq];B[mo];W[mn];B[nn];W[no];B[ln];W[mm];B[lo];W[lm];B[km] ;W[lk];B[ko];W[kj];B[li];W[kl];B[jn];W[ki];B[nl];W[mk];B[on] ;W[oo];B[qk];W[qm];B[ql];W[rm];B[pm];W[kh];B[ng];W[nf];B[rj] ;W[rl];B[pg];W[ri];B[og];W[pf];B[qg];W[rf];B[mg];W[lh];B[lg] ;W[kg];B[lf];W[me];B[qn];W[rk];B[po];W[qp];B[le];W[md];B[rg] ;W[nb];B[nm];W[ok];B[nk];W[ol];B[mh];W[oh];B[nj];W[he];B[nc] ;W[kb];B[jb];W[ka];B[mb];W[lb];B[mc];W[gc];B[gb];W[fb];B[fc] ;W[gd];B[hb];W[eb];B[db];W[ec];B[ed];W[dc];B[cb];W[cc];B[bc] ;W[bd];B[bb];W[cd];B[fa];W[de];B[ea];W[ae];B[ja])goban-1.1.orig/games/Hon-61-5.sgf0000644000175000017500000000322406243707656014101 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[16/5] FF[3] PB[Sakata Eio] PW[Takagawa Shukaku] DT[1961-06-16,17] PC[Yonezawa] RE[B+0.5] KM[4.5] ;B[pd];W[dp];B[qp];W[dc];B[oq];W[qk];B[cf];W[cd];B[ci];W[ck] ;B[qi];W[qn];B[jc];W[hc];B[fq];W[dn];B[dr];W[cq];B[iq];W[qc] ;B[pc];W[qd];B[qe];W[re];B[rf];W[qf];B[pe];W[rg];B[pf];W[sf] ;B[qg];W[rf];B[je];W[bg];B[cg];W[bh];B[ch];W[bf];B[ed];W[ce] ;B[gd];W[ef];B[dk];W[dl];B[ec];W[ie];B[id];W[hd];B[he];W[if] ;B[ge];W[jf];B[kf];W[ke];B[jd];W[kg];B[lf];W[fg];B[ek];W[lg] ;B[mf];W[cj];B[dj];W[bi];B[hg];W[gi];B[el];W[em];B[gl];W[ei] ;B[di];W[ih];B[gg];W[qh];B[ph];W[pg];B[og];W[oh];B[qg];W[eb] ;B[fb];W[pg];B[pi];W[ng];B[qg];W[nf];B[ne];W[pg];B[of];W[mg] ;B[me];W[kl];B[qg];W[il];B[de];W[kq];B[hk];W[ij];B[hj];W[hi] ;B[fm];W[fn];B[gn];W[fo];B[dq];W[cp];B[ik];W[jj];B[go];W[pg] ;B[qb];W[rb];B[qg];W[db];B[pb];W[pg];B[pm];W[qm];B[pk];W[pn] ;B[ql];W[rl];B[pl];W[oo];B[op];W[rj];B[qg];W[rh];B[fh];W[mq] ;B[ro];W[hp];B[hq];W[gp];B[gq];W[eh];B[fi];W[fj];B[gh];W[gj] ;B[ej];W[ho];B[hn];W[in];B[fp];W[io];B[cl];W[dm];B[eo];W[en] ;B[df];W[cr];B[ep];W[do];B[oi];W[jr];B[ir];W[nh];B[jk];W[kk] ;B[ni];W[mi];B[mj];W[lj];B[li];W[mh];B[qj];W[rk];B[mk];W[dd] ;B[ee];W[ds];B[es];W[cs];B[er];W[nr];B[or];W[fa];B[gb];W[rn] ;B[nm];W[jl];B[ra];W[rc];B[hl];W[mn];B[mm];W[rq];B[rp];W[qq] ;B[pp];W[rr];B[os];W[qs];B[pr];W[np];B[qr];W[ga];B[ha];W[ea] ;B[hb];W[jq];B[nq];W[mr];B[ln];W[rs];B[sr];W[nn];B[km];W[lo] ;B[ko];W[kp];B[ki];W[ji];B[jo];W[im];B[jp];W[ig];B[js];W[ks] ;B[is];W[mp];B[ll];W[so];B[sp];W[sn];B[sq];W[ns];B[ss];W[jn] ;B[kn];W[om];B[ol];W[fk];B[fl];W[hf];B[gf];W[ri];B[hm];W[kj] ;B[hh];W[ip];B[sb];W[sc];B[on];W[sa];B[qa];W[om];B[pg];W[on] ;B[sb];B[sa]) goban-1.1.orig/games/T-22-5.mgt0000644000175000017500000000221706404362200013543 0ustar alal( ; SY[Written by GoBase-0.0.9] EV[22nd Tengen] RO[5th game] PB[Rin Kaiho] BR[9 dan] PW[Ryu Shikun] WR[7 dan] KM[5.5] DT[1996-12-26] PC[Japan] RE[W+R] ;B[pd];W[dp];B[qp];W[dd];B[gp];W[dn];B[kq];W[qj];B[qg];W[qm] ;B[pn];W[ro];B[pm];W[qo];B[po];W[ql];B[pp];W[fc];B[di];W[dk] ;B[cf];W[be];B[dq];W[eq];B[ep];W[er];B[dr];W[gr];B[cp];W[do] ;B[fq];W[fr];B[bo];W[hp];B[gn];W[fo];B[go];W[fp];B[jo];W[gq] ;B[fi];W[nc];B[pb];W[kc];B[pk];W[ri];B[gk];W[qf];B[pf];W[pg] ;B[rf];W[qe];B[pe];W[rg];B[qh];W[re];B[rh];W[sf];B[qi];W[pj] ;B[rj];W[ph];B[qk];W[pi];B[si];W[rk];B[rl];W[sk];B[rm];W[sh] ;B[sg];W[pl];B[ok];W[sh];B[ol];W[ri];B[me];W[ke];B[ld];W[lc] ;B[oc];W[nb];B[mg];W[nd];B[ne];W[ie];B[jf];W[je];B[bf];W[ce] ;B[ef];W[mi];B[rc];W[ob];B[li];W[mh];B[lg];W[lh];B[kg];W[ki] ;B[hf];W[fe];B[kk];W[ff];B[ji];W[jj];B[kj];W[lj];B[lk];W[jh] ;B[ii];W[kh];B[ih];W[mk];B[ml];W[if];B[pa];W[od];B[pc];W[qd] ;B[qc];W[sc];B[nh];W[ng];B[og];W[ni];B[oe];W[oh];B[nf];W[le] ;B[nh];W[rp];B[rq];W[ng];B[sd];W[rd];B[nh];W[qq];B[qr];W[ng] ;B[sb];W[cq];B[cr];W[bq];B[br];W[ra];B[nh];W[bp];B[co];W[ng] ;B[en];W[eo];B[nh];W[bn];B[aq];W[ng];B[ig];W[jg];B[nh];W[cn] ;B[ap];W[ng];B[rb];W[qa];B[nh];W[pq] ) goban-1.1.orig/games/T-12-1.mgt0000644000175000017500000000172506252627522013555 0ustar alal(;GM[1]VW[]SZ[19]PW[Sonoda Yuichi]PB[Kobayashi Koichi]DT[1986-11-13]RE[W+R]ID[12/1]FF[3];B[qd];W[dp];B[dc];W[de];B[ee];W[ef];B[ed];W[df];B[cd] ;W[gf];B[pp];W[od];B[hd];W[pf];B[oc];W[pc];B[pd];W[qc];B[rc] ;W[rb];B[rd];W[ob];B[nc];W[nb];B[mc];W[oe];B[sb];W[qb];B[qg] ;W[mb];B[lc];W[ph];B[lb];W[ma];B[qf];W[qh];B[pg];W[og];B[oh] ;W[ng];B[rh];W[ri];B[sg];W[oi];B[ep];W[eo];B[dq];W[fo];B[cq] ;W[fp];B[eq];W[cn];B[gr];W[nh];B[cm];W[dm];B[cl];W[dl];B[ck] ;W[dk];B[cj];W[dj];B[di];W[ei];B[dh];W[eh];B[ie];W[bn];B[bf] ;W[cg];B[bg];W[ch];B[bh];W[ci];B[qj];W[qi];B[qn];W[qq];B[pq] ;W[pr];B[qp];W[rr];B[rq];W[qr];B[nq];W[rp];B[ro];W[sq];B[kf] ;W[bi];B[hp];W[in];B[jp];W[io];B[ip];W[kn];B[ji];W[gd];B[gc] ;W[ge];B[fc];W[jj];B[ii];W[ij];B[hi];W[hj];B[kj];W[kk];B[lk] ;W[kl];B[or];W[lo];B[mp];W[ki];B[lj];W[kh];B[lh];W[li];B[mi] ;W[kg];B[lg];W[jg];B[nj];W[if];B[oj];W[pj];B[pk];W[qk];B[pi] ;W[lf];B[mf];W[pj];B[ra];W[pa];B[pi];W[le];B[me];W[pj];B[ig] ;W[je];B[pi];W[mh];B[mg];W[pj])goban-1.1.orig/games/M-79-1.mgt0000644000175000017500000000322406252627042013554 0ustar alal(;GM[1]PB[Otake Hideo]PW[Sakata Eio]BR[9 Dan]WR[9 Dan]PC[Tokyo]DT[1979-09-12]RE[B+6.5]ID[79/1]SZ[19]FF[3]BS[0]WS[0];B[qd];W[dc];B[pq];W[cq];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[dh];B[df];W[fd];B[bc];W[jc];B[cj] ;W[ei];B[co];W[eq];B[dl];W[qf];B[ff];W[gh];B[hg];W[hd];B[ii] ;W[gk];B[ik];W[ek];B[ip];W[op];B[oq];W[mn];B[oi];W[pj];B[lc] ;W[gq];B[cb];W[db];B[ed];W[fc];B[oj];W[cc];B[bb];W[cm];B[dm] ;W[cn];B[dn];W[bo];B[cl];W[do];B[eo];W[dp];B[bh];W[eg];B[fe] ;W[cg];B[bg];W[cd];B[be];W[ci];B[bi];W[dj];B[pf];W[qe];B[pe] ;W[rd];B[qg];W[rg];B[rc];W[pg];B[og];W[qh];B[pd];W[kb];B[lb] ;W[kd];B[ld];W[ke];B[hq];W[gr];B[lf];W[kf];B[kg];W[ck];B[bj] ;W[le];B[me];W[bl];B[bk];W[ro];B[rp];W[ok];B[nk];W[ol];B[fg] ;W[fm];B[rn];W[rm];B[so];W[lk];B[hm];W[lm];B[fh];W[fo];B[sm] ;W[rl];B[re];W[rf];B[sd];W[ir];B[bm];W[bn];B[al];W[en];B[kr] ;W[kq];B[lr];W[jr];B[lq];W[kp];B[hk];W[gl];B[jn];W[hj];B[ij] ;W[mi];B[mj];W[lj];B[lg];W[mk];B[nj];W[nl];B[ph];W[ki];B[sl] ;W[nh];B[oh];W[sk];B[sn];W[qg];B[gp];W[fp];B[rk];W[sj];B[lp] ;W[ko];B[kn];W[lo];B[kc];W[jb];B[ie];W[id];B[jf];W[jd];B[mh] ;W[np];B[mp];W[in];B[jo];W[ho];B[jl];W[im];B[kl];W[hp];B[mo] ;W[nn];B[ln];W[jq];B[ll];W[ml];B[iq];W[io];B[jp];W[hr];B[hl] ;W[jh];B[gj];W[gi];B[hi];W[fi];B[la];W[jg];B[ig];W[he];B[gg] ;W[dd];B[de];W[md];B[ni];W[mf];B[ne];W[lh];B[mg];W[kh];B[li] ;W[mc];B[mb];W[mi];B[ng];W[gm];B[dk];W[ec];B[hn];W[gn];B[fj] ;W[ej];B[fk];W[el];B[dg];W[ch];B[eh];W[bd];B[ad];W[da];B[ca] ;W[ka];B[nb];W[no];B[cf];W[di];B[li];W[hf];B[if];W[mi];B[rj] ;W[si];B[li];W[kj];B[sf];W[ri];B[sg];W[sh];B[se];W[pi];B[em] ;W[ep];B[ge];W[gd];B[ee];W[ks];B[ls];W[js];B[an];W[ao];B[am] ;W[fl];B[hj];W[mi];W[li])goban-1.1.orig/games/Hon-71-6.mgt0000644000175000017500000000304506045540402014074 0ustar alal (;GM[1]SZ[19]PB[Ishida Yoshio]PW[Rin Kaiho]RE[B+0.5]FF[3]DT[1971-06-21,22]PC[Atami]BS[0]WS[0]KM[4.5];B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb] ;W[eb];B[bg];W[bf];B[bh];W[bd];B[ci];W[eg];B[fe];W[fc];B[ff] ;W[ei];B[cl];W[hd];B[hf];W[cn];B[el];W[fj];B[cm];W[ij];B[jf] ;W[jd];B[pj];W[ig];B[if];W[md];B[kd];W[kc];B[gc];W[gb];B[lg] ;W[ke];B[jg];W[dn];B[gl];W[hk];B[im];W[kk];B[ln];W[mk];B[nj] ;W[mj];B[nh];W[nk];B[ok];W[nf];B[li];W[mm];B[om];W[mn];B[mo] ;W[lo];B[mp];W[kn];B[lp];W[ko];B[kp];W[io];B[jp];W[in];B[hq] ;W[pf];B[rd];W[qq];B[ro];W[rp];B[or];W[qo];B[rn];W[qn];B[qp] ;W[rr];B[qm];W[pr];B[go];W[fn];B[gn];W[hm];B[hl];W[il];B[gd] ;W[hc];B[oe];W[ni];B[mi];W[oj];B[oi];W[nj];B[oh];W[pk];B[qj] ;W[qc];B[qd];W[mg];B[ae];W[ad];B[af];W[ab];B[ag];W[ba];B[of] ;W[oc];B[pc];W[pb];B[dr];W[eq];B[er];W[fq];B[cp];W[cq];B[dq] ;W[bp];B[ep];W[co];B[fp];W[qb];B[ol];W[fr];B[cr];W[br];B[gq] ;W[rc];B[nq];W[rm];B[po];W[so];B[pn];W[sn];B[rl];W[mh];B[mf] ;W[lf];B[ng];W[me];B[lh];W[gg];B[fg];W[gh];B[gf];W[mf];B[fh] ;W[di];B[dh];W[eh];B[gi];W[cj];B[bj];W[ch];B[bi];W[hh];B[ii] ;W[hi];B[ih];W[ck];B[bk];W[ji];B[jh];W[od];B[pe];W[fi];B[bs] ;W[ki];B[ed];W[cs];B[ds];W[bm];B[bl];W[he];B[hg];W[gj];B[kh] ;W[bn];B[ar];W[bq];B[pq];W[sq];B[ps];W[qr];B[sc];W[sb];B[sd] ;W[eo];B[lj];W[fo];B[gp];W[lk];B[nn];W[ip];B[iq];W[gm];B[fm] ;W[hn];B[al];W[kf];B[kj];W[jj];B[ef];W[ek];B[em];W[sm];B[sl] ;W[sp];B[en];W[do];B[am];W[qs];B[os];W[jo];B[ne];W[nd];B[ie] ;W[id];B[an];W[ao];B[nl];W[ml];B[gr];W[dk];B[fs];W[dh];B[cs] ;W[aq];B[as])goban-1.1.orig/games/Hon-59-3.mgt0000644000175000017500000000324106045540252014100 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[W+0.5]DT[1959-07-]BS[0]WS[0];B[qd];W[dc];B[pq];W[dq];B[qk];W[od];B[oc];W[nc];B[pc] ;W[nd];B[pf];W[jd];B[ce];W[dh];B[co];W[cd];B[de];W[fd];B[fq] ;W[ep];B[fp];W[en];B[cl];W[dm];B[jp];W[cm];B[bm];W[bn];B[bl] ;W[cn];B[bh];W[po];B[qp];W[lo];B[oo];W[lq];B[jq];W[pk];B[pl] ;W[op];B[pp];W[ol];B[pj];W[ok];B[ql];W[on];B[no];W[nn];B[pn] ;W[mo];B[qo];W[ef];B[ch];W[nf];B[di];W[ei];B[dr];W[cr];B[er] ;W[dj];B[ci];W[bq];B[oj];W[ho];B[hp];W[pg];B[mj];W[qe];B[re] ;W[rf];B[qf];W[pe];B[rg];W[rd];B[sf];W[rc];B[qb];W[pd];B[qc] ;W[rb];B[nb];W[ob];B[oa];W[mb];B[pb];W[ma];B[na];W[qa];B[ra] ;W[sa];B[sc];W[sd];B[of];W[ng];B[og];W[lc];B[gf];W[ee];B[gd] ;W[gc];B[dd];W[cc];B[ed];W[fc];B[gh];W[eh];B[be];W[hg];B[gg] ;W[ge];B[hf];W[ji];B[hj];W[np];B[fj];W[kr];B[jf];W[ie];B[if] ;W[ir];B[jr];W[js];B[go];W[or];B[bd];W[nh];B[oq];W[oh];B[ph] ;W[pi];B[qh];W[nj];B[qj];W[po];B[jj];W[pm];B[qn];W[nr];B[pr] ;W[bc];B[kn];W[gn];B[hn];W[gm];B[ki];W[ps];B[qs];W[os];B[qr] ;W[gr];B[io];W[mk];B[ni];W[nk];B[oi];W[kg];B[kf];W[lg];B[kd] ;W[kc];B[jh];W[cg];B[bg];W[cf];B[bf];W[ej];B[iq];W[hr];B[hm] ;W[kl];B[ac];W[ab];B[ad];W[cb];B[me];W[lj];B[mi];W[ne];B[he] ;W[hd];B[je];W[id];B[md];W[mc];B[jl];W[kk];B[km];W[gk];B[gl] ;W[fl];B[hl];W[fk];B[mm];W[ll];B[nq];W[mr];B[lm];W[ik];B[jk] ;W[hk];B[mq];W[mp];B[eo];W[do];B[fo];W[eq];B[fr];W[ck];B[bk] ;W[cj];B[bj];W[dl];B[oo];W[kj];B[gj];W[il];B[li];W[ij];B[ii] ;W[jm];B[ji];W[ml];B[im];W[mf];B[le];W[ko];B[df];W[dg];B[ff] ;W[fe];B[ec];W[eb];B[fn];W[fm];B[an];W[ao];B[am];W[se];B[rf] ;W[fi];B[kp];W[lp];B[cs];W[bs];B[ds];W[jg];B[ig];W[gi];B[hi] ;W[qm];B[rm];W[om];B[gq];W[fs];B[es];W[jo];B[jn];W[is];B[gs] ;W[hq];B[nm];W[ld];B[mh])goban-1.1.orig/games/M-65-4.sgf0000644000175000017500000000324506252650076013550 0ustar alal( ; GM[1] EV[4th Meijin Title Match] RO[4] PB[Rin Kaiho] BR[8 dan] PW[Sakata Eio] WR[Meijin] DT[Aug 29/30, 1965] PC[Fukuoka] RE[B+3] KM[5] SZ[19] ;B[qd];W[dc];B[po];W[od];B[oc];W[nc];B[pc];W[md];B[ne] ;W[nd];B[pe];W[co];B[de];W[ee];B[ef];W[ed];B[ff];W[df] ;B[dg];W[cf];B[cg];W[be];B[bf];W[ce];B[dq];W[cl];B[pq] ;W[qj];B[ql];W[fq];B[do];W[cp];B[dp];W[dn];B[en];W[cq] ;B[dm];W[cn];B[fo];W[jq];B[lq];W[em];B[jo];W[qp];B[qq] ;W[el];B[ho];W[lr];B[mr];W[gp];B[go];W[kr];B[mp];W[er] ;B[jd];W[qg];B[ph];W[qh];B[pi];W[re];B[pg];W[qi];B[rd] ;W[pj];B[lc];W[qe];B[pd];W[lf];B[jf];W[ld];B[kd];W[kg] ;B[ni];W[jg];B[hf];W[pl];B[pm];W[ol];B[rk];W[qm];B[rm] ;W[qn];B[pn];W[rj];B[oj];W[hg];B[hh];W[gg];B[ig];W[ih] ;B[if];W[ii];B[ki];W[ji];B[gh];W[kj];B[li];W[eh];B[gj] ;W[hj];B[gi];W[gk];B[fk];W[gl];B[di];W[ej];B[fj];W[hm] ;B[gc];W[dr];B[kl];W[jm];B[jl];W[il];B[in];W[im];B[iq] ;W[ir];B[hq];W[gr];B[ek];W[km];B[ln];W[lm];B[eb];W[db] ;B[rn];W[qk];B[rl];W[ci];B[cj];W[bh];B[bi];W[ch];B[dh] ;W[bg];B[ah];W[af];B[ck];W[mn];B[lo];W[mj];B[lj];W[lk] ;B[mk];W[ll];B[nk];W[pf];B[of];W[qf];B[jj];W[kk];B[mg] ;W[mb];B[mf];W[kb];B[kc];W[me];B[lg];W[kf];B[ob];W[sd] ;B[sc];W[se];B[rb];W[gb];B[hb];W[kp];B[jn];W[ge];B[gf] ;W[fb];B[fc];W[ec];B[ga];W[ea];B[fe];W[fd];B[gd];W[jb] ;B[ib];W[ic];B[jc];W[ia];B[id];W[fa];B[hr];W[hs];B[ls] ;W[ha];B[hc];W[no];B[np];W[ks];B[kh];W[jh];B[ms];W[lp] ;B[mo];W[oe];B[nf];W[nn];B[ke];W[le];B[bk];W[mi];B[lh] ;W[nh];B[oh];W[bl];B[al];W[am];B[ak];W[cm];B[lb];W[la] ;B[nl];W[om];B[nb];W[mc];B[nm];W[on];B[mq];W[kq];B[oo] ;W[sk];B[sl];W[sj];B[dk];W[dl];B[na];W[ma];B[hk];W[ik] ;B[ok];W[hp];B[ip];W[ag];B[ai];W[bj];B[aj];W[jp];B[fm] ;W[gn];B[fn];W[ep];B[eo] ) goban-1.1.orig/games/M-84-6.mgt0000644000175000017500000000301206252627042013550 0ustar alal(;GM[1]SZ[19]PW[Otake Hideo]PB[Cho Chikun]DT[1984-11-07,08]PC[Hakone]RE[B+3.5]ID[84/6]FF[3]BS[0]WS[0]WR[9 Dan]BR[9 Dan];B[qd];W[cc];B[pq];W[oc];B[dp];W[po];B[ld];W[pg];B[od] ;W[nd];B[oe];W[pc];B[ne];W[qc];B[re];W[rc];B[qm];W[qq];B[dd] ;W[pp];B[cd];W[dc];B[ec];W[eb];B[fc];W[fb];B[gc];W[bd];B[be] ;W[bc];B[cf];W[pj];B[oq];W[rp];B[lq];W[qf];B[dn];W[kp];B[lp] ;W[ko];B[lo];W[kn];B[jr];W[om];B[qh];W[qj];B[ph];W[og];B[oh] ;W[ng];B[oj];W[ok];B[nh];W[mg];B[nk];W[nj];B[mj];W[oi];B[nl] ;W[ol];B[nc];W[pd];B[mh];W[kg];B[ll];W[jl];B[kj];W[ho];B[pe] ;W[qe];B[qg];W[pf];B[rf];W[rd];B[nb];W[ri];B[ik];W[gm];B[il] ;W[em];B[dm];W[el];B[im];W[fp];B[ck];W[ej];B[di];W[ei];B[dh] ;W[kl];B[lm];W[ln];B[lh];W[lg];B[fq];W[gq];B[eq];W[km];B[jj] ;W[lk];B[lj];W[mm];B[rh];W[gr];B[fr];W[pr];B[or];W[qr];B[iq] ;W[hq];B[np];W[jd];B[gb];W[se];B[ml];W[ir];B[kq];W[ip];B[je] ;W[jq];B[mo];W[ob];B[ke];W[nm];B[mk];W[sf];B[ig];W[gg];B[hi] ;W[gi];B[gf];W[ff];B[hf];W[hj];B[ii];W[fe];B[fa];W[db];B[ad] ;W[ba];B[gj];W[ea];B[gh];W[eh];B[dk];W[dg];B[cg];W[gk];B[fi] ;W[fj];B[ga];W[cq];B[co];W[kr];B[lr];W[js];B[os];W[eo];B[dq] ;W[dr];B[bq];W[fs];B[es];W[gs];B[cr];W[me];B[md];W[rg];B[gi] ;W[le];B[ge];W[jf];B[ie];W[na];B[ma];W[oa];B[mb];W[ls];B[ms] ;W[mr];B[mq];W[ns];B[nr];W[sh];B[hk];W[gl];B[hn];W[in];B[jn] ;W[io];B[hm];W[gn];B[en];W[fn];B[fg];W[eg];B[fh];W[ac];B[ae] ;W[dj];B[cj];W[jm];B[de];W[ef];B[kh];W[jg];B[jh];W[fd];B[gd] ;W[ni];B[ek];W[fk];B[kk];W[dl];B[cl];W[ps];B[mi];W[pi];B[ms] ;W[nf];B[on];W[pn];B[lf];W[mf];B[kf];W[ep];B[jk];W[mn];B[no] ;W[ks])goban-1.1.orig/games/Hon-77-2.mgt0000644000175000017500000000244306045540404014101 0ustar alal (;SZ[19]PW[Kato Masao]PB[Takemiya Masaki]KM[5.5]DT[1977-05-23,24]GM[1]FF[3]RE[B+R]BS[0]WS[0];B[pd];W[dp];B[pq];W[dd];B[qk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[fq];W[jp];B[cq];W[dq];B[cp];W[do];B[dr];W[er];B[cr] ;W[eq];B[cn];W[mp];B[po];W[fp];B[cf];W[fd];B[dn];W[en];B[em] ;W[fn];B[dl];W[ce];B[df];W[di];B[ei];W[dh];B[eh];W[ej];B[ed] ;W[ee];B[ef];W[dk];B[de];W[ec];B[cd];W[cc];B[be];W[bd];B[ge] ;W[cl];B[cm];W[fe];B[ff];W[hd];B[bl];W[ck];B[gi];W[gj];B[hj] ;W[gk];B[hi];W[qm];B[pl];W[qp];B[pp];W[qo];B[qq];W[pm];B[om] ;W[rk];B[rj];W[rl];B[qj];W[rn];B[hk];W[gl];B[ld];W[lc];B[nd] ;W[kd];B[md];W[oc];B[ke];W[mm];B[rp];W[ro];B[jd];W[he];B[jf] ;W[jc];B[ll];W[ml];B[mk];W[nq];B[lm];W[or];B[no];W[mo];B[nl] ;W[sj];B[si];W[im];B[kn];W[if];B[ig];W[hg];B[gf];W[hf];B[ih] ;W[jl];B[kp];W[kq];B[jk];W[ln];B[km];W[qb];B[in];W[od];B[oe] ;W[sk];B[ri];W[qd];B[rd];W[qe];B[rc];W[pe];B[pc];W[re];B[qf] ;W[rf];B[rg];W[ne];B[of];W[rb];B[sf];W[kk];B[hn]TR[kk];W[lk];B[hl] ;W[mj];B[nk];W[hm];B[gm];W[gn];B[fm];W[kl];B[lj];W[kj];B[li] ;W[ki];B[kh];W[jn];B[bg];W[co];B[bo];W[ds];B[bc];W[ad];B[le] ;W[mc];B[cb];W[ce];B[jo];W[jm];B[cd];W[el];B[dm];W[ce];B[ko] ;W[io];B[cd];W[dc];B[ab];W[ce];B[ho];W[ip];B[cd];W[lh];B[mi] ;W[ce];B[nm];W[mn];B[cd];W[kg];B[jh];W[ce];B[hp];W[bp];B[bn] ;W[br];B[bq];W[cs];B[ap];W[ac];B[hq];W[jq];B[fr];W[gr];B[fs] )goban-1.1.orig/games/Hon-53-1.mgt0000644000175000017500000000310406045540240014063 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[B+1.5]DT[1953-05-18,19]BS[0]WS[0];B[dq];W[dd];B[qp];W[co];B[pc];W[qe];B[op];W[qj];B[ck] ;W[fo];B[gq];W[cg];B[od];W[kc];B[ql];W[rc];B[mc];W[pg];B[ic] ;W[jd];B[rb];W[id];B[gc];W[fd];B[gd];W[ge];B[he];W[hd];B[fe] ;W[gf];B[ed];W[fc];B[ec];W[fb];B[de];W[eb];B[dc];W[ff];B[ee] ;W[db];B[cb];W[qc];B[qb];W[lb];B[cm];W[cq];B[cr];W[bq];B[br] ;W[dp];B[eq];W[fl];B[ci];W[eg];B[gb];W[hc];B[da];W[hb];B[be] ;W[mq];B[or];W[jq];B[hp];W[dl];B[cl];W[mo];B[ol];W[rl];B[rk] ;W[qk];B[rj];W[pl];B[qm];W[pm];B[qi];W[pi];B[qh];W[ph];B[qn] ;W[ok];B[qg];W[pf];B[mb];W[ei];B[bg];W[hn];B[nf];W[dj];B[dk] ;W[ek];B[em];W[el];B[cj];W[mg];B[ng];W[nh];B[mh];W[mf];B[mn] ;W[ml];B[lo];W[no];B[jo];W[lp];B[gn];W[go];B[ho];W[in];B[gm] ;W[fm];B[fn];W[en];B[eo];W[dm];B[fp];W[do];B[gp];W[il];B[hl] ;W[hk];B[gl];W[gk];B[im];W[jl];B[km];W[ne];B[kl];W[nd];B[nc] ;W[ob];B[sb];W[kk];B[lk];W[kj];B[mk];W[kn];B[jm];W[ln];B[mm] ;W[ko];B[nl];W[mi];B[ld];W[le];B[oe];W[of];B[me];W[og];B[md] ;W[kd];B[pn];W[hr];B[nr];W[mr];B[qf];W[pe];B[re];W[bo];B[di] ;W[dh];B[cf];W[ch];B[bh];W[jn];B[gr];W[al];B[ir];W[om];B[on] ;W[nm];B[ll];W[nn];B[hm];W[jr];B[iq];W[rf];B[sc];W[aj];B[ej] ;W[fj];B[nf];W[ai];B[bi];W[sf];B[se];W[sd];B[rd];W[qd];B[sd] ;W[ri];B[rh];W[si];B[sh];W[pb];B[sj];W[ne];B[oc];W[is];B[jp] ;W[kp];B[ms];W[ls];B[ns];W[mj];B[nk];W[nj];B[lj];W[li];B[lr] ;W[ks];B[cn];W[dn];B[bn];W[an];B[ar];W[lq];B[gs];W[hs];B[df] ;W[qa];B[rg];W[oo];B[po];W[nq];B[oq];W[lm];B[ah];W[am];B[aq] ;W[ap];B[ea];W[ga];B[la];W[ka];B[ma];W[lc];B[nb];W[ep];B[fo] ;W[io];B[ip];W[ml];B[dg];W[eh];B[mm];W[ng];B[np])goban-1.1.orig/games/M-68-2.sgf0000644000175000017500000000226206252650326013545 0ustar alal( ; GM[1] EV[7th Meijin Title Match] RO[2] PB[Rin Kaiho] BR[Meijin] PW[Takagawa Shukaku] WR[9 dan] DT[1968/Aug/30,31] PC[Tokyo] RE[B+R] KM[5] SZ[19] ;B[qd];W[dd];B[pq];W[oc];B[cp];W[eq];B[qo];W[kq];B[hp];W[fp] ;B[dn];W[cr];B[cj];W[nq];B[ld];W[nd];B[pf];W[qb];B[qi];W[fc] ;B[fn];W[em];B[en];W[go];B[jp];W[kp];B[jn];W[ko];B[hm];W[ej] ;B[dh];W[ck];B[bk];W[cl];B[bl];W[cm];B[el];W[ci];B[di];W[dj] ;B[bj];W[fi];B[gq];W[bq];B[cq];W[br];B[er];W[fr];B[fq];W[dr] ;B[ep];W[dq];B[cf];W[fg];B[bd];W[jd];B[lf];W[nf];B[mc];W[nh] ;B[jc];W[ic];B[id];W[ie];B[hd];W[kc];B[jb];W[kd];B[ib];W[kb] ;B[gb];W[jf];B[lh];W[lj];B[ig];W[he];B[gd];W[df];B[dg];W[ef] ;B[gh];W[ce];B[bf];W[cg];B[bg];W[fh];B[jg];W[md];B[me];W[ne] ;B[lc];W[ge];B[mi];W[oi];B[qk];W[qh];B[rh];W[qg];B[rg];W[qf] ;B[rf];W[qe];B[re];W[ji];B[mj];W[ok];B[jj];W[ki];B[kg];W[im] ;B[lk];W[ij];B[jk];W[ik];B[jl];W[il];B[in];W[jm];B[nk];W[pi] ;B[qj];W[ol];B[km];W[kn];B[ii];W[lm];B[kl];W[ll];B[kk];W[hn] ;B[hj];W[hl];B[gm];W[hi];B[ih];W[gj];B[gl];W[hk];B[gk];W[hj] ;B[fb];W[io];B[ho];W[jo];B[gr];W[dp];B[gn];W[es];B[eo];W[ql] ;B[or];W[rc];B[pe];W[og];B[rd];W[rl];B[rn];W[si];B[sj];W[rj] ;B[rk];W[sk];B[ri];W[nr];B[pg];W[ph];B[oj] ) goban-1.1.orig/games/M-82-1.mgt0000644000175000017500000000265106252627042013551 0ustar alal(;PB[Cho Chikun]PW[Otake Hideo]KM[5.5]ID[82/1]GM[1]SZ[19]FF[3]BS[0]WS[0]PC[ ]DT[1982-]WR[9 Dan]BR[9 Dan]KI[11]RE[B+];B[qc];W[dp];B[qp];W[dc];B[oq];W[qj];B[ce];W[dh];B[df] ;W[fd];B[bc];W[jc];B[cj];W[qm];B[ff];W[jq];B[cn];W[fp];B[cq] ;W[cp];B[bp];W[bo];B[bq];W[co];B[er];W[fr];B[eq];W[fq];B[ep] ;W[eo];B[dq];W[dn];B[ei];W[mq];B[lc];W[hd];B[od];W[qg];B[bn] ;W[an];B[cl];W[cm];B[bm];W[dm];B[bl];W[ek];B[gi];W[hk];B[jl] ;W[hi];B[jo];W[mo];B[iq];W[ir];B[np];W[mp];B[hl];W[gh];B[fi] ;W[gk];B[jp];W[hn];B[ho];W[in];B[gn];W[go];B[gp];W[fo];B[jn] ;W[gm];B[ll];W[kq];B[hq];W[hr];B[kj];W[bb];B[cc];W[cb];B[db] ;W[eb];B[dd];W[ec];B[qf];W[rf];B[qe];W[pg];B[rn];W[qq];B[pq] ;W[rp];B[rq];W[qo];B[qr];W[pp];B[qn];W[qq];B[pn];W[rr];B[qp] ;W[es];B[ds];W[qq];B[qk];W[pk];B[qp];W[km];B[qq];W[jm];B[rj] ;W[rk];B[qi];W[ql];B[rh];W[pi];B[rg];W[nj];B[kl];W[ih];B[hg] ;W[hh];B[fg];W[lm];B[mm];W[ml];B[mk];W[nl];B[nk];W[nm];B[mj] ;W[ni];B[lh];W[ac];B[ad];W[ab];B[be];W[ok];B[lf];W[re];B[rd] ;W[fs];B[kb];W[cs];B[am];W[ao];B[bs];W[dr];B[cr];W[ds];B[ar] ;W[jb];B[kc];W[kd];B[ld];W[ke];B[le];W[pe];B[pf];W[of];B[qd] ;W[oe];B[og];W[ng];B[oh];W[ph];B[nf];W[mg];B[ne];W[lg];B[kg] ;W[kh];B[jh];W[jg];B[ki];W[kf];B[kh];W[ig];B[mi];W[nh];B[ik] ;W[nr];B[ap];W[do];B[ja];W[ia];B[ka];W[ib];B[pd];W[sj];B[ri] ;W[ij];B[jj];W[ps];B[or];W[os];B[qs];W[gg];B[ge];W[he];B[gd] ;W[gc];B[ed];W[fe];B[gf];W[ee];B[ef];W[rm];B[nq];W[mr];B[hf] ;W[if];B[dl];W[el];B[oi];W[oj];B[of])goban-1.1.orig/games/M-62-l14.sgf0000644000175000017500000000262606252641402013775 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[8 dan] PB[Takagawa Shukaku] PW[Fujisawa Shuko] RE[W+R] ;B[pd];W[dc];B[pp];W[cq];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[cj];W[qj];B[qm];W[qg];B[mc];W[rd];B[iq];W[pc];B[oc] ;W[qc];B[oe];W[nq];B[pq];W[kq];B[co];W[ep];B[dm];W[gq];B[io] ;W[ko];B[hc];W[dj];B[ck];W[en];B[em];W[fm];B[im];W[fl];B[go] ;W[fn];B[lp];W[lq];B[he];W[mp];B[gr];W[fr];B[re];W[rf];B[qd] ;W[rc];B[ik];W[qo];B[po];W[qn];B[pn];W[rm];B[rl];W[ql];B[pm] ;W[rk];B[rn];W[sl];B[ro];W[nd];B[od];W[ii];B[or];W[km];B[kl] ;W[ll];B[kk];W[jm];B[il];W[dk];B[di];W[cl];B[dl];W[fj];B[bl] ;W[kh];B[gk];W[fk];B[hi];W[ke];B[kc];W[ih];B[gi];W[mh];B[eb] ;W[ec];B[fb];W[db];B[lk];W[ml];B[mk];W[me];B[og];W[ng];B[nf] ;W[mf];B[nh];W[mg];B[ob];W[if];B[bf];W[gb];B[hb];W[gc];B[ac] ;W[bc];B[hr];W[bp];B[er];W[eq];B[fs];W[cn];B[dn];W[bn];B[cm] ;W[dr];B[fq];W[do];B[fp];W[ld];B[lc];W[ha];B[bm];W[bo];B[ia] ;W[ga];B[jb];W[ae];B[be];W[bd];B[af];W[qe];B[ad];W[ab];B[mn] ;W[ln];B[mo];W[lo];B[mr];W[nr];B[ns];W[lr];B[ra];W[eh];B[ei] ;W[fi];B[fh];W[eg];B[jf];W[je];B[hf];W[hg];B[gg];W[fe];B[ff] ;W[fg];B[gf];W[gh];B[hh];W[ig];B[fh];W[pb];B[pa];W[gh];B[fo] ;W[eo];B[fh];W[oq];B[pr];W[gh];B[jp];W[kp];B[fh];W[qp];B[rp] ;W[gh];B[pe];W[qf];B[fh];W[nc];B[nb];W[gh];B[ds];W[cs];B[fh] ;W[ci];B[dh];W[gh];B[ae];W[dg];B[ch];W[fh];B[bb];W[cb];B[aa] ;W[dd];B[jr];W[cg];B[bg];W[rb];B[li];W[mi] C[206 moves complete.] ) goban-1.1.orig/games/Hon-72-3.sgf0000644000175000017500000000336306243710306014067 0ustar alal( ; EV[27th Honinbo] RO[3] BR[Honinbo] WR[Meijin] PB[Ishida Yoshio] PW[Rin Kaiho] KM[4.5] DT[1972-] PC[Japan] RE[W+6.5] ;B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb] ;W[eb];B[bg];W[bf];B[bh];W[bd];B[ci];W[eg];B[fe];W[fc];B[ff] ;W[cm];B[ei];W[fh];B[ie];W[fi];B[ej];W[fj];B[el];W[fk];B[dl] ;W[ic];B[ih];W[ij];B[pj];W[kj];B[ke];W[nq];B[pn];W[jp];B[fl] ;W[eq];B[mi];W[dn];B[fg];W[eh];B[cl];W[bl];B[bk];W[hl];B[qd] ;W[jd];B[je];W[me];B[lc];W[mc];B[kd];W[oe];B[pf];W[oc];B[pb] ;W[mg];B[lf];W[qh];B[qj];W[oh];B[pg];W[ph];B[ni];W[ng];B[ri] ;W[ob];B[qb];W[lh];B[li];W[ki];B[kh];W[kc];B[kb];W[jb];B[jc] ;W[mk];B[nk];W[kc];B[mf];W[lb];B[jc];W[jh];B[kg];W[kc];B[od] ;W[ld];B[ne];W[nl];B[ok];W[qq];B[pq];W[pr];B[or];W[qr];B[oq] ;W[ro];B[ml];W[qn];B[mm];W[hp];B[ii];W[hi];B[hh];W[gh];B[gg] ;W[bm];B[en];W[eo];B[dm];W[co];B[lq];W[lp];B[kp];W[ko];B[kq] ;W[lo];B[ik];W[hk];B[jj];W[hj];B[jk];W[mq];B[lr];W[oo];B[mr] ;W[nr];B[ns];W[po];B[hr];W[ms];B[ls];W[hq];B[iq];W[gr];B[ip] ;W[io];B[jq];W[ir];B[jo];W[jn];B[in];W[jp];B[no];W[np];B[jo] ;W[ho];B[kn];W[jp];B[op];W[mp];B[jo];W[jm];B[on];W[qo];B[jp] ;W[qp];B[im];W[os];B[km];W[nd];B[nf];W[bj];B[ck];W[ak];B[ae] ;W[ad];B[af];W[ab];B[hm];W[gl];B[gm];W[gj];B[jr];W[cj];B[dj] ;W[dh];B[bi];W[aj];B[di];W[fn];B[gn];W[ek];B[dk];W[fo];B[fm] ;W[ql];B[rl];W[rm];B[rk];W[gd];B[is];W[ge];B[he];W[ln];B[lm] ;W[gf];B[hf];W[fd];B[gs];W[fr];B[pm];W[qm];B[mn];W[pl];B[ol] ;W[pa];B[qa];W[oa];B[le];W[md];B[id];W[jc];B[hd];W[hc];B[go] ;W[gp];B[ai];W[al];B[sm];W[sn];B[sl];W[fs];B[hg];W[ed];B[pc] ;W[hs];B[ag];W[ba];B[gs];W[il];B[jl];W[hs];B[nb];W[nc];B[gs] ;W[ee];B[ef];W[hs];B[bn];W[cn];B[gs];W[nn];B[nm];W[hs];B[ir] ;W[mo];B[nn];W[gs];B[ms] C[263 moves complete.];B[em] C[Black fills the ko.] ) goban-1.1.orig/games/T-23-1.mgt0000644000175000017500000000346006445640730013555 0ustar alal( ; FF[4] EV[23rd Tengen title] RO[1] PB[Ryu Shikun] BR[8 dan] PW[Kudo Norio] WR[9 dan] KM[5.5] DT[1997-11-06] PC[Japan] RE[W+4.5] US[Jan.van.der.Steen@cwi.nl] ;B[pd];W[dd];B[qp];W[dq];B[do];W[co];B[dp];W[cp];B[eq];W[cn] ;B[dn];W[dm];B[cq];W[dr];B[bq];W[er];B[cm];W[em];B[fp];W[fq] ;B[ep];W[gp];B[fn];W[bm];B[cl];W[bl];B[ck];W[bk];B[gq];W[fr] ;B[gr];W[iq];B[hp];W[go];B[ir];W[ho];B[fm];W[ip];B[hr];W[cr] ;B[br];W[bs];B[kq];W[ek];B[bn];W[bo];B[fs];W[ar];B[aq];W[kp] ;B[lp];W[ko];B[es];W[pp];B[qo];W[qq];B[cs];W[po];B[qn];W[pq] ;B[cj];W[ci];B[bj];W[bi];B[dj];W[aj];B[di];W[cg];B[mq];W[jq] ;B[lo];W[kr];B[lq];W[jr];B[kn];W[jn];B[jo];W[jp];B[jm];W[in] ;B[pn];W[nr];B[ln];W[fl];B[nq];W[or];B[gi];W[dh];B[gk];W[fi] ;B[dc];W[ec];B[fj];W[ej];B[ed];W[cd];B[fc];W[eb];B[fb];W[db] ;B[pi];W[qg];B[qe];W[ri];B[pg];W[pj];B[oj];W[pk];B[qh];W[ql] ;B[rh];W[nl];B[ok];W[ol];B[pm];W[pl];B[nn];W[ll];B[kl];W[kk] ;B[rq];W[rr];B[lk];W[oi];B[mj];W[nj];B[nh];W[oh];B[og];W[mi] ;B[kj];W[mk];B[jk];W[ni];B[jc];W[kd];B[kc];W[gh];B[hh];W[hi] ;B[gj];W[fh];B[hg];W[mg];B[mh];W[lh];B[ng];W[ki];B[lg];W[kg] ;B[mf];W[kf];B[jh];W[kh];B[ld];W[le];B[md];W[ji];B[ii];W[fd] ;B[sr];W[rp];B[sp];W[sq];B[bh];W[ch];B[rq];W[ij];B[hj];W[sq] ;B[lj];W[jj];B[rq];W[gd];B[gl];W[sq];B[an];W[ao];B[rq];W[en] ;B[fo];W[sq];B[mr];W[hm];B[rq];W[ms];B[ro];W[hc];B[qr];W[lr] ;B[fk];W[ei];B[el];W[dl];B[ib];W[qi];B[ph];W[sh];B[rk];W[li] ;B[kk];W[sf];B[rg];W[sg];B[se];W[re];B[rf];W[sd];B[rd];W[rj] ;B[se];W[si];B[rl];W[jd];B[id];W[if];B[je];W[ke];B[ie];W[ig] ;B[ic];W[re];B[hq];W[gn];B[se];W[me];B[ne];W[re];B[ih];W[rc] ;B[se];W[rm];B[sc];W[qm];B[hb];W[gb];B[ga];W[gc];B[fa];W[ha] ;B[ia];W[ea];B[ha];W[gf];B[gg];W[fg];B[hf];W[ge];B[lm];W[ml] ;B[sn];W[sm];B[oo];W[pr];B[rs];W[ik];B[js];W[fl];B[gm];W[il] ;B[ps];W[lf];B[mg];W[om];B[on];W[mm];B[op];W[ns];B[mn];W[is] ;B[hs];W[el];B[rn];W[he];B[ds]) goban-1.1.orig/games/Nih-74-2.mgt0000644000175000017500000000272106377113310014067 0ustar alal(;SZ[19]EV[22nd Nihon Ki-in Championship]RO[2]PB[Sakata]PW[Cho]RE[W+R]DT[1975-01-07];B[pd];W[cq];B[pq];W[po];B[cd];W[qq];B[qr];W[qp];B[or];W[qk];B[ic];W[cj];B[dp];W[dq];B[ep];W[bo];B[eq];W[hp];B[em];W[nq];B[op];W[mp];B[np];W[mo];B[mq];W[lq];B[mr];W[lr];B[nr];W[gq];B[cn];W[bn];B[cm];W[nc];B[oc];W[nd];B[pf];W[kc];B[ie];W[fd];B[de];W[dc];B[cc];W[hd];B[jc];W[kd];B[je];W[hc];B[eb];W[db];B[ec];W[ed];B[dd];W[fc];B[cb];W[gg];B[ig];W[mg];B[di];W[fb];B[da];W[eg];B[ii];W[gi];B[dj];W[qc];B[qd];W[ob];B[pc];W[qh];B[pb];W[og];B[ff];W[gf];B[ef];W[fg];B[dg];W[kb];B[ia];W[jh];B[ih];W[hj];B[ij];W[hl];B[ik];W[gm];B[jm];W[il];B[jl];W[kk];B[jk];W[jo];B[lh];W[lg];B[kj];W[bm];B[ck];W[bk];B[bl];W[al];B[cl];W[bj];B[ci];W[mk];B[pm];W[on];B[pk];W[ql];B[oi];W[lj];B[li];W[mi];B[mh];W[nh];B[ni];W[mj];B[kg];W[kf];B[ji];W[jf];B[mm];W[jg];B[ki];W[ok];B[om];W[lm];B[ll];W[ml];B[nn];W[ln];B[kl];W[nl];B[qi];W[pj];B[if];W[no];B[oh];W[ng];B[rh];W[pg];B[qg];W[ph];B[qm];W[nm];B[pi];W[lk];B[fa];W[ga];B[gb];W[ea];B[go];W[ho];B[fa];W[rg];B[rj];W[ea];B[im];W[hm];B[fa];W[sh];B[ri];W[ea];B[ke];W[le];B[fa];W[qf];B[pl];W[ea];B[gp];W[hn];B[fa];W[re];B[rc];W[ea];B[hk];W[gk];B[fa];W[rm];B[rn];W[ea];B[fl];W[gl];B[fa];W[rk];B[sk];W[ea];B[fj];W[gj];B[fa];W[rb];B[rd];W[ea];B[gh];W[fh];B[fa];W[sd];B[sc];W[ea];B[fi];W[hh];B[fa];W[jd];B[id];W[ea];B[ge];W[he];B[fa];W[jb];B[ib];W[ea];B[fe];W[hf];B[fa];W[qn];B[qj];W[ea];B[lf];W[mf];B[fa];W[rl];B[sm];W[ea];B[kh];W[lf];B[fa];W[ro];B[sl];W[ea];B[cp];W[fa];B[fr];W[gr];B[fq];W[ds])goban-1.1.orig/games/Hon-56-3.mgt0000644000175000017500000000214706045540246014104 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-06-28,29]BR[8 dan]WR[Honinbo]KM[4.5]RO[3]PC[Nagoya]PB[Shimamura Toshihiro]PW[Takagawa Kaku]RE[B+R]TM[10 h]FF[3];B[pd];W[dc];B[pp];W[dq];B[do];W[co];B[dp];W[cp];B[eq] ;W[cn];B[dr];W[cq];B[fp];W[kq];B[ce];W[dg];B[ef];W[gc];B[eg] ;W[qj];B[ic];W[cd];B[be];W[hq];B[dh];W[bd];B[lq];W[lp];B[mq] ;W[kp];B[qh];W[qm];B[qo];W[mp];B[nq];W[nc];B[oc];W[nd];B[qf] ;W[cj];B[em];W[kc];B[cl];W[bl];B[ie];W[ck];B[nb];W[mb];B[ob] ;W[ke];B[ho];W[np];B[pq];W[om];B[pl];W[ql];B[kh];W[mh];B[pk] ;W[pm];B[lj];W[kl];B[lh];W[mg];B[il];W[bh];B[dl];W[cm];B[ed] ;W[ec];B[fd];W[jf];B[fc];W[fb];B[dd];W[cc];B[ll];W[km];B[rn] ;W[gd];B[ge];W[if];B[ih];W[ej];B[hd];W[hb];B[hf];W[ib];B[ir] ;W[iq];B[jr];W[kr];B[hr];W[io];B[cr];W[hn];B[gq];W[ns];B[or] ;W[br];B[bs];W[ar];B[of];W[nf];B[oe];W[jk];B[mi];W[qi];B[rh] ;W[hj];B[gn];W[go];B[fo];W[ni];B[nj];W[oi];B[mk];W[oj];B[nl] ;W[hg];B[gg];W[hh];B[kj];W[gm];B[gp];W[hm];B[lf];W[ne];B[kf] ;W[je];B[hc];W[gb];B[fi];W[jq];B[bg];W[cg];B[ch];W[bf];B[bi] ;W[ag];B[ci];W[ae];B[cf];W[fl];B[ai];W[en];B[fn];W[fm];B[dn] ;W[dm];B[el];W[ek];B[eo];W[kk];B[ok];W[lk];B[ol];W[lm];B[ml] ;W[ji];B[ki])goban-1.1.orig/games/T-22-2.mgt0000644000175000017500000000321206404362050013537 0ustar alal( ; EV[22nd Tengen] RO[2] PB[Ryu Shikun] BR[7 dan] PW[Rin Kaiho] WR[9 dan] KM[5.5] DT[1996-11-21] PC[Japan] RE[B+1.5] SY[Written by GoBase-0.0.9] ;B[pd];W[dp];B[pq];W[dd];B[fq];W[cn];B[jp];W[qn];B[po];W[rp] ;B[pl];W[pn];B[qo];W[ro];B[rm];W[qq];B[rn];W[pr];B[on];W[qf] ;B[re];W[pi];B[of];W[ni];B[fc];W[hc];B[kc];W[df];B[dc];W[cc] ;B[cb];W[ec];B[db];W[ed];B[eb];W[fd];B[cd];W[bc];B[bd];W[ce] ;B[be];W[bf];B[bb];W[ld];B[oh];W[oi];B[kd];W[lf];B[md];W[ne] ;B[me];W[nf];B[mf];W[ng];B[mg];W[qd];B[qe];W[pe];B[rf];W[pc] ;B[od];W[nd];B[oc];W[nc];B[ob];W[oe];B[qc];W[mc];B[le];W[mh] ;B[lg];W[qg];B[gc];W[gd];B[hd];W[he];B[id];W[oo];B[pm];W[dj] ;B[dr];W[cq];B[hp];W[fk];B[gh];W[eh];B[oq];W[or];B[nq];W[nr] ;B[mq];W[mr];B[fm];W[dl];B[cr];W[lq];B[kr];W[lr];B[ig];W[fp] ;B[gp];W[fo];B[hm];W[lb];B[kb];W[jr];B[ir];W[jq];B[iq];W[kp] ;B[js];W[kq];B[lh];W[li];B[ki];W[kj];B[lj];W[mi];B[jj];W[kk] ;B[jk];W[kl];B[jl];W[br];B[km];W[mk];B[dm];W[em];B[ei];W[di] ;B[eg];W[fh];B[fg];W[dg];B[fi];W[dh];B[en];W[el];B[fn];W[gg] ;B[dn];W[cm];B[do];W[cp];B[hh];W[gf];B[bs];W[ar];B[qj];W[eq] ;B[er];W[gj];B[gi];W[hj];B[go];W[ii];B[lm];W[ml];B[jo];W[pp] ;B[qm];W[qp];B[no];W[op];B[mo];W[ji];B[kh];W[jg];B[if];W[jh] ;B[jf];W[qi];B[ri];W[rh];B[rj];W[ae];B[ac];W[ep];B[hk];W[kf] ;B[ke];W[ie];B[je];W[ks];B[ij];W[hi];B[co];W[bo];B[bn];W[bp] ;B[is];W[nb];B[oa];W[kg];B[lc];W[gl];B[hl];W[ka];B[ja];W[la] ;B[jb];W[fl];B[na];W[mb];B[ej];W[ek];B[hf];W[ge];B[sg];W[sh] ;B[rg];W[pk];B[qk];W[fr];B[gq];W[cs];B[pj];W[ok];B[oj];W[ol] ;B[nj];W[mj];B[si];W[qh];B[nk];W[nl];B[qr];W[rr];B[ds];W[gm] ;B[gn];W[mn];B[nn];W[kn];B[ln];W[ko];B[jn];W[mm];B[ll];W[lk] ;B[lo];W[sn];B[sm];W[so];B[bm];W[cl];B[aq];W[bq];B[gr];W[bl] ) goban-1.1.orig/games/T-20-1.mgt0000644000175000017500000000327706252627522013560 0ustar alal(;GM[1]VW[]PB[Ryu Shikun]BR[6 dan]PW[Rin Kaiho]WR[9 dan]DT[1994]PC[Japan]RE[B+3.5]KM[5.5]SZ[19]ID[20/1]FF[3];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[hq];B[cf];W[ch];B[cc];W[dc];B[cd];W[de];B[bf];W[eg];B[ho] ;W[ne];B[ng];W[qn];B[qo];W[pn];B[oo];W[qk];B[qj];W[pk];B[on] ;W[oj];B[ok];W[ol];B[nk];W[nl];B[rk];W[rl];B[rj];W[mk];B[nj] ;W[ll];B[mm];W[ml];B[ni];W[qc];B[pc];W[pb];B[qd];W[rb];B[rc] ;W[qb];B[rn];W[il];B[gq];W[gr];B[gp];W[fq];B[fr];W[er];B[hr] ;W[fs];B[iq];W[kh];B[gk];W[gm];B[ek];W[ck];B[ik];W[jl];B[ei] ;W[gi];B[fm];W[dm];B[fn];W[db];B[cb];W[oq];B[pq];W[ko];B[kp] ;W[lo];B[lp];W[gl];B[fl];W[fj];B[ej];W[fk];B[fg];W[hh];B[ef] ;W[fe];B[co];W[do];B[cn];W[dn];B[bl];W[cm];B[bm];W[bp];B[cj] ;W[hs];B[ir];W[eh];B[fi];W[gj];B[fh];W[dk];B[bk];W[df];B[cg] ;W[ci];B[bj];W[dg];B[bh];W[mo];B[mp];W[no];B[np];W[rm];B[ro] ;W[dj];B[di];W[dh];B[el];W[gn];B[fo];W[ca];B[ba];W[da];B[rd] ;W[mh];B[mg];W[lg];B[mf];W[ld];B[hg];W[he];B[ig];W[ih];B[ff] ;W[ge];B[pm];W[pl];B[qm];W[ql];B[om];W[nh];B[oh];W[mi];B[mn] ;W[jn];B[cp];W[cq];B[bo];W[ao];B[bn];W[bq];B[nd];W[md];B[ob] ;W[oc];B[nb];W[mc];B[sb];W[ra];B[pa];W[oa];B[jg];W[bb];B[bc] ;W[aa];B[jh];W[ji];B[kg];W[lh];B[hn];W[hm];B[im];W[is];B[js] ;W[gs];B[jr];W[od];B[hk];W[jk];B[in];W[hl];B[ep];W[eq];B[gh] ;W[ii];B[of];W[ce];B[be];W[ac];B[bd];W[fp];B[go];W[eo];B[mb] ;W[lb];B[la];W[ka];B[na];W[ma];B[ee];W[ed];B[la];W[mj];B[oi] ;W[ma];B[ie];W[id];B[la];W[jm];B[bi];W[ma];B[es];W[ds];B[la] ;W[pe];B[qe];W[ma];B[hi];W[hj];B[la];W[ij];B[sc];W[ma];B[dl] ;W[oa];B[cl];W[oe];B[ke];W[je];B[kd];W[kf];B[lf];W[jf];B[le] ;W[kc];B[an];W[ap];B[lm];W[jo];B[km];W[sn];B[so];W[sk];B[sj] ;W[if];B[kl];W[kk];B[io];W[nf];B[sm];W[sl];B[sn];W[ba];B[ad] ;W[ab];B[og])goban-1.1.orig/games/M-70-6.sgf0000644000175000017500000000401606252650536013544 0ustar alal( ; PB[Fujisawa Shuko] PW[Rin Kaiho] DT[1970-] BR[9 Dan] WR[Meijin] KM[5] EV[9th Meijin 1970] RO[6] RE[B+3] ;B[qd];W[dd];B[cp];W[pq];B[oc];W[eq];B[qo];W[pl];B[no] ;W[oo];B[on];W[op];B[pn];W[nn];B[nm];W[mn];B[ol];W[pj];B[ph] ;W[ok];B[lm];W[mm];B[ml];W[mo];B[nk];W[nj];B[mj];W[ni];B[iq] ;W[ll];B[lk];W[kl];B[lq];W[qm];B[rp];W[kn];B[qq];W[cm];B[do] ;W[cr];B[gq];W[fq];B[gp];W[eo];B[dm];W[dl];B[en];W[fo];B[cl] ;W[cn];B[bl];W[ck];B[bk];W[dn];B[em];W[co];B[dp];W[bp];B[bo] ;W[bn];B[bq];W[ao];B[aq];W[fl];B[el];W[dk];B[ek];W[bj];B[cj] ;W[dj];B[ci];W[ej];B[fk];W[bi];B[di];W[fj];B[gj];W[eh];B[bh] ;W[gk];B[gl];W[hk];B[gm];W[ap];B[hn];W[rd];B[qc];W[mi];B[li] ;W[lh];B[ki];W[ip];B[jp];W[jo];B[io];W[kp];B[jq];W[in];B[ho] ;W[qg];B[qh];W[qe];B[of];W[oe];B[ne];W[pe];B[ng];W[pc];B[ri] ;W[pg];B[oh];W[nd];B[qk];W[nh];B[mg];W[mh];B[og];W[kh];B[ji] ;W[pk];B[md];W[nc];B[kf];W[jh];B[ii];W[ih];B[hh];W[ei];B[ai] ;W[hg];B[gh];W[if];B[am];W[bm];B[al];W[cq];B[aj];W[dq];B[gg] ;W[gf];B[pd];W[me];B[le];W[pb];B[ff];W[ge];B[mf];W[od];B[ed] ;W[hj];B[hi];W[il];B[ec];W[ef];B[fe];W[gi];B[he];W[hd];B[gd] ;W[hf];B[jg];W[jf];B[kg];W[ig];B[id];W[hc];B[ic];W[ie];B[hb] ;W[gc];B[fd];W[ib];B[jb];W[jd];B[jc];W[gb];B[ia];W[eb];B[db] ;W[fa];B[dc];W[ha];B[ga];W[kc];B[kd];W[ha];B[an];W[ep];B[ga] ;W[je];B[kb];W[ha];B[cp];W[dp];B[ga];W[lj];B[kj];W[ha];B[ik] ;W[jk];B[ga];W[qn];B[po];W[ha];B[lo];W[fg];B[ln];W[mp];B[lp] ;W[kk];B[mq];W[np];B[qr];W[de];B[cd];W[ce];B[bd];W[ij];B[be] ;W[mb];B[lb];W[da];B[cb];W[cg];B[fr];W[rg];B[rn];W[rm];B[sm] ;W[sl];B[sn];W[er];B[bg];W[gr];B[hr];W[fs];B[ko];W[ib];B[mc] ;W[nb];B[hb];W[fn];B[fm];W[hm];B[gn];W[ib];B[om];W[fh];B[hb] ;W[qj];B[rl];W[ib];B[nl];W[jj];B[hb];W[bj];B[bi];W[ib];B[mk] ;W[lj];B[hb];W[nq];B[or];W[ib];B[oi];W[ql];B[sk];W[oj];B[hb] ;W[hs];B[is];W[ib];B[ca];W[ja];B[ka];W[jn];B[dg];W[dh];B[cf] ;W[df];B[ch];W[gs];B[ea];W[ke];B[lc];W[da];B[cg];W[eg];B[ea] ;W[lg];B[lf];W[da];B[rk];W[rj];B[sj];W[rh];B[qi];W[ia];B[ea] ;W[fb];B[km];W[jm];B[hl];W[im];B[pf];W[sh];B[si];W[qf];B[ma] ;W[na];B[da];W[la]C[312 moves complete, white fills the ko.] ;W[ma]) goban-1.1.orig/games/Hon-90-1.mgt0000644000175000017500000000206006045540450014067 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Kobayashi Koichi]DT[1990-05-11,12]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dc];B[pk];W[ci];B[fq];W[dn];B[jp] ;W[nc];B[lc];W[ld];B[kd];W[le];B[kc];W[oe];B[qf];W[gc];B[ke] ;W[lg];B[kf];W[lf];B[jh];W[pg];B[qg];W[ph];B[po];W[hq];B[hp] ;W[iq];B[ip];W[jq];B[dq];W[cq];B[kq];W[kr];B[lq];W[lr];B[mr] ;W[mq];B[mp];W[nq];B[nr];W[gq];B[gp];W[fr];B[er];W[fp];B[eq] ;W[np];B[no];W[fo];B[gr];W[hr];B[fs];W[kp];B[lp];W[ko];B[lo] ;W[ln];B[mo];W[jo];B[cp];W[go];B[bo];W[co];B[bp];W[bn];B[ep] ;W[hf];B[ce];W[cc];B[cg];W[ic];B[di];W[dj];B[dh];W[cj];B[ff] ;W[kg];B[hd];W[id];B[ie];W[he];B[if];W[hg];B[gd];W[fd];B[ge] ;W[hc];B[ed];W[fe];B[gf];W[ef];B[fg];W[ee];B[hi];W[eg];B[fh] ;W[ii];B[ij];W[eh];B[fi];W[ei];B[qh];W[pi];B[qi];W[pj];B[qj] ;W[ok];B[pl];W[gj];B[fj];W[gi];B[hh];W[fk];B[in];W[io];B[hn] ;W[ho];B[gk];W[do];B[bq];W[hk];B[gl];W[hj];B[gh];W[hl];B[ek] ;W[jj];B[ih];W[jg];B[ig];W[fl];B[gm];W[fm];B[ik];W[il];B[jk] ;W[jl];B[kk];W[kl];B[ej];W[cl];B[lk];W[pe];B[qd];W[mj];B[li] ;W[lj];B[kj];W[mk];B[jr];W[js];B[ki];W[mi];B[pb];W[cr];B[br] ;W[ob])goban-1.1.orig/games/M-73-4.sgf0000644000175000017500000000336006253434654013550 0ustar alal( ; EV[12th Meijin Title] RO[4] PB[Ishida Yoshio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Sept 25/26, 1973] PC[Tokyo] RE[W+Jigo] KM[5] ;B[qd];W[dc];B[dp];W[oq];B[ce];W[od];B[oc];W[nc];B[pc];W[cg] ;B[ee];W[fd];B[hd];W[fe];B[dg];W[cd];B[cf];W[nd];B[pe];W[jc] ;B[qp];W[fg];B[di];W[kq];B[mq];W[po];B[qo];W[pn];B[qm];W[lp] ;B[nf];W[pd];B[pf];W[qc];B[qb];W[rc];B[rb];W[pm];B[ql];W[qn] ;B[rn];W[ro];B[rm];W[qq];B[rp];W[pp];B[rq];W[fq];B[cn];W[ok] ;B[pj];W[nb];B[pa];W[dr];B[cq];W[fo];B[jd];W[ic];B[id];W[kc] ;B[kf];W[mf];B[ng];W[mg];B[mh];W[lh];B[mi];W[li];B[mj];W[lj] ;B[mk];W[ih];B[jp];W[me];B[gp];W[gq];B[gi];W[hh];B[hq];W[fp] ;B[gr];W[hp];B[iq];W[fr];B[mp];W[mo];B[lo];W[ko];B[ln];W[kp] ;B[kn];W[np];B[no];W[mn];B[nq];W[or];B[lr];W[kr];B[op];W[nn] ;B[jo];W[ks];B[mr];W[hr];B[ir];W[gs];B[js];W[is];B[jr];W[jn] ;B[io];W[ll];B[km];W[jl];B[jm];W[in];B[ls];W[im];B[lq];W[kl] ;B[jq];W[ml];B[bd];W[bc];B[dd];W[cc];B[dk];W[eh];B[dh];W[pk] ;B[qj];W[dm];B[cm];W[fj];B[qr];W[dl];B[cl];W[ek];B[ej];W[ei] ;B[dj];W[fl];B[ed];W[ec];B[ef];W[ff];B[pq];W[oj];B[oi];W[ho] ;B[pl];W[ol];B[be];W[cr];B[br];W[bs];B[bq];W[dn];B[ac];W[ab] ;B[ad];W[do];B[co];W[qk];B[rk];W[bb];B[hs];W[pr];B[qq];W[is] ;B[fk];W[gk];B[hs];W[pi];B[oh];W[is];B[om];W[nm];B[hs];W[oa] ;B[pb];W[is];B[dq];W[lk];B[hs];W[oe];B[of];W[is];B[ep];W[ob] ;B[hs];W[rj];B[qi];W[is];B[eo];W[en];B[hs];W[sk];B[rl];W[is] ;B[nj];W[on];B[hs];W[oo];B[np];W[is];B[el];W[em];B[hs];W[qh] ;B[ri];W[is];B[eq];W[er];B[hs];W[si];B[ph];W[is];B[nk];W[nl] ;B[hs];W[nh];B[ni];W[is];B[lm];W[ar];B[aq];W[hs];B[as];W[rh] ;B[pi];W[ar];B[cs];W[ds];B[as];W[rd];B[qe];W[ar];B[fs];W[es] ;B[as];W[sb];B[ra];W[ar];B[eg];W[cs];B[as];W[bp];B[cp];W[ar] ;B[fi];W[fh];B[as];W[re];B[rf];W[ar];B[fn];W[fm];B[as];W[qf] ;B[qg];W[ar] ) goban-1.1.orig/games/Hon-70-2.sgf0000644000175000017500000000330406243710110014050 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[25/2] FF[3] PB[Rin Kaiho] PW[Sakata Eio] DT[1970-05-] RE[B+0.5] KM[4.5] ;B[qd];W[dd];B[pq];W[oc];B[dp];W[po];B[ld];W[qq];B[qr];W[qp] ;B[or];W[qk];B[pc];W[cn];B[fp];W[bp];B[cq];W[ck];B[od];W[qh] ;B[fc];W[df];B[np];W[hq];B[jq];W[jp];B[kp];W[ip];B[ko];W[in] ;B[fm];W[jc];B[db];W[cc];B[hc];W[gd];B[hd];W[ec];B[jd];W[fd] ;B[dn];W[co];B[dm];W[cl];B[jo];W[io];B[gr];W[kq];B[lq];W[kr] ;B[jr];W[gq];B[fq];W[lr];B[mr];W[on];B[ei];W[gl];B[gm];W[ek] ;B[ln];W[hl];B[pk];W[ql];B[hm];W[mq];B[ls];W[lp];B[ks];W[kn] ;B[lo];W[im];B[il];W[lm];B[gj];W[ik];B[jl];W[jk];B[kl];W[km] ;B[kk];W[fl];B[ki];W[kj];B[lj];W[jj];B[mk];W[nm];B[el];W[hk] ;B[hh];W[ji];B[li];W[ig];B[hg];W[he];B[ie];W[hf];B[if];W[ih] ;B[dg];W[ff];B[eg];W[gc];B[gb];W[fb];B[dj];W[dk];B[bh];W[hi] ;B[gi];W[fj];B[bf];W[kc];B[kd];W[hb];B[ib];W[ic];B[id];W[ga] ;B[lc];W[jb];B[kb];W[ia];B[bj];W[bq];B[br];W[kh];B[pj];W[qi] ;B[al];W[ak];B[bk];W[mg];B[mh];W[nh];B[lh];W[lg];B[oh];W[nd] ;B[ng];W[nf];B[og];W[oe];B[nc];W[pd];B[ob];W[ni];B[nj];W[kf] ;B[od];W[oi];B[pi];W[oc];B[ol];W[pm];B[od];W[ph];B[mi];W[oc] ;B[ml];W[nb];B[od];W[nr];B[lq];W[oc];B[mm];W[mc];B[qb];W[oa] ;B[re];W[pb];B[qc];W[rg];B[qj];W[rj];B[rc];W[bl];B[bd];W[bc] ;B[fg];W[ar];B[bs];W[rr];B[rs];W[sq];B[ac];W[ab];B[ad];W[cd] ;B[ce];W[cf];B[cg];W[de];B[be];W[bb];B[aj];W[cj];B[ci];W[op] ;B[oq];W[no];B[am];W[bn];B[mo];W[fi];B[hj];W[gf];B[fh];W[ej] ;B[di];W[do];B[eo];W[rf];B[ri];W[rh];B[pe];W[pf];B[qe];W[pp] ;B[ef];W[ps];B[qs];W[nq];B[mp];W[of];B[oj];W[ee];B[pl];W[nn] ;B[qa];W[se];B[sd];W[sf];B[pa];W[ob];B[an];W[ao];B[aq];W[cp] ;B[dr];W[dl];B[em];W[ap];B[gk];W[fk];B[ii];W[ij];B[rk];W[si] ;B[qm];W[rl];B[om];W[pn];B[nl];W[hi];B[gh];W[ii];B[ns];W[od] ;B[pr];W[sr];B[ss];W[rm]) goban-1.1.orig/games/Hon-61-4.sgf0000644000175000017500000000353206243707640014073 0ustar alal( ; GM[1] SZ[19] DT[1961-] RO[4] FF[3] BR[9 dan] WR[9 dan] KM[4.5] PB[Takagawa Shukaku] PW[Sakata Eio] RE[B+12.5] ID[16/4] ;B[pd];W[cq];B[dd];W[qp];B[oq];W[lp];B[np];W[pq];B[pr] ;W[qr];B[pp];W[qq];B[po];W[qn];B[dn];W[fp];B[dj];W[fc];B[df] ;W[db];B[cc];W[ic];B[fn];W[ho];B[jq];W[mq];B[jo];W[ln];B[pn] ;W[qm];B[pm];W[pl];B[ol];W[ok];B[nl];W[ll];B[nk];W[pk];B[hq] ;W[jn];B[in];W[jp];B[io];W[ip];B[hp];W[kp];B[go];W[nj];B[mj] ;W[mk];B[nn];W[im];B[hn];W[nq];B[nr];W[lj];B[mi];W[li];B[oj] ;W[ni];B[mh];W[oi];B[qo];W[ro];B[qs];W[rq];B[lr];W[mr];B[ms] ;W[iq];B[ir];W[jr];B[js];W[kq];B[mp];W[lq];B[kr];W[hr];B[jq] ;W[ls];B[ks];W[jr];B[ql];W[is];B[rl];W[qj];B[rn];W[ng];B[nc] ;W[bn];B[lh];W[qg];B[jh];W[rd];B[kc];W[cb];B[ik];W[ld];B[lc] ;W[kh];B[kg];W[ki];B[lf];W[ji];B[ih];W[ii];B[hi];W[hj];B[gc] ;W[gd];B[hh];W[ce];B[de];W[fe];B[ij];W[rs];B[sr];W[bc];B[bd] ;W[cd];B[dc];W[be];B[bb];W[ad];B[eb];W[ba];B[ab];W[ac];B[ec] ;W[fb];B[fa];W[gb];B[cf];W[bf];B[jb];W[gg];B[eg];W[if];B[kk] ;W[sm];B[rm];W[sn];B[sl];W[sp];B[ib];W[fg];B[ei];W[jd];B[km] ;W[gi];B[gj];W[fj];B[gh];W[kl];B[jl];W[gk];B[lk];W[dk];B[ck] ;W[jm];B[ko];W[dl];B[cl];W[il];B[jk];W[gm];B[kn];W[fh];B[fi] ;W[cj];B[bj];W[ci];B[di];W[cm];B[dm];W[em];B[fm];W[fl];B[bi] ;W[en];B[eo];W[el];B[co];W[fo];B[ep];W[dp];B[do];W[bl];B[bk] ;W[ch];B[bh];W[eq];B[bo];W[gn];B[bq];W[br];B[cp];W[dq];B[ar] ;W[cs];B[ao];W[hk];B[jf];W[hg];B[jg];W[ej];B[eh];W[qd];B[pc] ;W[lo];B[lm];W[ls];B[or];W[ps];B[ns];W[sq];B[qh];W[pg];B[ri] ;W[rj];B[sj];W[qb];B[qc];W[rc];B[pb];W[rb];B[rg];W[rf];B[pe] ;W[qf];B[ie];W[he];B[je];W[id];B[gq];W[ap];B[bp];W[fq];B[kd] ;W[nf];B[ne];W[bg];B[cg];W[gr];B[an];W[mf];B[me];W[hb];B[so] ;W[sn];B[ph];W[nh];B[ml];W[pa];B[oa];W[qa];B[of];W[og];B[jc] ;W[sg];B[rh];W[pf];B[oe];W[mn];B[mo];W[mg];B[lg];W[ah];B[ai] ;W[ag];B[pi];W[pj];B[qe];W[re];B[hm];W[hl];B[ig];W[hf];B[ff] ;W[gf];B[ef];W[mm];B[nm];W[ia];B[ja];W[ha];B[da];W[aa] ) goban-1.1.orig/games/T-14-3.mgt0000644000175000017500000000163006433230506013545 0ustar alal( ; EV[14th Tengen title] RO[3] PB[Sonoda Yuichi] BR[9 dan] PW[Cho Chikun] WR[9 dan] DT[1988-12-] PC[Japan] RE[W+R] KM[5.5] ;B[pd];W[dp];B[pp];W[dd];B[fq];W[dn];B[jp];W[qn];B[ql];W[qq] ;B[pq];W[qp];B[po];W[rn];B[om];W[jc];B[cf];W[ch];B[cc];W[dc] ;B[cd];W[de];B[bf];W[df];B[ld];W[ke];B[fo];W[fm];B[il];W[cg] ;B[gl];W[cb];B[bb];W[db];B[bg];W[bh];B[ba];W[fl];B[gk];W[fk] ;B[gi];W[eq];B[fr];W[jn];B[hn];W[jl];B[kl];W[kp];B[ko];W[jo] ;B[ip];W[km];B[lo];W[kk];B[fj];W[hj];B[gj];W[ll];B[pr];W[kq] ;B[jr];W[mo];B[mn];W[nn];B[mp];W[no];B[lp];W[nm];B[pn];W[qr] ;B[qs];W[rs];B[ps];W[sr];B[dj];W[ck];B[qe];W[nc];B[nd];W[oc] ;B[od];W[mc];B[pc];W[md];B[le];W[me];B[lf];W[lc];B[cq];W[cp] ;B[dq];W[ng];B[ni];W[mh];B[hg];W[ag];B[bd];W[bq];B[br];W[bp] ;B[ep];W[hf];B[gf];W[ig];B[he];W[if];B[ge];W[gg] ;B[fg];W[hh];B[ef];W[eh];B[fh];W[pg];B[nl];W[ln];B[rg];W[qh] ;B[rh];W[qi];B[ml];W[mm];B[mi];W[np];B[nq];W[pk];B[qk];W[mq] ;B[lq];W[pl]) goban-1.1.orig/games/T-08-4.mgt0000644000175000017500000000251006270527366013563 0ustar alal(;PB[Kataoka Satoshi]PW[Kato Masao]SZ[19]EV[8th Tengen match] RO[Game 4]DT[1982-12-13]PC[Nihon Ki-in]WR[9d]KM[5.5]RE[B+R] SO[Go world 31]BR[7d] ;B[pd];W[dp];B[pq];W[dd];B[fq];W[dn];B[jp];W[qo];B[pm];W[qm];B[pn] ;W[qn];B[po];W[qp];B[pp];W[pl];B[ol];W[pk];B[fo];W[eq];B[fr] ;W[fm];B[ci];W[ck];B[cf];W[be];B[ei];W[bf];B[el];W[ej];B[dk];W[cl] ;B[dj];W[em];B[fd];W[kc];B[mc];W[hc];B[ge];W[ke];B[qe];W[eg];B[dc] ;W[cc];B[ec];W[fi];B[fj];W[eh];B[ek];W[gi];B[hk];W[cb];B[if];W[hj] ;B[gk];W[oc];B[pc];W[pb];B[qb];W[jg];B[hd];W[gc];B[ic];W[ib];B[jb] ;W[jc];B[id];W[gb];B[ia];W[hb];B[kb];W[lb];B[lc];W[ka];B[kd];W[ja] ;B[jd];W[ld];B[le];W[md];B[me];W[nd];B[ne];W[ob];B[kf];W[lq];B[jq] ;W[ko];B[in];W[mo];B[ok];W[lm];B[pj];W[qj];B[qi];W[rk];B[rj];W[qk] ;B[lk];W[nq];B[np];W[mp];B[mr];W[nr];B[lr];W[kr];B[kq];W[mq];B[jr] ;W[ms];B[ks];W[kk];B[kj];W[kl];B[jj];W[mk];B[lj];W[pr];B[pi];W[nm] ;B[om];W[cg];B[cq];W[er];B[bp];W[bo];B[co];W[bn];B[es];W[qq];B[cp] ;W[bj];B[cn];W[cm];B[bi];W[hm];B[gn];W[bl];B[gg];W[gh];B[ih];W[do] ;B[dr];W[qa];B[rb];W[nk];B[nj];W[ri];B[rh];W[sj];B[sh];W[ji];B[ii] ;W[mj];B[mi];W[li];B[ni];W[ij];B[ik];W[hg];B[ig];W[jk];B[gj];W[hi] ;B[hh];W[fh];B[ki];W[io];B[hn];W[dq];B[cr];W[jo];B[gp];W[gm];B[im] ;W[ff];B[ed];W[ee];B[db];W[gf];B[hf];W[od];B[oe];W[pa];B[am];W[ai] ;B[bh];W[al];B[ao];W[bm];B[ca];W[bb];B[ba];W[ce];B[nn])goban-1.1.orig/games/Hon-78-4.mgt0000644000175000017500000000314606045540406014107 0ustar alal (;PB[Kato Masao]PW[Ishida Yoshio]DT[1978-06-21,22]PC[Numakuma]RE[B+3.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[pq];W[cc];B[pk];W[nc];B[pf];W[jd];B[dd] ;W[dc];B[ed];W[be];B[dg];W[fb];B[dp];W[cp];B[do];W[er];B[gp] ;W[bn];B[np];W[dm];B[ip];W[qm];B[qk];W[qq];B[qp];W[rp];B[pp] ;W[rr];B[ro];W[pr];B[sp];W[rq];B[or];W[nr];B[ps];W[qs];B[qr] ;W[qo];B[rn];W[pr];B[co];W[bo];B[qr];W[df];B[rs];W[eg];B[ef] ;W[dh];B[fg];W[eh];B[jf];W[ne];B[oc];W[nb];B[ng];W[mg];B[mh] ;W[lg];B[id];W[lh];B[nf];W[le];B[jc];W[ie];B[je];W[kd];B[hd] ;W[mi];B[nh];W[hf];B[kc];W[lc];B[mf];W[lf];B[md];W[ld];B[ff] ;W[hg];B[he];W[gi];B[gc];W[fc];B[fd];W[ib];B[ic];W[gb];B[hb] ;W[ha];B[hc];W[ll];B[de];W[cf];B[hh];W[gh];B[ih];W[jh];B[ig] ;W[ij];B[lm];W[ml];B[km];W[qc];B[ob];W[qe];B[qd];W[rd];B[qb] ;W[rb];B[pc];W[rc];B[rf];W[qa];B[kl];W[qf];B[qg];W[re];B[rg] ;W[pe];B[oe];W[nd];B[od];W[oa];B[ni];W[mj];B[kj];W[li];B[nm] ;W[gn];B[fq];W[fr];B[gr];W[hq];B[gq];W[mm];B[mn];W[jn];B[hn] ;W[jm];B[hm];W[il];B[lo];W[jp];B[fm];W[nl];B[ol];W[om];B[nn] ;W[ok];B[pl];W[oj];B[ph];W[gl];B[gm];W[kn];B[ln];W[kq];B[dl] ;W[cl];B[el];W[dk];B[dr];W[dq];B[eq];W[cr];B[ce];W[bf];B[fs] ;W[pb];B[of];W[ds];B[jq];W[kp];B[jr];W[io];B[hp];W[gg];B[if] ;W[kr];B[nj];W[nk];B[lk];W[mk];B[hj];W[fk];B[gk];W[hl];B[ek] ;W[dj];B[fl];W[hi];B[fj];W[ii];B[dn];W[nq];B[ec];W[eb];B[ga] ;W[mp];B[lb];W[op];B[oq];W[no];B[oo];W[on];B[np];W[pj];B[qj] ;W[op];B[po];W[js];B[np];W[ir];B[iq];W[fa];B[me];W[mc];B[lp] ;W[lq];B[mo];W[cm];B[mq];W[mr];B[ei];W[di];B[hk];W[ik];B[ki] ;W[fh];B[jb];W[em];B[en];W[ho];B[go];W[cd];B[gf];W[oi];B[oh] ;W[db];B[ia];W[pi];B[qi];W[sf];B[sg];W[se];B[ns];W[ms];B[mp] ;W[ga];B[os])goban-1.1.orig/games/Hon-54-1.mgt0000644000175000017500000000224306045540242014071 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1954-05-16,17]KM[4.5]RO[1]PC[Akasaka]PB[Takagawa Kaku]PW[Sugiuchi Masao]RE[B+R]TM[10h]FF[3];B[pd];W[pq];B[dd];W[co];B[po];W[qo];B[qn];W[qp];B[pn] ;W[op];B[pj];W[kc];B[ic];W[nc];B[oc];W[nd];B[pf];W[dq];B[jq] ;W[cf];B[ie];W[ke];B[cd];W[ci];B[gq];W[qc];B[ob];W[qe];B[pe] ;W[qf];B[qd];W[rd];B[qg];W[rg];B[rc];W[re];B[qb];W[qh];B[pg] ;W[qj];B[qk];W[qi];B[rk];W[lq];B[jg];W[mg];B[pp];W[qq];B[mh] ;W[ng];B[oi];W[sc];B[rb];W[rj];B[lh];W[lg];B[kh];W[ib];B[hb] ;W[jb];B[gc];W[dk];B[dm];W[fo];B[fm];W[fk];B[ep];W[dn];B[en] ;W[eo];B[dp];W[fp];B[do];W[cn];B[cp];W[fq];B[eq];W[bp];B[bq] ;W[er];B[cq];W[cm];B[dr];W[gr];B[nq];W[oq];B[mb];W[nb];B[na] ;W[lb];B[mc];W[md];B[la];W[ld];B[lp];W[mp];B[kp];W[mo];B[hm] ;W[in];B[kn];W[im];B[gk];W[gj];B[hk];W[ip];B[lm];W[hn];B[dh] ;W[ch];B[fj];W[ek];B[gn];W[hj];B[ij];W[fi];B[go];W[gp];B[ho] ;W[hl];B[gl];W[gm];B[ka];W[jd];B[hm];W[hp];B[il];W[io];B[ir] ;W[hr];B[bo];W[bn];B[ap];W[mm];B[cl];W[mn];B[km];W[fn];B[em] ;W[bl];B[an];W[ck];B[bm];W[be];B[bd];W[id];B[ml];W[nl];B[mk] ;W[kr];B[df];W[hd];B[gd];W[hc];B[gb];W[dg];B[eg];W[cg];B[ef] ;W[ad];B[ac];W[ae];B[bc];W[pk];B[ok];W[rm];B[pl];W[rn];B[kq] ;W[lr];B[gm];W[es];B[bk];W[bj];B[al])goban-1.1.orig/games/Hon-51-1.sgf0000644000175000017500000000246306243723240014063 0ustar alal(;SZ[19]EV[Honinbo match 1951, game 1]DT[1951-4-14,15]PB[Sakata Eio]PW[Hashimoto Utaro]WR[Honinbo]RE[B+R (199 moves)]SO[100 years of go];B[pd];W[cp];B[pp];W[dc];B[ep];W[de];B[cq];W[jq];B[jc];W[qi];B[mq];W[hc];B[qk];W[lc];B[pf];W[oi];B[ok];W[mi];B[ph];W[og];B[pg];W[pi];B[le];W[kd];B[nj];W[ni];B[hq];W[mj];B[mk];W[lk];B[ml];W[qq];B[qp];W[pq];B[op];W[ke];B[cj];W[ej];B[ch];W[eh];B[gc];W[gb];B[kf];W[lf];B[me];W[ne];B[md];W[mf];B[mc];W[lb];B[hd];W[hb];B[jf];W[id];B[ie];W[he];B[kj];W[ki];B[ji];W[kh];B[jh];W[jj];B[ij];W[jk];B[hi];W[il];B[jd];W[gd];B[mb];W[ka];B[gk];W[fl];B[fi];W[dj];B[ck];W[gl];B[hk];W[dl];B[hl];W[dh];B[cg];W[cf];B[bm];W[ho];B[kc];W[ld];B[je];W[la];B[ma];W[ia];B[nd];W[oq];B[nq];W[rp];B[ro];W[rq];B[or];W[pr];B[dn];W[no];B[np];W[qn];B[qo];W[hh];B[gh];W[hg];B[kg];W[nf];B[im];W[jm];B[kl];W[qd];B[qc];W[pc];B[pe];W[rc];B[qb];W[re];B[qe];W[ll];B[lh];W[li];B[jl];W[km];B[ik];W[kk];B[io];W[ip];B[jn];W[hp];B[lm];W[il];B[kn];W[jl];B[hn];W[gn];B[ln];W[bo];B[dp];W[cm];B[cn];W[bn];B[dm];W[cl];B[bl];W[am];B[bk];W[co];B[dk];W[el];B[fn];W[gm];B[ek];W[fk];B[fj];W[hm];B[ef];W[bq];B[cr];W[br];B[gq];W[in];B[bs];W[er];B[fr];W[ff];B[di];W[ap];B[rg];W[fg];B[ei];W[bg];B[bh];W[rh];B[rj];W[rd];B[rb];W[pk];B[pl];W[oj];B[pj];W[qj];B[rk];W[pk];B[nl];W[nk];B[pj];W[lp];B[mo];W[ir];B[hr];W[fs];B[hs];W[so];B[sp];W[sq];B[rn];W[ds];B[dr])goban-1.1.orig/games/Hon-45-4.sgf0000644000175000017500000000362706243706764014110 0ustar alal( ; GM[1] SZ[19] RO[4] FF[3] BR[7 dan] WR[7 dan] KM[0] PB[Iwamoto Kaoru] PW[Hashimoto Utaro] RE[B+3] TM[12 hours each] DT[1945-11-] ID[ 3/4] ;B[qd];W[de];B[nc];W[pp];B[eq];W[cp];B[dc];W[hp];B[ce] ;W[dd];B[cd];W[ec];B[cc];W[df];B[cg];W[fd];B[en];W[cm];B[nq] ;W[pn];B[kp];W[qj];B[qg];W[kd];B[cq];W[bq];B[dp];W[co];B[cr] ;W[pr];B[pm];W[om];B[pl];W[on];B[ol];W[oj];B[nk];W[og];B[nj] ;W[qh];B[qf];W[mg];B[nf];W[mi];B[ni];W[oh];B[kk];W[ki];B[lm] ;W[pc];B[qc];W[do];B[eo];W[jq];B[kq];W[fp];B[ep];W[jp];B[kr] ;W[fq];B[br];W[cj];B[kb];W[kc];B[lb];W[jb];B[mf];W[kf];B[ib] ;W[jc];B[lg];W[mh];B[ja];W[of];B[nd];W[ic];B[gr];W[ll];B[mm] ;W[kl];B[ml];W[il];B[jm];W[jl];B[dl];W[cl];B[jn];W[hm];B[gn] ;W[hn];B[gl];W[fr];B[ir];W[mo];B[no];W[nn];B[mn];W[np];B[lo] ;W[go];B[gm];W[mp];B[io];W[ho];B[ip];W[hj];B[lf];W[kg];B[gi] ;W[hq];B[iq];W[gj];B[fi];W[em];B[di];W[bp];B[dm];W[dk];B[el] ;W[dg];B[ch];W[rg];B[oe];W[hh];B[lh];W[ri];B[oq];W[pq];B[rm] ;W[lc];B[mb];W[hb];B[ro];W[rp];B[sp];W[qo];B[li];W[ek];B[er] ;W[hr];B[rk];W[rf];B[re];W[bi];B[bh];W[db];B[cb];W[rn];B[sn] ;W[so];B[sf];W[sh];B[ro];W[dn];B[fl];W[so];B[sj];W[qk];B[ql] ;W[rj];B[ro];W[mq];B[mr];W[so];B[hi];W[ih];B[ro];W[cf];B[bf] ;W[so];B[se];W[sg];B[ro];W[eh];B[ii];W[ei];B[kh];W[so];B[jh] ;W[ij];B[ro];W[fn];B[fo];W[so];B[fj];W[fk];B[ro];W[jj];B[ig] ;W[so];B[gf];W[sm];B[eb];W[fb];B[da];W[ge];B[ff];W[hf];B[if] ;W[hg];B[gg];W[ie];B[gh];W[he];B[ji];W[lr];B[nr];W[lq];B[op] ;W[oo];B[ls];W[km];B[kn];W[lk];B[mj];W[jg];B[ke];W[jf];B[kj] ;W[oi];B[hs];W[fs];B[gs];W[gk];B[hl];W[im];B[lj];W[pf];B[pe] ;W[or];B[ms];W[le];B[ci];W[bj];B[me];W[ld];B[ar];W[gq];B[is] ;W[ia];B[ah];W[ka];B[sl];W[es];B[ds];W[mc];B[sn];W[nb];B[ob] ;W[sm];B[ee];W[ed];B[sn];W[la];B[na];W[sm];B[jk];W[ik];B[sn] ;W[ks];B[js];W[sm];B[ai];W[aj];B[sn];W[ro];B[pk];W[pg];B[qe] ;W[fa];B[aq];W[ap];B[pj];W[pi];B[ea];W[si];B[nm];W[ok];B[qn] ;W[qm];B[lp];W[no];B[qn];W[po];B[os];W[ps];B[nl];W[ns];B[ks] ;W[os];B[rl];W[sk];B[qm];W[sj];B[sm] ) goban-1.1.orig/games/T-21-5.mgt0000644000175000017500000000301406252627524013554 0ustar alal(;SZ[19]GM[1]KM[5.5]DT[1995-12-21]RO[5]PC[Tokushima City, Shikoku]PB[Kobayashi Koichi]BR[9 dan]PW[Ryu Shikun]WR[Tengen]RE[W+0.5]FF[3]ID[21/5];B[pd];W[dp];B[dc];W[pp];B[ce];W[df];B[cf];W[dg];B[cg] ;W[dh];B[ci];W[nc];B[qf];W[pb];B[qc];W[kc];B[jq];W[ec];B[ed] ;W[fd];B[fc];W[eb];B[dd];W[gc];B[fe];W[gd];B[gq];W[qm];B[cn] ;W[fq];B[fr];W[er];B[eq];W[fp];B[dr];W[ep];B[dq];W[co];B[dn] ;W[fn];B[hq];W[cq];B[cr];W[fl];B[dk];W[ek];B[dj];W[ej];B[gm] ;W[fm];B[qi];W[oq];B[mq];W[ee];B[jg];W[od];B[je];W[pe];B[qe] ;W[pc];B[qd];W[id];B[mf];W[db];B[cb];W[cc];B[bb];W[qk];B[qq] ;W[qp];B[or];W[pr];B[nr];W[qr];B[mo];W[ho];B[hh];W[ip];B[iq] ;W[ij];B[md];W[ne];B[me];W[mc];B[bn];W[dl];B[cl];W[kn];B[jo] ;W[jn];B[kd];W[ld];B[le];W[lc];B[kj];W[ih];B[ig];W[jh];B[hi] ;W[jj];B[gf];W[ch];B[bh];W[bi];B[bj];W[hj];B[jd];W[jc];B[fi] ;W[hf];B[hg];W[if];B[ge];W[he];B[fg];W[ei];B[kh];W[kk];B[lj] ;W[lk];B[nj];W[rj];B[ri];W[mk];B[mj];W[bc];B[da];W[fb];B[cd] ;W[rb];B[ko];W[mn];B[nn];W[mm];B[io];W[in];B[no];W[rc];B[pn] ;W[qn];B[go];W[gp];B[hp];W[hn];B[bq];W[og];B[ng];W[pf];B[rd] ;W[oh];B[gj];W[gk];B[cp];W[pj];B[rg];W[pi];B[qh];W[nh];B[mh] ;W[jf];B[kf];W[lg];B[kg];W[fh];B[nf];W[gh];B[gg];W[ni];B[eg] ;W[eh];B[ef];W[do];B[bo];W[en];B[qb];W[qa];B[gi];W[sc];B[si] ;W[ba];B[bd];W[ea];B[dm];W[ca];B[ac];W[sj];B[po];W[qo];B[qj] ;W[rk];B[nq];W[np];B[mp];W[op];B[pl];W[sd];B[se];W[pg];B[qg] ;W[mi];B[li];W[lh];B[mg];W[oj];B[nk];W[el];B[nl];W[lo];B[lp] ;W[ln];B[ql];W[rl];B[ml];W[di];B[cj];W[ll];B[fj];W[fk];B[ps] ;W[qs];B[os];W[de];B[pk];W[ph];B[om];W[ok];B[oo])goban-1.1.orig/games/T-12-2.mgt0000644000175000017500000000277106252627522013560 0ustar alal(;GM[1]VW[]SZ[19]PW[Kobayashi Koichi]PB[Sonoda Yuichi]DT[1986-11-28]RE[W+3.5]ID[12/2]FF[3];B[pd];W[dd];B[pp];W[dp];B[fq];W[cn];B[jp];W[qn];B[np] ;W[rp];B[fo];W[nc];B[pm];W[qm];B[pl];W[ql];B[pk];W[qj];B[pj] ;W[qi];B[pi];W[jd];B[qk];W[rk];B[qh];W[rh];B[rg];W[qg];B[ph] ;W[ri];B[qf];W[lq];B[lp];W[kq];B[jq];W[nq];B[oq];W[kp];B[ko] ;W[mp];B[lo];W[no];B[op];W[mo];B[nr];W[jo];B[km];W[mr];B[mq] ;W[jr];B[ir];W[nq];B[pn];W[or];B[mq];W[io];B[kr];W[nq];B[do] ;W[iq];B[js];W[ip];B[jr];W[ns];B[lr];W[mq];B[lm];W[qq];B[co] ;W[gq];B[gr];W[fp];B[ep];W[hr];B[er];W[gs];B[fr];W[hs];B[hm] ;W[ci];B[ck];W[df];B[cc];W[dc];B[db];W[eb];B[bb];W[bd];B[ec] ;W[fb];B[cd];W[ce];B[bc];W[ic];B[be];W[bf];B[ad];W[dj];B[dk] ;W[ej];B[ek];W[jg];B[hh];W[hg];B[ih];W[ig];B[fh];W[eg];B[eh] ;W[dh];B[fj];W[gg];B[hq];W[gp];B[go];W[hp];B[jn];W[in];B[im] ;W[ls];B[jh];W[lg];B[oc];W[nb];B[qo];W[ro];B[nd];W[md];B[mc] ;W[ne];B[oe];W[od];B[fs];W[ms];B[nd];W[ob];B[pb];W[od];B[rl] ;W[rm];B[nd];W[ld];B[mb];W[od];B[hn];W[ks];B[nd];W[bj];B[od] ;W[lb];B[bk];W[gh];B[gi];W[kh];B[oa];W[lc];B[na];W[sg];B[rf] ;W[kj];B[ji];W[ki];B[cj];W[bh];B[aj];W[jj];B[ij];W[ik];B[hj] ;W[nf];B[jk];W[jl];B[kk];W[kl];B[lk];W[ll];B[ho];W[is];B[mk] ;W[ml];B[jm];W[nk];B[mj];W[nm];B[il];W[oo];B[po];W[sh];B[sf] ;W[bi];B[la];W[jb];B[gc];W[gb];B[ea];W[ai];B[ak];W[mi];B[nj] ;W[ni];B[ok];W[nl];B[nh];W[og];B[oh];W[mh];B[pq];W[pr];B[ka] ;W[af];B[ae];W[lj];B[oj];W[of];B[pg];W[pf];B[fg];W[ff];B[pe] ;W[ja];B[mn];W[nn];B[ng];W[mg];B[kb];W[kc];B[ma];W[mm];B[ln] ;W[fa];B[da];W[hb])goban-1.1.orig/games/Hon-45-p1.sgf0000644000175000017500000000407406243707070014251 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] EV[3rd Honinbo title] RO[1, playoff] ID[ 3/7] FF[3] PB[Hashimoto Utaro] BR[8 dan] PW[Iwamoto Kaoru] WR[7 dan] DT[1946-07-31,08-15,16,17] PC[Hiroshima and Koyasan, Wakayama Pref.] RE[W+5] KM[0] TM[13h] ;B[qd];W[ce];B[od];W[pp];B[ep];W[cp];B[dn];W[eq];B[dp];W[dq] ;B[cq];W[bq];B[cr];W[br];B[co];W[bp];B[fq];W[dr];B[er];W[cs] ;B[gp];W[fo];B[fp];W[dc];B[jc];W[pi];B[qk];W[mq];B[qi];W[pc] ;B[pd];W[kd];B[jd];W[qh];B[ph];W[qj];B[ri];W[oi];B[rj];W[pg] ;B[ke];W[oh];B[fc];W[qn];B[ok];W[md];B[oc];W[mf];B[ee];W[cg] ;B[pq];W[oq];B[qp];W[po];B[qr];W[or];B[ro];W[rn];B[rq];W[pr] ;B[qq];W[iq];B[mk];W[nl];B[nk];W[pj];B[pk];W[lh];B[mi];W[mh] ;B[io];W[jo];B[jn];W[jp];B[kn];W[hd];B[db];W[cc];B[ec];W[kc] ;B[jf];W[rl];B[qf];W[rg];B[rk];W[le];B[df];W[cf];B[lo];W[mp] ;B[di];W[kj];B[jh];W[ig];B[jg];W[eh];B[ei];W[ie];B[je];W[fh] ;B[fi];W[gh];B[hc];W[hj];B[dh];W[dg];B[eg];W[ff];B[ef];W[gk] ;B[ii];W[ij];B[jk];W[dl];B[fl];W[fk];B[gi];W[hi];B[hh];W[ih] ;B[hg];W[if];B[fg];W[ji];B[cb];W[bh];B[bi];W[ll];B[ml];W[lm] ;B[mm];W[lk];B[mo];W[no];B[hm];W[ln];B[mn];W[ko];B[rh];W[qg] ;B[rf];W[sh];B[li];W[mj];B[pm];W[so];B[sp];W[qo];B[sn];W[sm] ;B[nj];W[ni];B[lj];W[ki];B[mj];W[kk];B[si];W[sf];B[sg];W[gc] ;B[gb];W[sh];B[bc];W[bd];B[sg];W[cj];B[ch];W[ah];B[bj];W[gl] ;B[ck];W[gm];B[gn];W[fn];B[em];W[bb];B[so];W[sh];B[dd];W[ac] ;B[sg];W[sr];B[rr];W[sh];B[qm];W[rm];B[sg];W[sq];B[ss];W[sh] ;B[sk];W[go];B[ip];W[jq];B[hn];W[fm];B[hq];W[cl];B[gr];W[bk] ;B[dk];W[dj];B[ek];W[el];B[ej];W[ob];B[pb];W[nb];B[nc];W[lb] ;B[mc];W[mb];B[jb];W[qc];B[rc];W[qb];B[rb];W[pa];B[sg];W[ir] ;B[lp];W[lq];B[bl];W[bm];B[ak];W[bn];B[es];W[sh];B[se];W[gd] ;B[ic];W[ca];B[cd];W[bc];B[eb];W[sg];B[pf];W[of];B[on];W[ra] ;B[rd];W[oo];B[kq];W[kr];B[jl];W[nn];B[nm];W[dm];B[kp];W[il] ;B[jm];W[oe];B[lg];W[kh];B[kg];W[hf];B[gg];W[gf];B[ne];W[nf] ;B[mg];W[ng];B[kb];W[en];B[da];W[ba];B[bo];W[ao];B[lc];W[ld] ;B[bg];W[bf];B[ai];W[ag];B[lf];W[pe];B[qe];W[cn];B[do];W[am] ;B[hs];W[is];B[hr];W[lr];B[fe];W[pn];B[om];W[ql];B[ge];W[pl] ;B[ol];W[de];B[ed];W[al];B[bk];W[ka];B[ja];W[la];B[ps];W[os] ;B[qs];W[sb];B[sc];W[qa];B[sa]) goban-1.1.orig/games/Hon-81-1.mgt0000644000175000017500000000172706045540434014102 0ustar alal (;GM[1]SZ[19]DT[1981-05-26,27]FF[3]PC[Hakone]PB[Takemiya Masaki]PW[Cho Chikun]RE[W+R]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pq];W[po];B[dp];W[qq];B[ce];W[ed];B[qk] ;W[pr];B[oq];W[or];B[qp];W[rq];B[pp];W[nq];B[np];W[mq];B[oo] ;W[nc];B[pf];W[pb];B[qc];W[kc];B[dg];W[cd];B[mp];W[lp];B[lq] ;W[kq];B[lr];W[mr];B[kr];W[jq];B[lo];W[kp];B[rp];W[hq];B[nj] ;W[ci];B[cn];W[ne];B[ng];W[cl];B[eh];W[cq];B[dq];W[cp];B[co] ;W[dr];B[er];W[cr];B[fq];W[bp];B[en];W[el];B[ej];W[dk];B[jd] ;W[jc];B[id];W[le];B[ig];W[qb];B[lg];W[qe];B[pe];W[rc];B[rd] ;W[qd];B[re];W[pc];B[qf];W[gl];B[kl];W[jk];B[gn];W[jl];B[kn] ;W[kk];B[ll];W[sp];B[so];W[sq];B[rn];W[hc];B[be];W[mh];B[lh] ;W[li];B[lj];W[mi];B[ki];W[mg];B[mf];W[lf];B[mj];W[jg];B[nh] ;W[if];B[ch];W[di];B[fe];W[ee];B[ff];W[ei];B[hf];W[hg];B[ih] ;W[he];B[gf];W[hd];B[bc];W[cb];B[gh];W[gj];B[gr];W[hr];B[bi] ;W[bj];B[bh];W[kg];B[kh];W[jf];B[bb];W[gp];B[fp];W[nf];B[ni] ;W[go];B[cc];W[db];B[bk];W[jn];B[ko];W[jo];B[fn];W[aj];B[bl] ;W[hn];B[ij];W[gm];B[hk];W[gi])goban-1.1.orig/games/T-16-3.mgt0000644000175000017500000000243306424551440013554 0ustar alal( ; EV[16th Tengen Title] RO[3] PB[Kobayashi Koichi] BR[Kisei] PW[Rin Kaiho] WR[Tengen] KM[5.5] DT[1990-11-29] PC[Atsumi Town, Aichi Pref., Japan] RE[W+R] SO[Go Weekly] ;B[pd];W[dd];B[pq];W[cp];B[eq];W[qo];B[pl];W[lp];B[po] ;W[iq];B[hq];W[hp];B[gq];W[ip];B[cr];W[qp];B[qq];W[qm];B[ql] ;W[pp];B[op];W[oo];B[np];W[pn];B[qh];W[ck];B[fc];W[df];B[db] ;W[cc];B[ic];W[eo];B[dj];W[cj];B[di];W[br];B[cq];W[bq];B[fo] ;W[fn];B[go];W[ep];B[fp];W[gn];B[dp];W[do];B[dq];W[co];B[ci] ;W[fi];B[dk];W[cg];B[cl];W[ho];B[ir];W[jr];B[hr];W[bl];B[bm] ;W[bk];B[dm];W[bi];B[en];W[bn];B[fj];W[gj];B[fk];W[gi];B[al] ;W[dn];B[ak];W[bj];B[em];W[hm];B[cm];W[cs];B[ds];W[bs];B[kr] ;W[bh];B[el];W[kq];B[js];W[jq];B[nr];W[kc];B[oc];W[ke];B[ie] ;W[hc];B[ib];W[gc];B[gb];W[hb];B[ha];W[fb];B[ga];W[ge];B[fd] ;W[gd];B[jd];W[kd];B[fe];W[gf];B[jf];W[lg];B[ff];W[gg];B[cb] ;W[ei];B[ej];W[bb];B[dc];W[cd];B[jh];W[li];B[jj];W[lk];B[fg] ;W[ii];B[hh];W[gh];B[kh];W[lh];B[ij];W[qf];B[pg];W[rd];B[qc] ;W[pf];B[of];W[rh];B[ri];W[rg];B[qi];W[rc];B[rb];W[lr];B[er] ;W[re];B[pe];W[sb];B[qb];W[sf];B[kf];W[lf];B[me];W[le];B[mc] ;W[rl];B[rk];W[rm];B[rp];W[ro];B[rq];W[og];B[oj];W[nf];B[oe] ;W[oh];B[om];W[nk];B[oi];W[no];B[mj];W[lj];B[hk];W[nl];B[mo] ;W[mn];B[ln];W[lo];B[mm];W[mp];B[ll];W[nm];B[kl];W[mk];B[eh] ;W[ba];B[in];W[hn];B[kn];W[il];B[jk];W[lb] ) goban-1.1.orig/games/Hon-75-7.sgf0000644000175000017500000000353506243711324014100 0ustar alal( ; DT[1975-] EV[30th Honinbo 1975] RO[7] KM[5.5] TM[9 hours each] BR[9 dan] WR[Honinbo] PB[Sakata Eio] PW[Ishida Yoshio] RE[W+21.5] ;B[pd];W[dc];B[dq];W[qp];B[ce];W[do];B[cm];W[bo];B[fp] ;W[en];B[dk];W[hq];B[hp];W[ip];B[ho];W[eq];B[ep];W[dp];B[dr] ;W[gq];B[fq];W[fm];B[hm];W[fk];B[kq];W[io];B[in];W[kp];B[lp] ;W[ko];B[jq];W[iq];B[op];W[gp];B[go];W[fo];B[fr];W[bq];B[br] ;W[cq];B[cr];W[di];B[ej];W[gj];B[eo];W[fn];B[dn];W[cn];B[dm] ;W[bm];B[bl];W[al];B[ak];W[am];B[aq];W[bp];B[hk];W[kl];B[ei] ;W[gh];B[hi];W[gi];B[dh];W[ji];B[ik];W[kj];B[ii];W[ig];B[jm] ;W[km];B[gl];W[fl];B[gk];W[cl];B[hg];W[hh];B[ih];W[jh];B[il] ;W[dl];B[ed];W[ec];B[fd];W[gc];B[gd];W[hc];B[hd];W[ic];B[fc] ;W[fb];B[gb];W[hb];B[eb];W[ga];B[cc];W[db];B[qf];W[oq];B[nq] ;W[pq];B[nr];W[qn];B[pi];W[cj];B[ck];W[bk];B[bj];W[aj];B[bi] ;W[eh];B[dj];W[dg];B[ch];W[dd];B[de];W[hf];B[ql];W[or];B[oc] ;W[qj];B[pj];W[qk];B[pl];W[qh];B[pk];W[rf];B[re];W[rg];B[ro] ;W[qo];B[nn];W[lo];B[rm];W[qe];B[rd];W[pg];B[pf];W[of];B[oe] ;W[ng];B[mh];W[mg];B[jg];W[if];B[kh];W[on];B[mo];W[lq];B[lr] ;W[mp];B[np];W[oo];B[no];W[nm];B[mm];W[ml];B[nl];W[om];B[mk] ;W[ll];B[ir];W[nk];B[mi];W[ol];B[oh];W[og];B[rk];W[rj];B[ki] ;W[jj];B[lf];W[sk];B[rl];W[ne];B[mf];W[nf];B[md];W[nd];B[nc] ;W[me];B[le];W[ld];B[mc];W[lg];B[kg];W[kf];B[ke];W[jf];B[je] ;W[qi];B[ie];W[gg];B[ff];W[oi];B[nh];W[ph];B[nj];W[rn];B[fj] ;W[li];B[lh];W[lj];B[oj];W[gf];B[sj];W[si];B[rh];W[sm];B[sl] ;W[mj];B[ni];W[sn];B[sj];W[ok];B[pe];W[pm];B[qg];W[sh];B[sf] ;W[ri];B[se];W[qm];B[sg];W[sk];B[fa];W[oi];B[gb];W[jr];B[kr] ;W[fb];B[co];W[em];B[gb];W[hr];B[js];W[fb];B[ln];W[ea];B[kn] ;W[cd];B[be];W[kb];B[bc];W[lb];B[mb];W[bd];B[ad];W[ef];B[lc] ;W[bb];B[jb];W[jc];B[kc];W[ab];B[fe];W[fg];B[la];W[ac];B[ae] ;W[cg];B[bg];W[ns];B[ms];W[os];B[ai];W[ek];B[ci];W[cf];B[bf] ;W[lm];B[mn];W[ap];B[ar];W[ak];B[jk];W[rh];B[kk];W[lk];B[ib] ;W[ia];B[ka];W[pp];B[fi] C[283 moves complete.] ) goban-1.1.orig/games/Hon-52-4.mgt0000644000175000017500000000304506045540240014071 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1952-08-06,07]BR[8 Dan]WR[7 Dan]KM[4.5]RO[4]PC[Toyama]PB[Hashimoto Utaro]PW[Takagawa Kaku]RE[W+3.5]TM[11h]FF[3];B[cp];W[pp];B[fq];W[dd];B[pc];W[qe];B[ph];W[ne];B[md] ;W[me];B[nd];W[le];B[oe];W[of];B[pf];W[pe];B[od];W[pg];B[qf] ;W[qg];B[rf];W[og];B[re];W[ld];B[dj];W[ch];B[eb];W[dc];B[hc] ;W[mq];B[eh];W[df];B[dh];W[bi];B[cg];W[ck];B[dg];W[cn];B[ef] ;W[fc];B[fb];W[ge];B[db];W[bg];B[de];W[be];B[ce];W[bd];B[dn] ;W[dm];B[do];W[em];B[iq];W[qo];B[pk];W[nk];B[qm];W[rg];B[om] ;W[mm];B[oo];W[op];B[qi];W[oi];B[id];W[if];B[hi];W[ii];B[ij] ;W[jj];B[hj];W[rk];B[rn];W[ri];B[rl];W[qk];B[ql];W[pn];B[on] ;W[rp];B[pm];W[ol];B[mn];W[jq];B[jr];W[kr];B[ir];W[nm];B[qq] ;W[rq];B[po];W[ro];B[kq];W[lr];B[mo];W[jk];B[ih];W[ji];B[ig] ;W[jf];B[nq];W[nr];B[pj];W[qj];B[pl];W[pi];B[sk];W[qh];B[kn] ;W[bo];B[bp];W[jm];B[lb];W[lc];B[mb];W[gc];B[gb];W[jc];B[cc] ;W[cd];B[bc];W[gg];B[gh];W[kb];B[ac];W[ap];B[aq];W[ao];B[bq] ;W[fg];B[cj];W[bj];B[dk];W[dl];B[fk];W[jn];B[ko];W[km];B[io] ;W[hn];B[jd];W[jg];B[np];W[oq];B[fo];W[bf];B[cf];W[ib];B[hb] ;W[mc];B[nc];W[rd];B[qd];W[sf];B[pd];W[se];B[rc];W[mp];B[no] ;W[jp];B[jo];W[kp];B[lp];W[lq];B[lo];W[pr];B[fm];W[bm];B[ci] ;W[bh];B[en];W[gl];B[cl];W[bk];B[el];W[cm];B[gm];W[hm];B[hl] ;W[hk];B[il];W[ik];B[gk];W[sd];B[sc];W[sg];B[ip];W[kq];B[sj] ;W[ho];B[hp];W[jl];B[fl];W[nb];B[ob];W[kd];B[ia];W[ja];B[ha] ;W[ic];B[he];W[hf];B[fh];W[jh];B[hh];W[go];B[gp];W[la];B[na] ;W[js];B[is];W[ks];B[ok];W[nl];B[lm];W[ll];B[oj];W[nj];B[ad] ;W[sn];B[sm];W[so];B[qn];W[si];B[ae];W[af];B[je];W[ke];B[ff] ;W[gd];B[hd];W[ec];B[fe];W[gn];B[ln])goban-1.1.orig/games/Hon-77-3.mgt0000644000175000017500000000303206045540404014075 0ustar alal (;SZ[19]PW[Takemiya Masaki]PB[Kato Masao]KM[5.5]DT[1977-06-08,09]GM[1]FF[3]RE[B+7.5?]BS[0]WS[0];B[pd];W[dd];B[pq];W[cp];B[pk];W[eq];B[jd];W[hc];B[jp] ;W[po];B[np];W[no];B[oo]TR[jp];W[on];B[op];W[qm];B[qk];W[mo];B[mp] ;W[lo];B[lp];W[ko];B[iq];W[qf];B[qh];W[qc];B[qd];W[pc];B[od] ;W[rd];B[re];W[rc];B[qe];W[nc];B[nd];W[mc];B[md];W[qp];B[qq] ;W[ol];B[nj];W[cj];B[bp];W[bq];B[fc];W[fd];B[cc];W[cd];B[dc] ;W[ed];B[fb];W[ej];B[ih];W[ie];B[je];W[if];B[jf];W[ig];B[jg] ;W[hh];B[hi];W[ii];B[jh];W[gh];B[bc];W[bd];B[dk];W[dj];B[co] ;W[dp];B[dm];W[bl];B[fm];W[hj];B[bn];W[cm];B[do];W[eo];B[en] ;W[fo];B[hm];W[ac];B[ab];W[ad];B[jm];W[ml];B[fr];W[in];B[hn] ;W[ho];B[io];W[hp];B[hq];W[fq];B[br];W[ap];B[ao];W[bo];B[oc] ;W[ob];B[bp];W[kp];B[kq];W[bo];B[pn];W[an];B[om];W[nn];B[pm] ;W[jn];B[jo];W[kn];B[im];W[pl];B[qn];W[kk];B[jj];W[mj];B[nm] ;W[mm];B[nl];W[jk];B[ik];W[mk];B[ij];W[ni];B[oj];W[kj];B[kl] ;W[km];B[jl];W[ll];B[cb];W[gi];B[ki];W[li];B[gr];W[er];B[mh] ;W[kh];B[ji];W[nh];B[ng];W[pi];B[mg];W[mi];B[ph];W[oi];B[qi] ;W[se];B[sf];W[sd];B[rf];W[nk];B[ok];W[qj];B[rj];W[pj];B[rk] ;W[lh];B[lb];W[lc];B[kc];W[mb];B[kb];W[ld];B[le];W[rn];B[ql] ;W[ib];B[ma];W[lf];B[lg];W[me];B[ke];W[kg];B[oh];W[kf];B[mf] ;W[ne];B[oe];W[hk];B[gc];W[gd];B[hb];W[ic];B[ia];W[el];B[gl] ;W[dl];B[dn];W[cn];B[na];W[nb];B[rb];W[sb];B[ra];W[oa];B[id] ;W[hd];B[qb];W[pb];B[la];W[ja];B[ha];W[gq];B[gk];W[fn];B[em] ;W[gn];B[gm];W[fk];B[gj];W[hi];B[kd];W[jb];B[hr];W[fs];B[pa] ;W[qa];B[hg];W[he];B[pa];W[jq];B[sc];W[jr];B[kr];W[ks];B[ls] ;W[js];B[lr];W[ip];B[fj];W[ec];B[eb];W[fi];B[fl];W[ek];B[il] )goban-1.1.orig/games/T-03-3.mgt0000644000175000017500000000336106270526504013553 0ustar alal(;SZ[19]PB[Sonoda Yuichi]BR[8d]PW[Shimamura Toshihiro]KM[5.5] SO[Kido yearbook]EV[3rd Tengen match game 3]DT[1977-12-16] WR[9d]RE[W+3.5];B[pd];W[dp];B[pq];W[cc];B[pk];W[nc];B[ip];W[ne] ;B[pf];W[qc];B[pc];W[pb];B[ob];W[qb];B[nb];W[lc];B[md];W[mc];B[oc] ;W[re];B[dd];W[dc];B[fd];W[nd];B[ec];W[ce];B[de];W[cd];B[df];W[cg] ;B[jc];W[ng];B[ph];W[po];B[np];W[no];B[mo];W[qq];B[qr];W[pr];B[oq] ;W[rr];B[qp];W[rq];B[pp];W[or];B[nr];W[mq];B[nq];W[rp];B[qo];W[ni] ;B[rf];W[qe];B[pe];W[qf];B[qg];W[gq];B[rg];W[qd];B[je];W[og];B[pg] ;W[nk];B[eh];W[kh];B[cq];W[dq];B[cp];W[co];B[bo];W[bn];B[fq];W[fp] ;B[fr];W[go];B[dr];W[do];B[cf];W[bf];B[bg];W[bh];B[ch];W[ag];B[ci] ;W[dg];B[eg];W[er];B[cr];W[eq];B[ap];W[ig];B[db];W[cb];B[kf];W[kg] ;B[ll];W[nm];B[mn];W[ir];B[lf];W[pl];B[ql];W[pj];B[qj];W[ok];B[qk] ;W[lk];B[kk];W[lj];B[kj];W[ki];B[ij];W[hf];B[he];W[kl];B[lm];W[in] ;B[il];W[jp];B[hh];W[ih];B[hi];W[dk];B[if];W[hg];B[lg];W[mh];B[oh] ;W[ml];B[pm];W[ol];B[eb];W[fk];B[gl];W[jl];B[jk];W[jm];B[oi];W[me] ;B[cm];W[cn];B[el];W[cj];B[ek];W[ej];B[fj];W[fi];B[gj];W[ei];B[dh] ;W[dl];B[em];W[kq];B[dm];W[bi];B[nn];W[kd];B[jd];W[kb];B[jb];W[ar] ;B[br];W[ds];B[cs];W[an];B[aq];W[sm];B[es];W[hm];B[hl];W[sk];B[sl] ;W[rl];B[rn];W[sn];B[so];W[ro];B[rm];W[sp];B[rk];W[oj];B[ca];W[ba] ;B[da];W[bb];B[gm];W[gr];B[om];W[mm];B[kn];W[jn];B[ko];W[lr];B[jo] ;W[io];B[fs];W[gs];B[ds];W[sl];B[sj];W[so];B[gf];W[cl];B[bm];W[gg] ;B[bg];W[cg];B[nh];W[mg];B[mi];W[nj];B[lh];W[li];B[gn];W[ho];B[bl] ;W[bk];B[ff];W[bp];B[as];W[ao];B[lp];W[lq];B[fn];W[ja];B[ia];W[ka] ;B[mp];W[ls];B[os];W[qs];B[kp];W[jq];B[se];W[sd];B[sf];W[sb];B[kc] ;W[lb];B[ke];W[ld];B[ji];W[fo];B[km];W[pi];B[qi];W[ii];B[fh];W[en] ;B[dn];W[eo];B[ak];W[aj];B[al];W[jh];B[jj];W[mf];B[of];W[ps];B[ns] ;W[ib];B[ha];W[pa];B[jf])goban-1.1.orig/games/T-16-2.mgt0000644000175000017500000000355306433230650013554 0ustar alal( ; EV[16th Tengen title] RO[2] PB[Rin Kaiho] BR[Tengen] PW[Kobayashi Koichi] WR[Kisei, Meijin, Gosei] KM[5.5] DT[1990] PC[Oita, Japan] RE[B+0.5] SO[Go-Moon, Feb '91] US[Klaus Blumberg] ;B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[jp];W[qf];B[oe];W[qc];B[qd];W[pc] ;B[md];W[od];B[pe];W[rd];B[re];W[rc];B[pg];W[hq];B[ho];W[fq];B[pn];W[dj] ;B[iq];W[ij];B[fc];W[id];B[fe];W[df];B[if];W[lc];B[cc];W[dc];B[db];W[cd] ;B[bb];W[bc];B[cb];W[qq];B[pq];W[rp];B[rn];W[pr];B[or];W[qr];B[fi];W[dh] ;B[ek];W[kk];B[jk];W[jj];B[kj];W[kl];B[ik];W[lj];B[ki];W[li];B[kh];W[ml] ;B[dk];W[lo];B[nn];W[io];B[kn];W[jm];B[hp];W[hk];B[il];W[in];B[hl];W[ip] ;B[gq];W[hr];B[gr];W[ir];B[jq];W[gp];B[hn];W[fr];B[ko];W[lh];B[kg];W[oj] ;B[nk];W[mn];B[lm];W[mm];B[lp];W[mp];B[lq];W[mq];B[mr];W[lr];B[nq];W[kr] ;B[lk];W[ll];B[np];W[mo];B[jr];W[js];B[ks];W[ls];B[kq];W[jo];B[kp];W[ok] ;B[nl];W[mk];B[nj];W[hm];B[gm];W[im];B[gl];W[ni];B[oi];W[oh];B[pi];W[ro] ;B[jc];W[nh];B[qg];W[ff];B[gf];W[fh];B[fg];W[gh];B[ci];W[eg];B[ef];W[di] ;B[cj];W[ch];B[cn];W[bo];B[co];W[cp];B[bn];W[ck];B[bk];W[cl];B[bl];W[bh] ;B[fo];W[mj];B[lb];W[mc];B[kc];W[ld];B[ke];W[rf];B[rg];W[se];B[qm];W[ph] ;B[ri];W[qh];B[rh];W[le];B[qe];W[bj];B[ps];W[rr];B[bp];W[bq];B[ao];W[nm] ;B[ol];W[mb];B[hi];W[hg];B[hf];W[gi];B[gj];W[fj];B[kb];W[kd];B[jd];W[om] ;B[pl];W[kf];B[je];W[eo];B[en];W[fp];B[do];W[gn];B[ep];W[ms];B[nr];W[go] ;B[ns];W[dq];B[bd];W[be];B[ac];W[hj];B[gk];W[ii];B[ih];W[hh];B[ji];W[hi] ;B[dl];W[cm];B[dm];W[bi];B[bm];W[aq];B[cj];W[ne];B[pf];W[sf];B[sd];W[sc] ;B[ce];W[de];B[bf];W[cf];B[ae];W[bg];B[ce];W[ec];B[eb];W[be];B[sg];W[sd] ;B[ce];W[ig];B[lf];W[mf];B[ob];W[nb];B[be];W[lg];B[jg];W[fd];B[gd];W[qo] ;B[qn];W[eq];B[fn];W[ee];B[ff];W[sn];B[sm];W[so];B[ej];W[ei];B[oo];W[on] ;B[no];W[qi];B[qj];W[la];B[ka];W[ma];B[og];W[ng];B[aj];W[ap];B[bo];W[fk] ;B[fl];W[fi];B[ks];W[is];B[qs];W[rs];B[os];W[ai];B[ak];W[ag];B[ed];W[lf] ;B[jf];W[fd];B[eo];W[ed];B[jh] ) goban-1.1.orig/games/Hon-57-2.mgt0000644000175000017500000000365106045540246014105 0ustar alal (;GM[1]SZ[19]DT[1957-07-09,10]PW[Takagawa Kaku]RE[W+2.5]PB[Fujisawa Hosai]FF[3]KM[4.5]RO[2]PC[Moji]TM[10h]BS[0]WS[0];B[qd];W[od];B[dc];W[dp];B[pq];W[ce];B[dh];W[fe];B[gc] ;W[qo];B[oc];W[nc];B[ob];W[dk];B[ql];W[hd];B[ee];W[ef];B[ed] ;W[df];B[ff];W[fg];B[gf];W[eh];B[nd];W[hg];B[qp];W[ge];B[hc] ;W[po];B[op];W[nn];B[mp];W[pk];B[qk];W[pj];B[qj];W[pi];B[qh] ;W[rp];B[fq];W[lo];B[kq];W[fo];B[ei];W[ci];B[fh];W[eg];B[fk] ;W[hk];B[fm];W[dm];B[en];W[fp];B[dn];W[gq];B[cn];W[cm];B[di] ;W[ch];B[cj];W[bj];B[cp];W[cq];B[bq];W[co];B[bp];W[do];B[bo] ;W[cr];B[bm];W[bl];B[gk];W[hj];B[hl];W[il];B[hm];W[jd];B[rq] ;W[og];B[oe];W[im];B[gh];W[gg];B[om];W[oo];B[gr];W[hq];B[no] ;W[pp];B[qq];W[on];B[eq];W[er];B[br];W[hr];B[qm];W[nl];B[mf] ;W[bc];B[ic];W[qg];B[rh];W[ph];B[lg];W[le];B[if];W[jf];B[ig] ;W[hf];B[hh];W[kh];B[lh];W[ki];B[li];W[lj];B[mj];W[lk];B[ii] ;W[jj];B[me];W[rg];B[pf];W[pg];B[rn];W[ro];B[ol];W[nk];B[np] ;W[sh];B[ri];W[mo];B[bb];W[am];B[bn];W[md];B[pd];W[fi];B[gi] ;W[cb];B[bd];W[ba];B[ab];W[ac];B[cd];W[db];B[eb];W[da];B[kc] ;W[ld];B[jr];W[lb];B[kb];W[fb];B[ad];W[aa];B[fc];W[ea];B[cg] ;W[bg];B[bh];W[bi];B[bf];W[ah];B[kd];W[ke];B[ie];W[id];B[je] ;W[kg];B[he];W[gd];B[cf];W[dg];B[de];W[fj];B[gj];W[ej];B[jn] ;W[hn];B[ko];W[el];B[cl];W[dl];B[ij];W[ik];B[cs];W[fr];B[an] ;W[ds];B[al];W[bk];B[bs];W[km];B[kn];W[lm];B[re];W[lp];B[lq] ;W[si];B[sj];W[sg];B[sl];W[qi];B[rj];W[sq];B[rr];W[lc];B[fl] ;W[gb];B[nb];W[sr];B[hb];W[rs];B[qs];W[ps];B[ss];W[af];B[be] ;W[rs];B[os];W[qr];B[pr];W[mq];B[oq];W[ir];B[kp];W[jq];B[jp] ;W[js];B[kr];W[ip];B[io];W[in];B[iq];W[hp];B[ks];W[mr];B[ms] ;W[nf];B[nm];W[mm];B[ne];W[nj];B[mi];W[ka];B[ja];W[jb];B[jc] ;W[ia];B[ha];W[la];B[ec];W[fa];B[qf];W[fn];B[em];W[is];B[ng] ;W[nh];B[of];W[ni];B[ls];W[sn];B[sm];W[so];B[qn];W[mb];B[jm] ;W[jl];B[eo];W[ep];B[mk];W[ml];B[ok];W[oj];B[gm];W[na];B[oa] ;W[gn];B[ak];W[aj];B[am];W[ho];B[lf];W[kf];B[mh];W[se];B[sd] ;W[sf];B[ji];W[pl];B[pm];W[ma];B[qs];W[mc];B[ss];W[sp];B[jo] ;W[jq];B[rs];W[iq])goban-1.1.orig/games/Hon-79-1.mgt0000644000175000017500000000173206045540410014077 0ustar alal (;GM[1]PB[Kato Masao]PW[Rin Kaiho]DT[1979-05-23,24]RE[B+R.]SZ[19]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[qp];W[op];B[oq];W[nq];B[pq];W[dp];B[np] ;W[ci];B[pj];W[mq];B[no];W[jq];B[jd];W[qc];B[qd];W[pc];B[oc] ;W[ob];B[nc];W[nb];B[mc];W[rd];B[re];W[rc];B[qf];W[dn];B[lp] ;W[lq];B[jo];W[lk];B[jk];W[ok];B[pk];W[ol];B[oj];W[lm];B[kl] ;W[lo];B[kp];W[jn];B[mp];W[in];B[ll];W[mm];B[ml];W[nm];B[kq] ;W[kr];B[ir];W[jr];B[iq];W[or];B[pr];W[ip];B[jp];W[gq];B[hp] ;W[io];B[hq];W[ns];B[js];W[lr];B[eq];W[ps];B[qs];W[qr];B[os] ;W[gp];B[ho];W[ps];B[hn];W[po];B[pn];W[on];B[oo];W[qo];B[os] ;W[pp];B[qn];W[ro];B[rp];W[rn];B[rm];W[qq];B[nr];W[rq];B[mr] ;W[ql];B[dq];W[cp];B[pl];W[pm];B[qm];W[rl];B[om];W[nn];B[ls] ;W[pm];B[cc];W[sm];B[dd];W[ec];B[cb];W[ed];B[de];W[be];B[bd] ;W[hd];B[cq];W[ff];B[dl];W[cf];B[df];W[fl];B[ge];W[gd];B[ek] ;W[fo];B[dg];W[fr];B[er];W[bq];B[br];W[bp];B[ar];W[dh];B[cg] ;W[gj];B[ei];W[eh];B[fi];W[fk];B[fh];W[eg];B[hh];W[je];B[ch] ;W[di];B[dj];W[gf];B[jh];W[kd];B[nj];W[ij];B[kg])goban-1.1.orig/games/T-08-5.mgt0000644000175000017500000000306606270526666013575 0ustar alal(;SZ[19]EV[8th Tengen Match]RO[Game 5]DT[1982-12-27] PC[Nihon Ki-in]PB[Kataoka Satoshi]BR[7d]PW[Kato Masao]WR[9d] KM[5.5]RE[B+0.5]SO[Go world 31] ;B[pd];W[dp];B[pq];W[dd];B[fq];W[dn];B[jp];W[qo];B[qm];W[oo];B[np] ;W[pl];B[qp];W[ql];B[ro];W[qn];B[cf];W[fc];B[cj];W[ch];B[bh];W[qf] ;B[nc];W[rd];B[qc];W[lc];B[id];W[le];B[pf];W[qg];B[pg];W[ph];B[oh] ;W[pi];B[if];W[je];B[ie];W[kg];B[ng];W[ef];B[cg];W[dh];B[ci];W[ih] ;B[kd];W[ld];B[gg];W[hg];B[gf];W[hf];B[ge];W[he];B[gd];W[hd];B[gc] ;W[hc];B[fb];W[hb];B[ec];W[ed];B[dc];W[cc];B[cb];W[db];B[eb];W[bb] ;B[cd];W[ca];B[bd];W[gh];B[fh];W[gb];B[fd];W[ea];B[gi];W[fa];B[fc] ;W[hh];B[fg];W[dr];B[hp];W[cl];B[rn];W[rm];B[no];W[sn];B[rp];W[rc] ;B[mb];W[lb];B[er];W[eq];B[fr];W[ne];B[rb];W[cq];B[nn];W[on];B[ml] ;W[jm];B[eo];W[ep];B[fp];W[jk];B[fj];W[bk];B[bc];W[bj];B[bi];W[ob] ;B[nb];W[oc];B[od];W[ma];B[nd];W[na];B[me];W[mf];B[nf];W[md];B[sc] ;W[qe];B[pb];W[lm];B[kn];W[jn];B[ko];W[ll];B[dm];W[cn];B[mg];W[oe] ;B[pe];W[lg];B[mi];W[em];B[cb];W[op];B[oq];W[cc];B[so];W[sm];B[cb] ;W[da];B[oj];W[pj];B[ek];W[dk];B[dj];W[el];B[ck];W[dl];B[gn];W[io] ;B[ip];W[li];B[lj];W[mh];B[mj];W[kj];B[ij];W[ik];B[hj];W[jj];B[ab] ;W[ba];B[nh];W[lh];B[ok];W[fk];B[ej];W[ln];B[lo];W[gk];B[hm];W[gj] ;B[km];W[kl];B[hk];W[hi];B[il];W[jl];B[fi];W[gl];B[gm];W[fl];B[hl] ;W[fo];B[fn];W[en];B[bl];W[bm];B[aj];W[al];B[ii];W[ji];B[pa];W[oa] ;B[go];W[pp];B[jo];W[in];B[re];W[se];B[qd];W[rf];B[ds];W[cs];B[es] ;W[sb];B[sa];W[oi];B[ni];W[nl];B[ol];W[mm];B[om];W[pm];B[mk];W[nm] ;B[nk];W[mo];B[mp];W[mn];B[pk];W[qk];B[of];W[me];B[do];W[co];B[fo] ;W[lk];B[cc])goban-1.1.orig/games/Hon-79-3.mgt0000644000175000017500000000302706045540410014100 0ustar alal (;GM[1]SZ[19]DT[1979-06-13,14]RE[B+R]FF[3]PB[Kato Masao]PW[Rin Kaiho]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[pp];W[dp];B[oc];W[qi];B[ce];W[ci];B[gc] ;W[ed];B[jc];W[qn];B[mq];W[qq];B[qp];W[pq];B[op];W[oq];B[rp] ;W[mr];B[lr];W[nr];B[lq];W[rq];B[qg];W[np];B[nq];W[no];B[pn] ;W[pl];B[pm];W[lo];B[iq];W[qm];B[nn];W[mn];B[nm];W[oo];B[po] ;W[oi];B[ml];W[km];B[ms];W[os];B[sq];W[sr];B[sp];W[rs];B[fq] ;W[lk];B[nj];W[ni];B[mj];W[ol];B[nl];W[ip];B[hq];W[ki];B[kj] ;W[jj];B[lj];W[ji];B[kl];W[jl];B[jm];W[kk];B[ll];W[kq];B[qk] ;W[pk];B[rk];W[qj];B[oj];W[rl];B[il];W[jk];B[kr];W[jq];B[kp] ;W[jp];B[jn];W[jr];B[ko];W[lp];B[ln];W[dq];B[fn];W[fp];B[gp] ;W[in];B[im];W[ks];B[fo];W[js];B[co];W[cp];B[bo];W[bp];B[mh] ;W[rn];B[ee];W[gd];B[dd];W[ec];B[fe];W[fd];B[ei];W[ge];B[ck] ;W[jo];B[kn];W[cl];B[bl];W[df];B[de];W[eh];B[fh];W[fg];B[eg] ;W[dh];B[gf];W[gg];B[hf];W[fi];B[cc];W[cb];B[gh];W[hg];B[gi] ;W[ff];B[ef];W[bd];B[dg];W[be];B[bf];W[cd];B[bc];W[bb];B[if] ;W[ig];B[jg];W[ih];B[bh];W[bi];B[cg];W[jf];B[je];W[kf];B[ie] ;W[le];B[lh];W[kh];B[lc];W[bk];B[cm];W[dl];B[bj];W[dk];B[ak] ;W[cj];B[bk];W[hk];B[fk];W[hm];B[fl];W[hl];B[mm];W[fj];B[gj] ;W[ej];B[ek];W[di];B[gk];W[mp];B[mo];W[ai];B[ah];W[mn];B[rg] ;W[rh];B[mo];W[dm];B[cn];W[mn];B[sn];W[sm];B[mo];W[an];B[bm] ;W[mn];B[hn];W[ho];B[mo];W[ls];B[gn];W[lg];B[ik];W[mc];B[mb] ;W[md];B[nb];W[nf];B[ij];W[ep];B[ao];W[go];B[ap];W[hc];B[hb] ;W[ic];B[ib];W[gb];B[ke];W[kd];B[kc];W[pf];B[oe];W[ne];B[bq] ;W[cr];B[ae];W[ac];B[er];W[gr];B[br];W[dr];B[ga];W[pd];B[pc] ;W[qe];B[re];W[fc];B[ld];W[od];B[nc];W[fa];B[qh];W[ri];B[nd] ;W[me];B[bs])goban-1.1.orig/games/Hon-47-3.mgt0000644000175000017500000000365506045540236014110 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Iwamoto Kaoru]KM[4.5]GM[1]FF[3]RE[W+2.5]DT[1947-11-]BS[0]WS[0];B[pd];W[qp];B[dd];W[dp];B[op];W[oq];B[pp];W[pq];B[qo] ;W[nq];B[np];W[mp];B[qq];W[rp];B[qr];W[ro];B[mq];W[mo];B[pn] ;W[qn];B[po];W[mr];B[lq];W[lr];B[qm];W[rn];B[pl];W[rr];B[kq] ;W[om];B[pm];W[pr];B[ln];W[mn];B[mm];W[kp];B[iq];W[jq];B[jr] ;W[jp];B[kr];W[kn];B[km];W[jn];B[gq];W[jm];B[kl];W[go];B[dr] ;W[pf];B[qh];W[nd];B[pc];W[ph];B[qg];W[qf];B[pg];W[of];B[og] ;W[nf];B[nc];W[ld];B[mc];W[kf];B[cj];W[cl];B[ej];W[cd];B[cc] ;W[ce];B[dc];W[ch];B[de];W[eh];B[cf];W[bf];B[be];W[cg];B[bd] ;W[fi];B[el];W[ck];B[dn];W[ep];B[cq];W[cp];B[fq];W[cn];B[hk] ;W[nm];B[jl];W[ml];B[lm];W[oj];B[ok];W[nk];B[pj];W[ir];B[hr] ;W[ip];B[is];W[gk];B[gl];W[fk];B[gm];W[nn];B[dm];W[bo];B[fo] ;W[oi];B[rm];W[il];B[ik];W[im];B[hl];W[ng];B[rf];W[re];B[rg] ;W[qd];B[dk];W[bj];B[kj];W[lc];B[rc];W[gc];B[fj];W[gj];B[gd] ;W[hc];B[gi];W[hi];B[gh];W[hh];B[fh];W[hj];B[ei];W[ci];B[mj] ;W[nj];B[hg];W[ig];B[hf];W[if];B[he];W[qi];B[pi];W[oh];B[ri] ;W[lb];B[qc];W[ek];B[ho];W[bq];B[mh];W[nh];B[eg];W[er];B[eq] ;W[dq];B[cr];W[br];B[fr];W[na];B[ob];W[df];B[ie];W[fl];B[fm] ;W[dl];B[ef];W[em];B[fn];W[eb];B[jd];W[ic];B[dg];W[qj];B[pk] ;W[sf];B[sg];W[se];B[rj];W[ca];B[fc];W[fb];B[bg];W[bh];B[af] ;W[cs];B[es];W[hn];B[lo];W[lp];B[gn];W[gp];B[fp];W[hp];B[jc] ;W[jb];B[dj];W[ec];B[fd];W[bb];B[ah];W[dh];B[sn];W[od];B[ai] ;W[aj];B[cb];W[ba];B[kh];W[mi];B[li];W[mg];B[ni];W[ra];B[oa] ;W[mi];B[nr];W[ns];B[ni];W[hq];B[ir];W[mi];B[ls];W[or];B[ni] ;W[gg];B[fg];W[mi];B[ag];W[bi];B[ni];W[ma];B[qa];W[mi];B[lh] ;W[lk];B[lj];W[je];B[id];W[kd];B[cm];W[bm];B[do];W[co];B[mk] ;W[ll];B[kk];W[nl];B[da];W[db];B[ab];W[ed];B[bc];W[ea];B[so] ;W[rq];B[bs];W[as];B[ds];W[ji];B[bs];W[jj];B[jk];W[cs];B[jg] ;W[jh];B[kg];W[jf];B[bs];W[fe];B[ee];W[cs];B[rd];W[qe];B[sd] ;W[oc];B[nb];W[md];B[bs];W[pb];B[qb];W[cs];B[ks];W[sp];B[sm] ;W[bs];B[ms];W[kc];B[gf];W[hd];B[ge];W[nr];B[hm];W[io];B[ko] ;W[jo];B[lg];W[lf];B[pe];W[oe];B[ij];W[ii];B[ni])goban-1.1.orig/games/M-62-l06.sgf0000644000175000017500000000336006252641446014002 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Iwata Masao] BR[7 dan] PW[Fujisawa Hosai] WR[9 dan] DT[1962-] PC[Japan] RE[B+5] KM[5] ;B[pd];W[pp];B[cd];W[dp];B[ec];W[nc];B[qf];W[pb];B[lc] ;W[qc];B[oc];W[od];B[nd];W[oe];B[pc];W[ob];B[qd];W[mc];B[qb] ;W[ld];B[fq];W[cn];B[dr];W[cq];B[iq];W[pf];B[pg];W[og];B[ph] ;W[rc];B[rb];W[oh];B[pi];W[qm];B[qq];W[pq];B[qp];W[qo];B[ro] ;W[rn];B[po];W[qn];B[pr];W[or];B[qr];W[nq];B[rp];W[qe];B[rd] ;W[rf];B[oo];W[np];B[no];W[mo];B[mn];W[pk];B[pl];W[qk];B[ok] ;W[ol];B[op];W[jq];B[lo];W[ir];B[oi];W[nk];B[mi];W[mg];B[hq] ;W[hr];B[ep];W[kp];B[oq];W[eo];B[fo];W[en];B[dq];W[cp];B[ci] ;W[io];B[ho];W[hn];B[go];W[ip];B[gq];W[gc];B[hd];W[gd];B[he] ;W[ge];B[hf];W[gf];B[hg];W[fh];B[gh];W[cf];B[dg];W[df];B[ef] ;W[dd];B[de];W[ee];B[ce];W[eg];B[bf];W[ff];B[cg];W[oj];B[nh] ;W[ng];B[lj];W[dc];B[kr];W[lr];B[lq];W[mr];B[kq];W[lp];B[jr] ;W[jp];B[gr];W[ln];B[mp];W[mq];B[hs];W[mo];B[kd];W[le];B[mp] ;W[ks];B[is];W[mo];B[qg];W[re];B[sc];W[pe];B[mp];W[ir];B[ed] ;W[mo];B[db];W[ki];B[lm];W[ko];B[mm];W[lk];B[kj];W[ii];B[gi] ;W[hk];B[kl];W[ib];B[fj];W[kk];B[jj];W[ih];B[ji];W[hj];B[jh] ;W[jf];B[kg];W[jg];B[ig];W[je];B[ij];W[hi];B[hl];W[il];B[gl] ;W[ik];B[jk];W[mj];B[jl];W[im];B[rj];W[om];B[rh];W[dj];B[fm] ;W[di];B[ni];W[rk];B[ek];W[lh];B[nj];W[mk];B[li];W[qi];B[lg] ;W[mh];B[kh];W[ri];B[jd];W[lf];B[si];W[qj];B[nn];W[js];B[hc] ;W[hb];B[fb];W[kb];B[cj];W[gg];B[hh];W[cl];B[ef];W[fi];B[gj] ;W[df];B[br];W[cr];B[cs];W[bq];B[bk];W[bl];B[kc];W[lb];B[gb] ;W[ic];B[id];W[jc];B[dh];W[dk];B[ck];W[dl];B[em];W[rg];B[qh] ;W[sj];B[dm];W[cm];B[sh];W[os];B[dn];W[do];B[jm];W[jn];B[eh] ;W[ei];B[fd];W[ak];B[aj];W[al];B[nb];W[na];B[pa];W[mb];B[pn] ;W[pm];B[ga];W[ha];B[sn];W[sm];B[so];W[ps];B[qs];W[hp];B[gp] ;W[ar];B[bs];W[ne];B[fc] C[263 moves complete.] ) goban-1.1.orig/games/T-14-1.mgt0000644000175000017500000000321606445672772013567 0ustar alal(;EV[14th Tengen title]RO[1]PB[Sonoda Yuichi]BR[9 dan] PW[Cho Chikun]WR[Judan, Tengen]KM[5.5]DT[1988-11-]PC[Japan] RE[B+0.5]SO[Go Moon 3, 1989]SZ[19] US[Klaus Blumberg / corrected by JBvR]GC[ ] ;B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[cn];W[cp];B[dn];W[fq];B[dj] ;W[qj];B[cf];W[fc];B[ef];W[qn];B[np];W[qg];B[hc];W[bd];B[he];W[bf] ;B[pf];W[cg];B[pg];W[qh];B[qf];W[nb];B[mc];W[qc];B[pb];W[pc];B[ob] ;W[oc];B[nc];W[od];B[ne];W[oe];B[nf];W[rd];B[rf];W[nd];B[md];W[qb] ;B[mb];W[pe];B[nh];W[pl];B[ho];W[gd];B[hd];W[eg];B[hq];W[qq];B[qp] ;W[rp];B[pm];W[qm];B[pq];W[rq];B[ol];W[pn];B[nn];W[fg];B[hh];W[fo] ;B[fn];W[gi];B[ch];W[dg];B[hi];W[gk];B[gh];W[fi];B[hl];W[hk];B[ik] ;W[il];B[jl];W[im];B[hm];W[em];B[cl];W[jm];B[kl];W[km];B[lm];W[ln] ;B[ll];W[jo];B[in];W[ij];B[jk];W[gn];B[jn];W[kn];B[go];W[en];B[jq] ;W[bh];B[bi];W[bj];B[cj];W[ai];B[bk];W[ci];B[bm];W[bo];B[dm];W[hj] ;B[gr];W[jj];B[jh];W[om];B[nm];W[gb];B[hb];W[oo];B[no];W[pr];B[or] ;W[qr];B[os];W[ge];B[gf];W[ff];B[ds];W[er];B[es];W[cs];B[fr];W[dr] ;B[fs];W[br];B[pi];W[ok];B[qi];W[ri];B[rj];W[rk];B[nl];W[sj];B[ki] ;W[gg];B[hf];W[fm];B[hn];W[nj];B[mi];W[ph];B[oi];W[gq];B[ir];W[gp] ;B[hp];W[eo];B[dp];W[ep];B[bn];W[an];B[am];W[ao];B[on];W[po];B[ha] ;W[gc];B[na];W[pa];B[sd];W[sc];B[ga];W[fa];B[qe];W[op];B[oq];W[se] ;B[re];W[qd];B[oh];W[sh];B[nk];W[oj];B[mj];W[kj];B[pm];W[of];B[og] ;W[om];B[rg];W[ji];B[li];W[hg];B[ig];W[rh];B[pm];W[pk];B[di];W[dh] ;B[ek];W[el];B[dl];W[lk];B[mk];W[fh];B[ih];W[ei];B[ak];W[ps];B[qo] ;W[ro];B[aj];W[gm];B[bi];W[hs];B[hr];W[bj];B[cq];W[bq];B[bi];W[nq] ;B[nr];W[bj];B[fb];W[eb];B[bi];W[mq];B[mr];W[bj];B[fk];W[bi];B[ej] ;W[qa];B[oa];W[gl];B[fj];W[om]C[W connects at q7. ])goban-1.1.orig/games/Hon-70-1.sgf0000644000175000017500000000322606243710074014063 0ustar alal( ; DT[1970-] EV[25th Honinbo 1970] RO[1] FF[3] BR[9 dan] WR[Honinbo] KM[4.5] PB[Sakata Eio] PW[Rin Kaiho] RE[W+2.5] ;B[pd];W[dc];B[pp];W[dp];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[pj];W[db];B[jd];W[nq];B[pn];W[jp];B[fe];W[qf];B[qe] ;W[pf];B[nd];W[ph];B[qi];W[oj];B[ok];W[nj];B[nk];W[mj];B[nh] ;W[pk];B[pi];W[oi];B[qk];W[pl];B[ol];W[oh];B[nf];W[qc];B[re] ;W[oc];B[od];W[nc];B[pc];W[pb];B[mc];W[mb];B[qb];W[ob];B[rc] ;W[lc];B[md];W[qa];B[rb];W[jc];B[ic];W[jb];B[kj];W[mk];B[om] ;W[kk];B[jj];W[ql];B[rk];W[jk];B[ik];W[jm];B[il];W[km];B[pr] ;W[ij];B[hj];W[ii];B[kh];W[jh];B[lj];W[gh];B[gj];W[lk];B[kg] ;W[fh];B[ig];W[ih];B[hg];W[hh];B[gl];W[ff];B[ho];W[dn];B[dk] ;W[ge];B[fd];W[hd];B[hc];W[df];B[ld];W[kc];B[ef];W[eg];B[hq] ;W[eq];B[mp];W[iq];B[hr];W[np];B[in];W[mo];B[lo];W[lp];B[kp] ;W[mq];B[kq];W[ko];B[jo];W[ln];B[lr];W[rl];B[rg];W[qq];B[pq] ;W[qn];B[rm];W[id];B[gf];W[gg];B[fg];W[qm];B[qo];W[ff];B[hf] ;W[je];B[fg];W[ro];B[rn];W[ff];B[kd];W[gc];B[gd];W[hb];B[jg] ;W[qp];B[po];W[rq];B[sl];W[sn];B[pm];W[rs];B[fg];W[bn];B[he] ;W[ib];B[eh];W[ff];B[qr];W[ee];B[rr];W[gp];B[hp];W[jn];B[io] ;W[ed];B[fr];W[er];B[es];W[ds];B[fs];W[cr];B[fc];W[cj];B[ck] ;W[dj];B[ej];W[ei];B[fi];W[dh];B[eb];W[bk];B[bl];W[bj];B[cm] ;W[cn];B[da];W[ca];B[ea];W[cb];B[dm];W[mr];B[jr];W[ek];B[fj] ;W[fm];B[em];W[fn];B[fl];W[bm];B[ie];W[li];B[mh];W[ki];B[gb] ;W[hc];B[ha];W[al];B[cl];W[gq];B[gr];W[pa];B[go];W[fo];B[fq] ;W[fp];B[nn];W[mm];B[or];W[ra];B[ls];W[rf];B[sf];W[lh];B[lg] ;W[ia];B[ga];W[qh];B[rh];W[el];B[fk];W[en];B[dl];W[hm];B[no] ;W[lq];B[ms];W[nr];B[ns];W[hl];B[hk];W[sb];B[sc];W[og];B[mi] ;W[ji];B[ng];W[oe];B[ne];W[qg];B[op];W[jl];B[ml];W[ll];B[nl] ;W[mn];B[sa];W[im];B[sb] C[253 moves complete.] ) goban-1.1.orig/games/Hon-59-4.mgt0000644000175000017500000000215006045540252014077 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[W+R]DT[1959-07-]BS[0]WS[0];B[qd];W[dc];B[pq];W[dq];B[oc];W[qo];B[ql];W[pn];B[qp] ;W[rp];B[rq];W[pp];B[qq];W[op];B[nq];W[qi];B[ol];W[qf];B[co] ;W[cj];B[ce];W[cp];B[do];W[ep];B[ch];W[dm];B[eo];W[fp];B[fo] ;W[gp];B[fm];W[ej];B[gc];W[ed];B[eh];W[cd];B[de];W[be];B[dd] ;W[fc];B[gd];W[ee];B[bd];W[df];B[cf];W[bf];B[cc];W[cg];B[cd] ;W[dg];B[ef];W[bh];B[db];W[eb];B[ec];W[oq];B[or];W[dc];B[bg] ;W[cb];B[ec];W[da];B[ag];W[dh];B[di];W[ci];B[eg];W[ch];B[bb] ;W[dc];B[ae];W[gb];B[gj];W[np];B[mq];W[mp];B[lp];W[lo];B[ko] ;W[ln];B[oi];W[rd];B[rc];W[pj];B[nk];W[oj];B[nj];W[ni];B[nh] ;W[mi];B[ph];W[qh];B[lk];W[ki];B[re];W[kk];B[kl];W[ll];B[lj] ;W[mh];B[lm];W[ml];B[kj];W[km];B[ng];W[jl];B[jj];W[qk];B[ei] ;W[dj];B[fj];W[bm];B[bp];W[bq];B[jd];W[lq];B[lr];W[kp];B[hb] ;W[ge];B[fe];W[fd];B[ff];W[id];B[ga];W[fb];B[he];W[ie];B[hc] ;W[jc];B[kd];W[gf];B[hf];W[gg];B[hg];W[gh];B[hh];W[gi];B[hi] ;W[fi];B[hd];W[nf];B[pg];W[pd];B[qg];W[rf];B[rg];W[qe];B[sd] ;W[qc];B[rd];W[pc];B[sf];W[of];B[od];W[ob];B[rb];W[nc];B[nd] ;W[mc];B[pe];W[pb];B[md];W[ld];B[le];W[lc];B[me];W[ke];B[je] ;W[kf])goban-1.1.orig/games/M-66-1.sgf0000644000175000017500000000370706261340112013534 0ustar alal( ; GM[1] EV[5th Meijin Title Match] RO[1] PB[Sakata Eio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Aug 5/6, 1966] PC[Tokyo] RE[W+J] KM[5] SZ[19] ;B[qd];W[cd];B[ec];W[od];B[mc];W[qc];B[pc];W[pd];B[oc] ;W[nc];B[nd];W[nb];B[qb];W[rc];B[ob];W[qe];B[mb];W[ne] ;B[md];W[de];B[ee];W[ef];B[fe];W[dc];B[eb];W[ff];B[ge] ;W[gf];B[he];W[cp];B[eq];W[dk];B[hf];W[oq];B[qq];W[qn] ;B[qo];W[pn];B[op];W[mq];B[np];W[nq];B[on];W[jq];B[hq] ;W[po];B[pp];W[ro];B[rp];W[dq];B[ep];W[dn];B[om];W[pl] ;B[pi];W[of];B[ol];W[pk];B[ok];W[ri];B[rk];W[oj];B[pm] ;W[pj];B[qm];W[qp];B[rr];W[di];B[df];W[dg];B[cf];W[cg] ;B[nj];W[oi];B[ni];W[lf];B[oh];W[ph];B[ng];W[me];B[qi] ;W[qh];B[qj];W[db];B[rb];W[rd];B[da];W[ca];B[ea];W[bb] ;B[el];W[dl];B[do];W[co];B[en];W[em];B[fm];W[dm];B[kr] ;W[jr];B[kq];W[kp];B[jp];W[lq];B[ko];W[lp];B[iq];W[ir] ;B[hr];W[jo];B[ip];W[lr];B[pr];W[or];B[er];W[pq];B[cr] ;W[kn];B[bq];W[ps];B[qo];W[fn];B[an];W[qp];B[rs];W[je] ;B[jd];W[kd];B[jc];W[rj];B[qk];W[ap];B[bp];W[bo];B[ao] ;W[am];B[aq];W[bn];B[gn];W[eo];B[fo];W[en];B[gm];W[og] ;B[nh];W[rm];B[rh];W[rg];B[sj];W[sh];B[qo];W[dr];B[ds] ;W[qp];B[so];W[lo];B[in];W[sn];B[qo];W[cq];B[br];W[qp] ;B[sq];W[kc];B[kb];W[jb];B[ke];W[ed];B[fc];W[kf];B[lc] ;W[le];B[ie];W[qr];B[qo];W[fd];B[gd];W[dd];B[hc];W[gj] ;B[fh];W[gg];B[ap];W[bm];B[fj];W[fk];B[gi];W[ej];B[fi] ;W[hg];B[ii];W[im];B[ig];W[go];B[fp];W[eh];B[sc];W[mn] ;B[nn];W[ik];B[hj];W[gk];B[hh];W[io];B[ho];W[jn];B[hn] ;W[jg];B[jh];W[lk];B[gh];W[eg];B[jj];W[kh];B[ki];W[lh] ;B[is];W[ks];B[jk];W[jl];B[kk];W[hk];B[fl];W[if];B[jf] ;W[qp];B[rq];W[if];B[ih];W[kl];B[jf];W[qs];B[oo];W[if] ;B[mm];W[li];B[jf];W[sp];B[qo];W[if];B[ij];W[lj];B[jf] ;W[qp];B[so];W[if];B[kj];W[ml];B[lm];W[sd];B[sb];W[mg] ;B[jf];W[sp];B[qo];W[if];B[ld];W[ke];B[jf];W[qp];B[so] ;W[if];B[dp];W[hm];B[gl];W[hl];B[km];W[ln];B[jf];W[sp] ;B[qo];W[if];B[sk];W[si];B[gp];W[jm];B[ek];W[ei];B[jf] ;W[qp];B[so];W[if];B[nf];W[nk];B[jf];W[sp];B[qo];W[if] ;B[pg];W[qg];B[pf];W[oe];B[ql];W[jf] ) goban-1.1.orig/games/Hon-45-p2.sgf0000644000175000017500000000344006243707116014247 0ustar alal( ; GM[1] SZ[19] DT[1946-08-19..21] RO[2, playoff] FF[3] BR[7 dan] WR[8 dan] PB[Iwamoto Kaoru] PW[Hashimoto Utaro] RE[B+6] TM[12 hours each] ID[ 3/P2] ;B[qd];W[pq];B[od];W[ec];B[co];W[cq];B[dp];W[eq];B[fp] ;W[qn];B[de];W[cg];B[fd];W[fc];B[gd];W[gc];B[hd];W[ic];B[cj] ;W[eg];B[ff];W[cc];B[cd];W[ei];B[fq];W[ek];B[cl];W[fr];B[dq] ;W[dr];B[ep];W[er];B[bq];W[hq];B[cr];W[kq];B[qj];W[bc];B[lp] ;W[lq];B[mp];W[jo];B[lm];W[id];B[dh];W[dg];B[ie];W[je];B[if] ;W[mc];B[jf];W[ke];B[ld];W[nd];B[ne];W[oc];B[md];W[pd];B[nc] ;W[oe];B[nd];W[pe];B[qc];W[pc];B[rf];W[qb];B[rb];W[qf];B[qg] ;W[nf];B[mf];W[mg];B[kf];W[re];B[qe];W[pf];B[rd];W[rg];B[se] ;W[pi];B[qh];W[qi];B[ri];W[pj];B[qk];W[pk];B[kp];W[jp];B[mq] ;W[op];B[kl];W[ql];B[rl];W[rm];B[rh];W[ph];B[pl];W[qm];B[nh] ;W[ng];B[pg];W[og];B[oh];W[mh];B[ni];W[lj];B[ok];W[ol];B[mi] ;W[li];B[nl];W[pm];B[mk];W[kh];B[lg];W[lh];B[jk];W[ij];B[fg] ;W[hi];B[om];W[rj];B[rk];W[sj];B[pl];W[sl];B[eh];W[be];B[hk] ;W[fi];B[ik];W[ih];B[gr];W[gq];B[jr];W[jq];B[hr];W[ir];B[is] ;W[iq];B[fs];W[kr];B[ds];W[mr];B[ch];W[bg];B[jd];W[jc];B[kb] ;W[dl];B[cm];W[lk];B[ll];W[gl];B[gk];W[fm];B[fl];W[fk];B[gm] ;W[el];B[gn];W[hl];B[hm];W[fn];B[jj];W[go];B[ji];W[jh];B[il] ;W[fo];B[kc];W[kd];B[nq];W[on];B[or];W[pr];B[ps];W[qs];B[os] ;W[qr];B[fl];W[le];B[hc];W[hb];B[lf];W[ib];B[nb];W[aj];B[bi] ;W[ai];B[bk];W[pb];B[no];W[nn];B[mn];W[nm];B[oo];W[po];B[ho] ;W[gp];B[ol];W[in];B[hn];W[bd];B[gj];W[fh];B[hg];W[hh];B[bh] ;W[ah];B[fj];W[dk];B[bj];W[di];B[js];W[nr];B[oq];W[ns];B[es] ;W[io];B[mm];W[pn];B[hp];W[dn];B[dm];W[ls];B[em];W[gl];B[en] ;W[kn];B[jm];W[dd];B[ce];W[ed];B[ee];W[eo];B[do];W[mj];B[nj] ;W[ko];B[im];W[ra];B[jb];W[sb];B[rc];W[si];B[sg];W[sk];B[oj] ;W[sh];B[rg];W[gg];B[gf];W[gh];B[ak];W[ag];B[gb];W[fb];B[ia] ;W[ga];B[cf];W[bf];B[ig];W[oa];B[ob];W[ef];B[na];W[ck];B[sc] ;W[qa];B[pa];W[of];B[oa];W[sa]) goban-1.1.orig/games/Hon-89-2.mgt0000644000175000017500000000254006045540446014110 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Takemiya Masaki]DT[1989-05-29,30]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[jd];B[cj] ;W[nq];B[lq];W[qq];B[qp];W[pq];B[op];W[nr];B[mo];W[qh];B[ph] ;W[qg];B[pg];W[qj];B[qk];W[qi];B[pk];W[qe];B[pe];W[qd];B[qc] ;W[rc];B[rb];W[pc];B[qb];W[rd];B[oc];W[ob];B[pb];W[od];B[ld] ;W[pc];B[mb];W[gd];B[dn];W[fp];B[cc];W[dc];B[cd];W[ce];B[be] ;W[bf];B[cf];W[de];B[bg];W[ne];B[mf];W[oc];B[cb];W[df];B[cg] ;W[nf];B[ng];W[mg];B[lf];W[nh];B[og];W[mh];B[pi];W[kh];B[qf] ;W[rf];B[sc];W[oa];B[jf];W[kc];B[mc];W[pa];B[ih];W[jj];B[hf] ;W[ie];B[if];W[db];B[ji];W[kj];B[ki];W[lj];B[li];W[mj];B[jl] ;W[nk];B[ij];W[km];B[rq];W[rr];B[ro];W[kl];B[sr];W[lr];B[ko] ;W[kq];B[jm];W[jk];B[ik];W[ln];B[kr];W[jr];B[jq];W[kp];B[jp] ;W[ks];B[lp];W[kr];B[lo];W[nm];B[cp];W[cq];B[bq];W[co];B[bp] ;W[do];B[dq];W[cr];B[dr];W[br];B[ar];W[en];B[ic];W[jb];B[rj] ;W[ri];B[rk];W[si];B[em];W[dm];B[fn];W[cn];B[el];W[eq];B[bs] ;W[er];B[cs];W[bd];B[af];W[bb];B[bc];W[ca];B[ad];W[eg];B[hq] ;W[fo];B[gn];W[fh];B[qr];W[pr];B[rs];W[iq];B[ol];W[mn];B[ip] ;W[ir];B[nl];W[ml];B[nn];W[mm];B[nj];W[oj];B[ni];W[mi];B[oi] ;W[mk];B[ho];W[fj];B[cl];W[hi];B[gi];W[gh];B[gj];W[hh];B[ii] ;W[om];B[ff];W[ge];B[gf];W[fi];B[fd];W[id];B[ed];W[fc];B[fk] ;W[kg];B[kf];W[hj];B[gk];W[kn];B[jn];W[hk];B[hl];W[dg];B[fe] ;W[ch];B[bh];W[ci];B[bi];W[dj];B[dk];W[ej];B[sb];W[rg];B[cm] ;W[gr])goban-1.1.orig/games/Hon-96-2.sgf0000644000175000017500000000213606243540642014075 0ustar alal( ; EV[51st Honinbo title] RO[2] PW[Cho Chikun] WR[9 dan] PB[Ryu Shikun] BR[7 dan] KM[5.5] DT[1996-05-27,28] PC[Japan] RE[W+R] ; B[pd];W[dp];B[qp];W[dd];B[fq]; W[op];B[oo];W[no];B[po];W[np];B[pq];W[ip];B[nn];W[mn];B[mm];W[nm]; B[on];W[ln];B[fo];W[dn];B[dr];W[nl];B[pl];W[pp];B[qo];W[qq];B[pr]; W[qr];B[nr];W[mr];B[rr];W[rq];B[qs];W[gp];B[fp];W[gr];B[gq];W[hr]; B[cq];W[fr];B[cp];W[co];B[er];W[cj];B[lr];W[nq];B[or];W[lq];B[ms]; W[mq];B[fc];W[fm];B[fe];W[df];B[fg];W[db];B[jd];W[qf];B[pf];W[pg]; B[of];W[qd];B[qc];W[re];B[rd];W[qe];B[pc];W[hc];B[hd];W[qj];B[ic]; W[eh];B[gi];W[bo];B[br];W[lg];B[di];W[ci];B[dh];W[ch];B[lh];W[kh]; B[li];W[jg];B[jj];W[he];B[ee];W[gd];B[id];W[ge];B[ec];W[gc];B[dc]; W[hg];B[kf];W[kg];B[ld];W[hi];B[hj];W[gj];B[hh];W[ii];B[gh];W[jf]; B[ij];W[cc];B[cd];W[bd];B[cb];W[ce];B[bb];W[ke];B[kd];W[og];B[ng]; W[nf];B[mf];W[ki];B[kj];W[lj];B[lk];W[mj];B[mk];W[nh];B[nk];W[ne]; B[nd];W[fj];B[eg];W[dg];B[fi];W[ej];B[ei];W[kr];B[qk];W[pj];B[lm]; W[me];B[kn];W[md];B[mc];W[nc];B[od];W[ga];B[fb];W[lc];B[mb];W[lb]; B[nb];W[ia];B[ka];W[kb];B[la];W[jb];B[kp];W[rj];B[jq];W[jr];B[iq]; W[ir];B[hq];W[gl] ) goban-1.1.orig/games/Hon-72-2.sgf0000644000175000017500000000244506243710266014073 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[27/2] FF[3] PB[Rin Kaiho] PW[Ishida Yoshio] DT[1972-05-17,18] RE[B+R] KM[4.5] ;B[pd];W[dp];B[pq];W[dc];B[de];W[po];B[qo];W[qn];B[qp];W[ce] ;B[dd];W[cd];B[ec];W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[eb] ;B[cg];W[eg];B[fd];W[fc];B[ed];W[gd];B[bd];W[ch];B[gc];W[fb] ;B[bg];W[hc];B[qj];W[dn];B[nc];W[jp];B[di];W[dh];B[go];W[gq] ;B[gm];W[mn];B[qe];W[gk];B[em];W[dm];B[el];W[ck];B[dk];W[cj] ;B[mp];W[il];B[in];W[lp];B[mq];W[lq];B[ei];W[gi];B[ci];W[bh] ;B[bf];W[bi];B[kn];W[mo];B[hk];W[hl];B[gl];W[fk];B[hj];W[jj] ;B[hi];W[fi];B[lm];W[jm];B[jn];W[hh];B[mm];W[on];B[pm];W[pn] ;B[mr];W[ko];B[lj];W[ii];B[om];W[mg];B[iq];W[ip];B[fq];W[gp] ;B[fp];W[ho];B[gr];W[fo];B[gn];W[eo];B[im];W[er];B[fr];W[jr] ;B[ir];W[is];B[dq];W[dr];B[cq];W[cr];B[br];W[bq];B[bp];W[eq] ;B[cp];W[ep];B[bn];W[qc];B[pc];W[re];B[rd];W[rf];B[qd];W[pg] ;B[kc];W[kl];B[pi];W[ld];B[lc];W[oh];B[mi];W[oe];B[rh];W[qh] ;B[ri];W[rg];B[ek];W[bm];B[bs];W[lr];B[ro];W[qm];B[ql];W[rl] ;B[qk];W[nd];B[ib];W[mc];B[mb];W[md];B[oc];W[nj];B[ni];W[lk] ;B[mk];W[mj];B[kk];W[ll];B[kj];W[ml];B[jk];W[nl];B[nm];W[li] ;B[ji];W[ki];B[ij];W[jl];B[lh];W[kh];B[kg];W[jh];B[ih];W[jg] ;B[hg];W[ik];B[jj];W[jf];B[gh];W[oi];B[oj];W[nk];B[fh];W[oq] ;B[or];W[pp];B[qr];W[ok];B[rn];W[rm];B[pk];W[hb];B[ic];W[je] ;B[hd];W[ge];B[ha];W[gb];B[am]) goban-1.1.orig/games/T-06-1.mgt0000644000175000017500000000164306264330026013550 0ustar alal(;SZ[19]EV[6th Tengen title match]RO[Game 1]DT[1980-11-12]PB[Kato Masao]BR[9d, Tengen and Oza]PW[Yamabe]WR[9d]KM[5.5]SO[Go world 24]PC[Ishikawa prefecture]RE[B+R (after 125 moves)];B[pd];W[dp];B[pq];W[dc];B[qk];W[ce];B[jd];W[jp];B[lp];W[po];B[np];W[qc];B[qd];W[pc];B[oc];W[ob];B[nc];W[nb];B[mc];W[rd];B[re];W[rc];B[qf];W[qq];B[qr];W[ql];B[pl];W[pm];B[ol];W[qp];B[rr];W[rl];B[rk];W[qn];B[fp];W[dn];B[dq];W[cq];B[eq];W[cr];B[io];W[mq];B[mp];W[jo];B[jn];W[ip];B[ho];W[hp];B[go];W[lq];B[nq];W[gq];B[kn];W[ih];B[cl];W[kh];B[co];W[do];B[bn];W[cp];B[fr];W[kq];B[el];W[bo];B[cn];W[ap];B[cg];W[dh];B[dg];W[eh];B[eg];W[fh];B[gf];W[ch];B[ee];W[gk];B[fm];W[fc];B[bg];W[dk];B[ek];W[ik];B[cc];W[cd];B[bc];W[ed];B[de];W[dd];B[af];W[hc];B[fj];W[gi];B[mh];W[ck];B[dl];W[lj];B[mj];W[li];B[mi];W[lg];B[gj];W[hj];B[dr];W[ar];B[gd];W[sk];B[cb];W[db];B[sj];W[sl];B[ri];W[mg];B[ng];W[nf];B[mf];W[me];B[lf];W[le];B[kf];W[oe];B[of];W[ne];B[ke];W[od];B[og])goban-1.1.orig/games/M-84-4.mgt0000644000175000017500000000255506252627042013561 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Otake Hideo]RE[B+1.5]ID[84/4]FF[3]BS[0]WS[0]DT[1984]BR[9 Dan]WR[9 Dan];B[qc];W[dc];B[dq];W[qp];B[ce];W[ed];B[oq];W[co];B[dm] ;W[en];B[po];W[qo];B[pn];W[qm];B[fp];W[em];B[dk];W[el];B[ch] ;W[cq];B[cr];W[dp];B[bq];W[eq];B[cp];W[dr];B[pm];W[qn];B[pl] ;W[cq];B[ql];W[bp];B[qr];W[rr];B[rq];W[qq];B[sr];W[rs];B[qs] ;W[rp];B[ss];W[sp];B[jq];W[pd];B[qd];W[pe];B[ob];W[md];B[rf] ;W[qf];B[rg];W[cd];B[de];W[ee];B[kd];W[lf];B[kf];W[lg];B[ef] ;W[ff];B[eg];W[id];B[kb];W[ib];B[ie];W[he];B[jd];W[hd];B[ng] ;W[le];B[mb];W[kg];B[jn];W[hq];B[mi];W[ki];B[kj];W[jj];B[kk] ;W[li];B[mj];W[cj];B[dj];W[ck];B[dl];W[ci];B[di];W[bh];B[cg] ;W[bm];B[iq];W[io];B[jo];W[hr];B[pg];W[ip];B[jp];W[ks];B[kr] ;W[in];B[rm];W[rn];B[rl];W[pr];B[pq];W[sq];B[or];W[rr];B[be] ;W[jm];B[km];W[jl];B[kl];W[bd];B[bg];W[bi];B[ad];W[ac];B[ae] ;W[bc];B[dn];W[cl];B[gl];W[jk];B[ps];W[rs];B[fk];W[ek];B[ej] ;W[fj];B[eo];W[fn];B[fi];W[gj];B[gi];W[hj];B[do];W[go];B[jb] ;W[ia];B[ir];W[is];B[js];W[jr];B[ls];W[fg];B[jf];W[ig];B[hh] ;W[hi];B[jg];W[jh];B[fh];W[ih];B[js];W[of];B[og];W[qe];B[re] ;W[hs];B[gp];W[fo];B[ep];W[hp];B[cn];W[bn];B[gf];W[gg];B[hf] ;W[hg];B[if];W[ge];B[mc];W[ld];B[nd];W[ne];B[od];W[nf];B[pc] ;W[qg];B[qh];W[lj];B[lk];W[mh];B[nh];W[mg];B[ic];W[hc];B[jc] ;W[ke];B[je];W[lc];B[lb];W[pp];B[op];W[gh];B[ja];W[hb];B[gq] ;W[gr];B[fq];W[fr];B[ah];W[ai];B[ag];W[sm];B[sl];W[sn])goban-1.1.orig/games/M-86-2.mgt0000644000175000017500000000327006252627042013554 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Kobayashi Koichi]DT[1986-09-17,18]KM[5.5]RE[W+0.5]ID[86/2]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dp];B[pp];W[dd];B[fq];W[dn];B[jq];W[qn];B[qp] ;W[pj];B[qh];W[on];B[np];W[nc];B[pc];W[kc];B[cf];W[ch];B[cc] ;W[dc];B[cd];W[de];B[bf];W[df];B[fo];W[cg];B[fm];W[cb];B[bb] ;W[db];B[ba];W[eq];B[fr];W[jf];B[pm];W[pn];B[ql];W[qk];B[pk] ;W[ok];B[pl];W[rl];B[rk];W[qj];B[rm];W[sl];B[sm];W[qm];B[sk] ;W[rl];B[oh];W[ol];B[sl];W[om];B[mn];W[ll];B[el];W[cl];B[ig] ;W[pf];B[qf];W[pg];B[qg];W[jg];B[ih];W[he];B[ml];W[mk];B[lm] ;W[kl];B[lk];W[nl];B[mm];W[kk];B[lj];W[kj];B[ki];W[li];B[mj] ;W[ji];B[oi];W[ph];B[pi];W[qi];B[mi];W[rh];B[rg];W[qe];B[ri] ;W[rj];B[sh];W[sj];B[lh];W[jh];B[ro];W[pe];B[re];W[nf];B[oe] ;W[ng];B[nk];W[rn];B[qd];W[jn];B[sn];W[rl];B[ql];W[pl];B[ik] ;W[jj];B[oj];W[rl];B[so];W[ql];B[md];W[nd];B[lf];W[lg];B[mg] ;W[le];B[hl];W[km];B[ko];W[bg];B[bd];W[ob];B[me];W[mf];B[kg] ;W[ne];B[ke];W[rc];B[rb];W[qb];B[ra];W[gi];B[ld];W[pb];B[qc] ;W[jb];B[cq];W[er];B[bo];W[co];B[bp];W[bn];B[br];W[jo];B[jp] ;W[ho];B[ck];W[bk];B[dl];W[cm];B[fj];W[gj];B[gk];W[fi];B[cj] ;W[bj];B[ej];W[kn];B[lo];W[je];B[dh];W[eh];B[di];W[dg];B[hj] ;W[hi];B[ij];W[ii];B[ci];W[bi];B[ip];W[fs];B[gr];W[si];B[rh] ;W[fp];B[hq];W[cs];B[bs];W[eo];B[fn];W[kd];B[gp];W[im];B[hm] ;W[io];B[ca];W[da];B[an];W[am];B[ao];W[kh];B[lg];W[nh];B[ni] ;W[go];B[ep];W[no];B[oo];W[nn];B[mo];W[fp];B[gs];W[hp];B[ep] ;W[sf];B[rf];W[fp];B[gq];W[il];B[es];W[dr];B[ep];W[qa];B[rd] ;W[fp];B[al];W[bm];B[ep];W[ce];B[be];W[fp];B[mc];W[mb];B[ep] ;W[po];B[op];W[fp];B[od];W[jk];B[hk];W[gn];B[gm];W[lc];B[le] ;W[qo];B[rp];W[af];B[ae];W[ag];B[ep];W[ac];B[ab];W[fp];B[oc] ;W[ep];B[hn];W[cp];B[cr];W[ds];B[li];W[fs];B[ln];W[es])goban-1.1.orig/games/Hon-64-1.mgt0000644000175000017500000000334506045540372014102 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1964-04-21,22]PB[Takagawa Kaku]PW[Sakata Eio]RE[W+1.5]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[cq];B[pp];W[dc];B[ce];W[dh];B[df];W[fd];B[bc] ;W[ic];B[qj];W[nq];B[pn];W[pr];B[qq];W[kq];B[dn];W[fp];B[dk] ;W[nc];B[pf];W[qc];B[pc];W[pb];B[ob];W[qb];B[oc];W[re];B[rf] ;W[qe];B[qf];W[pe];B[oe];W[of];B[qd];W[rd];B[ne];W[nb];B[na] ;W[ma];B[oa];W[se];B[ng];W[pm];B[om];W[qi];B[pi];W[pj];B[ri] ;W[ol];B[nm];W[oi];B[qh];W[pl];B[qn];W[og];B[oh];W[nh];B[pg] ;W[ph];B[rc];W[pa];B[od];W[rb];B[oh];W[dl];B[nf];W[cl];B[mk] ;W[lj];B[fn];W[fl];B[jp];W[hp];B[jq];W[kp];B[jo];W[in];B[kr] ;W[lr];B[ir];W[mp];B[hn];W[im];B[gl];W[nl];B[hq];W[ho];B[eq] ;W[gr];B[ep];W[fo];B[eo];W[fr];B[er];W[bn];B[fm];W[hm];B[el] ;W[mm];B[ck];W[bl];B[ek];W[bk];B[kl];W[km];B[lm];W[kn];B[ml] ;W[mn];B[nn];W[jk];B[nj];W[mj];B[nk];W[ni];B[oj];W[ln];B[lh] ;W[mi];B[kk];W[kj];B[jj];W[ji];B[ij];W[ii];B[hk];W[ik];B[hj] ;W[hl];B[jl];W[il];B[pk];W[hi];B[ci];W[kh];B[hr];W[ls];B[kc] ;W[jc];B[kd];W[kb];B[lb];W[bb];B[bj];W[co];B[cb];W[cc];B[ba] ;W[ab];B[ac];W[db];B[aa];W[jb];B[qr];W[fj];B[ei];W[fk];B[gn] ;W[io];B[ff];W[ee];B[ef];W[fi];B[eh];W[cd];B[bd];W[be];B[da] ;W[fb];B[bf];W[ej];B[di];W[de];B[ae];W[no];B[on];W[dr];B[es] ;W[fq];B[la];W[le];B[or];W[oq];B[pq];W[nr];B[ps];W[md];B[mc] ;W[ke];B[jd];W[id];B[je];W[jf];B[ie];W[mg];B[ea];W[he];B[if] ;W[jg];B[fa];W[gb];B[ge];W[gd];B[nd];W[hf];B[bp];W[cp];B[cr] ;W[br];B[cs];W[bs];B[ds];W[bo];B[mf];W[ig];B[lc];W[lg];B[gm] ;W[gk];B[gg];W[dm];B[em];W[ll];B[lk];W[gf];B[fe];W[fg];B[hg] ;W[hd];B[fh];W[gh];B[eg];W[hh];B[sc];W[sb];B[sf];W[sd];B[lf] ;W[kf];B[ga];W[ha];B[ka];W[ja];B[cn];W[cm];B[go];W[gp];B[fs] ;W[gs];B[ns];W[aj];B[ai];W[ak];B[op];W[np];B[jm];W[jn];B[dq] ;W[dj];B[cj];W[eb];B[ca];W[do];B[en];W[oo];B[fg];W[po];B[qo] ;W[ms];B[os];W[lm])goban-1.1.orig/games/hon-51-2.mgt0000644000175000017500000000335006333001360014120 0ustar alal(;EV[6th Honinbo Title Match]RO[2]TM[10h]PB[Hashimoto Utaro]BR[Honinbo Shou]PW[Sakata Eio]WR[7 dan]KM[4.5]DT[1951-04-24/25]PC[Uji. Kyoto Pref.]RE[B+4.5]US[Yasunori Suzuki]SO[Mainichi Shimbun, 1951 Apr]GN[6.2]BS[0]WS[0]GM[1]SZ[19]KI[9]FF[3];B[qd];W[dc];B[od];W[pp]; B[cp];W[eq];B[hp];W[fp];B[dn] ;W[cq];B[bq];W[dp];B[co];W[cr];B[ce];W[ci];B[ck];W[fd];B[nq] ;W[pn];B[qj];W[kc];B[dh];W[di];B[cc];W[cb];B[dd];W[bc];B[ec] ;W[cd];B[db];W[cc];B[ed];W[de];B[ee];W[df];B[ef];W[cf];B[ic] ;W[eg];B[eh];W[fg];B[fc];W[dg];B[mc];W[oq];B[np];W[kp];B[nn] ;W[qc];B[pc];W[rd];B[rc];W[qe];B[qb];W[ph];B[rn];W[rp];B[pm] ;W[qm];B[om];W[qn];B[ql];W[rm];B[oi];W[ng];B[of];W[pi];B[oj] ;W[oh];B[li];W[lg];B[ke];W[pe];B[oe];W[rh];B[iq];W[mo];B[no] ;W[jr];B[ir];W[jo];B[hn];W[jm];B[jf];W[pj];B[pk];W[rk];B[il] ;W[jl];B[jk];W[kk];B[jj];W[mj];B[mi];W[hm];B[nh];W[qk];B[kn] ;W[im];B[kl];W[km];B[ll];W[ok];B[nk];W[fn];B[kr];W[cm];B[dl] ;W[lr];B[kq];W[lq];B[jp];W[ks];B[jq];W[lp];B[gq];W[io];B[fr] ;W[nr];B[bj];W[br];B[dm];W[pl];B[ol];W[pk];B[lm];W[og];B[ch] ;W[ge];B[hd];W[ie];B[he];W[if];B[hf];W[ig];B[jd];W[le];B[me] ;W[ki];B[kj];W[lh];B[ji];W[kh];B[lj];W[id];B[jc];W[lf];B[ld] ;W[js];B[is];W[ls];B[hr];W[bh];B[bi];W[bg];B[bp];W[ej];B[ei] ;W[mn];B[mm];W[fj];B[dj];W[re];B[eb];W[gf];B[hg];W[gd];B[gc] ;W[er];B[gg];W[ff];B[fh];W[jg];B[fl];W[hi];B[hk];W[ih];B[hh] ;W[ii];B[gi];W[ho];B[pf];W[gp];B[ip];W[qf];B[fm];W[do];B[aq] ;W[en];B[ln];W[on];B[ni];W[je];B[kd];W[hj];B[gj];W[hl];B[ko] ;W[mr];B[be];W[bf];B[ik];W[nf];B[kf];W[em];B[ne];W[gk];B[el] ;W[fi];B[gh];W[gl];B[fk];W[gm];B[pd];W[fs];B[gs];W[es];B[jn] ;W[in];B[oo];W[fq];B[gr];W[pg];B[ah];W[ag];B[ai];W[po];B[or] ;W[pr];B[op];W[pq];B[ar];W[da];B[ea];W[ca];B[sd];W[se];B[sc] ;W[bs]C[Black wins by 4.5 points.]) goban-1.1.orig/games/Hon-68-4.mgt0000644000175000017500000000332606045540376014114 0ustar alal (;GM[1]SZ[19]KM[4.5]PW[Sakata Eio]PB[Rin Kaiho]RE[W+0.5]DT[1968-05-30,31]FF[3]BS[0]WS[0];B[qd];W[dd];B[oc];W[pp];B[dp];W[qj];B[nq];W[pn];B[jp] ;W[cn];B[dk];W[cq];B[dq];W[cp];B[do];W[dn];B[co];W[bo];B[bp] ;W[bq];B[bn];W[ap];B[en];W[em];B[dm];W[cm];B[bm];W[cl];B[dl] ;W[bk];B[fn];W[fd];B[pr];W[mo];B[lp];W[qf];B[km];W[im];B[jk] ;W[ip];B[iq];W[fp];B[er];W[jo];B[kp];W[hq];B[hp];W[io];B[go] ;W[gn];B[gm];W[gp];B[ir];W[ho];B[fo];W[ik];B[jj];W[gk];B[ij] ;W[hm];B[fl];W[hj];B[hi];W[gi];B[gh];W[kn];B[fi];W[lm];B[bj] ;W[bl];B[hc];W[gj];B[ak];W[an];B[hh];W[of];B[cc];W[cd];B[db] ;W[gc];B[bd];W[hd];B[ec];W[ed];B[be];W[ic];B[lc];W[bc];B[cb] ;W[kc];B[oj];W[mj];B[oh];W[qh];B[ll];W[kl];B[lk];W[nk];B[mm] ;W[jm];B[lj];W[ok];B[gl];W[qq];B[hl];W[mi];B[qr];W[nc];B[nd] ;W[mc];B[md];W[lb];B[ld];W[pc];B[ob];W[pd];B[pb];W[qc];B[mb] ;W[mg];B[df];W[ef];B[eg];W[cf];B[ce];W[de];B[dg];W[bb];B[ba] ;W[fb];B[qo];W[po];B[rq];W[rp];B[qp];W[pq];B[ro];W[rr];B[sp] ;W[or];B[rs];W[sr];B[sq];W[oq];B[gr];W[hr];B[hs];W[rm];B[qb] ;W[rb];B[lh];W[mh];B[nf];W[ng];B[lo];W[ln];B[mn];W[jl];B[mr] ;W[ab];B[ca];W[eb];B[aa];W[kb];B[cr];W[br];B[bs];W[no];B[nl] ;W[ol];B[ck];W[am];B[rn];W[sm];B[qm];W[qn];B[ql];W[rk];B[hn] ;W[in];B[rl];W[sl];B[sn];W[sk];B[pe];W[qe];B[oe];W[pf];B[ra] ;W[sb];B[nn];W[np];B[nr];W[ps];B[ss];W[on];B[ff];W[gf];B[hf] ;W[ge];B[jd];W[fg];B[fh];W[il];B[hk];W[dc];B[ac];W[gg];B[id] ;W[jc];B[he];W[hb];B[jf];W[li];B[mf];W[kh];B[qk];W[rj];B[rc] ;W[rd];B[ee];W[mp];B[mq];W[jh];B[ii];W[hg];B[kd];W[lf];B[kf] ;W[le];B[fq];W[ep];B[ns];W[os];B[ig];W[eo];B[gn];W[eq];B[dr] ;W[ke];B[je];W[qs];B[rr];W[ma];B[na];W[la];B[me];W[lg];B[ea] ;W[sc];B[od];W[ej];B[dj];W[ih];B[jg];W[fe];B[ef];W[fa];B[aj] ;W[ci];B[di];W[om];B[da];W[hp];B[gq];W[lq];B[lr];W[mk];B[ml] ;W[eh];B[dh];W[ar])goban-1.1.orig/games/T-20-3.mgt0000644000175000017500000000211006252627522013543 0ustar alal(;GM[1]PB[Ryu Shikun]BR[9p]PW[Rin Kaiho]WR[9p]DT[1994-]PC[Japan]KM[5.5]RE[B+R]FF[3]SZ[19]ID[20/3];B[pd];W[dd];B[pp];W[dp];B[fq];W[ip];B[cn];W[fp];B[gp] ;W[fo];B[eq];W[dq];B[go];W[dn];B[dm];W[gn];B[do];W[ep];B[hq] ;W[en];B[cl];W[iq];B[ho];W[mp];B[fm];W[em];B[el];W[gm];B[fl] ;W[fn];B[io];W[kp];B[im];W[gl];B[bp];W[gj];B[di];W[qn];B[ik] ;W[hi];B[ji];W[dg];B[jd];W[jg];B[ig];W[jl];B[il];W[fk];B[ek] ;W[ej];B[dj];W[ei];B[jf];W[dh];B[kg];W[bj];B[ck];W[qf];B[re] ;W[pi];B[nq];W[np];B[oq];W[rp];B[pn];W[pm];B[on];W[qo];B[po] ;W[pl];B[lr];W[mm];B[kq];W[jo];B[jq];W[jp];B[ir];W[jr];B[kr] ;W[ec];B[nl];W[ml];B[mk];W[lk];B[nm];W[mj];B[nk];W[li];B[oi] ;W[lg];B[pj];W[lf];B[mc];W[oh];B[ni];W[ph];B[qj];W[nf];B[rl] ;W[qq];B[me];W[le];B[md];W[qe];B[qd];W[rf];B[rd];W[rm];B[ql] ;W[qm];B[rh];W[in];B[hn];W[jn];B[kh];W[lh];B[kj];W[lj];B[hc] ;W[mq];B[mr];W[hf];B[je];W[hr];B[js];W[nj];B[oj];W[ok];B[pk] ;W[nn];B[om];W[ci];B[mn];W[kl];B[dr];W[cr];B[er];W[no];B[cq] ;W[gb];B[lm];W[ll];B[mf];W[mg];B[lo];W[lp];B[of];W[hb];B[ib] ;W[oe];B[ng];W[nh];B[ne];W[og];B[pf];W[ri];B[qi];W[qh];B[rj] ;W[cj];B[pe])goban-1.1.orig/games/M-83-4.mgt0000644000175000017500000000262606252627042013557 0ustar alal(;GM[1]SZ[19]FF[3]ID[83/4]PW[Otake Hideo]PB[Cho Chikun]BS[0]WS[0]DT[1983]RE[B+]WR[9 Dan]BR[9 Dan];B[qc];W[dc];B[dq];W[qp];B[ce];W[di];B[fe];W[gc];B[hd] ;W[hc];B[id];W[ic];B[jd];W[kc];B[dk];W[fi];B[hi];W[fk];B[dn] ;W[hk];B[oq];W[po];B[kq];W[qj];B[cg];W[ii];B[ih];W[ij];B[jh] ;W[ki];B[mp];W[pq];B[op];W[jp];B[jq];W[hp];B[ep];W[pf];B[nm] ;W[pm];B[pp];W[qq];B[oo];W[pn];B[hn];W[cp];B[cq];W[jn];B[io] ;W[cd];B[de];W[fn];B[ip];W[hh];B[em];W[hg];B[gl];W[ed];B[fd] ;W[fc];B[dd];W[cm];B[bk];W[el];B[dl];W[fm];B[ej];W[fl];B[ei] ;W[eh];B[cj];W[if];B[fj];W[gk];B[go];W[oc];B[rf];W[gd];B[mg] ;W[qb];B[qd];W[oe];B[nd];W[od];B[pb];W[ob];B[rb];W[nh];B[ng] ;W[oh];B[li];W[lh];B[mh];W[mi];B[lj];W[kj];B[ni];W[mj];B[lk] ;W[mk];B[og];W[pg];B[ll];W[ml];B[lm];W[oi];B[kh];W[lg];B[lf] ;W[kg];B[jg];W[kf];B[jf];W[ke];B[kd];W[le];B[je];W[ld];B[lc] ;W[me];B[ge];W[he];B[gf];W[hf];B[gj];W[jc];B[hj];W[il];B[gh] ;W[gg];B[fg];W[fh];B[ee];W[gi];B[dh];W[eg];B[ef];W[ff];B[ec] ;W[fg];B[eb];W[dg];B[ch];W[mm];B[mn];W[cf];B[bf];W[in];B[ho] ;W[nn];B[rh];W[rg];B[qg];W[qh];B[sg];W[ri];B[ln];W[on];B[ha] ;W[pr];B[or];W[ia];B[nj];W[nk];B[oa];W[na];B[pa];W[mb];B[kk] ;W[jk];B[jl];W[ji];B[hm];W[jm];B[kl];W[im];B[oj];W[ok];B[ga] ;W[hb];B[fb];W[df];B[be];W[no];B[np];W[os];B[ns];W[ps];B[nr] ;W[qf];B[rg];W[fo];B[fp];W[jo];B[ja];W[ib];B[gb];W[ie];B[kp] ;W[re];B[qe];W[si];B[rd];W[ek];B[dj];W[eo];B[do];W[en];B[dm] ;W[lo];B[mo];W[ko];B[lp];W[pc];B[qa])goban-1.1.orig/games/M-95-4.mgt0000644000175000017500000000320306252627044013554 0ustar alal(;GM[1]BS[0]WS[0]BL[1800.0]WL[1800.0]SZ[19]DT[1995-10-12]FF[3]PB[Kobayashi Koichi]PW[Takemiya Masaki]RE[B+2.5]ID[95/4]BR[9 Dan]WR[9 Dan]KM[5.5]RO[4];B[pd];W[dp];B[dc];W[pp];B[ce];W[jp];B[qn];W[np];B[qj] ;W[jc];B[lc];W[gc];B[qd];W[dk];B[fq];W[eq];B[fp];W[dn];B[hq] ;W[jq];B[io];W[kn];B[im];W[rp];B[cq];W[dq];B[oj];W[ni];B[nj] ;W[mi];B[le];W[mj];B[oh];W[ch];B[nl];W[mk];B[oo];W[op];B[mg] ;W[fn];B[cp];W[co];B[eo];W[do];B[jo];W[ko];B[en];W[em];B[fm] ;W[gm];B[fl];W[gl];B[gn];W[fk];B[el];W[dm];B[ir];W[er];B[kr] ;W[jr];B[js];W[lq];B[fr];W[bf];B[cf];W[be];B[bd];W[cg];B[ae] ;W[bg];B[fb];W[ef];B[gb];W[gk];B[jm];W[je];B[fe];W[cd];B[cc] ;W[ed];B[hc];W[hd];B[ic];W[id];B[ee];W[ql];B[pm];W[pj];B[oi] ;W[pl];B[ol];W[rn];B[rm];W[qm];B[rl];W[pn];B[qo];W[om];B[qk] ;W[pk];B[po];W[nm];B[ro];W[pi];B[ml];W[mn];B[mm];W[nn];B[kd] ;W[jd];B[gf];W[hg];B[hf];W[if];B[dd];W[qp];B[ri];W[rh];B[cr] ;W[bo];B[es];W[ds];B[fs];W[dr];B[jh];W[ig];B[kk];W[qi];B[rj] ;W[jj];B[kj];W[pg];B[ji];W[hi];B[rf];W[qf];B[rg];W[qg];B[sh] ;W[kg];B[lh];W[oe];B[od];W[fg];B[gd];W[ne];B[kb];W[jb];B[km] ;W[kc];B[lb];W[md];B[mc];W[lr];B[ls];W[kq];B[ks];W[ms];B[is] ;W[mr];B[sp];W[sq];B[so];W[rq];B[df];W[dg];B[ld];W[ij];B[ff] ;W[eg];B[qh];W[ph];B[pe];W[of];B[jg];W[nd];B[nc];W[mf];B[lf] ;W[kf];B[jf];W[ke];B[he];W[ie];B[og];W[pf];B[ia];W[hn];B[fo] ;W[hm];B[ho];W[ng];B[nh];W[lg];B[mh];W[ib];B[hb];W[ja];B[ik] ;W[jk];B[jl];W[hk];B[il];W[gg];B[nf];W[kh];B[ki];W[ng];B[ii] ;W[hj];B[nf];W[iq];B[hr];W[ng];B[ih];W[ek];B[nf];W[dl];B[fn] ;W[ng];B[hh];W[gh];B[nf];W[qe];B[re];W[ng];B[ha];W[af];B[ad] ;W[ip];B[nf];W[hp];B[gp];W[ng];B[no];W[mo];B[ln];W[lo];B[lm] ;W[ka];B[la];W[ok];B[nk];W[nf];B[rh])goban-1.1.orig/games/Hon-75-6.sgf0000644000175000017500000000311706243711304014071 0ustar alal( ; DT[1975-] EV[30th Honinbo 1975] RO[6] KM[5.5] TM[9 hours each] BR[9 dan] WR[Honinbo] PB[Sakata Eio] PW[Ishida Yoshio] RE[W+4.5] ;B[pd];W[cp];B[qp];W[dc];B[ep];W[eq];B[fq];W[dq];B[gp] ;W[cn];B[kq];W[nc];B[pf];W[jd];B[ce];W[de];B[df];W[ee];B[cd] ;W[cc];B[lc];W[dh];B[bh];W[qc];B[pc];W[pb];B[qd];W[rb];B[rc] ;W[qb];B[le];W[pl];B[rd];W[mb];B[lb];W[jb];B[pn];W[pi];B[hd] ;W[jf];B[lg];W[jh];B[mc];W[nb];B[jc];W[ic];B[oc];W[ob];B[kc] ;W[id];B[sb];W[ma];B[ib];W[hb];B[oa];W[cg];B[bg];W[cf];B[bf] ;W[nq];B[pq];W[hq];B[gr];W[jq];B[jr];W[ir];B[jp];W[ip];B[iq] ;W[ne];B[nf];W[jq];B[kr];W[jo];B[iq];W[of];B[og];W[jq];B[kp] ;W[in];B[iq];W[ra];B[pa];W[jq];B[ko];W[mf];B[me];W[ng];B[nd] ;W[pg];B[oh];W[qf];B[pe];W[ph];B[oe];W[oi];B[fm];W[nh];B[lf] ;W[nm];B[mn];W[fo];B[hn];W[im];B[ho];W[io];B[eo];W[oo];B[no] ;W[on];B[op];W[po];B[qo];W[np];B[mm];W[qn];B[rn];W[pm];B[pp] ;W[km];B[ll];W[kk];B[nl];W[rm];B[er];W[dr];B[ds];W[cs];B[es] ;W[br];B[bc];W[bb];B[bd];W[eg];B[ch];W[dg];B[ff];W[ef];B[gk] ;W[gi];B[ij];W[kl];B[ih];W[ji];B[hj];W[hh];B[nn];W[ii];B[so] ;W[ia];B[kb];W[rf];B[om];W[pn];B[hi];W[ig];B[ab];W[ba];B[cm] ;W[dn];B[ei];W[di];B[ej];W[fh];B[ck];W[bm];B[hr];W[cl];B[bk] ;W[iq];B[is];W[nf];B[nj];W[lh];B[ql];W[md];B[ld];W[qk];B[pk] ;W[sc];B[kg];W[rk];B[ol];W[qm];B[sm];W[rl];B[pj];W[qj];B[lk] ;W[kh];B[sd];W[se];B[la];W[re];B[md];W[gj];B[hl];W[ci];B[bi] ;W[il];B[hm];W[en];B[fn];W[mj];B[lj];W[oj];B[ok];W[mi];B[mk] ;W[bl];B[dl];W[dm];B[el];W[fj];B[fk];W[sl];B[sn];W[ke];B[od] ;W[mg];B[sc];W[dj];B[dd];W[ed];B[ak];W[al];B[cj];W[kn];B[ln] ;W[jj];B[fi];W[gh];B[do];W[co];B[ik];W[jk];B[hk];W[kd];B[sa] C[239 moves complete.] ) goban-1.1.orig/games/Hon-87-1.mgt0000644000175000017500000000300706045540444014102 0ustar alal (;GM[1]SZ[19]PW[Yamashiro Hiroshi]PB[Takemiya Masaki]DT[1987-05-27,28]RE[B+5.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[pb];B[jp] ;W[qc];B[fq];W[dn];B[qq];W[mo];B[jn];W[oo];B[pn];W[op];B[po] ;W[on];B[om];W[nm];B[ol];W[rf];B[cf];W[fc];B[cl];W[fp];B[gp] ;W[eq];B[fo];W[ep];B[gq];W[di];B[lq];W[lm];B[em];W[cj];B[dm] ;W[en];B[fm];W[fn];B[gn];W[bn];B[nl];W[ml];B[kl];W[oq];B[mk] ;W[mr];B[cd];W[cc];B[de];W[bd];B[be];W[ce];B[lr];W[mq];B[cd] ;W[cm];B[ed];W[dc];B[bm];W[cn];B[ee];W[bc];B[dk];W[fh];B[gg] ;W[gh];B[hh];W[hi];B[hg];W[gj];B[ii];W[ij];B[ji];W[hk];B[gl] ;W[ej];B[me];W[qf];B[qh];W[rh];B[qg];W[rg];B[ri];W[gd];B[ge] ;W[id];B[je];W[jd];B[qe];W[re];B[kd];W[md];B[le];W[kc];B[fr] ;W[er];B[ch];W[dh];B[bk];W[jk];B[ll];W[mm];B[kj];W[bj];B[dg] ;W[hl];B[hm];W[fg];B[he];W[ld];B[ke];W[pg];B[ph];W[qd];B[pe] ;W[ne];B[nf];W[si];B[rj];W[lp];B[kq];W[pr];B[ec];W[eb];B[fb] ;W[gb];B[hd];W[hc];B[es];W[ds];B[fs];W[dr];B[an];W[ao];B[am] ;W[bo];B[qr];W[sj];B[sk];W[sh];B[rk];W[ad];B[ob];W[oc];B[pc] ;W[nb];B[qb];W[oa];B[rb];W[rd];B[sd];W[qa];B[sf];W[ra];B[sb] ;W[pa];B[se];W[sa];B[sc];W[ff];B[fe];W[of];B[og];W[oe];B[ps] ;W[os];B[qs];W[kp];B[jq];W[ko];B[jo];W[ie];B[if];W[bh];B[bg] ;W[ci];B[eg];W[ak];B[bl];W[ag];B[ek];W[cg];B[bf];W[ef];B[df] ;W[kk];B[lk];W[mf];B[ng];W[jf];B[kf];W[jg];B[kg];W[jj];B[jh] ;W[fk];B[fl];W[im];B[in];W[jm];B[kn];W[ln];B[ns];W[or];B[ms] ;W[nr];B[ls];W[eo];B[go];W[ck];B[dl];W[od];B[pg];W[gf];B[hf] ;W[eh];B[gk];W[fj];B[jl];W[il];B[ce];W[ch];B[km];W[dj];B[pq] ;W[fd];B[af];W[ah];B[al];W[aj];W[ae];W[fa])goban-1.1.orig/games/Hon-58-6.mgt0000644000175000017500000000351506045540250014104 0ustar alal (;GM[1]SZ[19]DT[1958-09-01,02]KM[4.5]RO[6]PC[Gora, Hakone, Kanagawa Pref.]PB[Takagawa Kaku]PW[Sugiuchi Masao]RE[B+0.5]FF[3]TM[10h]BS[0]WS[0];B[pd];W[dp];B[pp];W[dc];B[de];W[cg];B[cc];W[cd];B[dd] ;W[ce];B[cf];W[df];B[bf];W[bc];B[cb];W[be];B[ec];W[bg];B[ef] ;W[dg];B[pj];W[nc];B[lc];W[qc];B[qd];W[pc];B[od];W[nb];B[me] ;W[kp];B[iq];W[nq];B[fq];W[ql];B[qn];W[ol];B[no];W[rj];B[rl] ;W[qk];B[oq];W[np];B[op];W[mo];B[nn];W[jr];B[ir];W[fp];B[eq] ;W[ep];B[dq];W[cp];B[io];W[nr];B[rm];W[pi];B[oj];W[qi];B[oi] ;W[oh];B[nh];W[og];B[qg];W[ng];B[qj];W[mh];B[rk];W[ri];B[mj] ;W[md];B[le];W[ld];B[kd];W[ke];B[nd];W[mc];B[kf];W[je];B[lg] ;W[lj];B[lk];W[li];B[mk];W[mf];B[nf];W[of];B[ne];W[mg];B[lf] ;W[jj];B[ig];W[jd];B[rf];W[qh];B[lo];W[ko];B[ln];W[jq];B[hj] ;W[kk];B[kn];W[mp];B[mi];W[lh];B[ii];W[hl];B[gl];W[hm];B[gk] ;W[cq];B[dl];W[jn];B[jm];W[jl];B[in];W[mm];B[mn];W[km];B[lm] ;W[im];B[jo];W[jm];B[cr];W[br];B[ds];W[gq];B[gr];W[gp];B[hq] ;W[is];B[hs];W[js];B[hp];W[jp];B[go];W[fn];B[bs];W[gc];B[bb] ;W[ee];B[ed];W[fe];B[ad];W[ae];B[ci];W[fb];B[ac];W[eb];B[db] ;W[if];B[hg];W[af];B[bd];W[jg];B[kh];W[jh];B[ji];W[ki];B[jf] ;W[kg];B[rc];W[rb];B[sb];W[rd];B[sd];W[sc];B[ih];W[kh];B[rc] ;W[ll];B[ml];W[sc];B[ie];W[hf];B[rc];W[ab];B[id];W[jc];B[gf] ;W[he];B[ge];W[hd];B[gd];W[hc];B[re];W[fd];B[aa];W[fh];B[gg] ;W[fj];B[dj];W[eh];B[cm];W[bi];B[bj];W[ch];B[fk];W[pr];B[or] ;W[os];B[qr];W[bk];B[aj];W[rr];B[pq];W[qs];B[ps];W[ck];B[cj] ;W[pr];B[qq];W[bn];B[bm];W[ej];B[ek];W[em];B[gh];W[aq];B[cn] ;W[bo];B[ik];W[kl];B[hk];W[nm];B[pl];W[ni];B[om];W[ps];B[fs] ;W[fo];B[rq];W[lp];B[qb];W[pb];B[ra];W[ai];B[di];W[nj];B[nk] ;W[nh];B[nl];W[gi];B[hi];W[gn];B[ho];W[rg];B[sg];W[rh];B[pg] ;W[ph];B[pf];W[pe];B[qf];W[rs];B[dn];W[bp];B[sr];W[oe];B[lr] ;W[ns];B[pa];W[oa];B[oc];W[ob];B[qa];W[sh];B[sj];W[ar];B[eg] ;W[dh];B[dk];W[fc];B[dc];W[qe];B[rd];W[am];B[al];W[an];B[sf] ;W[da];B[ca];W[ea];B[dm])goban-1.1.orig/games/Hon-58-3.mgt0000644000175000017500000000307506045540250014102 0ustar alal (;GM[1]SZ[19]DT[1958-07-30,31]KM[4.5]RO[3]PC[Nagoya City, Aichi Pref.]PB[Sugiuchi Masao]PW[Takagawa Kaku]RE[B+1.5]FF[3]TM[10h]BS[0]WS[0];B[pd];W[dc];B[dq];W[co];B[pp];W[ce];B[dl];W[gq];B[do] ;W[jq];B[cp];W[mq];B[qj];W[nc];B[pf];W[jc];B[ee];W[fd];B[cf] ;W[bf];B[be];W[cg];B[df];W[bd];B[kp];W[kq];B[bg];W[ae];B[ch] ;W[qn];B[qo];W[pn];B[np];W[lo];B[dg];W[or];B[mo];W[lp];B[mn] ;W[pk];B[pj];W[nk];B[pl];W[ql];B[ok];W[ol];B[qk];W[pm];B[qr] ;W[oj];B[pk];W[nm];B[nj];W[mk];B[oi];W[pq];B[oq];W[pr];B[qq] ;W[ro];B[rp];W[rm];B[so];W[rn];B[mm];W[kk];B[km];W[qc];B[pc] ;W[pb];B[lk];W[lj];B[ll];W[mj];B[kj];W[ki];B[jj];W[ji];B[li] ;W[mi];B[lh];W[ii];B[mh];W[ik];B[jk];W[jl];B[kl];W[ij];B[kk] ;W[rk];B[ob];W[qb];B[oc];W[re];B[he];W[hc];B[fo];W[fj];B[hp] ;W[gr];B[fl];W[gl];B[gm];W[hl];B[rj];W[sj];B[si];W[sk];B[rf] ;W[qe];B[qf];W[qd];B[fk];W[ej];B[gj];W[gi];B[gk];W[fh];B[hh] ;W[hi];B[di];W[in];B[jm];W[hm];B[il];W[hk];B[gn];W[ne];B[pe] ;W[nb];B[id];W[ic];B[er];W[ri];B[ni];W[nl];B[sh];W[bi];B[bh] ;W[ng];B[nh];W[oa];B[le];W[jg];B[jd];W[dj];B[cj];W[ei];B[dk] ;W[gf];B[hf];W[gg];B[mf];W[nf];B[kc];W[lc];B[md];W[kf];B[sl] ;W[rl];B[nd];W[ke];B[mc];W[kd];B[mb];W[sf];B[sg];W[se];B[rg] ;W[lf];B[ed];W[ec];B[fe];W[ge];B[dd];W[cd];B[cc];W[fc];B[me] ;W[lb];B[na];W[pa];B[hq];W[hr];B[ag];W[af];B[bc];W[bb];B[gp] ;W[fq];B[eq];W[nr];B[ps];W[po];B[qp];W[fp];B[ep];W[eh];B[dh] ;W[lg];B[mg];W[kh];B[im];W[ek];B[el];W[ir];B[cb];W[ac];B[ld] ;W[la];B[kb];W[jb];B[ma];W[ka];B[hn];W[io];B[ko];W[mp];B[oo] ;W[ip];B[nq];W[ln];B[kn];W[nn];B[no];W[fs];B[on];W[om];B[mr] ;W[lr];B[es];W[sn];B[sp];W[ho];B[go];W[fr];B[os];W[ms];B[fg] )goban-1.1.orig/games/M-71-6.sgf0000644000175000017500000000223706252650656013553 0ustar alal( ; GM[1] EV[10th Meijin Title Match] RO[6] PB[Rin Kaiho] BR[9 dan] PW[Fujisawa Shuko] WR[Meijin] DT[1971/Nov] PC[Tokyo] RE[B+R] KM[5] SZ[19] ;B[qd];W[dd];B[cp];W[pq];B[oc];W[eq];B[qo];W[pl];B[om];W[po] ;B[pp];W[op];B[qp];W[pn];B[oq];W[nq];B[or];W[no];B[nr];W[mq] ;B[mr];W[lq];B[qn];W[pm];B[do];W[fo];B[dq];W[dj];B[fc];W[id] ;B[fe];W[ec];B[ef];W[fb];B[gc];W[gb];B[cf];W[hc];B[he];W[em] ;B[bd];W[pf];B[cc];W[lc];B[db];W[eb];B[cm];W[dg];B[df];W[fh] ;B[hp];W[ho];B[io];W[ip];B[hq];W[jo];B[in];W[hn];B[im];W[iq] ;B[hm];W[fn];B[fq];W[er];B[ep];W[fp];B[fr];W[gq];B[gr];W[hr] ;B[gp];W[go];B[ij];W[dr];B[cr];W[eo];B[dp];W[rf];B[kj];W[qm] ;B[re];W[km];B[mj];W[nj];B[mi];W[ni];B[mh];W[qq];B[rq];W[rn] ;B[ro];W[sm];B[so];W[qg];B[nh];W[rc];B[qc];W[ph];B[ei];W[hj] ;B[hi];W[gj];B[gi];W[fi];B[fj];W[ik];B[ii];W[ej];B[fk];W[gl] ;B[fl];W[gm];B[eh];W[fg];B[eg];W[gk];B[mb];W[lb];B[kd];W[jc] ;B[oh];W[pi];B[qe];W[ll];B[ml];W[jf];B[mc];W[ld];B[ck];W[cj] ;B[bj];W[cd];B[bb];W[ma];B[na];W[la];B[nc];W[bk];B[bl];W[bi] ;B[ak];W[ch];B[gg];W[el];B[gh];W[oa];B[nb];W[mm];B[lk];W[jk] ;B[nk];W[nl];B[oi];W[oj];B[ok];W[pj];B[mk];W[kk];B[ol];W[jj] ;B[ki];W[nm];B[kf];W[kg];B[le] ) goban-1.1.orig/games/M-75-6.mgt0000644000175000017500000000201306252721144013546 0ustar alal(;SZ[19]DT[29,30 October 1975]PB[Ishida]PW[Otake]RE[W+R (152 moves)]SO[Go review winter 1976]EV[Meijin match 1975, game 6];B[qd];W[cq];B[ec];W[qp];B[od];W[cc];B[de];W[ce];B[df];W[eb];B[fc];W[cf];B[dg];W[dd];B[ed];W[db];B[op];W[pn];B[ql];W[pi];B[qo];W[po];B[pp];W[qn];B[qq];W[ro];B[rq];W[ol];B[lq];W[qh];B[cg];W[cn];B[lc];W[jq];B[gp];W[jo];B[lo];W[no];B[mp];W[gn];B[en];W[ep];B[ip];W[jp];B[dp];W[dq];B[hn];W[gm];B[in];W[kn];B[jl];W[hl];B[il];W[ln];B[ll];W[kk];B[kl];W[hj];B[jj];W[mm];B[dl];W[dj];B[cm];W[dn];B[dm];W[fe];B[fg];W[fj];B[fl];W[eo];B[gl];W[hm];B[hk];W[em];B[fn];W[gk];B[ik];W[fm];B[el];W[fo];B[bj];W[bi];B[ci];W[gg];B[bf];W[be];B[ig];W[fh];B[bh];W[he];B[ie];W[hg];B[id];W[ih];B[jg];W[eg];B[jn];W[qc];B[pc];W[kr];B[lr];W[hq];B[hp];W[gq];B[nh];W[nj];B[mj];W[rd];B[qe];W[rb];B[re];W[pb];B[ob];W[ni];B[mi];W[oh];B[ng];W[mk];B[lk];W[gc];B[ee];W[ck];B[bl];W[ic];B[jc];W[bk];B[ak];W[af];B[fb];W[gb];B[dc];W[cj];B[ai];W[bb];B[hc];W[gd];B[bn];W[bo];B[ao];W[ib];B[bp];W[jb];B[kc];W[co];B[bq];W[br];B[ar];W[bs];B[ei];W[ej];B[eh];W[di])goban-1.1.orig/games/Hon-78-6.mgt0000644000175000017500000000255106045540406014110 0ustar alal (;PB[Kato Masao]PW[Ishida Yoshio]DT[1978-07-10,11]PC[Atami]RE[W+3.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cc];B[pq];W[dp];B[pk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[ip];W[gq];B[dd];W[dc];B[ed];W[be];B[dg];W[fb];B[go] ;W[po];B[qo];W[qn];B[qp];W[nn];B[np];W[eq];B[ld];W[lc];B[nd] ;W[oc];B[nl];W[pm];B[ql];W[ln];B[lp];W[ll];B[rn];W[di];B[cn] ;W[co];B[dn];W[fi];B[fg];W[hh];B[fc];W[gc];B[gd];W[ec];B[fd] ;W[hc];B[nj];W[rm];B[qm];W[pn];B[rl];W[ro];B[sm];W[hf];B[hd] ;W[je];B[eh];W[ei];B[ie];W[if];B[ef];W[cf];B[df];W[kp];B[kq] ;W[lq];B[mq];W[jq];B[lr];W[jp];B[gm];W[em];B[do];W[cp];B[jn] ;W[jl];B[fn];W[kn];B[jo];W[ko];B[iq];W[jr];B[il];W[ik];B[im] ;W[nh];B[og];W[od];B[oe];W[qe];B[pe];W[qb];B[rb];W[oj];B[ok] ;W[pp];B[oq];W[mg];B[oi];W[mj];B[hk];W[ni];B[pj];W[ij];B[cd] ;W[bd];B[mk];W[lj];B[ic];W[rc];B[rd];W[ra];B[sb];W[ib];B[lf] ;W[jc];B[ck];W[bn];B[bm];W[bo];B[hr];W[gr];B[gs];W[fs];B[hs] ;W[fq];B[km];W[ho];B[io];W[lm];B[kl];W[lk];B[ek];W[cj];B[bk] ;W[lg];B[kf];W[kg];B[cg];W[fk];B[fl];W[gk];B[hl];W[dk];B[dl] ;W[dj];B[el];W[bg];B[ce];W[bf];B[hj];W[hi];B[gj];W[jk];B[jm] ;W[pc];B[qd];W[ne];B[nf];W[md];B[me];W[nd];B[mf];W[eo];B[en] ;W[bj];B[mo];W[mn];B[jf];W[jg];B[kr];W[fj];B[hp];W[id];B[kk] ;W[kj];B[he];W[gf];B[ke];W[jd];B[ff];W[oh];B[ph];W[ch];B[an] ;W[ao];B[am];W[ak];B[kd];W[ml];B[nk];W[fh];B[dh];W[no];B[lo] ;W[ge];B[gg];W[hg];B[fe];W[ks];B[ls];W[js];B[nm];W[om];B[op] ;W[oo])goban-1.1.orig/games/Hon-63-3.mgt0000644000175000017500000000160106045540370014072 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-05-13,14]RE[W+R]FF[3]PB[Takagawa Kaku]PW[Sakata Eio]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[oc];W[qo];B[ql];W[pn];B[np] ;W[rq];B[jq];W[de];B[ic];W[qh];B[oh];W[qf];B[of];W[pe];B[nd] ;W[oi];B[ol];W[nh];B[ng];W[ph];B[og];W[pk];B[pl];W[nn];B[pp] ;W[qr];B[on];W[oo];B[om];W[no];B[po];W[rn];B[mp];W[ln];B[ml] ;W[ni];B[kl];W[jo];B[lo];W[ko];B[kn];W[km];B[mn];W[jn];B[mo] ;W[jl];B[cj];W[ch];B[cm];W[co];B[hq];W[jd];B[id];W[je];B[kb] ;W[ne];B[oe];W[pd];B[pc];W[qc];B[rd];W[rb];B[rc];W[qb];B[sb] ;W[od];B[nc];W[me];B[lg];W[mc];B[pb];W[mg];B[mf];W[mh];B[le] ;W[md];B[nf];W[kc];B[lh];W[lb];B[li];W[qk];B[rl];W[nb];B[ra] ;W[rj];B[rf];W[ob];B[qa];W[rg];B[ie];W[kf];B[pf];W[if];B[hf] ;W[ig];B[qe];W[nk];B[ll];W[gc];B[gd];W[fc];B[jc];W[ld];B[ff] ;W[hg];B[gg];W[eg];B[gi];W[fq];B[dp];W[dq];B[im];W[jm];B[gm] ;W[ho];B[gp];W[lm];B[mj];W[ok];B[il];W[jk];B[hh];W[ip];B[iq] ;W[in])goban-1.1.orig/games/Hon-54-6.mgt0000644000175000017500000000333006045540244014076 0ustar alal (;GM[1]SZ[19]DT[1954-07-16,17]PW[Takagawa Kaku]RE[W+1.5]PB[Sugiuchi Masao]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dc];B[pp];W[dp];B[de];W[dh];B[gd];W[ee];B[ef] ;W[fe];B[dd];W[fc];B[cc];W[ec];B[eh];W[cb];B[dg];W[bc];B[cn] ;W[fp];B[bp];W[cq];B[dl];W[nc];B[pf];W[kd];B[hq];W[bq];B[qj] ;W[nq];B[oq];W[np];B[pn];W[jq];B[ho];W[jo];B[nn];W[ch];B[ei] ;W[cf];B[df];W[be];B[lq];W[lp];B[lr];W[kq];B[nr];W[hn];B[go] ;W[in];B[gn];W[hl];B[gm];W[oj];B[pj];W[oi];B[ob];W[qh];B[nb] ;W[ql];B[pk];W[om];B[on];W[qn];B[qo];W[ok];B[pl];W[pm];B[ol] ;W[nm];B[nl];W[mm];B[rn];W[qm];B[pi];W[qe];B[pe];W[qd];B[qf] ;W[rf];B[rg];W[re];B[qg];W[qb];B[lo];W[ln];B[mp];W[lk];B[mj] ;W[nh];B[oh];W[gl];B[en];W[ki];B[mh];W[og];B[ph];W[cj];B[fl] ;W[gj];B[gi];W[gh];B[hi];W[fj];B[ej];W[fi];B[hm];W[im];B[fh] ;W[gg];B[ii];W[jk];B[ig];W[lh];B[ff];W[hf];B[ge];W[if];B[gf] ;W[hg];B[mg];W[lg];B[mi];W[gr];B[bd];W[cd];B[ce];W[bf];B[cc] ;W[ad];B[cd];W[bb];B[gc];W[id];B[le];W[ld];B[lf];W[kf];B[ll] ;W[kl];B[gq];W[fq];B[hr];W[bl];B[lj];W[kj];B[mk];W[kk];B[kp] ;W[jp];B[fr];W[er];B[gs];W[rm];B[ro];W[nd];B[pc];W[mb];B[ne] ;W[bn];B[co];W[cm];B[eo];W[dm];B[em];W[bo];B[cp];W[ap];B[dr] ;W[es];B[ep];W[eq];B[dq];W[cr];B[do];W[ds];B[mn];W[lm];B[hb] ;W[ib];B[ko];W[rk];B[fb];W[qc];B[jb];W[ia];B[ma];W[lb];B[ic] ;W[jc];B[hd];W[hc];B[cg];W[bg];B[ic];W[kb];B[je];W[jf];B[jd] ;W[hc];B[gk];W[hk];B[ic];W[ja];B[fk];W[hj];B[ie];W[pb];B[oc] ;W[ri];B[rj];W[sj];B[kn];W[me];B[mf];W[md];B[od];W[eb];B[ea] ;W[da];B[fa];W[ha];B[gb];W[db];B[sm];W[dp];B[dj];W[ck];B[ci] ;W[bi];B[di];W[bh];B[pa];W[sb];B[rh];W[dk];B[ks];W[ke];B[he] ;W[jr];B[js];W[km];B[jn];W[io];B[jm];W[ml];B[qi];W[si];B[qk] ;W[rl];B[dq];W[fs];B[gr];W[ir];B[is];W[fo];B[fn];W[la];B[sf] ;W[qa];B[se];W[sd];B[sg];W[fg];B[el];W[cl];B[dp];W[dr];B[oa] ;W[il];B[na])goban-1.1.orig/games/Hon-47-5.mgt0000644000175000017500000000332206045540236014101 0ustar alal (;SZ[19]PB[Iwamoto Kaoru]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+3.5]DT[1947-12-]BS[0]WS[0];B[qd];W[dc];B[pp];W[dq];B[nc];W[ce];B[cn];W[cp];B[dj] ;W[qj];B[qg];W[qm];B[jq];W[rp];B[qq];W[gq];B[jo];W[ic];B[cg] ;W[mp];B[on];W[mn];B[lo];W[mo];B[nm];W[ln];B[rn];W[qn];B[ro] ;W[qo];B[qp];W[rm];B[rq];W[nk];B[op];W[jn];B[in];W[jm];B[gp] ;W[fq];B[ko];W[ml];B[kc];W[cl];B[dl];W[cm];B[dm];W[bn];B[ck] ;W[dn];B[gc];W[dg];B[ch];W[ie];B[ec];W[ed];B[db];W[eb];B[fc] ;W[cb];B[dd];W[cc];B[ib];W[oc];B[od];W[pc];B[nd];W[pd];B[pe] ;W[qc];B[rd];W[oe];B[pf];W[nb];B[mb];W[oa];B[rc];W[rb];B[pb] ;W[qb];B[sb];W[hb];B[lc];W[jb];B[gf];W[ee];B[hd];W[id];B[hf] ;W[jg];B[gi];W[ne];B[mf];W[me];B[le];W[nf];B[mg];W[ng];B[kf] ;W[md];B[mc];W[nh];B[kg];W[kh];B[lh];W[fg];B[hh];W[je];B[ld] ;W[ig];B[ki];W[jh];B[li];W[ji];B[df];W[de];B[en];W[co];B[fh] ;W[im];B[pi];W[lq];B[hq];W[oj];B[pj];W[pk];B[qi];W[rj];B[oi] ;W[ni];B[ol];W[ok];B[mj];W[nj];B[jj];W[jk];B[ij];W[fb];B[kk] ;W[kl];B[lk];W[ll];B[ir];W[sg];B[rh];W[sh];B[si];W[ri];B[sf] ;W[sj];B[rg];W[gr];B[hn];W[nq];B[or];W[cf];B[dh];W[gl];B[gb] ;W[hc];B[gd];W[ga];B[mr];W[nr];B[lr];W[pr];B[oq];W[os];B[qr] ;W[mq];B[kq];W[kn];B[bl];W[eg];B[bm];W[kb];B[la];W[bf];B[cn] ;W[cm];B[bg];W[eo];B[ik];W[fn];B[em];W[fl];B[fm];W[hm];B[fp] ;W[ep];B[fo];W[ph];B[qh];W[pg];B[si];W[sh];B[qe];W[hr];B[gn] ;W[fj];B[gj];W[eh];B[ke];W[jc];B[pl];W[ql];B[ei];W[fi];B[gh] ;W[ej];B[di];W[lb];B[ma];W[sn];B[sp];W[mh];B[gk];W[ek];B[il] ;W[jl];B[hl];W[gm];B[af];W[ae];B[ag];W[lg];B[lf];W[mk];B[ii] ;W[hj];B[na];W[ob];B[ra];W[pa];B[mm];W[lm];B[an];W[ao];B[am] ;W[lp];B[qs];W[ps];B[hs];W[gs];B[is];W[kp];B[jp];W[ms];B[ks] ;W[mi];B[ka];W[lj];B[kj];W[ja];B[ff];W[ef];B[he];W[fe];B[mj] ;W[si];B[sg];W[lj];B[cl];W[cn];B[oh];W[og];B[so];W[sm];B[ls] ;W[ns];B[mj])goban-1.1.orig/games/M-69-1.mgt0000644000175000017500000000221206252627042013547 0ustar alal(;GM[1]SZ[19]PW[Takagawa Kaku]PB[Rin Kaiho]KM[5]RE[B+R]DT[1969-08-21,22]ID[69/1]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[oc];B[cp];W[eq];B[hp];W[qo];B[ld] ;W[of];B[qg];W[en];B[eo];W[fo];B[do];W[gq];B[fn];W[go];B[em] ;W[gn];B[fm];W[ci];B[pm];W[on];B[op];W[om];B[hq];W[lp];B[gr] ;W[fr];B[qp];W[in];B[ko];W[lo];B[kn];W[kp];B[jo];W[kl];B[ln] ;W[no];B[mn];W[np];B[ml];W[ro];B[rp];W[pl];B[mj];W[hl];B[mf] ;W[qc];B[rc];W[pd];B[qe];W[oh];B[mh];W[qb];B[gj];W[ij];B[hh] ;W[df];B[gp];W[fp];B[fq];W[jh];B[if];W[gq];B[dc];W[cc];B[fq] ;W[ec];B[jm];W[gq];B[di];W[ip];B[io];W[ho];B[fq];W[iq];B[hr] ;W[gq];B[gm];W[fq];B[hm];W[id];B[ge];W[hc];B[ch];W[dh];B[cg] ;W[dg];B[cj];W[bi];B[bj];W[jf];B[je];W[ig];B[hf];W[ei];B[dj] ;W[hg];B[gg];W[gh];B[gi];W[ie];B[fh];W[ke];B[pe];W[oe];B[nd] ;W[od];B[qj];W[cr];B[rb];W[mb];B[nr];W[bq];B[kr];W[kq];B[lr] ;W[jr];B[ji];W[lg];B[mg];W[ki];B[lc];W[jc];B[lb];W[oj];B[nb] ;W[nc];B[mc];W[ob];B[ma];W[lf];B[ih];W[jg];B[kj];W[qi];B[pi] ;W[ph];B[qh];W[jj];B[li];W[me];B[ne];W[oi];B[pj];W[nk];B[kh] ;W[mk];B[ll];W[lk];B[kk];W[bo];B[ql];W[cn];B[pk];W[nf];B[md] ;W[le];B[jb];W[ib];B[ja];W[mi];B[ni];W[ii];B[ki];W[ol];B[jl] )goban-1.1.orig/games/Hon-60-1.sgf0000644000175000017500000000220106243707452014060 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[1] FF[3] BR[Honinbo] WR[8 dan] PB[Takagawa Shukaku] PW[Fujisawa Shuko] RE[W+R] KM[4.5] ID[15/1] ;B[pd];W[cq];B[pp];W[dc];B[ce];W[dh];B[df];W[fd];B[cj] ;W[cg];B[ff];W[ei];B[co];W[eq];B[ej];W[fj];B[ek];W[eo];B[bc] ;W[gh];B[hf];W[ic];B[dm];W[nq];B[pn];W[qi];B[kq];W[qq];B[pq] ;W[pr];B[or];W[qr];B[oq];W[ro];B[kc];W[hd];B[qf];W[nc];B[oc] ;W[nd];B[ke];W[mf];B[jf];W[ld];B[kd];W[ig];B[he];W[pe];B[qe] ;W[qc];B[qd];W[ob];B[pb];W[pc];B[qb];W[od];B[rc];W[iq];B[qm] ;W[ni];B[kh];W[mj];B[ml];W[kp];B[lp];W[jp];B[lo];W[qo];B[jr] ;W[ir];B[qk];W[pj];B[ph];W[nk];B[oj];W[oi];B[pi];W[pk];B[qj] ;W[pl];B[ql];W[pg];B[qh];W[nl];B[mm];W[cn];B[dn];W[bo];B[bn] ;W[bp];B[cm];W[og];B[go];W[ci];B[bj];W[hn];B[gn];W[gm];B[hm] ;W[fm];B[fk];W[gj];B[hl];W[lq];B[fp];W[lr];B[ep];W[dp];B[fq] ;W[do];B[er];W[br];B[nr];W[fn];B[io];W[gr];B[mq];W[kr];B[ij] ;W[bi];B[dj];W[eg];B[ef];W[bf];B[ec];W[eb];B[ed];W[fc];B[cb] ;W[db];B[be];W[jb];B[kb];W[ie];B[if];W[qg];B[rg];W[oc];B[ri] ;W[pf];B[rb];W[rm];B[rl];W[sm];B[mh];W[li];B[ng];W[mg];B[nh] ;W[oh];B[lh];W[nf];B[ko];W[lk];B[kl];W[fg];B[nm];W[mr];B[np] ;W[aj];B[ak];W[ai];B[hi];W[hk];B[bl];W[ik];B[jl];W[ih] ) goban-1.1.orig/games/Hon-80-2.mgt0000644000175000017500000000177206045540432014100 0ustar alal (;GM[1]SZ[19]DT[1980-05-28,29]PC[Kitakyushu]RE[B+R]PW[Kato Masao]PB[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[dq];W[co];B[qp];W[de];B[ck];W[fo];B[gq] ;W[ci];B[ek];W[ei];B[gk];W[op];B[oo];W[qq];B[np];W[pp];B[po] ;W[qo];B[rp];W[rq];B[or];W[ro];B[pq];W[sp];B[qp];W[ql];B[ho] ;W[cq];B[cr];W[bq];B[do];W[dr];B[eq];W[dn];B[eo];W[er];B[fr] ;W[br];B[en];W[nc];B[jc];W[qf];B[pf];W[pg];B[qe];W[of];B[pe] ;W[rf];B[nd];W[md];B[ne];W[qc];B[pc];W[pb];B[ob];W[qb];B[oc] ;W[re];B[og];W[ph];B[fd];W[hc];B[ec];W[db];B[hd];W[ic];B[id] ;W[jb];B[kc];W[kb];B[lc];W[fb];B[ml];W[mj];B[ng];W[kj];B[kl] ;W[nl];B[nm];W[ol];B[ni];W[mk];B[mm];W[eg];B[oj];W[nj];B[oi] ;W[cm];B[ik];W[hj];B[hk];W[em];B[fm];W[el];B[fl];W[fj];B[fk] ;W[gc];B[gd];W[kg];B[kf];W[jf];B[jg];W[lf];B[ke];W[lh];B[ig] ;W[rp];B[oq];W[mc];B[lb];W[mf];B[nf];W[ld];B[kd];W[qp];B[no] ;W[bj];B[ee];W[df];B[rl];W[qk];B[pm];W[qm];B[pl];W[pk];B[ok] ;W[ij];B[gj];W[hh];B[gi];W[gh];B[kh];W[lg];B[jh];W[ih];B[li] ;W[jk];B[lj];W[jl];B[jm];W[im];B[jn];W[nq];B[mq];W[pn];B[om] )goban-1.1.orig/games/Hon-47-1.mgt0000644000175000017500000000343306045540236014100 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Iwamoto Kaoru]KM[4.5]GM[1]FF[3]RE[B+4.5]DT[1947-10-]BS[0]WS[0];B[pd];W[dc];B[pp];W[eq];B[cp];W[jq];B[ce];W[ch];B[gp] ;W[eo];B[cm];W[de];B[df];W[cf];B[cg];W[bf];B[dd];W[ee];B[ed] ;W[cd];B[cc];W[be];B[ec];W[fe];B[bc];W[gc];B[eb];W[nq];B[qn] ;W[nc];B[pf];W[qj];B[kd];W[me];B[hd];W[hc];B[id];W[lc];B[ic] ;W[gd];B[oc];W[lf];B[hf];W[rf];B[rd];W[qq];B[pq];W[pr];B[or] ;W[qr];B[oq];W[ro];B[qo];W[rn];B[np];W[qm];B[lq];W[dn];B[cn] ;W[cq];B[bq];W[dp];B[co];W[ip];B[cr];W[fm];B[nb];W[oe];B[nd] ;W[mc];B[od];W[kg];B[hh];W[ig];B[hg];W[cj];B[pm];W[ql];B[qh] ;W[rh];B[pg];W[qi];B[le];W[md];B[mf];W[nf];B[mg];W[ng];B[kf] ;W[mh];B[lg];W[lh];B[lf];W[ne];B[rg];W[sg];B[qg];W[ri];B[pe] ;W[oh];B[kh];W[ki];B[jh];W[ji];B[ih];W[hj];B[in];W[kn];B[gn] ;W[gq];B[fp];W[fq];B[hp];W[hq];B[io];W[kp];B[il];W[kr];B[lo] ;W[ko];B[mm];W[om];B[pl];W[ol];B[pk];W[on];B[ok];W[nk];B[pn] ;W[ml];B[oo];W[gl];B[ij];W[hk];B[ik];W[kk];B[dh];W[di];B[eh] ;W[bg];B[gm];W[hl];B[fl];W[fk];B[el];W[ep];B[ek];W[fi];B[fn] ;W[dr];B[dq];W[ii];B[ck];W[ej];B[nj];W[mj];B[bk];W[fh];B[ff] ;W[ef];B[fg];W[eg];B[nn];W[nl];B[bi];W[cq];B[ge];W[fd];B[dq] ;W[mb];B[hi];W[gj];B[ob];W[cq];B[bj];W[lr];B[dq];W[im];B[lm] ;W[ll];B[li];W[kj];B[er];W[cq];B[oj];W[ni];B[dq];W[sd];B[re] ;W[cq];B[qk];W[rk];B[dq];W[se];B[sc];W[cq];B[ci];W[bh];B[rl] ;W[rm];B[dq];W[sf];B[rc];W[cq];B[qp];W[rp];B[dq];W[hm];B[ds] ;W[dm];B[em];W[fr];B[km];W[jm];B[mr];W[lp];B[mp];W[jb];B[dj] ;W[dg];B[en];W[do];B[dl];W[ln];B[sh];W[si];B[qf];W[sh];B[bd] ;W[jc];B[jd];W[mn];B[nm];W[ib];B[gb];W[fb];B[fc];W[ga];B[fa] ;W[ha];B[ce];W[hb];B[fb];W[cd];B[db];W[fs];B[ps];W[qs];B[os] ;W[es];B[dr];W[hn];B[ho];W[fo];B[go];W[kl];B[no];W[mo];B[ma] ;W[la];B[na];W[ms];B[ns];W[ls];B[kc];W[kb];B[jo];W[gg];B[gf] ;W[gh];B[jp];W[iq];B[mq];W[kq];B[ae];W[af];B[ad];W[ai];B[aj] ;W[ah];B[oi];W[og];B[ce])goban-1.1.orig/games/Hon-91-3.mgt0000644000175000017500000000276106045540452014104 0ustar alal (;PB[Cho Chikun]PW[Kobayashi Koichi]DT[1991-06-]RE[B+10.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dd];B[pq];W[dp];B[qo];W[jq];B[cn];W[dn];B[dm] ;W[co];B[en];W[do];B[cf];W[di];B[em];W[fp];B[ef];W[fd];B[fi] ;W[dk];B[ek];W[dg];B[df];W[fh];B[eh];W[fj];B[gh];W[ej];B[hc] ;W[hd];B[id];W[fg];B[eg];W[ic];B[jc];W[ib];B[hb];W[he];B[jb] ;W[ie];B[jd];W[gi];B[ei];W[gj];B[ge];W[gd];B[hn];W[gf];B[bd] ;W[hh];B[ip];W[jp];B[iq];W[jo];B[gq];W[fq];B[hr];W[fr];B[im] ;W[jm];B[bn];W[qf];B[re];W[pi];B[bp];W[bo];B[ao];W[bq];B[ck] ;W[nc];B[oc];W[nd];B[pf];W[qe];B[pe];W[qd];B[qc];W[rd];B[pg] ;W[rc];B[me];W[qb];B[pc];W[ke];B[ld];W[nq];B[qg];W[rf];B[oo] ;W[mf];B[nf];W[kd];B[lc];W[ne];B[mg];W[lf];B[nh];W[kc];B[lb] ;W[kb];B[ka];W[le];B[md];W[mb];B[na];W[ma];B[la];W[of];B[ng] ;W[ob];B[pb];W[pa];B[rb];W[ra];B[qa];W[je];B[ia];W[qb];B[br] ;W[sb];B[cq];W[fb];B[ri];W[nj];B[pk];W[op];B[pp];W[no];B[on] ;W[pj];B[ok];W[ni];B[rj];W[rg];B[qh];W[cc];B[cj];W[dj];B[ci] ;W[dh];B[ch];W[io];B[ho];W[hp];B[jr];W[kr];B[gp];W[js];B[ir] ;W[or];B[lq];W[kq];B[mm];W[li];B[lo];W[lp];B[pr];W[gm];B[gn] ;W[nk];B[bc];W[bb];B[nl];W[jl];B[ll];W[kj];B[mp];W[np];B[mo] ;W[mq];B[kp];W[lr];B[il];W[ik];B[hk];W[ij];B[ab];W[cb];B[kk] ;W[jk];B[lg];W[kg];B[ff];W[gg];B[fl];W[rh];B[qi];W[ps];B[qs] ;W[os];B[qr];W[dl];B[cl];W[cg];B[bg];W[gk];B[gl];W[oe];B[og] ;W[ce];B[be];W[nn];B[nm];W[ko];B[lj];W[kh];B[lk];W[mj];B[oq] ;W[nr];B[qj];W[lp];B[oa];W[nb];B[ed];W[ec];B[ee];W[de];B[lh] ;W[mi];B[cd];W[dc];B[kn];W[hj];B[hl];W[km];B[lm];W[si];B[sj] ;W[sh];B[is];W[ks];B[mk];W[ba])goban-1.1.orig/games/Hon-71-4.mgt0000644000175000017500000000230506045540402014070 0ustar alal (;GM[1]SZ[19]PB[Ishida Yoshio]PW[Rin Kaiho]RE[B+R]FF[3]DT[1971-05-31,06-01]PC[Nagoya]BS[0]WS[0]KM[4.5];B[qd];W[dd];B[dp];W[pq];B[po];W[qo];B[qn];W[qp];B[pm] ;W[on];B[om];W[oc];B[pe];W[kc];B[rn];W[np];B[mc];W[mb];B[ph] ;W[md];B[cf];W[be];B[dj];W[fq];B[fp];W[gp];B[eq];W[fo];B[ep] ;W[fr];B[er];W[go];B[dm];W[iq];B[nn];W[ch];B[cj];W[ef];B[lq] ;W[lo];B[jq];W[jp];B[kp];W[ko];B[ir];W[jr];B[kq];W[hr];B[ip] ;W[hq];B[jo];W[nq];B[jm];W[kl];B[km];W[eh];B[ll];W[bi];B[bj] ;W[ni];B[oj];W[ng];B[of];W[qb];B[eb];W[dc];B[hc];W[gb];B[jc] ;W[kd];B[db];W[cb];B[kb];W[lb];B[fc];W[hb];B[cc];W[cd];B[bc] ;W[bb];B[ba];W[ac];B[ib];W[gc];B[gd];W[hd];B[ic];W[fd];B[ge] ;W[fb];B[ec];W[ed];B[ca];W[bd];B[fa];W[ea];B[da];W[co];B[cp] ;W[aa];B[ab];W[in];B[jn];W[aa];B[rq];W[sp];B[ab];W[dn];B[en] ;W[aa];B[or];W[nr];B[ab];W[em];B[cn];W[aa];B[qq];W[pp];B[ab] ;W[cm];B[do];W[aa];B[pr];W[rr];B[ab];W[dl];B[ha];W[dn];B[bo] ;W[dm];B[ei];W[fh];B[gj];W[hk];B[hj];W[ik];B[fl];W[fm];B[ci] ;W[bh];B[gl];W[im];B[gm];W[gn];B[il];W[hl];B[hm];W[jl];B[hn] ;W[lk];B[io];W[bn];B[kr];W[is];B[sr];W[rs];B[os];W[qs];B[ns] ;W[qr];B[rb];W[co];B[bp];W[hh];B[mr];W[rp];B[fj];W[lm];B[ml] ;W[mm];B[mk];W[nm];B[nl];W[no];B[kk];W[ij];B[lj];W[ii];B[il] ;W[im];B[dk];W[bl];B[ks])goban-1.1.orig/games/Hon-60-2.sgf0000644000175000017500000000332306243707466014074 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[2] FF[3] BR[8 dan] WR[Honinbo] PB[Fujisawa Shuko] PW[Takagawa Shukaku] RE[W+1.5] KM[4.5] ID[15/2] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[qn];B[qp];W[qk];B[ce] ;W[dh];B[df];W[cd];B[bd];W[bc];B[dd];W[cc];B[ed];W[fc];B[co] ;W[dl];B[dn];W[cp];B[bp];W[bq];B[dp];W[cq];B[ep];W[fq];B[qi] ;W[fg];B[fd];W[gc];B[gd];W[hd];B[he];W[id];B[ie];W[jd];B[dj] ;W[ek];B[ej];W[fj];B[fi];W[ei];B[eh];W[di];B[cj];W[dg];B[ec] ;W[eb];B[db];W[fb];B[bb];W[be];B[bf];W[ad];B[gi];W[eg];B[gf] ;W[fk];B[af];W[cg];B[cf];W[bh];B[bi];W[ci];B[bj];W[cm];B[ah] ;W[bg];B[ag];W[hj];B[hi];W[fh];B[go];W[ij];B[cb];W[ab];B[ae] ;W[lc];B[hq];W[qg];B[oi];W[og];B[ok];W[on];B[mp];W[mn];B[ii] ;W[ji];B[jj];W[jh];B[ig];W[il];B[kj];W[io];B[kl];W[gp];B[hp] ;W[fo];B[ho];W[fn];B[bl];W[bm];B[im];W[hm];B[gm];W[fm];B[cl] ;W[dm];B[in];W[jm];B[jl];W[lp];B[hl];W[mo];B[mq];W[op];B[oq] ;W[oe];B[rl];W[ql];B[rk];W[qo];B[qj];W[np];B[nq];W[rp];B[rq] ;W[pp];B[qq];W[rd];B[re];W[pd];B[qc];W[qe];B[rc];W[rf];B[sd] ;W[nb];B[ob];W[lg];B[ik];W[kn];B[bd];W[nc];B[da];W[lq];B[er] ;W[eq];B[gq];W[fp];B[fr];W[pc];B[pb];W[od];B[kf];W[lf];B[ke] ;W[rh];B[ro];W[rn];B[sp];W[gj];B[am];W[an];B[al];W[bo];B[hg] ;W[le];B[kd];W[kc];B[fa];W[ga];B[ea];W[hb];B[ri];W[dr];B[nm] ;W[jq];B[pm];W[pn];B[qm];W[om];B[ol];W[rm];B[pl];W[li];B[kr] ;W[lr];B[jr];W[kq];B[ir];W[os];B[jo];W[ko];B[ps];W[oa];B[qb] ;W[nh];B[jp];W[lm];B[fl];W[ms];B[or];W[ph];B[mi];W[ni];B[ki] ;W[kh];B[lj];W[lh];B[mj];W[ll];B[mh];W[mg];B[ns];W[pi];B[oj] ;W[sf];B[se];W[si];B[sj];W[sh];B[lk];W[ml];B[nl];W[oh];B[mr] ;W[ls];B[nn];W[no];B[kp];W[lo];B[pa];W[na];B[ld];W[md];B[gr] ;W[dk];B[ds];W[cs];B[es];W[ck];B[bk];W[ef];B[ee];W[el];B[gl] ;W[ks];B[js];W[jn];B[ip];W[gn];B[hn];W[jf];B[je];W[jg];B[if] ;W[ff];B[fe];W[sl];B[pk];W[sm];B[sk] ) goban-1.1.orig/games/M-92-5.mgt0000644000175000017500000000223506252640030013544 0ustar alal(;PB[Kobayashi Koichi]PW[Otake Hideo]DT[1992-10-21,22]KM[5.5]RE[B+R]ID[92/5]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[co];B[cq];W[ep];B[eq];W[fp];B[bo] ;W[cn];B[fq];W[gp];B[bn];W[cm];B[dp];W[do];B[cp];W[po];B[np] ;W[qq];B[qr];W[qp];B[or];W[ql];B[cf];W[de];B[bd];W[dh];B[df] ;W[ef];B[eg];W[dg];B[ee];W[ff];B[dd];W[ed];B[ce];W[fe];B[ec] ;W[de];B[db];W[cd];B[cc];W[dd];B[fd];W[ee];B[bb];W[fc];B[eb] ;W[gd];B[nc];W[qf];B[kd];W[gh];B[dj];W[rd];B[qc];W[pe];B[pk] ;W[pl];B[nk];W[od];B[oc];W[qd];B[pc];W[ol];B[pg];W[qg];B[ph] ;W[of];B[nh];W[qi];B[kp];W[lk];B[lh];W[gq];B[fl];W[dl];B[fi] ;W[eh];B[dk];W[gi];B[el];W[kf];B[lf];W[le];B[ke];W[ld];B[jf] ;W[kg];B[lg];W[fj];B[en];W[eo];B[bl];W[bm];B[am];W[iq];W[kr] ;B[lq];W[lr];B[mr];W[jc];B[jd];W[ic];B[kc];W[ok];B[qh];W[rh] ;B[ri];W[rj];B[pi];W[qj];B[rc];W[rr];B[rs];W[sr];B[rg];W[si] ;B[ne];W[oe];B[sd];W[se];B[sc];W[rf];B[id];W[hd];B[gr];W[hr] ;B[fr];W[nf];B[ip];W[fn];B[lj];W[jg];B[kk];W[ki];B[ll];W[oj] ;B[hp];W[hq];B[hn];W[em];B[nn];W[jl];B[jk];W[il];B[cl];W[dm] ;B[ik];W[hl];B[ii];W[nj];B[gk];W[gm];B[jh];W[mi];B[ng];W[kh] ;W[li];B[mj];W[ni];B[km];W[bj];B[cj];W[jn];B[bi];W[bh];B[aj] ;W[lo];B[ko])goban-1.1.orig/games/M-62-l12.sgf0000644000175000017500000000344206252641374014000 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[9 dan] PB[Fujisawa Hosai] PW[Miyashita Shuyo] RE[B+R] ;B[pd];W[dc];B[pp];W[dp];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[db];W[cc];B[jc];W[fc];B[ed];W[fb];B[eb];W[id];B[jd] ;W[if];B[hd];W[fd];B[fe];W[ge];B[gd];W[ff];B[ee];W[ic];B[he] ;W[ie];B[gf];W[hb];B[ld];W[dh];B[gh];W[ih];B[gj];W[qj];B[qg] ;W[qm];B[qo];W[mq];B[oq];W[jq];B[cj];W[dj];B[dk];W[ej];B[ek] ;W[fk];B[fj];W[ci];B[fl];W[gk];B[ii];W[gl];B[jh];W[ke];B[jb] ;W[le];B[md];W[lh];B[kg];W[lg];B[ki];W[je];B[li];W[kd];B[kc] ;W[of];B[nf];W[lc];B[lb];W[ne];B[me];W[mf];B[ng];W[mc];B[nd] ;W[nc];B[oe];W[mb];B[ka];W[ma];B[oc];W[ob];B[pb];W[ia];B[ja] ;W[la];B[na];W[kb];B[ei];W[ib];B[di];W[fm];B[bi];W[cb];B[bg] ;W[bf];B[rk];W[qk];B[rl];W[qc];B[pc];W[qh];B[rh];W[rm];B[rj] ;W[ri];B[si];W[qi];B[rf];W[sj];B[sk];W[ql];B[nm];W[sn];B[rp] ;W[fp];B[ip];W[iq];B[oj];W[sl];B[sm];W[ok];B[nk];W[sl];B[af] ;W[ae];B[sm];W[nj];B[ol];W[sl];B[cp];W[cq];B[sm];W[oi];B[pk] ;W[sl];B[do];W[ep];B[sm];W[mi];B[mj];W[sl];B[bq];W[bp];B[sm] ;W[ni];B[mg];W[sl];B[co];W[br];B[sm];W[lf];B[mh];W[sl];B[dq] ;W[cr];B[sm];W[mk];B[lj];W[sl];B[ca];W[ba];B[sm];W[pj];B[ok] ;W[sl];B[gp];W[en];B[sm];W[og];B[pf];W[sl];B[jp];W[kp];B[sm] ;W[nh];B[ne];W[sl];B[ko];W[gq];B[sm];W[pe];B[qe];W[sl];B[hq] ;W[hr];B[sm];W[ph];B[pg];W[sl];B[hp];W[gr];B[sm];W[qn];B[so] ;W[sl];B[lp];W[kq];B[sm];W[sh];B[sg];W[sl];B[gn];W[eo];B[sm] ;W[on];B[rn];W[om];B[ml];W[oo];B[bo];W[cm];B[bm];W[lo];B[kn] ;W[in];B[hm];W[go];B[ho];W[el];B[im];W[bl];B[bn];W[cl];B[ap] ;W[ar];B[aq];W[ik];B[oh];W[og];B[mo];W[nr];B[da];W[cg];B[ch] ;W[ag];B[bh];W[ab];B[po];W[np];B[bb];W[bc];B[or];W[kk];B[lk] ;W[mp];B[ln];W[os];B[ps];W[ns];B[pr];W[eg];B[fa];W[ga];B[fg] ;W[jg];B[hh];W[ig];B[il];W[jj];B[hk];W[hj];B[hl];W[ji];B[kh] ;W[hi];B[gm] C[271 moves complete.] ) goban-1.1.orig/games/Hon-94-5.mgt0000644000175000017500000000274006045540456014112 0ustar alal (;GM[1]SZ[19]PB[Kataoka Satoshi]PW[Cho Chikun]DT[1994-06-29,30]RE[B+R]KM[5.5]FF[3]BS[0]WS[0];B[qd];W[dd];B[pq];W[cp];B[oc];W[po];B[qo];W[qn];B[qp] ;W[rd];B[rc];W[pm];B[nq];W[qi];B[eq];W[dn];B[hp];W[cf];B[id] ;W[pd];B[qc];W[qf];B[fc];W[dq];B[ep];W[dl];B[cj];W[ch];B[ej] ;W[jq];B[jo];W[mp];B[np];W[mo];B[on];W[mq];B[iq];W[jp];B[ip] ;W[om];B[db];W[cc];B[ed];W[kc];B[de];W[ce];B[dc];W[cd];B[oj] ;W[nn];B[qj];W[od];B[nc];W[pc];B[pb];W[qb];B[ob];W[qe];B[rb] ;W[pi];B[pj];W[nh];B[mj];W[ni];B[nj];W[ko];B[of];W[mf];B[pg] ;W[ri];B[mg];W[ng];B[nf];W[me];B[oi];W[lg];B[oh];W[nd];B[rh] ;W[rg];B[qh];W[li];B[sh];W[mc];B[jc];W[jn];B[er];W[rk];B[rj] ;W[ck];B[co];W[do];B[dp];W[cq];B[bo];W[cn];B[cr];W[bn];B[bq] ;W[fg];B[lj];W[ki];B[gk];W[gm];B[eh];W[fh];B[dh];W[ee];B[fe] ;W[ef];B[fi];W[bp];B[dr];W[ao];B[ci];W[jb];B[ib];W[jd];B[ic] ;W[bh];B[je];W[ir];B[hr];W[gj];B[gi];W[hj];B[hg];W[jr];B[hi] ;W[gr];B[gq];W[hs];B[aq];W[kd];B[ij];W[hq];B[gp];W[lb];B[hk] ;W[ro];B[rp];W[rm];B[qk];W[mr];B[nr];W[ns];B[os];W[ms];B[rr] ;W[ia];B[ha];W[ja];B[gb];W[cb];B[ca];W[ba];B[da];W[ql];B[jg] ;W[or];B[ps];W[ff];B[dg];W[df];B[gf];W[sj];B[si];W[pr];B[qs] ;W[pp];B[oq];W[nl];B[sk];W[rl];B[kj];W[bk];B[ll];W[ji];B[oo] ;W[no];B[re];W[rf];B[sd];W[jl];B[jj];W[pf];B[og];W[lm];B[bb] ;W[bc];B[so];W[sn];B[rn];W[ec];B[eb];W[ro];B[sp];W[fr];B[hn] ;W[gn];B[ml];W[io];B[ho];W[mm];B[cg];W[bg];B[bi];W[fk];B[fj] ;W[ab];B[ek];W[ge];B[fd];W[ke];B[kf];W[nb];B[na];W[ma];B[mb] ;W[hb];B[la];W[hc];B[kb];W[ga];B[lc];W[ie];B[le];W[hd];B[ld] ;W[fa];B[jf])goban-1.1.orig/games/Hon-73-1.sgf0000644000175000017500000000301406243710532014060 0ustar alal( ; EV[28th Honinbo] RO[1] BR[Meijin] WR[Honinbo] PB[Rin Kaiho] PW[Ishida Yoshio] KM[4.5] DT[1973-] PC[Japan] RE[W+R] ;B[pd];W[cq];B[pq];W[dc];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb] ;W[eb];B[bg];W[bf];B[bh];W[bd];B[ci];W[eg];B[fe];W[fc];B[ff] ;W[ei];B[cl];W[gh];B[id];W[hf];B[he];W[if];B[gb];W[ke];B[kd] ;W[gc];B[le];W[hc];B[gf];W[kf];B[ld];W[cn];B[el];W[dk];B[ck] ;W[ih];B[qo];W[kq];B[mq];W[hp];B[qe];W[kb];B[pj];W[mg];B[do] ;W[dn];B[fo];W[fq];B[ek];W[fn];B[ho];W[ip];B[eq];W[dm];B[dq] ;W[cp];B[dl];W[go];B[gn];W[ep];B[en];W[eo];B[fm];W[fp];B[gp] ;W[gq];B[mc];W[qc];B[pc];W[ql];B[qj];W[pb];B[ob];W[qn];B[pn] ;W[ro];B[rn];W[qm];B[rp];W[po];B[qp];W[on];B[mh];W[ng];B[lh] ;W[lg];B[kh];W[oi];B[ol];W[oj];B[ok];W[mj];B[ml];W[kj];B[pm] ;W[qh];B[rf];W[rg];B[ri];W[mp];B[lq];W[lp];B[kr];W[jq];B[np] ;W[no];B[op];W[ll];B[hi];W[ii];B[qf];W[pi];B[jc];W[jb];B[ib] ;W[ic];B[lb];W[hb];B[jr];W[ir];B[bm];W[hj];B[mm];W[nd];B[nf] ;W[rh];B[rk];W[rb];B[rd];W[rc];B[qa];W[sd];B[se];W[oe];B[of] ;W[qd];B[pe];W[re];B[ae];W[ad];B[rd];W[ie];B[hd];W[re];B[ba] ;W[ab];B[rd];W[nq];B[nr];W[re];B[af];W[ca];B[rd];W[gd];B[ge] ;W[re];B[ag];W[ac];B[rd];W[lr];B[mr];W[re];B[sf];W[pa];B[ra] ;W[nb];B[nc];W[oa];B[oc];W[sa];B[sc];W[sb];B[rd];W[om];B[pl] ;W[re];B[lk];W[rd];B[lj];W[nk];B[kl];W[nl];B[pk];W[nm];B[og] ;W[lm];B[mk];W[kk];B[mi];W[nj];B[ln];W[km];B[mo];W[nh];B[jl] ;W[jm];B[jj];W[jk];B[il];W[ki];B[kn];W[im];B[ik];W[ij];B[gk] ;W[hm];B[gl];W[io];B[kp];W[ji];B[li];W[mn]C[226 moves complete. White wins by resignation.] ) goban-1.1.orig/games/Hon-90-6.mgt0000644000175000017500000000264606045540450014106 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]DT[1990-07-18,19]RE[B+6.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[lc];W[qc];B[qd] ;W[pc];B[od];W[nb];B[me];W[jp];B[mp];W[dj];B[fq];W[eq];B[fp] ;W[dn];B[hp];W[jn];B[gm];W[jl];B[gk];W[jj];B[dl];W[ql];B[cq] ;W[dq];B[bo];W[cp];B[bp];W[bq];B[cm];W[cn];B[bn];W[cr];B[im] ;W[jm];B[dh];W[qn];B[cf];W[ce];B[df];W[ec];B[qo];W[pn];B[rj] ;W[pq];B[qq];W[op];B[oq];W[nq];B[pr];W[np];B[nr];W[mq];B[fd] ;W[fc];B[be];W[bd];B[de];W[cd];B[gd];W[gi];B[fi];W[gj];B[fj] ;W[hk];B[gl];W[nh];B[ph];W[nk];B[mr];W[lq];B[po];W[oo];B[nj] ;W[mj];B[ni];W[mi];B[mh];W[lh];B[mg];W[rc];B[ok];W[nl];B[gh] ;W[hc];B[rd];W[sd];B[se];W[sc];B[rf];W[md];B[ld];W[ne];B[nd] ;W[mf];B[mc];W[lg];B[ng];W[og];B[oh];W[nf];B[nh];W[kf];B[bf] ;W[hh];B[hg];W[gg];B[fh];W[ih];B[ig];W[jg];B[he];W[ie];B[hf] ;W[dm];B[bl];W[iq];B[ib];W[hb];B[oc];W[ob];B[mb];W[fn];B[hq] ;W[el];B[ek];W[gn];B[ir];W[jr];B[ip];W[jq];B[gr];W[is];B[hn] ;W[go];B[in];W[hl];B[hm];W[if];B[na];W[pa];B[ra];W[rb];B[ma] ;W[qa];B[pb];W[qb];B[oa];W[sa];B[hd];W[ic];B[jb];W[jc];B[kb] ;W[fl];B[fm];W[em];B[fk];W[qk];B[rn];W[rm];B[ad];W[ac];B[ae] ;W[bc];B[eo];W[en];B[er];W[dr];B[ap];W[aq];B[rk];W[qj];B[qi] ;W[ro];B[rp];W[sn];B[of];W[oe];B[pf];W[lr];B[hr];W[es];B[fr] ;W[pb];B[le];W[lf];B[rl];W[pl];B[sl];W[gc];B[il];W[ik];B[ed] ;W[pe];B[qe];W[ia];B[ja];W[ha];B[je];W[ke];B[jd];W[id];B[kd] ;W[jf];B[ol];W[om];B[ls];W[ks];B[ms];W[pk];B[oj];W[fs];B[sp] ;W[jo];B[gp])goban-1.1.orig/games/M-71-5.sgf0000644000175000017500000000243206252650642013542 0ustar alal( ; EV[10th Meijin Title] RO[5] PB[Fujisawa Shuko] BR[Meijin] PW[Rin Kaiho] WR[9 dan] DT[1971-] RE[W+R] KM[5] ;B[pd];W[dp];B[qp];W[dc];B[oq];W[qj];B[ce];W[cg];B[ee] ;W[fd];B[hd];W[fe];B[dg];W[ch];B[ff];W[gf];B[ge];W[gd];B[he] ;W[ef];B[fg];W[df];B[cc];W[de];B[db];W[dd];B[hg];W[cd];B[qh] ;W[qm];B[pl];W[ql];B[pj];W[pk];B[ok];W[qk];B[pi];W[nc];B[oc] ;W[nd];B[ld];W[lc];B[kc];W[mb];B[kb];W[le];B[kd];W[pe];B[ob] ;W[qd];B[od];W[oe];B[qc];W[nf];B[ol];W[qf];B[rd];W[re];B[qe] ;W[qo];B[ro];W[rn];B[po];W[qn];B[mg];W[qd];B[rc];W[nh];B[mh] ;W[ph];B[oh];W[ng];B[ni];W[rh];B[rg];W[qg];B[pg];W[ri];B[qe] ;W[pf];B[mi];W[kf];B[rf];W[se];B[fq];W[if];B[jg];W[sg];B[jf] ;W[jp];B[hp];W[lq];B[dr];W[cm];B[jn];W[cq];B[dm];W[fp];B[hq] ;W[eq];B[er];W[gq];B[fr];W[gp];B[gr];W[ir];B[hr];W[dl];B[kr] ;W[nq];B[kq];W[op];B[pp];W[or];B[pq];W[kp];B[iq];W[pr];B[cn] ;W[dn];B[em];W[co];B[qr];W[mr];B[lo];W[rq];B[rp];W[rr];B[qq] ;W[mo];B[oo];W[no];B[lp];W[ln];B[ko];W[on];B[rs];W[om];B[sr] ;W[el];B[mm];W[mn];B[nm];W[lm];B[fm];W[ck];B[jm];W[ll];B[mk] ;W[ml];B[nl];W[nn];B[bb];W[bc];B[cb];W[bd];B[fb];W[gb];B[hc] ;W[gc];B[hb];W[ga];B[ec];W[ed];B[ab];W[ba];B[fa];W[eb];B[ea] ;W[fc];B[ca];W[eb];B[sd];W[sf];B[ec];W[fh];B[gg];W[eb];B[mp] ;W[np];B[ec];W[fl];B[eb];W[gm];B[gn];W[fn];B[hm];W[gl];B[go] ;W[fo];B[eg];W[fi]C[192 moves complete.] ) goban-1.1.orig/games/Hon-78-3.mgt0000644000175000017500000000320306045540406014100 0ustar alal (;PB[Ishida Yoshio]PW[Kato Masao]DT[1978-05-31]PC[Toba]RE[B+0.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[qp];W[cc];B[oq];W[qj];B[ql];W[qg];B[jc] ;W[jq];B[qe];W[ep];B[fd];W[cf];B[lq];W[dk];B[hq];W[pq];B[pp] ;W[or];B[pr];W[lp];B[mq];W[jo];B[ho];W[gp];B[hp];W[kq];B[mp] ;W[lo];B[hm];W[kl];B[en];W[cn];B[el];W[dl];B[dc];W[dd];B[ec] ;W[cb];B[md];W[qn];B[pm];W[qq];B[qr];W[rq];B[rr];W[pn];B[ro] ;W[no];B[op];W[rn];B[rk];W[on];B[nm];W[nk];B[om];W[mo];B[pj] ;W[qi];B[oj];W[oh];B[ni];W[nh];B[mi];W[mh];B[li];W[kg];B[ji] ;W[il];B[im];W[jm];B[jk];W[jl];B[gk];W[hj];B[hk];W[ik];B[ij] ;W[hi];B[lh];W[lg];B[jh];W[pk];B[ok];W[qk];B[pl];W[ml];B[fi] ;W[ne];B[nd];W[oe];B[od];W[jd];B[if];W[ic];B[ke];W[kd];B[le] ;W[rj];B[hd];W[jb];B[lb];W[gc];B[gd];W[lc];B[mb];W[mc];B[nc] ;W[fb];B[di];W[dg];B[de];W[ce];B[eh];W[ci];B[do];W[co];B[dp] ;W[dq];B[rl];W[qf];B[lk];W[ll];B[re];W[mf];B[mm];W[lm];B[kb] ;W[kc];B[eb];W[fa];B[cp];W[bp];B[eq];W[er];B[bq];W[br];B[bo] ;W[aq];B[cj];W[dn];B[eo];W[dj];B[ch];W[bi];B[dh];W[bh];B[fp] ;W[ee];B[fr];W[lr];B[mr];W[kk];B[ff];W[jj];B[ii];W[fe];B[ge] ;W[ef];B[da];W[id];B[ja];W[ia];B[ed];W[df];B[ka];W[hc];B[fg] ;W[dr];B[sg];W[rh];B[dm];W[cm];B[em];W[ie];B[jg];W[hf];B[gf] ;W[jf];B[ig];W[ej];B[ca];W[he];B[hg];W[hl];B[gl];W[in];B[hn] ;W[fj];B[gj];W[rf];B[sf];W[pe];B[bd];W[cd];B[bb];W[bc];B[ac] ;W[qd];B[qc];W[lj];B[ir];W[fs];B[gs];W[es];B[hr];W[jr];B[ba] ;W[be];B[ad];W[ab];B[aa];W[ae];B[ab];W[rd];B[se];W[rc];B[rb] ;W[pc];B[qb];W[fk];B[fl];W[qo];B[rp];W[ms];B[ns];W[ls];B[js] ;W[kr];B[nq];W[me];B[ld];W[io];B[pi];W[ph];B[mj];W[mk];B[sn] ;W[sm];B[so];W[rm];B[ip];W[jp];B[mn];W[ln];B[cg];W[bg];B[ha] ;W[ib];B[fc];W[gb];B[sc];W[sh];B[sj];W[si];B[sk])goban-1.1.orig/games/Hon-55-4.mgt0000644000175000017500000000222206045540244014074 0ustar alal (;GM[1]SZ[19]DT[1955-06-]PB[Shimamura Toshihiro]PW[Takagawa Kaku]RE[W+R]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dc];B[dp];W[qp];B[oq];W[cf];B[kq];W[qm];B[mc] ;W[hd];B[dk];W[fq];B[eq];W[fp];B[dn];W[iq];B[pn];W[qn];B[qq] ;W[rq];B[pp];W[qo];B[qr];W[pj];B[ch];W[cq];B[er];W[co];B[do] ;W[cn];B[cp];W[bp];B[bq];W[br];B[cm];W[aq];B[bm];W[io];B[jc] ;W[qc];B[qd];W[pc];B[oc];W[ob];B[nb];W[od];B[nc];W[rd];B[re] ;W[rc];B[qf];W[pb];B[qh];W[hb];B[ce];W[cd];B[be];W[de];B[bf] ;W[df];B[rj];W[oe];B[oh];W[pf];B[qe];W[mf];B[id];W[he];B[ie] ;W[if];B[jf];W[ic];B[ib];W[hc];B[kd];W[nh];B[ig];W[hf];B[oi] ;W[je];B[ke];W[jd];B[kb];W[lh];B[kg];W[lj];B[oj];W[ko];B[jq] ;W[lm];B[ip];W[hp];B[jp];W[hn];B[go];W[ho];B[km];W[kn];B[rr] ;W[po];B[oo];W[on];B[no];W[ia];B[mi];W[mh];B[og];W[md];B[ji] ;W[kh];B[jh];W[kj];B[ik];W[jm];B[om];W[rk];B[qk];W[rl];B[pk] ;W[qj];B[qi];W[sp];B[kl];W[jl];B[ll];W[jk];B[mm];W[gl];B[gk] ;W[hl];B[gh];W[ir];B[gr];W[fr];B[fs];W[gq];B[cg];W[bd];B[bo] ;W[lp];B[lq];W[mp];B[mq];W[jb];B[nd];W[ne];B[fk];W[kc];B[ld] ;W[eh];B[fn];W[ln];B[mk];W[lf];B[kf];W[mj];B[ei];W[sj];B[ri] ;W[fh];B[fi];W[hg];B[hh];W[gg];B[sd];W[ra];B[np];W[ls];B[sr] ;W[sn];B[ms];W[hk];B[hj];W[fl];B[el];W[lb])goban-1.1.orig/games/M-82-4.mgt0000644000175000017500000000260606252627042013554 0ustar alal(;PB[Otake Hideo]PW[Cho Chikun]KM[5.5]ID[82/4]GM[1]SZ[19]FF[3]BS[0]WS[0]PC[ ]DT[1982-]BR[9 Dan]WR[9 Dan]RE[B+R]KI[11];B[pd];W[dd];B[pp];W[cq];B[pj];W[nq];B[pn];W[jp];B[jd] ;W[do];B[cj];W[qf];B[qe];W[pf];B[nd];W[ph];B[cf];W[fc];B[lq] ;W[qq];B[pq];W[pr];B[qp];W[rr];B[rq];W[qr];B[qi];W[pi];B[qj] ;W[ni];B[oj];W[mg];B[cm];W[jq];B[en];W[fp];B[lo];W[qc];B[re] ;W[ld];B[pc];W[lf];B[ef];W[nb];B[mc];W[pb];B[rc];W[rb];B[qd] ;W[qb];B[sb];W[mb];B[lc];W[lb];B[kc];W[ce];B[bf];W[if];B[gd] ;W[gc];B[hd];W[ic];B[id];W[oc];B[od];W[nc];B[fd];W[ed];B[gf] ;W[ih];B[lj];W[ki];B[cc];W[be];B[eb];W[ec];B[db];W[jb];B[bb] ;W[nj];B[oi];W[qh];B[md];W[nk];B[oh];W[og];B[nh];W[mh];B[kb] ;W[ka];B[li];W[ol];B[pm];W[kk];B[kj];W[jj];B[lk];W[ll];B[ml] ;W[kl];B[mk];W[mm];B[nl];W[nm];B[ok];W[mi];B[om];W[lh];B[pl] ;W[ji];B[nr];W[or];B[np];W[oq];B[rp];W[mq];B[gi];W[gk];B[jo] ;W[io];B[in];W[ko];B[jn];W[kn];B[ho];W[gn];B[ip];W[gp];B[kp] ;W[iq];B[gl];W[mp];B[hk];W[hl];B[hm];W[hj];B[hq];W[hr];B[il] ;W[gj];B[gr];W[hp];B[gq];W[ir];B[eq];W[dq];B[lp];W[mo];B[ln] ;W[km];B[er];W[ep];B[kr];W[io];B[la];W[ja];B[ip];W[gs];B[kq] ;W[io];B[mn];W[ik];B[ip];W[fq];B[fr];W[io];B[mr];W[nn];B[ip] ;W[dr];B[no];W[lm];B[jr];W[ls];B[is];W[io];B[jl];W[js];B[ks] ;W[hs];B[jk];W[js];B[lr];W[ns];B[is];W[op];B[oo];W[js];B[oa] ;W[ms];B[hc];W[hb];B[ga];W[pa];B[ra];W[fb];B[ib];W[ia];B[fa] ;W[jc];B[ha];W[ma];B[le];W[ea];B[da];W[ke];B[kd];W[af];B[ch] )goban-1.1.orig/games/T-05-1.mgt0000644000175000017500000000313006261122664013544 0ustar alal(;SZ[19]EV[5th Tengen match]RO[Game 1]PB[Kato Masao]BR[9d and Tengen]PW[Kataoka Satoshi]WR[5d]SO[Kido yearbook]DT[1979-11-21]KM[5.5]RE[B+4.5];B[qd];W[dc];B[pp];W[cq];B[oc];W[qj];B[ce];W[ci];B[dd];W[ec];B[cc];W[cb];B[bc];W[hc];B[ed];W[fd];B[fe];W[gd];B[ck];W[ei];B[cn];W[fq];B[qh];W[qn];B[ql];W[rl];B[nq];W[pl];B[qo];W[rn];B[hq];W[qf];B[pj];W[pk];B[rj];W[qi];B[ri];W[qk];B[ph];W[of];B[nh];W[mf];B[md];W[pi];B[oi];W[lg];B[lh];W[kh];B[li];W[ki];B[lk];W[kj];B[lj];W[jl];B[lm];W[ip];B[hp];W[io];B[ho];W[mn];B[on];W[nm];B[om];W[nl];B[kn];W[in];B[ol];W[ok];B[nk];W[jq];B[oj];W[ro];B[qm];W[pm];B[pn];W[rk];B[rp];W[rg];B[rh];W[og];B[oh];W[qq];B[qp];W[so];B[kp];W[mk];B[nj];W[do];B[hn];W[im];B[kq];W[jr];B[gl];W[em];B[ik];W[jk];B[el];W[fm];B[fl];W[gm];B[fi];W[hl];B[fh];W[bk];B[bl];W[dk];B[dl];W[cj];B[cl];W[cg];B[dp];W[ep];B[co];W[dq];B[bf];W[bg];B[pe];W[pf];B[dn];W[eo];B[kg];W[kf];B[jg];W[jf];B[ig];W[ef];B[ee];W[ak];B[le];W[lf];B[jd];W[if];B[hg];W[pc];B[qc];W[od];B[nc];W[id];B[jc];W[rq];B[pq];W[sp];B[bb];W[ib];B[jb];W[pd];B[pb];W[qe];B[nd];W[oe];B[re];W[db];B[dh];W[ch];B[ej];W[cf];B[be];W[di];B[eh];W[ag];B[hk];W[hm];B[kr];W[ks];B[ls];W[js];B[mr];W[hf];B[bp];W[bq];B[jp];W[iq];B[qr];W[rr];B[pr];W[ja];B[ka];W[ia];B[lb];W[ba];B[ii];W[ke];B[kd];W[cp];B[bo];W[ap];B[ao];W[aq];B[dj];W[fj];B[ek];W[gg];B[gh];W[rf];B[ic];W[gb];B[se];W[rs];B[ge];W[he];B[gf];W[ij];B[hj];W[ji];B[jj];W[qb];B[rb];W[ij];B[al];W[bi];B[jj];W[me];B[ld];W[ij];B[en];W[fn];B[jj];W[rd];B[rc];W[ij];B[ih];W[df];B[fg];W[jo];B[ko];W[qs];B[ps];W[je];B[kl];W[dm];B[cm];W[af];B[ae];W[sk];B[jj];W[kk];B[ng];W[mg];B[mh];W[jm];B[km];W[ab];B[ac];W[ca];B[ij];W[aa];B[sd])goban-1.1.orig/games/T-10-1.mgt0000644000175000017500000000251206252627522013546 0ustar alal(;GM[1]VW[]SZ[19]PW[Ishida Yoshio]PB[Kataoka Satoshi]DT[1984-11-01]RE[W+1.5]ID[10/1]FF[3];B[pd];W[cc];B[pq];W[eq];B[cq];W[do];B[co];W[dn];B[cn] ;W[dm];B[cm];W[dl];B[cl];W[dk];B[cj];W[qo];B[mq];W[qf];B[nc] ;W[kq];B[kp];W[jp];B[ko];W[lq];B[mp];W[qq];B[jq];W[iq];B[jr] ;W[ir];B[jo];W[ip];B[qr];W[rr];B[qp];W[rq];B[pp];W[rp];B[qm] ;W[rd];B[qc];W[qi];B[po];W[qn];B[pn];W[ic];B[rm];W[pr];B[or] ;W[qs];B[kc];W[fc];B[ed];W[ec];B[cd];W[dc];B[oi];W[qj];B[rc] ;W[qe];B[pk];W[hn];B[jl];W[ch];B[eg];W[cf];B[id];W[hd];B[ie] ;W[jc];B[kd];W[of];B[gf];W[dd];B[ph];W[qh];B[nf];W[ik];B[il] ;W[hk];B[hl];W[gk];B[kj];W[he];B[hf];W[ih];B[bg];W[cg];B[ci] ;W[bh];B[kh];W[if];B[hc];W[jd];B[je];W[hb];B[jf];W[ig];B[ei] ;W[gl];B[ib];W[gc];B[jb];W[og];B[ng];W[cr];B[br];W[dq];B[cp] ;W[ji];B[ki];W[oh];B[nh];W[oj];B[pj];W[pi];B[ni];W[bi];B[bj] ;W[jk];B[kk];W[mr];B[nr];W[qk];B[ql];W[fg];B[hc];W[ic];B[eh] ;W[ff];B[ro];W[dr];B[rk];W[rj];B[qd];W[bs];B[ar];W[re];B[ef] ;W[fe];B[oe];W[sk];B[gi];W[sc];B[sb];W[sd];B[rb];W[aj];B[bk] ;W[hm];B[io];W[ho];B[in];W[lr];B[gh];W[gg];B[ee];W[jc];B[rl] ;W[dj];B[di];W[js];B[ej];W[ek];B[ak];W[ai];B[sl];W[sj];B[de] ;W[ce];B[dp];W[ep];B[fj];W[kb];B[lb];W[ia];B[ka];W[im];B[jm] ;W[fd];B[hh];W[hg];B[fk];W[fl];B[lp];W[ms];B[pf];W[pg];B[pe] ;W[jg];B[kg];W[sn];B[so];W[sp];B[rn];W[fh];B[ck];W[gj];B[fi] ;W[hi];B[jj];W[ij];B[jh];W[ii])goban-1.1.orig/games/Hon-41-1.mgt0000644000175000017500000000202706045540232014064 0ustar alal (;SZ[19]PW[Sekiyama Riichi]PB[Kato Shin]KM[0]TM[13h]RE[B+R]GM[1]FF[3]DT[1941-]BS[0]WS[0];B[pd];W[dc];B[pp];W[fp];B[de];W[ee];B[ef];W[ed];B[dg] ;W[co];B[cc];W[cd];B[dd];W[ce];B[df];W[bc];B[ec];W[cb];B[db] ;W[cc];B[fd];W[po];B[op];W[qp];B[qq];W[qo];B[fe];W[rq];B[pr] ;W[qr];B[pq];W[rr];B[lq];W[nd];B[ld];W[pg];B[oe];W[le];B[ke] ;W[me];B[kd];W[ng];B[qe];W[oc];B[pc];W[lg];B[rg];W[jq];B[nn] ;W[eq];B[kh];W[kg];B[jg];W[lh];B[ki];W[dk];B[li];W[fk];B[kf] ;W[nh];B[jp];W[ip];B[jo];W[kq];B[lp];W[qh];B[rh];W[qj];B[cn] ;W[bo];B[fm];W[en];B[dl];W[cl];B[ck];W[el];B[dm];W[em];B[dj] ;W[ek];B[bl];W[cj];B[bk];W[bj];B[bn];W[di];B[an];W[dn];B[cm] ;W[lr];B[mr];W[gi];B[iq];W[hq];B[ir];W[hr];B[io];W[hp];B[hh] ;W[ob];B[qb];W[mb];B[kb];W[gh];B[hg];W[ao];B[pm];W[ok];B[ol] ;W[nk];B[rn];W[ro];B[ri];W[mi];B[qi];W[pi];B[qk];W[pk];B[rj] ;W[ql];B[pj];W[qm];B[rl];W[oj];B[eb];W[bg];B[hm];W[qj];B[rk] ;W[mm];B[nm];W[ml];B[ks];W[kr];B[ls];W[is];B[kp];W[jr];B[pl] ;W[qn];B[rm];W[sn];B[ij];W[mn];B[mo];W[ps];B[os];W[qs];B[nq] ;W[lb];B[ka];W[lj];B[kj];W[lk];B[pf];W[kk];B[lc])goban-1.1.orig/games/M-73-2.mgt0000644000175000017500000000311706260320450013540 0ustar alal(;SZ[19]EV[12th Meijin match game 2]DT[1973, sept 5,6]PB[Ishida]PW[Rin]KM[5.5]RE[B+5]SO[Rin collected games];B[pd];W[dc];B[pp];W[dp];B[de];W[ce];B[cf];W[cd];B[fq];W[cn];B[pj];W[jp];B[lp];W[eq];B[fp];W[jn];B[fm];W[nc];B[pf];W[kd];B[gf];W[jl];B[dl];W[gk];B[do];W[co];B[cq];W[eo];B[ep];W[dq];B[dn];W[dm];B[en];W[em];B[fo];W[cp];B[fl];W[cm];B[df];W[gn];B[fn];W[ro];B[qp];W[ql];B[qj];W[ol];B[ml];W[no];B[np];W[oo];B[mp];W[lm];B[oc];W[nd];B[ec];W[eb];B[dd];W[cc];B[fc];W[fb];B[nb];W[mb];B[ob];W[gc];B[gd];W[hd];B[hc];W[gb];B[ge];W[qr];B[rp];W[rq];B[qn];W[pr];B[oq];W[or];B[nr];W[rs];B[mm];W[mn];B[ln];W[ll];B[mk];W[oj];B[kn];W[km];B[om];W[pg];B[og];W[pi];B[ph];W[pm];B[oi];W[ni];B[qi];W[pn];B[ok];W[qo];B[jq];W[iq];B[kp];W[ip];B[jr];W[rk];B[ir];W[kj];B[im];W[jm];B[id];W[oe];B[of];W[lg];B[po];W[sp];B[jg];W[kh];B[jh];W[ji];B[ii];W[ij];B[hi];W[sh];B[rj];W[sj];B[si];W[ri];B[rh];W[hj];B[gi];W[bj];B[si];W[sk];B[hb];W[kf];B[mf];W[mg];B[ne];W[jf];B[if];W[ri];B[sg];W[ig];B[ih];W[nj];B[mo];W[ie];B[hg];W[nn];B[pk];W[lf];B[pl];W[qm];B[be];W[me];B[nf];W[bd];B[cj];W[ci];B[bk];W[ck];B[dj];W[bl];B[bi];W[ak];B[di];W[si];B[qg];W[ed];B[fd];W[bg];B[bf];W[ch];B[dh];W[bh];B[nh];W[mh];B[er];W[dr];B[hq];W[ns];B[ms];W[os];B[mr];W[gm];B[fr];W[od];B[pe];W[mc];B[gl];W[hl];B[nk];W[lj];B[nm];W[on];B[rn];W[so];B[hp];W[in];B[ds];W[cs];B[es];W[cr];B[jc];W[kc];B[jb];W[je];B[he];W[kb];B[ga];W[cb];B[ad];W[ac];B[ae];W[fa];B[ha];W[da];B[gj];W[fk];B[fj];W[ek];B[dk];W[ho];B[cl];W[bk];B[op];W[rm];B[lk];W[kk];B[mj];W[mi];B[ej];W[ko];B[lo];W[jo];B[el];W[hk];B[qk];W[sn];B[cg];W[na];B[oa];W[ma];B[ag];W[ai];B[ka];W[la];B[ja];W[go];B[gp];W[ng];B[oh])goban-1.1.orig/games/Nih-73-2.mgt0000644000175000017500000000302406377113174014073 0ustar alal(;SZ[19]RO[2]PW[Sakata]RE[B+R]EV[21st Nihon Kiin ch.ship]PB[Kato]DT[1974];B[pd];W[dp];B[pp];W[dd];B[pj];W[dj];B[fq];W[nc];B[pf];W[dn];B[jp];W[jd];B[pn];W[df];B[me];W[go];B[hp];W[ld];B[kf];W[kn];B[in];W[kp];B[kq];W[lq];B[lp];W[ko];B[lr];W[mq];B[mp];W[mr];B[jr];W[np];B[mo];W[ls];B[kr];W[op];B[nn];W[pq];B[qq];W[qp];B[po];W[qr];B[rq];W[or];B[jj];W[im];B[jm];W[on];B[om];W[oo];B[nm];W[jl];B[rr];W[rs];B[hm];W[il];B[hl];W[ml];B[ro];W[jn];B[hn];W[mm];B[hc];W[eq];B[er];W[dr];B[ob];W[ie];B[ge];W[ic];B[fc];W[eb];B[kc];W[kd];B[ib];W[jc];B[jb];W[kb];B[gg];W[mn];B[no];W[pm];B[nk];W[lj];B[ok];W[mi];B[lb];W[lc];B[ka];W[hd];B[gd];W[hb];B[gc];W[qh];B[ph];W[qg];B[qf];W[qd];B[oe];W[jf];B[kg];W[nf];B[ne];W[pg];B[oh];W[og];B[nh];W[rf];B[re];W[mh];B[rj];W[qe];B[rd];W[qc];B[rc];W[qb];B[oc];W[sg];B[rb];W[mf];B[le];W[ri];B[qi];W[ij];B[ii];W[hk];B[fr];W[hi];B[ig];W[ih];B[ji];W[jh];B[jg];W[kh];B[kc];W[qm];B[rp];W[kb];B[hh];W[lg];B[kc];W[gh];B[hg];W[kb];B[gi];W[hj];B[kc];W[fp];B[gp];W[kb];B[ch];W[ia];B[kc];W[pi];B[oi];W[kb];B[nq];W[oq];B[kc];W[sj];B[sk];W[kb];B[ki];W[lh];B[kc];W[si];B[rk];W[kb];B[ps];W[qs];B[kc];W[qn];B[qo];W[kb];B[km];W[kl];B[kc];W[nl];B[ol];W[kb];B[ms];W[ns];B[kc];W[gq];B[cq];W[dq];B[gb];W[gr];B[fo];W[ep];B[hq];W[hr];B[ir];W[es];B[fn];W[bf];B[eh];W[cj];B[bi];W[bj];B[bg];W[cf];B[em];W[dm];B[rh];W[sh];B[hs];W[fs];B[se];W[cg];B[dh];W[ee];B[ec];W[dc];B[ek];W[ej];B[aj];W[fh];B[fg];W[fi];B[ef];W[ag];B[bh];W[bk];B[fk];W[ff];B[eg];W[fe];B[gf];W[gj];B[mk];W[lk];B[jo];W[en];B[fm];W[gk];B[gl];W[mj];B[ks];W[ms];B[fa];W[ea];B[db];W[cb];B[dl];W[cl];B[dk])goban-1.1.orig/games/M-72-4.sgf0000644000175000017500000000210706252650752013543 0ustar alal( ; GM[1] TM[1800] DT[1972-] EV[11th Meijin 1972] RO[4] BR[Meijin] WR[9 dan] KM[5] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[B+R] ;B[qd];W[dd];B[cp];W[pp];B[oc];W[ep];B[eq];W[fq];B[dq] ;W[fp];B[cn];W[pj];B[jp];W[lq];B[ko];W[em];B[qh];W[km];B[lp] ;W[kq];B[np];W[ir];B[lm];W[ln];B[kn];W[mn];B[oo];W[po];B[ll] ;W[mp];B[mo];W[lo];B[mq];W[kp];B[jm];W[mp];B[kl];W[no];B[qq] ;W[ro];B[or];W[pq];B[nn];W[on];B[mo];W[nm];B[lp];W[no];B[mp] ;W[op];B[mr];W[lr];B[pr];W[oq];B[rr];W[nr];B[fc];W[jc];B[lc] ;W[ec];B[fd];W[df];B[je];W[hd];B[ge];W[he];B[hf];W[if];B[hg] ;W[ie];B[jd];W[hc];B[kc];W[fb];B[gb];W[eb];B[gc];W[hb];B[ga] ;W[jf];B[ih];W[jb];B[le];W[lf];B[mf];W[jh];B[kf];W[ii];B[hi] ;W[ij];B[hj];W[kg];B[lg];W[ki];B[hk];W[lh];B[hp];W[gr];B[mh] ;W[mi];B[nh];W[os];B[jq];W[ls];B[rp];W[qi];B[rh];W[ci];B[dh] ;W[ch];B[ee];W[de];B[ri];W[ph];B[pg];W[ps];B[qs];W[qr];B[pr] ;W[cm];B[bm];W[bl];B[cl];W[dm];B[bn];W[bk];B[er];W[rj];B[jr] ;W[ik];B[gm];W[gn];B[hm];W[fk];B[ej];W[fj];B[fi];W[ek];B[ei] ;W[ma];B[kb];W[rd];B[qc];W[ka];B[mm];W[nn];B[ks];W[nq];B[fr] ;W[gq];B[dl];W[gl];B[hl];W[dk];B[en] C[155 moves complete.] ) goban-1.1.orig/games/M-88-3.mgt0000644000175000017500000000352306252627042013560 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Kato Masao]DT[1988-09-28,29]RE[W+2.5]ID[88/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[hq];B[dj];W[ch];B[eh];W[cf];B[ho];W[fq];B[pn];W[ji];B[lc] ;W[ke];B[nd];W[md];B[mc];W[od];B[ne];W[pc];B[oe];W[oc];B[qc] ;W[qd];B[rd];W[pe];B[qe];W[pd];B[rf];W[qb];B[rc];W[mb];B[lb] ;W[ma];B[ic];W[ld];B[jc];W[rb];B[ng];W[gd];B[oa];W[ob];B[pa] ;W[pb];B[sb];W[qg];B[qf];W[sc];B[sd];W[na];B[he];W[hd];B[id] ;W[ie];B[if];W[je];B[jg];W[kg];B[kh];W[jh];B[hf];W[lg];B[ki] ;W[mh];B[kj];W[mj];B[ni];W[mi];B[gb];W[fb];B[fc];W[hb];B[eb] ;W[hc];B[cc];W[dc];B[db];W[cd];B[bc];W[hh];B[gg];W[fd];B[gh] ;W[ik];B[kl];W[gj];B[dh];W[jk];B[kk];W[in];B[hp];W[jm];B[iq] ;W[dl];B[ci];W[pq];B[oq];W[qp];B[qo];W[op];B[po];W[ln];B[nq] ;W[mm];B[nk];W[mk];B[nl];W[mo];B[lp];W[ck];B[fj];W[gi];B[cg] ;W[bh];B[bg];W[bi];B[df];W[qq];B[ml];W[ll];B[nm];W[lm];B[ro] ;W[hr];B[ee];W[ed];B[cp];W[cq];B[bq];W[dq];B[bo];W[co];B[bp] ;W[kq];B[lq];W[bf];B[ag];W[cn];B[cr];W[dr];B[cs];W[mr];B[lr] ;W[or];B[nr];W[ns];B[mq];W[rp];B[rr];W[qr];B[ms];W[ps];B[rs] ;W[sr];B[os];W[bd];B[fi];W[ns];B[cj];W[bj];B[bn];W[bb];B[cb] ;W[ac];B[fa];W[ha];B[ec];W[nj];B[oj];W[nh];B[oh];W[oi];B[ph] ;W[rq];B[os];W[sp];B[pr];W[qs];B[so];W[ss];B[bl];W[bk];B[ir] ;W[ek];B[ej];W[de];B[ff];W[gp];B[fk];W[fm];B[hm];W[im];B[hs] ;W[gs];B[is];W[cl];B[bm];W[gr];B[mg];W[lh];B[hk];W[hj];B[gk] ;W[ii];B[me];W[le];B[em];W[en];B[dm];W[cm];B[el];W[fl];B[dk] ;W[dn];B[ek];W[go];B[gm];W[ko];B[kp];W[fn];B[af];W[ae];B[no] ;W[jo];B[mf];W[hn];B[ip];W[fe];B[ef];W[ds];B[br];W[ah];B[dg] ;W[al];B[am];W[ak];B[pi];W[or];B[ba];W[ab];B[pr];W[ca];B[da] ;W[or];B[be];W[ce];B[pr];W[mp];B[np];W[or];B[jj];W[ij];B[pr] ;W[ig];B[jf];W[hg];B[nn];W[or];B[lo];W[mn];B[pr];W[kf];B[gf] ;W[or];B[ja];W[ns];B[ib];W[kb];B[os];W[pr];B[ns];W[kc];B[il] ;W[jl];B[hl];W[ni];B[sc];W[ra])goban-1.1.orig/games/T-03-2.mgt0000644000175000017500000000324206270526352013551 0ustar alal(;SZ[19]EV[3rd Tengen match, game 2]DT[1977-12-1]PB[Shimamura]BR[9d] PW[Sonoda]WR[8d]KM[5.5]RE[B+4.5]SO[Kido yearbook] ;B[pd];W[dp];B[qp];W[cc];B[fq];W[op];B[dn];W[fp];B[gp];W[fo];B[eq] ;W[do];B[cr];W[ip];B[go];W[gn];B[ho];W[fm];B[df];W[dh];B[dd];W[dc] ;B[fd];W[fb];B[bn];W[bo];B[dj];W[fh];B[fj];W[hh];B[hj];W[im];B[io] ;W[ie];B[cd];W[ch];B[gf];W[ig];B[jj];W[gl];B[gb];W[eb];B[hc];W[ge] ;B[gd];W[fe];B[ee];W[ff];B[eg];W[eh];B[fg];W[gg];B[gi];W[gh];B[kc] ;W[gk];B[hi];W[ek];B[ej];W[cl];B[ko];W[lq];B[bc];W[bb];B[bd];W[ab] ;B[ck];W[bl];B[oq];W[nq];B[pq];W[jp];B[hq];W[jo];B[lj];W[kg];B[bk] ;W[dk];B[bi];W[cj];B[ci];W[ak];B[bj];W[no];B[qn];W[qc];B[qd];W[pc] ;B[oc];W[ob];B[nb];W[rd];B[re];W[qe];B[od];W[rf];B[rc];W[se];B[rb] ;W[qj];B[qh];W[oe];B[oh];W[pe];B[oj];W[qm];B[pn];W[rm];B[qi];W[pj] ;B[ok];W[rj];B[ng];W[si];B[md];W[jd];B[jc];W[ld];B[le];W[kd];B[lc] ;W[sp];B[ro];W[so];B[sn];W[rn];B[sq];W[sm];B[rp];W[ir];B[bq];W[bp] ;B[rg];W[sg];B[qf];W[pi];B[ph];W[pf];B[qg];W[ol];B[pk];W[pm];B[on] ;W[nl];B[oi];W[mm];B[ll];W[lm];B[rk];W[sk];B[qk];W[hr];B[gr];W[dq] ;B[dr];W[cq];B[br];W[sh];B[or];W[nr];B[iq];W[jq];B[ns];W[ms];B[os] ;W[jr];B[fk];W[el];B[me];W[ki];B[kj];W[li];B[nk];W[sn];B[rr];W[ml] ;B[kl];W[mk];B[mj];W[km];B[kf];W[jf];B[id];W[je];B[lg];W[lh];B[jh] ;W[ji];B[ii];W[ih];B[mh];W[jg];B[mi];W[kh];B[he];W[hf];B[hd];W[bh] ;B[bf];W[nd];B[nc];W[ne];B[nn];W[mn];B[jl];W[ik];B[il];W[hk];B[ij] ;W[in];B[fl];W[em];B[mr];W[ls];B[cb];W[ca];B[ec];W[db];B[fc];W[gs] ;B[fs];W[hs];B[bg];W[ah];B[nf];W[ke];B[lf];W[ep];B[jm];W[jn];B[pp] ;W[hn];B[er];W[hl];B[oo];W[np];B[fa];W[ea];B[ga];W[ag];B[ef];W[gf] ;B[ap];W[ao];B[aq];W[cg];B[cf];W[ac];B[ad];W[af];B[ae];W[di];B[aj] ;W[al];B[sc])goban-1.1.orig/games/M-95-2.mgt0000644000175000017500000000314506252627044013557 0ustar alal(;FF[3]GM[1]VW[]SZ[19]PB[Kobayashi Koichi]BR[9 Dan]PW[Takemiya Masaki]WR[9 Dan]EV[20th Meijin title]RO[2]DT[1995-09-20,21]PC[ ]RE[W+0.5]US[Jan van der Steen, jansteen@cwi.nl]KM[5.5]B[pd]ID[95/2]BS[0]WS[0];W[dp];B[qp];W[dd];B[oq];W[qj];B[cj];W[ch];B[cm];W[gq] ;B[bp];W[jd];B[iq];W[nc];B[qf];W[pm];B[cf];W[df];B[dc];W[cc] ;B[ec];W[cd];B[hc];W[ib];B[ic];W[jc];B[hb];W[jb];B[he];W[dg] ;B[ob];W[nb];B[dq];W[eq];B[cq];W[dn];B[fo];W[fn];B[go];W[ep] ;B[cn];W[hp];B[kp];W[dm];B[dl];W[el];B[dk];W[pc];B[qc];W[oc] ;B[qb];W[oo];B[np];W[pp];B[pq];W[qo];B[rp];W[ro];B[hm];W[ek] ;B[gn];W[fm];B[jm];W[ip];B[jp];W[ir];B[jr];W[hq];B[jq];W[hk] ;B[jk];W[ii];B[cb];W[bb];B[db];W[kj];B[ll];W[pe];B[qd];W[oe] ;B[qg];W[og];B[if];W[jf];B[so];W[sn];B[sp];W[rm];B[bi];W[bh] ;B[jj];W[ji];B[ig];W[jg];B[ri];W[qi];B[rj];W[rk];B[qh];W[sj] ;B[rh];W[in];B[im];W[hn];B[lj];W[gm];B[ki];W[fe];B[ba];W[ab] ;B[fd];W[kh];B[li];W[nh];B[lh];W[lg];B[ol];W[pl];B[nn];W[ci] ;B[ej];W[bj];B[bk];W[ai];B[er];W[fr];B[dr];W[pb];B[hr];W[fj] ;B[ei];W[no];B[mo];W[nm];B[on];W[om];B[mn];W[pn];B[ge];W[ed] ;B[fb];W[ff];B[jn];W[mk];B[ml];W[lk];B[kk];W[mj];B[nl];W[mi] ;B[ih];W[mh];B[kj];W[hi];B[jh];W[kg];B[fi];W[co];B[bo];W[gi] ;B[hl];W[gl];B[oi];W[gr];B[is];W[id];B[hd];W[gg];B[fh];W[ie] ;B[gh];W[hh];B[hf];W[fg];B[eh];W[ph];B[od];W[nd];B[pi];W[pj] ;B[oj];W[pk];B[ok];W[qa];B[ra];W[pa];B[rc];W[ak];B[bl];W[ik] ;B[ij];W[hj];B[cp];W[do];B[si];W[sk];B[op];W[po];B[fk];W[gj] ;B[io];W[ho];B[jo];W[mm];B[lm];W[qe];B[re];W[pg];B[pf];W[of] ;B[hg];W[ha];B[ga];W[ia];B[eg];W[ef];B[il];W[gk];B[al];W[es] ;B[aj];W[dh];B[dj];W[ak];B[ds];W[fs];B[aj];W[kl];B[jl];W[ak] ;B[hs];W[aj])goban-1.1.orig/games/M-86-4.mgt0000644000175000017500000000300506252627042013552 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Kobayashi Koichi]DT[1986-10-08,09]RE[W+2.5]FF[3]ID[86/4]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dp];B[pq];W[dd];B[fq];W[dn];B[ip];W[qo];B[qm] ;W[oo];B[np];W[pl];B[qp];W[ql];B[ro];W[qn];B[qf];W[jc];B[cf] ;W[ch];B[cc];W[dc];B[cd];W[de];B[bf];W[df];B[mc];W[cg];B[db] ;W[eb];B[cb];W[go];B[gp];W[ho];B[hp];W[eq];B[er];W[dr];B[ep] ;W[dq];B[rn];W[rm];B[on];W[pm];B[no];W[qi];B[fk];W[eo];B[fi] ;W[dk];B[di];W[eh];B[fh];W[gj];B[fj];W[fg];B[hh];W[gg];B[dh] ;W[dg];B[ij];W[hl];B[jn];W[pc];B[qc];W[nc];B[nd];W[od];B[oe] ;W[oc];B[md];W[qd];B[pe];W[qb];B[rc];W[rb];B[rd];W[mb];B[lb] ;W[nb];B[kc];W[jd];B[el];W[cj];B[fn];W[fo];B[hm];W[nm];B[sb] ;W[pa];B[jl];W[jb];B[if];W[he];B[ea];W[fb];B[fr];W[gm];B[hn] ;W[gn];B[gl];W[km];B[jm];W[nn];B[mn];W[mm];B[ln];W[rg];B[oh] ;W[lm];B[io];W[po];B[pi];W[qj];B[ah];W[pr];B[qr];W[rq];B[qq] ;W[rp];B[rr];W[bg];B[ag];W[ce];B[be];W[bi];B[mj];W[ke];B[lf] ;W[le];B[mf];W[gh];B[gi];W[jg];B[ig];W[kf];B[bk];W[af];B[ae] ;W[ck];B[ai];W[aj];B[bj];W[bl];B[ds];W[cs];B[es];W[cr];B[ie] ;W[id];B[sq];W[rf];B[re];W[mh];B[bc];W[ak];B[lh];W[me];B[ne] ;W[li];B[kh];W[mi];B[nj];W[oj];B[ni];W[ki];B[jh];W[kk];B[kl] ;W[lk];B[ng];W[ji];B[ii];W[fm];B[fl];W[qh];B[pj];W[ok];B[ph] ;W[qg];B[pg];W[da];B[kg];W[nk];B[hf];W[gf];B[hd];W[ge];B[hc] ;W[ia];B[ca];W[ei];B[ej];W[eg];B[dl];W[cm];B[dj];W[kn];B[ko] ;W[op];B[oq];W[jk];B[ik];W[fa];B[ka];W[ja];B[ll];W[mk];B[ml] ;W[nl];B[jf];W[kb];B[la];W[ma];B[lc];W[sn];B[sp];W[mg];B[em] ;W[en];B[fp];W[lg];B[nf];W[pk];B[ra];W[se];B[ab];W[sm];B[so] ;W[da])goban-1.1.orig/games/Hon-77-1.mgt0000644000175000017500000000211506045540404014074 0ustar alal (;GM[1]SZ[19]DT[1977-05-09,10]KM[5.5]PB[Kato Masao]PW[Takemiya Masaki]RE[B+R]FF[3]BS[0]WS[0];B[pd];W[dc];B[pq];W[cp];B[pk];W[eq];B[de];W[fd];B[cc] ;W[cb];B[cd];W[eb];B[ci];W[ck];B[jq];W[po];B[np];W[qq];B[qr] ;W[qp];B[rr];W[pm];B[pf];W[lq];B[nq];W[nm];B[jd];W[pi];B[nk] ;W[ni];B[lk];W[lm];B[ki];W[ng];B[pg];W[kg];B[md];W[hq];B[oh] ;W[oi];B[pl];W[lh];B[kp];W[qm];B[rk];W[ig];B[jk];W[mj];B[mk] ;W[kn];B[lp];W[hm];B[gj];W[gg];B[ei];W[el];B[dq];W[cq];B[mn] ;W[nn];B[fq];W[ep];B[hp];W[gp];B[hf];W[hg];B[fe];W[ge];B[jf] ;W[jg];B[gf];W[ff];B[ee];W[if];B[he];W[ie];B[gd];W[hd];B[ge] ;W[id];B[gc];W[bc];B[bd];W[ac];B[jc];W[ri];B[li];W[nh];B[hi] ;W[hk];B[hj];W[mf];B[le];W[rg];B[lf];W[lg];B[qh];W[qi];B[rh] ;W[sh];B[re];W[ir];B[mi];W[mh];B[nf];W[hb];B[gb];W[jb];B[ic] ;W[hc];B[ib];W[je];B[dk];W[dl];B[ga];W[ba];B[ne];W[ph];B[qg] ;W[og];B[kf];W[ii];B[ij];W[ji];B[jj];W[hh];B[jh];W[ih];B[kh] ;W[kl];B[kk];W[fi];B[fh];W[eh];B[fj];W[fg];B[di];W[dg];B[ef] ;W[lj];B[kj];W[ha];B[eg];W[kd];B[kc];W[lc];B[kb];W[ld];B[lb] ;W[nb];B[mc];W[ke];B[me];W[mb];B[ja];W[pb];B[oc];W[ob];B[la] ;W[dh];B[gi];W[rf];B[rc];W[rl];B[sk])goban-1.1.orig/games/Hon-92-1.mgt0000644000175000017500000000226006045540452014075 0ustar alal (;GM[1]SZ[19]DT[1992-05-15,16]PC[Miyazaki]PB[Kobayashi Koichi]PW[Cho Chikun]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[ec];B[dp];W[pp];B[cd];W[fq];B[cn];W[de];B[ce] ;W[df];B[cg];W[dg];B[ch];W[cf];B[bf];W[be];B[bg];W[cc];B[dd] ;W[bd];B[ed];W[fd];B[ee];W[dc];B[fe];W[dh];B[di];W[ei];B[dj] ;W[ge];B[ff];W[fh];B[gd];W[fc];B[gg];W[he];B[gh];W[gi];B[hi] ;W[gj];B[ih];W[dm];B[cm];W[cl];B[ej];W[hj];B[ij];W[ik];B[jj] ;W[el];B[fk];W[eo];B[fm];W[do];B[co];W[cp];B[bp];W[cq];B[bq] ;W[dn];B[dq];W[cr];B[dr];W[fl];B[gk];W[hk];B[gl];W[bm];B[bn] ;W[an];B[bo];W[bj];B[bi];W[cj];B[ci];W[gn];B[fn];W[jk];B[fo] ;W[ep];B[hp];W[er];B[cs];W[hq];B[im];W[kj];B[iq];W[gp];B[hr] ;W[go];B[gm];W[io];B[gq];W[fp];B[lq];W[in];B[jm];W[ko];B[fg] ;W[fi];B[ln];W[lo];B[jh];W[ll];B[lm];W[ml];B[nn];W[mq];B[mr] ;W[mp];B[nr];W[oq];B[om];W[ok];B[or];W[qn];B[qm];W[pn];B[ol] ;W[kq];B[kr];W[lp];B[lr];W[nl];B[on];W[qk];B[pk];W[pj];B[pl] ;W[oi];B[ki];W[lj];B[qj];W[qi];B[rj];W[qq];B[li];W[mj];B[jd] ;W[nc];B[ph];W[pi];B[rk];W[pf];B[nd];W[md];B[ne];W[oc];B[pe] ;W[me];B[ng];W[qf];B[mf];W[pc];B[qh];W[mi];B[nh];W[lh];B[kf] ;W[oh];B[ni];W[nj];B[ri];W[og];B[re];W[kg];B[lf];W[jg];B[kh] ;W[jf];B[je];W[rc];B[rd];W[ii];B[ji];W[if];B[hd];W[hg];B[hh] )goban-1.1.orig/games/M-69-4.mgt0000644000175000017500000000202406252627042013553 0ustar alal(;GM[1]SZ[19]PB[Takagawa Kaku]PW[Rin Kaiho]KM[5]DT[1969-09-18,19]RE[W+R]ID[69/4]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[dq];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[ce];W[dh];B[df];W[fd];B[bc];W[jc];B[co] ;W[cl];B[fo];W[gq];B[cj];W[do];B[dn];W[cp];B[bn];W[dj];B[ci] ;W[dk];B[di];W[ei];B[eh];W[eg];B[fh];W[dg];B[bg];W[fj];B[ep] ;W[dp];B[en];W[eq];B[id];W[fg];B[gh];W[gg];B[hh];W[if];B[jd] ;W[hj];B[gk];W[gj];B[jh];W[kd];B[ke];W[ld];B[jf];W[ig];B[ih] ;W[jg];B[kg];W[kh];B[lg];W[jj];B[ge];W[hg];B[ji];W[kj];B[ki] ;W[lh];B[li];W[mh];B[le];W[gd];B[ic];W[ni];B[mi];W[nh];B[mk] ;W[hb];B[fe];W[ee];B[ef];W[de];B[cf];W[he];B[in];W[jn];B[jm] ;W[km];B[jl];W[kl];B[mm];W[im];B[ik];W[ij];B[hm];W[nl];B[lk] ;W[io];B[il];W[kk];B[oj];W[ph];B[ol];W[qk];B[mo];W[ho];B[bp] ;W[nd];B[nc];W[mc];B[me];W[md];B[ib];W[od];B[pd];W[of];B[gc] ;W[bh];B[ch];W[fc];B[gb];W[cg];B[bi];W[bf];B[ah];W[cd];B[be] ;W[ie];B[je];W[rd];B[rc];W[re];B[qf];W[rf];B[qb];W[nn];B[mn] ;W[ko];B[bq];W[bd];B[qg];W[rg];B[nf];W[pc];B[og];W[pb];B[qc] ;W[nb])goban-1.1.orig/games/Hon-96-4.sgf0000644000175000017500000000241006243540656014077 0ustar alal( ; EV[51st Honinbo title] RO[4] PB[Ryu Shikun] BR[7 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[1996-06-19/20] PC[Japan] RE[W+R] ; B[pd];W[dd];B[cp];W[pq];B[qo]; W[np];B[qk];W[eq];B[gq];W[do];B[co];W[dn];B[cm];W[iq];B[ip];W[jq]; B[go];W[dm];B[cl];W[dl];B[dk];W[ek];B[dj];W[cn];B[bn];W[bo];B[bp]; W[gm];B[hq];W[jp];B[in];W[io];B[ho];W[hp];B[fo];W[dp];B[hm];W[gk]; B[dh];W[il];B[jn];W[hl];B[km];W[cf];B[ej];W[bh];B[bk];W[kk];B[nn]; W[lo];B[jk];W[kl];B[ln];W[ko];B[ll];W[lk];B[ml];W[mk];B[nk];W[nj]; B[ok];W[qp];B[cc];W[cd];B[dc];W[ec];B[eb];W[fb];B[fc];W[ed];B[gb]; W[db];B[fa];W[cb];B[rp];W[po];B[pn];W[qn];B[ro];W[rq];B[oo];W[pp]; B[rn];W[nc];B[ob];W[jc];B[nb];W[hc];B[fd];W[he];B[ff];W[qf];B[qe]; W[pf];B[ne];W[nf];B[mf];W[me];B[ng];W[of];B[od];W[im];B[hn];W[le]; B[lf];W[kf];B[kg];W[jf];B[mh];W[oh];B[mj];W[oj];B[ki];W[qi];B[jg]; W[jj];B[hg];W[lc];B[rf];W[rg];B[re];W[rk];B[rl];W[nd];B[fk];W[fl]; B[el];W[em];B[fn];W[ek];B[bc];W[bb];B[el];W[fj];B[ek];W[fm];B[hj]; W[ij];B[gj];W[hk];B[if];W[ih];B[hh];W[cq];B[bq];W[cr];B[ie];W[qj]; B[pk];W[jd];B[pj];W[pi];B[ni];W[oi];B[oe];W[sj];B[ig];W[mb];B[br]; W[ir];B[hb];W[ib];B[md];W[je];B[ld];W[ke];B[hd];W[bj];B[cg];W[bg]; B[df];W[ce];B[ka];W[la];B[ia];W[kb];B[oc];W[mc];B[hr];W[mo];B[sq]; W[sr];B[sp];W[qr];B[da];W[mn];B[mm];W[cj];B[ck];W[ee] ) goban-1.1.orig/games/Hon-91-2.mgt0000644000175000017500000000255706045540452014106 0ustar alal (;GM[1]SZ[19]FF[3]DT[1991-05-27,28]PB[Kobayashi Koichi]PW[Cho Chikun]RE[B+4.5]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[fq];W[dn];B[jq];W[qf];B[qh] ;W[qc];B[qd];W[pc];B[od];W[rd];B[re];W[rc];B[qe];W[nc];B[pn] ;W[cf];B[me];W[jo];B[mc];W[nb];B[fo];W[eq];B[fr];W[fm];B[gm] ;W[gl];B[gn];W[hl];B[im];W[kq];B[kr];W[jr];B[ir];W[jp];B[js] ;W[iq];B[jr];W[lq];B[lo];W[hq];B[hr];W[ln];B[mo];W[ko];B[km] ;W[kn];B[fl];W[em];B[fk];W[dk];B[ml];W[jm];B[jl];W[lm];B[kl] ;W[ll];B[lk];W[mk];B[kj];W[nm];B[nl];W[om];B[no];W[ok];B[nk] ;W[nj];B[mj];W[ol];B[oj];W[ni];B[pj];W[in];B[hm];W[ql];B[rn] ;W[nq];B[or];W[qj];B[pi];W[qo];B[qn];W[oo];B[on];W[oq];B[mq] ;W[mr];B[mp];W[lr];B[pr];W[nr];B[op];W[pk];B[rk];W[qi];B[ph] ;W[rl];B[ej];W[ci];B[hd];W[gf];B[di];W[ch];B[fd];W[ef];B[if] ;W[er];B[ho];W[rj];B[rh];W[pq];B[qq];W[pm];B[dc];W[cc];B[cb] ;W[ec];B[db];W[ed];B[cd];W[jd];B[ke];W[eb];B[bd];W[nd];B[ne] ;W[ie];B[hf];W[he];B[gg];W[ge];B[jf];W[ea];B[bb];W[mm];B[mk] ;W[fh];B[fg];W[eh];B[gi];W[lc];B[md];W[mb];B[af];W[bg];B[dj] ;W[cj];B[eo];W[do];B[es];W[ds];B[fs];W[dr];B[ip];W[gh];B[hh] ;W[fi];B[gj];W[io];B[hp];W[qr];B[rr];W[qp];B[qs];W[rq];B[qr] ;W[os];B[po];W[dh];B[sd];W[sc];B[se];W[fj];B[ek];W[el];B[gk] ;W[bf];B[ae];W[ep];B[fp];W[ld];B[le];W[ag];B[en];W[dl];B[kd] ;W[kc];B[oc];W[ob];B[sm];W[sl];B[si];W[sj];B[ce];W[de];B[eg] ;W[dg];B[da];W[ff];B[hg];W[be];B[ad];W[ri];B[sh];W[rm];B[sn] ;W[ls];B[lp];W[kp])goban-1.1.orig/games/M-63-1.mgt0000644000175000017500000000310706252627042013545 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-08-04,05]ID[63/1]PB[Sakata Eio]PW[Fujisawa Shuko]KM[5]RE[B+1]FF[3]BR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[ec];W[oq];B[do];W[hd];B[cq] ;W[ed];B[dc];W[cc];B[gc];W[dd];B[gd];W[hc];B[ge];W[he];B[gf] ;W[hf];B[gg];W[ih];B[dh];W[nd];B[pe];W[of];B[qg];W[po];B[qo] ;W[pn];B[qm];W[ip];B[cf];W[fb];B[fc];W[be];B[dp];W[eq];B[cr] ;W[gb];B[eb];W[cb];B[nb];W[dj];B[gi];W[dm];B[hj];W[oc];B[ob] ;W[pc];B[pb];W[qd];B[rc];W[pf];B[qf];W[qe];B[re];W[cn];B[gq] ;W[gp];B[dn];W[hq];B[cm];W[ch];B[ci];W[di];B[bh];W[eh];B[dg] ;W[cl];B[bm];W[cj];B[bi];W[em];B[bn];W[fj];B[ii];W[hh];B[gh] ;W[bf];B[gm];W[bg];B[cg];W[gl];B[hl];W[hm];B[gk];W[fl];B[il] ;W[gn];B[jh];W[jf];B[im];W[hn];B[lh];W[pd];B[pq];W[or];B[no] ;W[op];B[nm];W[pm];B[ql];W[pl];B[pk];W[ok];B[pj];W[nl];B[lm] ;W[rd];B[sd];W[rf];B[se];W[pi];B[oj];W[rg];B[qh];W[qi];B[rh] ;W[ri];B[rk];W[lo];B[qr];W[ph];B[sf];W[ll];B[ml];W[mk];B[mm] ;W[nj];B[lk];W[lj];B[kk];W[kj];B[jj];W[ki];B[ji];W[qn];B[rn] ;W[rm];B[sm];W[ni];B[jg];W[lb];B[kn];W[mp];B[gr];W[fq];B[fs] ;W[hr];B[es];W[fr];B[gs];W[hs];B[dr];W[fo];B[kf];W[kd];B[pr] ;W[pp];B[rl];W[bl];B[lc];W[kc];B[mb];W[ld];B[la];W[kb];B[nh] ;W[oi];B[if];W[je];B[hg];W[jn];B[jm];W[ko];B[in];W[jo];B[os] ;W[ns];B[ps];W[nq];B[fk];W[ek];B[ka];W[ja];B[ma];W[hb];B[bj] ;W[ie];B[bk];W[al];B[am];W[ck];B[ig];W[rj];B[qk];W[lg];B[kh] ;W[mg];B[mh];W[ng];B[kg];W[pg];B[sg];W[mc];B[lf];W[mf];B[fi] ;W[ei];B[ah];W[ag];B[om];W[ak];B[aj];W[ol];B[io];W[ho];B[le] ;W[me];B[nc];W[oe];B[er];W[en];B[ep];W[fp];B[fa];W[ef];B[eg] ;W[df];B[ff];W[fh];B[fg];W[ga];B[ea];W[ca];B[mo];W[ln];B[km] ;W[np];B[sk];W[oh])goban-1.1.orig/games/T-14-2.mgt0000644000175000017500000000231406445672416013561 0ustar alal(;B[qd]RO[2]KM[5.5]RE[B+R]US[Jan van Rongen]SO[Kido YB -- thx to NGoB] GC[175 moves]EV[Tengen 14th]PB[Cho Chikun]BR[Tengen]PW[Sonoda Yuichi] WR[9d]DT[1988];W[dp];B[cd];W[pp];B[ec];W[nc];B[pc];W[kc];B[qn];W[np];B[rp];W[dj] ;B[qq];W[ip];B[on];W[cf];B[kp];W[nn];B[nm];W[mn];B[oo];W[mq];B[kn];W[mm];B[lr] ;W[mk];B[jr];W[jl];B[fp];W[dn];B[dq];W[cq];B[eq];W[cr];B[hq];W[gd];B[ee];W[fc] ;B[eb];W[dh];B[cl];W[dl];B[co];W[cn];B[bn];W[do];B[ck];W[bm];B[dk];W[ej];B[el] ;W[gk];B[fm];W[of];B[qg];W[oh];B[ff];W[hf];B[gg];W[hg];B[nb];W[mc];B[hl];W[dd] ;B[ed];W[bd];B[cc];W[hk];B[nl];W[ml];B[ni];W[oj];B[oi];W[pi];B[ph];W[pg];B[qh] ;W[pk];B[qi];W[pj];B[ne];W[nf];B[od];W[mf];B[ld];W[lc];B[me];W[lf];B[kd];W[ob] ;B[oc];W[mb];B[je];W[jg];B[il];W[ik];B[jm];W[qf];B[rf];W[bc];B[ce];W[be];B[df] ;W[cb];B[db];W[bb];B[cg];W[bf];B[kl];W[jk];B[dg];W[pb];B[qb];W[pq];B[ql];W[rk] ;B[gi];W[hh];B[gh];W[fk];B[fn];W[qr];B[rr];W[qp];B[rq];W[qo];B[ro];W[pm];B[pl] ;W[qm];B[pn];W[rm];B[rl];W[sl];B[om];W[nk];B[rn];W[sm];B[jc];W[jb];B[ib];W[kb] ;B[ic];W[gf];B[dr];W[ep];B[fq];W[eh];B[eg];W[mr];B[pr];W[or];B[qs];W[lq];B[kq] ;W[ls];B[cm];W[bo];B[kr];W[gm];B[gl];W[fl];B[gn];W[ri];B[kk];W[kj];B[bl];W[qj] ;B[qe];W[pf];B[rg];W[an];B[hi];W[ii];B[bi])goban-1.1.orig/games/Hon-82-3.mgt0000644000175000017500000000272706045540436014110 0ustar alal (;GM[1]PB[Cho Chikun]PW[Kobayashi Koichi]SZ[19]FF[3]DT[1982-06-16,17]PC[Futamiura]RE[W+4.5]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[dq];W[pq];B[ce];W[ci];B[fe];W[gc];B[hd] ;W[hc];B[id];W[ic];B[jd];W[kc];B[ck];W[ei];B[ek];W[gi];B[dh] ;W[di];B[ii];W[hj];B[jk];W[hl];B[do];W[qo];B[hn];W[fl];B[dm] ;W[jl];B[ik];W[il];B[fj];W[dk];B[fi];W[dl];B[el];W[cl];B[cm] ;W[bl];B[jn];W[fh];B[em];W[gg];B[cc];W[cb];B[dd];W[bc];B[ec] ;W[cd];B[db];W[cc];B[de];W[gd];B[fb];W[be];B[ge];W[hf];B[he] ;W[jf];B[bf];W[af];B[if];W[ig];B[kf];W[kg];B[jc];W[jb];B[lc] ;W[lb];B[kd];W[kb];B[mc];W[mb];B[lg];W[lf];B[mf];W[le];B[me] ;W[ke];B[ld];W[lh];B[mg];W[kk];B[nb];W[ob];B[nc];W[gb];B[kq] ;W[ko];B[ip];W[qj];B[nq];W[qg];B[oo];W[nr];B[or];W[oq];B[pr] ;W[qr];B[mr];W[np];B[mq];W[op];B[qn];W[po];B[pn];W[ro];B[ok] ;W[mj];B[ag];W[ae];B[mh];W[li];B[qk];W[rk];B[pj];W[qi];B[lk] ;W[mk];B[ll];W[ml];B[kl];W[kj];B[mm];W[nm];B[mn];W[lm];B[km] ;W[nn];B[mo];W[no];B[lj];W[kh];B[hh];W[hg];B[eh];W[ej];B[fk] ;W[hk];B[ph];W[pi];B[oi];W[oh];B[rl];W[pl];B[pg];W[rj];B[ji] ;W[ki];B[ol];W[ql];B[og];W[qf];B[ma];W[la];B[na];W[bm];B[bn] ;W[an];B[bo];W[cg];B[mp];W[re];B[rd];W[gn];B[go];W[hm];B[jm] ;W[fn];B[fo];W[pk];B[oj];W[om];B[qe];W[ao];B[ap];W[am];B[bp] ;W[ef];B[qq];W[ps];B[ns];W[rq];B[fg];W[gh];B[ff];W[eg];B[cf] ;W[dg];B[fd];W[bg];B[je];W[kf];B[pf];W[rf];B[qh];W[rh];B[sd] ;W[in];B[ho];W[im];B[io];W[ga];B[sf];W[sg];B[se];W[rg];B[en] ;W[fm];B[mi];W[nl];B[gj];W[hi];B[ni];W[gk];B[ca];W[ba];B[da] ;W[qs];B[os];W[ie];B[eb];W[fa];B[ee];W[fc];B[if])goban-1.1.orig/games/Hon-96-1.sgf0000644000175000017500000000307606243540634014101 0ustar alal( ; GM[1] SO[Go Weekly 1996/05/27] EV[51st Honinbo 1996] RO[1] PC[Japan] RE[B+8.5] SZ[19] KM[5.5] PW[Ryu Shikun] WR[7 dan] PB[Cho Chikun] BR[9 dan] DT[1996/05/13,1996/05/14] ; B[pd];W[dd];B[pq];W[dp];B[qk];W[mp];B[jp];W[pp]; B[qp];W[qq];B[qo];W[rr];B[pr];W[po];B[qn];W[oq];B[or];W[nq];B[nr]; W[mr];B[qr];W[rq];B[rs];W[pn];B[pm];W[om];B[pl];W[gp];B[no];W[nn]; B[de];W[ee];B[lq];W[mq];B[ed];W[cd];B[df];W[ef];B[eg];W[dg];B[op]; W[cf];B[mo];W[lp];B[hq];W[ko];B[on];W[io];B[jo];W[jn];B[gq];W[ip]; B[jq];W[fp];B[kn];W[jm];B[km];W[iq];B[ir];W[jl];B[kl];W[jk];B[ck]; W[cm];B[dh];W[ce];B[cg];W[fg];B[df];W[ci];B[fh];W[gh];B[gg];W[ff]; B[gi];W[hh];B[fj];W[bg];B[hi];W[ih];B[ii];W[jh];B[ji];W[kh];B[ki]; W[lc];B[lh];W[lg];B[le];W[li];B[mh];W[mg];B[nh];W[me];B[kg];W[kf]; B[jg];W[hg];B[md];W[ld];B[lj];W[of];B[ne];W[ng];B[mc];W[ke];B[lb]; W[kb];B[mb];W[jc];B[qe];W[oh];B[fr];W[er];B[oi];W[qc];B[rd];W[rc]; B[pc];W[jr];B[kr];W[js];B[ks];W[pi];B[oj];W[di];B[ek];W[ei];B[fi]; W[kq];B[is];W[jr];B[js];W[lr];B[eq];W[dr];B[fq];W[ep];B[hr];W[gs]; B[lo];W[kp];B[jr];W[eh];B[dq];W[cq];B[fs];W[dl];B[gm];W[gl];B[hl]; W[hk];B[gk];W[fl];B[el];W[fm];B[em];W[hm];B[cn];W[bn];B[co];W[bo]; B[fn];W[gn];B[cp];W[bq];B[cl];W[bm];B[dm];W[pb];B[ob];W[qa];B[fk]; W[il];B[oa];W[rf];B[re];W[qf];B[ri];W[oe];B[od];W[bp];B[ph];W[pe]; B[qd];W[lf];B[pg];W[pf];B[cr];W[br];B[rh];W[qh];B[qg];W[rg];B[qi]; W[og];B[pj];W[kk];B[lk];W[dn];B[en];W[eo];B[bj];W[bi];B[ka];W[ja]; B[la];W[nf];B[nd];W[sh];B[si];W[se];B[sd];W[aj];B[ak];W[ai];B[hj]; W[bl];B[bk];W[hp];B[ls];W[ms];B[ns];W[cs];B[np];W[es];B[fo];W[go]; B[al];W[am];B[sg];W[sf];B[sh] ) goban-1.1.orig/games/Hon-61-3.mgt0000644000175000017500000000315406045540370014075 0ustar alal (;GM[1]SZ[19]DT[1961-06-16,17]PC[Yonezawa]PB[Sakata Eio]PW[Takagawa Kaku]RE[B+0.5]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dp];B[qp];W[dc];B[oq];W[qk];B[cf];W[cd];B[ci] ;W[ck];B[qi];W[qn];B[jc];W[hc];B[fq];W[dn];B[dr];W[cq];B[iq] ;W[qc];B[pc];W[qd];B[qe];W[re];B[rf];W[qf];B[pe];W[rg];B[pf] ;W[sf];B[qg];W[rf];B[je];W[bg];B[cg];W[bh];B[ch];W[bf];B[ed] ;W[ce];B[gd];W[ef];B[dk];W[dl];B[ec];W[ie];B[id];W[hd];B[he] ;W[if];B[ge];W[jf];B[kf];W[ke];B[jd];W[kg];B[lf];W[fg];B[ek] ;W[lg];B[mf];W[cj];B[dj];W[bi];B[hg];W[gi];B[el];W[em];B[gl] ;W[ei];B[di];W[ih];B[gg];W[qh];B[ph];W[pg];B[og];W[oh];B[qg] ;W[eb];B[fb];W[pg];B[pi];W[ng];B[qg];W[nf];B[ne];W[pg];B[of] ;W[mg];B[me];W[kl];B[qg];W[il];B[de];W[kq];B[hk];W[ij];B[hj] ;W[hi];B[fm];W[fn];B[gn];W[fo];B[dq];W[cp];B[ik];W[jj];B[go] ;W[pg];B[qb];W[rb];B[qg];W[db];B[pb];W[pg];B[pm];W[qm];B[pk] ;W[pn];B[ql];W[rl];B[pl];W[oo];B[op];W[rj];B[qg];W[rh];B[fh] ;W[mq];B[ro];W[hp];B[hq];W[gp];B[gq];W[eh];B[fi];W[fj];B[gh] ;W[gj];B[ej];W[ho];B[hn];W[in];B[fp];W[io];B[cl];W[dm];B[eo] ;W[en];B[df];W[cr];B[ep];W[do];B[oi];W[jr];B[ir];W[nh];B[jk] ;W[kk];B[ni];W[mi];B[mj];W[lj];B[li];W[mh];B[qj];W[rk];B[mk] ;W[dd];B[ee];W[ds];B[es];W[cs];B[er];W[nr];B[or];W[fa];B[gb] ;W[rn];B[nm];W[jl];B[ra];W[rc];B[hl];W[mn];B[mm];W[rq];B[rp] ;W[qq];B[pp];W[rr];B[os];W[qs];B[pr];W[np];B[qr];W[ga];B[ha] ;W[ea];B[hb];W[jq];B[nq];W[mr];B[ln];W[rs];B[sr];W[nn];B[km] ;W[lo];B[ko];W[kp];B[ki];W[ji];B[jo];W[im];B[jp];W[ig];B[js] ;W[ks];B[is];W[mp];B[ll];W[so];B[sp];W[sn];B[sq];W[ns];B[ss] ;W[jn];B[kn];W[om];B[ol];W[fk];B[fl];W[hf];B[gf];W[ri];B[hm] ;W[kj];B[hh];W[ip];B[sb];W[sc];B[on];W[sa];B[qa];W[om];B[pg] ;W[on];B[sb];B[sa])goban-1.1.orig/games/M-87-2.mgt0000644000175000017500000000242306252627042013554 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Rin Kaiho]DT[1987-09-30,10-01]RE[W+R]ID[87/2]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[dq];B[pk];W[do];B[jp];W[nc];B[de] ;W[ce];B[cf];W[cd];B[pf];W[pb];B[qc];W[kc];B[df];W[fd];B[dj] ;W[cl];B[po];W[hq];B[cq];W[dr];B[jd];W[kd];B[je];W[ke];B[jf] ;W[lg];B[cp];W[co];B[ec];W[fc];B[ed];W[eb];B[db];W[fb];B[cb] ;W[bc];B[bb];W[bf];B[bg];W[be];B[ad];W[cg];B[bh];W[ci];B[eg] ;W[ch];B[bi];W[cj];B[bj];W[bk];B[dk];W[ck];B[cc];W[ib];B[dd] ;W[lp];B[ln];W[ko];B[cr];W[bo];B[gq];W[gr];B[fq];W[fr];B[dp] ;W[ep];B[eq];W[er];B[eo];W[fp];B[gp];W[fo];B[hp];W[iq];B[gn] ;W[en];B[jq];W[kn];B[jr];W[lr];B[ip];W[hr];B[bp];W[bs];B[jm] ;W[km];B[mq];W[mp];B[nq];W[lq];B[jl];W[kl];B[jk];W[lj];B[ml] ;W[kk];B[ji];W[qh];B[qj];W[oh];B[ni];W[ki];B[jh];W[oj];B[pi] ;W[oi];B[ph];W[pg];B[og];W[qg];B[of];W[re];B[ri];W[qd];B[pc] ;W[rc];B[rb];W[qb];B[rd];W[sd];B[qe];W[qp];B[qq];W[in];B[rd] ;W[hl];B[gl];W[gk];B[fl];W[hk];B[ei];W[hi];B[gf];W[gg];B[fg] ;W[ig];B[hg];W[jg];B[br];W[aq];B[if];W[kg];B[hn];W[hm];B[fn] ;W[qd];B[cs];W[ap];B[rd];W[qo];B[sc];W[rk];B[go];W[eo];B[rm] ;W[qi];B[pj];W[rj];B[ir];W[ar];B[ok];W[qm];B[ql];W[rl];B[qn] ;W[pm];B[rn];W[pn];B[pp];W[sm];B[rp];W[sn];B[ro];W[rf];B[hh] ;W[ih];B[gi];W[fk];B[dl];W[em];B[el];W[nj];B[on];W[nk];B[nl] ;W[he];B[hf];W[ob])goban-1.1.orig/games/Hon-65-3.mgt0000644000175000017500000000201306045540372014074 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1965-05-17,18]PB[Yamabe Toshiro]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan];B[qe];W[qp];B[ep];W[pc];B[ce];W[cp];B[nd];W[od];B[oe] ;W[nc];B[md];W[mc];B[ld];W[lc];B[kd];W[jc];B[dn];W[op];B[bo] ;W[er];B[dq];W[iq];B[qk];W[cc];B[dd];W[cj];B[dc];W[bm];B[cq] ;W[oj];B[pl];W[mj];B[pi];W[pe];B[pf];W[pd];B[of];W[qf];B[re] ;W[qd];B[qg];W[lp];B[ch];W[dm];B[em];W[dl];B[kq];W[lq];B[kp] ;W[ko];B[jp];W[fp];B[jo];W[kr];B[kn];W[lo];B[jr];W[lr];B[hp] ;W[hq];B[jq];W[gp];B[gn];W[ir];B[po];W[qo];B[ml];W[kj];B[ij] ;W[kl];B[eq];W[fr];B[js];W[gs];B[ip];W[is];B[ln];W[mm];B[mn] ;W[nm];B[pp];W[pq];B[oo];W[oq];B[nl];W[om];B[ol];W[lm];B[lk] ;W[kk];B[lj];W[fn];B[im];W[gm];B[hm];W[pm];B[fm];W[gl];B[en] ;W[hn];B[go];W[ql];B[rl];W[qm];B[li];W[db];B[eb];W[fo];B[ho] ;W[fk];B[dr];W[rk];B[rj];W[ki];B[lh];W[bb];B[bd];W[fb];B[ea] ;W[ec];B[fc];W[ed];B[gb];W[bf];B[de];W[fd];B[gc];W[cg];B[dg] ;W[bh];B[cf];W[bg];B[be];W[bn];B[co];W[ff];B[fh];W[ef];B[df] ;W[gh];B[gi];W[eh];B[hh];W[ib];B[ci];W[bi];B[eg];W[gd];B[hc] ;W[hd];B[ic];W[id];B[ha];W[jb])goban-1.1.orig/games/T-12-4.mgt0000644000175000017500000000212106252627522013547 0ustar alal(;GM[1]VW[]SZ[19]PW[Kobayashi Koichi]PB[Sonoda Yuichi]DT[1986-12-16]RE[W+R]ID[12/4]FF[3];B[pd];W[dd];B[pp];W[dp];B[fq];W[cn];B[jp];W[qn];B[np] ;W[rp];B[jd];W[qf];B[ol];W[qq];B[pq];W[hc];B[of];W[ph];B[oh] ;W[oi];B[pg];W[qg];B[pi];W[qh];B[ni];W[oj];B[nj];W[nh];B[og] ;W[pj];B[mh];W[hq];B[hp];W[iq];B[ip];W[jq];B[kq];W[gq];B[gp] ;W[eq];B[fp];W[fr];B[er];W[gs];B[he];W[fc];B[ic];W[pm];B[jr] ;W[kp];B[lq];W[dq];B[qd];W[oc];B[pb];W[kc];B[jb];W[pc];B[qc] ;W[ob];B[qb];W[kb];B[kd];W[ld];B[le];W[mb];B[md];W[lc];B[dm] ;W[eh];B[df];W[ef];B[ee];W[de];B[eg];W[ff];B[fg];W[dg];B[cf] ;W[ch];B[fh];W[gf];B[ei];W[cg];B[bf];W[ce];B[hg];W[dj];B[dn] ;W[co];B[om];W[on];B[ro];W[nn];B[qo];W[rn];B[pl];W[ql];B[qk] ;W[rl];B[qj];W[qi];B[pk];W[rj];B[hf];W[fe];B[nc];W[me];B[od] ;W[ke];B[id];W[lf];B[mg];W[ne];B[nd];W[kg];B[jf];W[jh];B[jj] ;W[ii];B[ij];W[hh];B[gg];W[gi];B[ej];W[hj];B[ci];W[nb];B[be] ;W[bd];B[bh];W[re];B[oe];W[hb];B[dc];W[ec];B[cc];W[cd];B[bc] ;W[ad];B[eb];W[fb];B[fa];W[ib];B[cb];W[ga];B[ea];W[ba];B[ca] ;W[ab];B[ac];W[sp];B[cm];W[mm];B[ok];W[bm];B[bl];W[bn];B[qr] ;W[rr];B[qp];W[rq];B[pr];W[bk])goban-1.1.orig/games/M-68-1.sgf0000644000175000017500000000201406252650314013534 0ustar alal( ; GM[1] EV[7th Meijin Title Match] RO[1] PB[Takagawa Shukaku] BR[9 dan] PW[Rin Kaiho] WR[Meijin] DT[1968/Aug] PC[Tokyo] RE[B+R] KM[5] SZ[19] ;B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[ld];W[nd];B[pf];W[qb] ;B[qj];W[eq];B[np];W[qq];B[qr];W[qp];B[qm];W[oq];B[or];W[nq] ;B[op];W[pp];B[pr];W[mq];B[mp];W[lq];B[rq];W[rp];B[sq];W[pm] ;B[pl];W[lp];B[mn];W[qn];B[om];W[rm];B[pn];W[ro];B[hp];W[en] ;B[cn];W[hn];B[rl];W[sl];B[sk];W[sm];B[lo];W[ko];B[jp];W[kp] ;B[in];W[ln];B[mo];W[io];B[ho];W[im];B[jn];W[jo];B[ep];W[gn] ;B[fp];W[jm];B[fq];W[id];B[lf];W[cf];B[ck];W[nf];B[rj];W[oh] ;B[pg];W[ke];B[le];W[rc];B[lh];W[ec];B[ch];W[kc];B[lc];W[kb] ;B[lb];W[mg];B[lg];W[ni];B[kd];W[jd];B[ig];W[hr];B[cc];W[cd] ;B[ib];W[jb];B[eb];W[db];B[fc];W[fb];B[gb];W[ea];B[he];W[hc] ;B[gc];W[hb];B[ha];W[gd];B[fd];W[ge];B[ed];W[hf];B[dc];W[cb] ;B[bc];W[eb];B[ff];W[bb];B[df];W[hg];B[hh];W[gh];B[if];W[ie] ;B[hi];W[gg];B[cg];W[bd];B[eh];W[gi];B[hj];W[gj];B[lj];W[pi] ;B[qh];W[cm];B[bm];W[ej];B[dm];W[cj];B[bj];W[dk];B[cl];W[rd] ;B[gr] ) goban-1.1.orig/games/M-91-1.mgt0000644000175000017500000000345306252627042013552 0ustar alal(;GM[1]VW[]FF[3]DT[1991-09-11,12]SZ[19]PB[Rin Kaiho]PW[Kobayashi Koichi]KM[5.5]PC[Singapore]RE[W+2.5]ID[91/1]RO[1]BS[0]WS[0];B[pd];W[dd];B[pq];W[dp];B[qo];W[jq];B[cn];W[dn];B[dm] ;W[co];B[en];W[do];B[em];W[fp];B[cf];W[di];B[ef];W[fd];B[ge] ;W[dg];B[df];W[hc];B[fi];W[dk];B[ek];W[ej];B[fj];W[el];B[fl] ;W[fk];B[gk];W[ek];B[gm];W[cg];B[eg];W[bg];B[ec];W[ed];B[cc] ;W[dc];B[cd];W[mq];B[cl];W[bk];B[pj];W[nd];B[pf];W[pc];B[qc] ;W[oc];B[qb];W[kd];B[hq];W[ip];B[eq];W[dq];B[dr];W[cr];B[hp] ;W[ho];B[go];W[gp];B[ep];W[eo];B[fo];W[fq];B[gr];W[fr];B[io] ;W[hn];B[jo];W[hl];B[hm];W[in];B[kq];W[kr];B[il];W[jn];B[ko] ;W[kn];B[jr];W[ir];B[iq];W[js];B[jp];W[lo];B[jr];W[lq];B[ln] ;W[mo];B[jq];W[jl];B[lr];W[mm];B[ks];W[ik];B[im];W[jk];B[hk] ;W[qh];B[qj];W[oh];B[lk];W[ll];B[nn];W[mn];B[ck];W[cj];B[ne] ;W[me];B[nf];W[ni];B[nk];W[rf];B[qe];W[pn];B[mh];W[mi];B[li] ;W[lh];B[nh];W[oj];B[ok];W[lj];B[ki];W[mj];B[pi];W[ng];B[mg] ;W[oi];B[po];W[on];B[qm];W[ph];B[id];W[ic];B[nm];W[ii];B[mk] ;W[kj];B[mf];W[oo];B[op];W[no];B[md];W[mc];B[le];W[ld];B[db] ;W[eb];B[ea];W[fb];B[cb];W[or];B[pr];W[ri];B[rj];W[pl];B[ql] ;W[ol];B[pk];W[gn];B[fn];W[bl];B[bn];W[bm];B[cm];W[gj];B[hj] ;W[gi];B[hi];W[gh];B[hh];W[fh];B[bf];W[kh];B[ih];W[jh];B[ij] ;W[jj];B[ag];W[hf];B[if];W[ie];B[jf];W[je];B[he];W[gg];B[gf] ;W[hg];B[ig];W[re];B[rd];W[pb];B[gb];W[hb];B[fa];W[fc];B[bi] ;W[ci];B[rg];W[qg];B[qf];W[sg];B[kf];W[hd];B[bh];W[bj];B[eh] ;W[ei];B[bp];W[bq];B[pa];W[oa];B[qa];W[mr];B[ke];W[jd];B[nb] ;W[nc];B[ob];W[mb];B[na];W[ma];B[oa];W[ps];B[qs];W[os];B[qr] ;W[sj];B[sk];W[si];B[rl];W[oq];B[np];W[nl];B[og];W[qn];B[rn] ;W[bo];B[ao];W[er];B[se];W[rh];B[nq];W[nr];B[pm];W[om];B[jm] ;W[km];B[kk];W[kl];B[fs];W[es];B[gs];W[gq];B[is];W[ha];B[ga] ;W[od];B[oe];W[cp];B[ap];W[aq];B[an];W[am];B[gl];W[de];B[ce] ;W[ms];B[ls];W[lg];B[me];W[aj];B[af];W[ji])goban-1.1.orig/games/Hon-88-3.mgt0000644000175000017500000000265706045540446014121 0ustar alal (;GM[1]SZ[19]DT[1988-06-08,09]PC[Kyoto]PW[Otake Hideo]PB[Takemiya Masaki]KM[5.5]RE[B+4.5]FF[3]BS[0]WS[0];B[pd];W[dp];B[pp];W[dc];B[pj];W[nq];B[pn];W[jp];B[de] ;W[ce];B[cf];W[cd];B[gf];W[gc];B[dm];W[fp];B[gm];W[no];B[df] ;W[nm];B[pl];W[id];B[cn];W[co];B[hj];W[nc];B[pf];W[gh];B[if] ;W[ih];B[jj];W[kh];B[kf];W[fi];B[dj];W[fk];B[lj];W[gl];B[hm] ;W[ik];B[ji];W[fm];B[fn];W[gn];B[em];W[fl];B[go];W[hn];B[fo] ;W[in];B[do];W[cp];B[gp];W[fq];B[jl];W[il];B[ej];W[ij];B[jh] ;W[qc];B[pc];W[pb];B[qd];W[rb];B[rc];W[qb];B[oq];W[nr];B[gq] ;W[qq];B[qp];W[or];B[oc];W[ob];B[nd];W[mc];B[md];W[ld];B[le] ;W[kd];B[rq];W[nk];B[ml];W[nl];B[ni];W[fr];B[lo];W[jm];B[mn] ;W[nn];B[kl];W[pq];B[rr];W[op];B[bf];W[ii];B[lq];W[mj];B[mi] ;W[lk];B[ll];W[kn];B[ln];W[mp];B[je];W[hd];B[rd];W[pm];B[qm] ;W[om];B[pk];W[kj];B[li];W[be];B[bn];W[bo];B[gr];W[an];B[am] ;W[ao];B[bm];W[dh];B[eh];W[ei];B[di];W[eg];B[ch];W[jk];B[kk] ;W[jg];B[ki];W[ig];B[kg];W[dg];B[dr];W[dq];B[cr];W[bq];B[jq] ;W[qr];B[cg];W[fg];B[er];W[es];B[br];W[aq];B[ar];W[fs];B[ds] ;W[bs];B[eo];W[eq];B[gs];W[cs];B[ip];W[kp];B[kq];W[ks];B[kr] ;W[ms];B[js];W[fe];B[ed];W[ec];B[fd];W[fc];B[ge];W[po];B[qo] ;W[on];B[qn];W[rs];B[mk];W[ls];B[lp];W[ee];B[dd];W[ae];B[jd] ;W[jc];B[gg];W[fh];B[gd];W[sb];B[ke];W[kc];B[ko];W[jo];B[nj] ;W[sr];B[rp];W[af];B[ag];W[fj];B[km];W[jn];B[hg];W[he];B[hf] ;W[el];B[dl];W[ek];B[dk];W[sc];B[sd];W[hh];B[ho];W[ok];B[oj] ;W[mm];B[lm];W[mq];B[lr];W[mr];B[oo];W[qs];B[sq];W[po];B[ss] ;W[oo];B[sr])goban-1.1.orig/games/M-72-2.sgf0000644000175000017500000000335406252650726013547 0ustar alal( ; GM[1] TM[1800] DT[1972-] EV[11th Meijin 1972] RO[2] BR[Meijin] WR[9 dan] KM[5] PB[Rin Kaiho] PW[Fujisawa Shuko] RE[B+1] ;B[qd];W[dc];B[dq];W[co];B[pp];W[oc];B[de];W[cg];B[cc] ;W[cb];B[cd];W[eb];B[ef];W[gd];B[dh];W[ci];B[ch];W[bh];B[bg] ;W[ep];B[eq];W[gp];B[fp];W[fo];B[fq];W[go];B[bi];W[gq];B[cp] ;W[nq];B[pn];W[bo];B[bp];W[ql];B[ld];W[me];B[od];W[pd];B[pe] ;W[pc];B[qc];W[mc];B[oe];W[md];B[qh];W[jd];B[pq];W[lp];B[qj] ;W[om];B[np];W[mp];B[nr];W[mr];B[oq];W[mq];B[nn];W[ok];B[if] ;W[he];B[oj];W[mn];B[nm];W[nk];B[mi];W[lk];B[mm];W[mg];B[ln] ;W[mj];B[li];W[ni];B[nh];W[oi];B[pj];W[nj];B[ko];W[jp];B[mh] ;W[pi];B[qg];W[lg];B[ji];W[jk];B[ed];W[fc];B[rk];W[kh];B[ki] ;W[ih];B[ik];W[jl];B[kp];W[kq];B[jq];W[jr];B[iq];W[ir];B[ij] ;W[jn];B[jo];W[hl];B[jh];W[di];B[ah];W[eh];B[eg];W[jg];B[ei] ;W[hh];B[ej];W[qb];B[rb];W[dk];B[gg];W[hf];B[ek];W[dl];B[do] ;W[dn];B[cn];W[eo];B[dp];W[bn];B[cm];W[dm];B[bm];W[bl];B[ao] ;W[on];B[oo];W[mo];B[ol];W[pk];B[km];W[pm];B[kr];W[lq];B[qm] ;W[pl];B[no];W[qn];B[qo];W[rm];B[ro];W[il];B[or];W[ip];B[io] ;W[hp];B[pb];W[ob];B[qa];W[gi];B[ng];W[cl];B[an];W[fh];B[gj] ;W[ii];B[jj];W[nf];B[of];W[bj];B[gk];W[bc];B[bd];W[ab];B[fm] ;W[ll];B[gm];W[en];B[lm];W[rn];B[rl];W[po];B[in];W[nl];B[pn] ;W[qi];B[ri];W[po];B[oa];W[nb];B[pn];W[ml];B[gr];W[hr];B[fr] ;W[ad];B[be];W[fg];B[ff];W[gf];B[fi];W[gh];B[jm];W[sl];B[ms] ;W[ls];B[ns];W[sk];B[rj];W[so];B[sp];W[sm];B[sn];W[rh];B[rg] ;W[so];B[lo];W[hq];B[sn];W[dg];B[bh];W[so];B[jq];W[iq];B[sn] ;W[fe];B[ec];W[so];B[ig];W[hg];B[sn];W[na];B[so];W[pa];B[sj] ;W[qm];B[oa];W[sh];B[sg];W[pa];B[dd];W[db];B[oa];W[qk];B[si] ;W[pa];B[ks];W[js];B[oa];W[dj];B[pa];W[oh];B[og];W[ph];B[pg] ;W[fl];B[gl];W[el];B[ae];W[ac];B[hs];W[fk];B[fj];W[nd];B[ne] ;W[mf];B[lh];W[kg];B[fd];W[al];B[po];W[aj] C[266 moves complete.] ) goban-1.1.orig/games/Hon-78-2.mgt0000644000175000017500000000276706045540406014115 0ustar alal (;PB[Kato Masao]PW[Ishida Yoshio]DT[1978-05-24,25]PC[Fukuoka]RE[B+2.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dc];B[pq];W[eq];B[cp];W[qo];B[pl];W[dn];B[ep] ;W[dp];B[do];W[dq];B[co];W[eo];B[fp];W[cq];B[cn];W[en];B[cl] ;W[gr];B[hp];W[el];B[dj];W[im];B[jp];W[op];B[pp];W[po];B[oo] ;W[oq];B[or];W[mp];B[on];W[nr];B[pr];W[ln];B[jn];W[lq];B[mr] ;W[nq];B[qp];W[jm];B[in];W[hm];B[kq];W[lr];B[gq];W[hr];B[kn] ;W[km];B[fq];W[fr];B[go];W[ch];B[ci];W[dh];B[jd];W[qf];B[qe] ;W[pf];B[nd];W[qm];B[pn];W[qn];B[ql];W[rl];B[rk];W[sm];B[ok] ;W[rp];B[rq];W[sp];B[rr];W[nl];B[ol];W[qj];B[qk];W[rn];B[sk] ;W[sl];B[ng];W[ne];B[me];W[oi];B[oh];W[pe];B[qd];W[ph];B[ni] ;W[od];B[oc];W[oe];B[md];W[og];B[nh];W[nf];B[mf];W[oj];B[nj] ;W[ri];B[lo];W[mo];B[lm];W[mn];B[ll];W[lk];B[nm];W[hn];B[ho] ;W[iq];B[ko];W[ej];B[fc];W[fd];B[gd];W[ec];B[fe];W[ed];B[gc] ;W[ge];B[he];W[gf];B[hf];W[bh];B[gg];W[dk];B[ck];W[bj];B[bq] ;W[br];B[ap];W[ff];B[ar];W[bs];B[ei];W[cj];B[di];W[bi];B[fi] ;W[kl];B[mk];W[gj];B[fg];W[ef];B[eg];W[dg];B[fj];W[gk];B[ii] ;W[al];B[ak];W[bk];B[bl];W[jj];B[kr];W[pm];B[om];W[ls];B[ji] ;W[mm];B[ml];W[kj];B[ki];W[li];B[lh];W[rf];B[no];W[ks];B[jr] ;W[js];B[ir];W[is];B[df];W[ee];B[cf];W[be];B[ij];W[ik];B[re] ;W[fb];B[gb];W[ea];B[ga];W[gi];B[hh];W[se];B[sd];W[sf];B[pc] ;W[bo];B[dm];W[bn];B[em];W[bp];B[cm];W[fn];B[fm];W[gn];B[fk] ;W[fl];B[gl];W[hl];B[am];W[gm];B[ek];W[hq];B[fo];W[aj];B[si] ;W[sh];B[dl];W[gl];B[an];W[aq];B[ao];W[bq];B[al];W[ip];B[io] ;W[os];B[ps];W[ns];B[sj];W[qi];B[mi];W[lj];B[fa];W[eb];B[hj] ;W[sq];B[sr];W[gh];B[hi])goban-1.1.orig/games/Hon-83-5.mgt0000644000175000017500000000312206045540440014074 0ustar alal (;GM[1]SZ[19]DT[1983-06-29,30]FF[3]PC[Hakone]RE[B+R]PW[Cho Chikun]PB[Rin Kaiho]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[dq];W[qp];B[ce];W[di];B[fe];W[ee];B[ef] ;W[ed];B[cg];W[ff];B[eg];W[gf];B[fc];W[fd];B[hd];W[gd];B[he] ;W[ge];B[co];W[ch];B[ei];W[eh];B[fh];W[dh];B[fg];W[dk];B[hh] ;W[kc];B[mc];W[jd];B[if];W[hc];B[ic];W[ib];B[oq];W[cm];B[pn] ;W[po];B[oo];W[op];B[np];W[pp];B[no];W[nq];B[or];W[nr];B[lq] ;W[pr];B[mq];W[os];B[ej];W[ek];B[gl];W[hp];B[fq];W[hm];B[gm] ;W[hn];B[hl];W[jm];B[go];W[jp];B[bi];W[bh];B[cl];W[bl];B[ck] ;W[bk];B[cj];W[dj];B[dl];W[bj];B[ci];W[ai];B[dm];W[cn];B[bo] ;W[dn];B[em];W[bn];B[an];W[am];B[ao];W[gk];B[fi];W[hk];B[il] ;W[en];B[fm];W[fj];B[ik];W[hj];B[ji];W[hi];B[kl];W[lo];B[hg] ;W[bc];B[ln];W[mn];B[mo];W[lm];B[kn];W[km];B[ko];W[kp];B[lp] ;W[jn];B[ml];W[jo];B[mr];W[pq];B[lo];W[ll];B[lk];W[gq];B[fr] ;W[mm];B[nl];W[kr];B[kq];W[jq];B[qn];W[gr];B[gp];W[fs];B[es] ;W[ep];B[fp];W[ir];B[qe];W[ql];B[qj];W[om];B[nm];W[pj];B[qk] ;W[ol];B[rl];W[nj];B[mk];W[pi];B[rh];W[kf];B[hb];W[gc];B[kh] ;W[jg];B[aj];W[ak];B[ke];W[je];B[jf];W[kg];B[le];W[ih];B[jb] ;W[ig];B[hf];W[id];B[ia];W[jc];B[kb];W[ib];B[ii];W[lh];B[ic] ;W[lc];B[me];W[gg];B[gh];W[nf];B[ib];W[li];B[ne];W[jl];B[on] ;W[ij];B[dp];W[eo];B[gn];W[qg];B[rg];W[lb];B[mb];W[ma];B[gb] ;W[nb];B[nc];W[pb];B[ob];W[oa];B[na];W[er];B[gs];W[nb];B[oc] ;W[qc];B[na];W[eq];B[dr];W[nb];B[lg];W[lf];B[na];W[hs];B[fs] ;W[nb];B[mf];W[mg];B[na];W[df];B[dg];W[nb];B[jh];W[lg];B[na] ;W[pl];B[rm];W[nb];B[fk];W[fl];B[na];W[cf];B[bf];W[nb];B[de] ;W[na];B[ka];W[la];B[ec];W[dd];B[rd];W[cd];B[rb];W[be];B[ae] ;W[rc];B[sc];W[ad];B[bd];W[sb];B[sa];W[be];B[qb];W[af];B[bg] )goban-1.1.orig/games/Hon-78-1.mgt0000644000175000017500000000220506045540406014077 0ustar alal (;PB[Ishida Yoshio]PW[Kato Masao]DT[1978]RE[W+R]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[pq];W[dd];B[fc];W[df];B[db];W[cc];B[ic] ;W[po];B[qo];W[qn];B[qp];W[pm];B[nq];W[qi];B[qg];W[oi];B[ck] ;W[ci];B[bi];W[bj];B[cj];W[bh];B[di];W[ch];B[co];W[bk];B[ep] ;W[eq];B[fq];W[dp];B[do];W[fr];B[fp];W[gr];B[cl];W[qc];B[pc] ;W[qd];B[qe];W[re];B[rf];W[pe];B[qf];W[pb];B[ob];W[rb];B[pa] ;W[qb];B[nc];W[rd];B[of];W[mn];B[nl];W[ok];B[hq];W[hr];B[ol] ;W[pl];B[nn];W[iq];B[on];W[pn];B[io];W[jd];B[jc];W[ld];B[je] ;W[nd];B[oe];W[lf];B[kd];W[mc];B[me];W[le];B[md];W[kc];B[id] ;W[nb];B[oc];W[mf];B[ne];W[lj];B[lh];W[mh];B[jj];W[li];B[kk] ;W[gi];B[gk];W[kq];B[ri];W[rj];B[cb];W[op];B[oq];W[gq];B[ho] ;W[ml];B[bc];W[bd];B[dc];W[cd];B[kb];W[jn];B[mo];W[lm];B[ln] ;W[mm];B[np];W[hm];B[gm];W[gn];B[hn];W[gl];B[fm];W[hk];B[fl] ;W[hl];B[hj];W[gj];B[fk];W[ij];B[hi];W[ii];B[hh];W[ih];B[ig] ;W[hg];B[gh];W[jg];B[ik];W[im];B[if];W[kh];B[lc];W[bl];B[bq] ;W[br];B[dr];W[dq];B[bp];W[ar];B[bm];W[fd];B[fh];W[gc];B[fb] ;W[ge];B[rh];W[nk];B[dh];W[bb];B[ba];W[ab];B[gb];W[mr];B[nr] ;W[sj];B[dg];W[cg];B[lo];W[km];B[ro];W[lq];B[ef];W[ee];B[mq] ;W[lr];B[al];W[ff];B[cf];W[eg];B[bf];W[ai])goban-1.1.orig/games/T-04-2.mgt0000644000175000017500000000162506252627522013556 0ustar alal(;PB[Fujisawa Shuko]PW[Kato Masao]DT[1979-11-22]RE[W+R]KM[5.5]GM[1]SZ[19]ID[ 4/2]FF[3];B[pd];W[cq];B[pq];W[cc];B[pk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[jp];W[po];B[qp];W[mo];B[op];W[nn];B[mp];W[lp];B[np] ;W[lo];B[lq];W[fq];B[pm];W[kq];B[kp];W[jq];B[iq];W[ir];B[ip] ;W[lr];B[mq];W[hr];B[jm];W[ol];B[pl];W[mk];B[lm];W[ml];B[kk] ;W[mi];B[ki];W[kn];B[km];W[lh];B[jg];W[lf];B[ok];W[jj];B[kj] ;W[nj];B[md];W[mc];B[kd];W[oe];B[je];W[ph];B[of];W[ne];B[nf] ;W[me];B[oi];W[oh];B[nh];W[oj];B[qi];W[pi];B[qh];W[jc];B[dd] ;W[dc];B[ed];W[be];B[dg];W[dj];B[cp];W[dq];B[dn];W[fj];B[ec] ;W[fn];B[cl];W[ck];B[dl];W[fl];B[bq];W[br];B[dp];W[ep];B[gm] ;W[fm];B[bp];W[jh];B[kh];W[kg];B[ig];W[ih];B[hj];W[ij];B[hh] ;W[hk];B[ik];W[hi];B[ji];W[ii];B[gi];W[gj];B[jk];W[hj];B[ln] ;W[bl];B[bm];W[bk];B[am];W[gd];B[hd];W[he];B[id];W[gc];B[kf] ;W[lg];B[ge];W[gf];B[fe];W[hg];B[hb];W[gb];B[hc];W[eb];B[fb] ;W[fc];B[db];W[fa];B[cb];W[bb])goban-1.1.orig/games/M-84-3.mgt0000644000175000017500000000145306252627042013554 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Otake Hideo]KM[5.5]RE[B+R]PC[Takarazuka City, Hyogo prefecture]DT[1984-10-03]ID[84/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[ld];W[of];B[qg] ;W[jc];B[ke];W[ie];B[kg];W[lb];B[eq];W[np];B[qo];W[qn];B[qp] ;W[pn];B[cf];W[cd];B[ci];W[ki];B[ig];W[df];B[dg];W[eg];B[dh] ;W[ef];B[fi];W[bf];B[ip];W[dl];B[dn];W[fk];B[bg];W[ce];B[cg] ;W[dj];B[eh];W[hk];B[fm];W[hm];B[pi];W[qf];B[rf];W[rg];B[re] ;W[qh];B[pg];W[ph];B[og];W[oh];B[ng];W[rh];B[nh];W[qb];B[oi] ;W[qk];B[jk];W[jl];B[kl];W[jm];B[ik];W[en];B[em];W[dm];B[cn] ;W[kk];B[kj];W[lk];B[lj];W[mk];B[mj];W[ho];B[fn];W[hp];B[gl] ;W[hl];B[gk];W[or];B[pr];W[nk];B[nr];W[mr];B[nq];W[mq];B[op] ;W[ns];B[oq];W[gj];B[fj];W[fp];B[ep];W[fr];B[oo];W[no];B[nn] ;W[lo];B[on];W[pe];B[qc];W[pb];B[rb];W[hf];B[ln])goban-1.1.orig/games/M-64-2.mgt0000644000175000017500000000346106252627042013552 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1964-08-08,09]ID[64/2]PB[Sakata Eio]PW[Fujisawa Shuko]RE[W+2]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[ec];W[oq];B[co];W[hd];B[fd] ;W[df];B[cb];W[dm];B[cm];W[cl];B[dl];W[ck];B[eq];W[ep];B[dp] ;W[fq];B[er];W[fr];B[em];W[dn];B[do];W[fp];B[dr];W[cq];B[cr] ;W[en];B[eo];W[fn];B[fo];W[go];B[gn];W[cn];B[fm];W[bm];B[bn] ;W[cm];B[ho];W[gp];B[bo];W[bq];B[br];W[ar];B[ap];W[aq];B[bp] ;W[an];B[bs];W[hn];B[gm];W[hm];B[fk];W[io];B[dh];W[ej];B[hl] ;W[fj];B[eg];W[hj];B[jl];W[ef];B[ff];W[fg];B[fh];W[gg];B[gh] ;W[fe];B[gj];W[gf];B[gk];W[ek];B[el];W[ci];B[ch];W[bh];B[ko] ;W[kn];B[ln];W[km];B[iq];W[hp];B[lq];W[hi];B[im];W[in];B[kk] ;W[lm];B[mn];W[mm];B[op];W[gi];B[mk];W[nn];B[no];W[nk];B[mj] ;W[on];B[pp];W[hk];B[gl];W[kj];B[ki];W[jj];B[lj];W[oj];B[qm] ;W[qn];B[rn];W[bb];B[cc];W[bc];B[dd];W[de];B[bd];W[ce];B[ba] ;W[be];B[hb];W[pd];B[qd];W[pe];B[ob];W[qe];B[oi];W[pi];B[oh] ;W[mh];B[mg];W[lh];B[nj];W[ok];B[nh];W[ph];B[pg];W[qg];B[nf] ;W[me];B[lg];W[kh];B[kf];W[ji];B[jc];W[gd];B[gc];W[ml];B[jk] ;W[rl];B[pn];W[ql];B[jg];W[hh];B[hr];W[ed];B[ee];W[jp];B[kq] ;W[ed];B[fc];W[dc];B[db];W[rm];B[qo];W[pm];B[rd];W[nc];B[nb] ;W[ic];B[jb];W[re];B[se];W[sf];B[sd];W[qf];B[qn];W[lc];B[kd] ;W[ne];B[om];W[pl];B[lb];W[mb];B[ma];W[mc];B[kc];W[of];B[og] ;W[mf];B[ng];W[je];B[ke];W[kg];B[lf];W[jf];B[nm];W[lo];B[mo] ;W[kp];B[lp];W[oc];B[pc];W[li];B[id];W[jd];B[ib];W[ie];B[jq] ;W[gr];B[hq];W[nl];B[oo];W[es];B[as];W[dd];B[ip];W[ik];B[il] ;W[jo];B[dk];W[dj];B[sm];W[sl];B[sn];W[mi];B[ni];W[ld];B[hc] ;W[id];B[pf];W[oe];B[ol];W[lo];B[jh];W[ki];B[ko];W[eb];B[fb] ;W[lo];B[ii];W[ij];B[ko];W[pb];B[qb];W[lo];B[fi];W[hg];B[ko] ;W[ka];B[la];W[lo];B[bi];W[bj];B[ko];W[nn];B[on];W[lo];B[am] ;W[al];B[ko];W[ad];B[lo];W[ab];B[ea];W[hs];B[is];W[ds];B[cp] ;W[fs];B[gs];W[ca];B[da];W[hs];B[pj];W[qj];B[gs];W[pk];B[hs] )goban-1.1.orig/games/M-85-6.mgt0000644000175000017500000000246706252627042013566 0ustar alal(;PB[Cho Chikun]PW[Kobayashi Koichi]DT[1985-11-06,07]RE[B+2.5]ID[85/6]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dp];B[dc];W[qp];B[ce];W[nc];B[od];W[pb];B[lc] ;W[qc];B[oc];W[ob];B[nd];W[rd];B[qe];W[re];B[qg];W[op];B[dn] ;W[fp];B[dj];W[hd];B[fc];W[hf];B[hh];W[ke];B[kg];W[kc];B[cp] ;W[cq];B[co];W[bq];B[fn];W[hp];B[ge];W[ig];B[gf];W[mc];B[pk] ;W[ih];B[hi];W[qm];B[ld];W[md];B[le];W[me];B[kd];W[lf];B[jd] ;W[kf];B[he];W[ie];B[id];W[pi];B[qi];W[qj];B[pj];W[oi];B[rj] ;W[qh];B[ri];W[rh];B[rg];W[ph];B[sh];W[rl];B[rk];W[ql];B[qk] ;W[of];B[nk];W[ni];B[om];W[nm];B[on];W[nn];B[oo];W[no];B[qo] ;W[ro];B[po];W[rq];B[qn];W[rn];B[pm];W[gl];B[kq];W[em];B[dm] ;W[dl];B[cl];W[el];B[ck];W[mq];B[pp];W[pq];B[iq];W[hq];B[ip] ;W[gj];B[fi];W[gi];B[gh];W[lb];B[kb];W[jb];B[jc];W[ka];B[ib] ;W[lr];B[lo];W[jn];B[in];W[jm];B[np];W[oq];B[jo];W[ho];B[kn] ;W[km];B[lm];W[ll];B[mm];W[mo];B[ml];W[lk];B[ja];W[an];B[bn] ;W[fj];B[ei];W[ao];B[bm];W[ij];B[hj];W[ik];B[hk];W[hl];B[ii] ;W[ji];B[pg];W[og];B[io];W[lp];B[im];W[il];B[mk];W[kp];B[ko] ;W[lj];B[am];W[bp];B[bo];W[ap];B[do];W[ir];B[jr];W[hr];B[ep] ;W[dq];B[eo];W[eq];B[mb];W[pe];B[pd];W[qf];B[pf];W[rf];B[oe] ;W[ne];B[sg];W[sf];B[si];W[nb];B[la];W[sk];B[fo];W[gp];B[mj] ;W[mi];B[hg];W[if];B[gk];W[fk];B[fm];W[fl];B[je];W[jf];B[is] ;W[hs];B[js];W[lq];B[jq];W[ls];B[na];W[oa];B[ma])goban-1.1.orig/games/T-16-4.mgt0000644000175000017500000000310606424551462013557 0ustar alal( ; EV[16th Tengen title] RO[4] PB[Rin Kaiho] BR[Tengen] PW[Kobayashi Koichi] WR[Kisei] KM[5.5] DT[1990-12-10] PC[Japan] RE[B+3.5] ;B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[jp];W[qf];B[pf];W[pg];B[of];W[qd] ;B[qe];W[re];B[pe];W[rg];B[qc];W[rd];B[og];W[ph];B[oh];W[jc];B[fq];W[cn] ;B[oq];W[qo];B[qp];W[pi];B[oi];W[qj];B[qk];W[rk];B[pk];W[rl];B[qm];W[rm] ;B[qn];W[ql];B[pl];W[rn];B[ro];W[jm];B[fo];W[lm];B[kl];W[km];B[ik];W[il] ;B[hk];W[jk];B[jj];W[kj];B[jl];W[ll];B[kk];W[lk];B[jk];W[ki];B[dm];W[cm] ;B[dk];W[nj];B[mi];W[pm];B[po];W[oj];B[om];W[ol];B[pn];W[ok];B[pm];W[ni] ;B[md];W[mh];B[mc];W[dl];B[lh];W[li];B[mg];W[nh];B[ek];W[eq];B[fr];W[gc] ;B[cl];W[bl];B[el];W[bk];B[cc];W[dc];B[cd];W[ce];B[be];W[bf];B[hc];W[hb] ;B[gb];W[fb];B[gd];W[ga];B[fc];W[gb];B[cf];W[de];B[bg];W[er];B[cb];W[df] ;B[cg];W[mb];B[lb];W[nb];B[kc];W[pc];B[pb];W[oc];B[rc];W[rb];B[qb];W[sb] ;B[jb];W[hd];B[ge];W[ic];B[ma];W[sc];B[db];W[fd];B[fe];W[ec];B[es];W[ds] ;B[fs];W[dr];B[lo];W[fp];B[gp];W[ep];B[hq];W[ko];B[kp];W[mo];B[lp];W[ng] ;B[nf];W[lg];B[na];W[qa];B[he];W[kd];B[nd];W[pa];B[od];W[ob];B[ib];W[ie] ;B[if];W[je];B[mn];W[hg];B[gg];W[gh];B[fg];W[ih];B[fh];W[gi];B[hf];W[fi] ;B[ei];W[ej];B[di];W[nm];B[nn];W[hm];B[gl];W[bi];B[mf];W[dg];B[dh];W[mm] ;B[in];W[go];B[ho];W[gn];B[im];W[fn];B[dn];W[eo];B[fj];W[gj];B[dj];W[sn] ;B[kh];W[ji];B[kg];W[jo];B[io];W[ld];B[lc];W[lf];B[kf];W[le];B[ig];W[ka] ;B[la];W[ia];B[kb];W[hh];B[rj];W[qi];B[bh];W[ci];B[ri];W[rh];B[ai];W[aj] ;B[ah];W[do];B[ck];W[ee];B[eb];W[ea];B[da];W[eg];B[eh];W[so];B[sp];W[me] ;B[ne];W[hl];B[gk];W[fm];B[en];W[em];B[ke];W[jd];B[dl];W[fl];B[fk];W[fo] ;B[ff];W[fa] ) goban-1.1.orig/games/Hon-74-2.sgf0000644000175000017500000000232506243710654014073 0ustar alal ( ; EV[29th Honinbo] RO[2] PW[Ishida Yoshio] PB[Takemiya Masaki] KM[4.5] RE[B+R] DT[1974-05-30,31] BR[7 dan] PC[Tokuyame, Japan] ;B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[jp];W[dj];B[pf] ;W[jd];B[cc];W[cd];B[dc];W[ec];B[eb];W[fb];B[fc];W[ed];B[gb] ;W[fd];B[fa];W[gc];B[fb];W[qn];B[qo];W[pn];B[np];W[pl];B[hc] ;W[gd];B[hd];W[he];B[ie];W[id];B[hf];W[ge];B[ib];W[pc];B[qc] ;W[od];B[pe];W[if];B[je];W[kd];B[ig];W[jf];B[ke];W[le];B[kf] ;W[jg];B[lf];W[mf];B[jh];W[kg];B[lg];W[kh];B[me];W[ld];B[nf] ;W[pb];B[hg];W[ki];B[hi];W[hk];B[mg];W[jj];B[fi];W[dh];B[eh] ;W[dg];B[ek];W[mm];B[ej];W[lp];B[dk];W[cj];B[ln];W[mo];B[jn] ;W[hm];B[jl];W[hj];B[en];W[io];B[kp];W[lq];B[fo];W[km];B[lm] ;W[ll];B[kn];W[mn];B[gp];W[kl];B[or];W[ip];B[ir];W[hq];B[hr] ;W[gq];B[fq];W[gr];B[fr];W[fs];B[es];W[gs];B[kr];W[er];B[eq] ;W[dr];B[dq];W[cq];B[cr];W[ds];B[cp];W[bq];B[br];W[in];B[mr] ;W[bp];B[co];W[bo];B[cn];W[bn];B[cm];W[qi];B[qj];W[rj];B[pi] ;W[rh];B[qh];W[ri];B[bm];W[ar];B[md];W[mc];B[kb];W[qb];B[lc] ;W[lb];B[kc];W[ph];B[ni];W[bc];B[bb];W[cb];B[db];W[ab];B[ba] ;W[qg];B[bd];W[be];B[ac];W[qd];B[re];W[rc];B[rf];W[lr];B[ls] ;W[qk];B[rn];W[rm];B[ro];W[bk];B[jm];W[nj];B[mj];W[jq];B[kq] ;W[iq];B[jr];W[nh];B[mi];W[mh];B[kk];W[mk];B[lh];W[oi];B[jk] ;W[nk];B[hl] ) goban-1.1.orig/games/Hon-96-6.sgf0000644000175000017500000000331506243710462014100 0ustar alal( ; EV[51st Honinbo title] RO[6] PB[Ryu Shikun] BR[7 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[1996-07-16,17] PC[Japan] RE[W+4.5] ; B[pd];W[dd];B[pp];W[dp];B[pj]; W[nc];B[pf];W[nq];B[oc];W[jc];B[nb];W[qn];B[oo];W[qq];B[qp];W[pq]; B[mp];W[op];B[pm];W[rp];B[np];W[oq];B[cn];W[fp];B[id];W[jd];B[ie]; W[je];B[if];W[jf];B[jg];W[hb];B[gc];W[hc];B[ge];W[df];B[kg];W[fc]; B[dj];W[jp];B[kn];W[dh];B[le];W[cl];B[el];W[co];B[dn];W[cj];B[cc]; W[dc];B[gn];W[on];B[nn];W[pn];B[om];W[nm];B[nl];W[mm];B[mn];W[hh]; B[eg];W[eh];B[fh];W[fi];B[gi];W[lm];B[km];W[nk];B[fd];W[gb];B[ln]; W[ml];B[ol];W[mk];B[oi];W[gh];B[fg];W[gj];B[dg];W[kl];B[jl];W[jk]; B[kk];W[kj];B[ll];W[lk];B[kl];W[hi];B[cg];W[dk];B[cd];W[li];B[gp]; W[gq];B[hp];W[hq];B[iq];W[fo];B[hk];W[ni];B[jq];W[fn];B[gm];W[mc]; B[mb];W[lc];B[er];W[dr];B[dl];W[ej];B[fq];W[cb];B[cf];W[qh];B[ph]; W[qe];B[qd];W[ob];B[pc];W[qj];B[qf];W[qk];B[dq];W[cq];B[eq];W[cr]; B[bo];W[ep];B[hr];W[bp];B[do];W[cp];B[bn];W[ar];B[lb];W[kb];B[mr]; W[qm];B[ok];W[es];B[gr];W[nf];B[nh];W[mh];B[nj];W[mi];B[jj];W[ji]; B[ij];W[bb];B[de];W[ee];B[ef];W[ed];B[ii];W[ng];B[rh];W[qi];B[oh]; W[lg];B[kf];W[mj];B[rg];W[oj];B[nr];W[nj];B[or];W[po];B[pr];W[qr]; B[bi];W[bh];B[ch];W[ci];B[bj];W[bk];B[bg];W[mq];B[lq];W[lr];B[kr]; W[ih];B[ig];W[no];B[mo];W[la];B[pb];W[aj];B[ah];W[fe];B[gd];W[ek]; B[fk];W[gk];B[gl];W[hj];B[ik];W[ri];B[qs];W[rs];B[ps];W[pi];B[of]; W[cm];B[dm];W[bd];B[bc];W[ac];B[ce];W[rr];B[fs];W[oe];B[ds];W[cs]; B[ne];W[nd];B[me];W[od];B[pe];W[go];B[ho];W[bm];B[be];W[ad];B[ab]; W[aa];B[ae];W[ab];B[kh];W[ki];B[ap];W[aq];B[am];W[al];B[ic];W[ib]; B[qg];W[hd];B[gf];W[sh];B[sg];W[si];B[kd];W[ke];B[ld];W[kc];B[lf]; W[og];B[pg];W[mg];B[jh];W[ma];B[oa];W[ka];B[na];W[fj];B[fl];W[oo]; B[he];W[hg];B[es];W[an];B[ao];W[am] ) goban-1.1.orig/games/T-21-1.mgt0000644000175000017500000000242206252627522013550 0ustar alal(;RO[1]PB[Ryu Shikun]BR[9 dan]PW[Kobayashi Koichi]WR[9 dan]DT[1995-11-01]PC[Japan]RE[B+1.5]FF[3]GM[1]VW[]SZ[19]ID[21/1];B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[cn];W[cp];B[pj] ;W[dj];B[fc];W[cf];B[jd];W[nq];B[pn];W[jp];B[pf];W[dn];B[dk] ;W[cj];B[fk];W[dm];B[ik];W[lc];B[kc];W[le];B[kf];W[lf];B[kg] ;W[kb];B[jb];W[pc];B[oc];W[od];B[ob];W[pe];B[qd];W[oe];B[qe] ;W[nc];B[pb];W[of];B[pg];W[lg];B[pr];W[lp];B[gn];W[ql];B[qn] ;W[pk];B[qj];W[kd];B[jc];W[ke];B[je];W[gp];B[lh];W[mh];B[mi] ;W[nh];B[ni];W[oh];B[ph];W[li];B[kh];W[oi];B[oj];W[mm];B[nl] ;W[hl];B[hk];W[nm];B[ol];W[ej];B[io];W[fl];B[il];W[gk];B[ip] ;W[iq];B[gj];W[gl];B[im];W[eb];B[fb];W[ec];B[fe];W[fj];B[gi] ;W[fh];B[nr];W[mr];B[oq];W[np];B[fi];W[ef];B[ff];W[eh];B[hq] ;W[jq];B[gq];W[fp];B[hp];W[gh];B[ms];W[ls];B[ns];W[lr];B[ea] ;W[da];B[fa];W[db];B[hh];W[hi];B[hj];W[hg];B[ih];W[fg];B[ml] ;W[ll];B[lk];W[kl];B[kk];W[mb];B[og];W[ng];B[er];W[dr];B[eq] ;W[ep];B[kn];W[ln];B[km];W[lm];B[ei];W[di];B[ir];W[om];B[pm] ;W[ig];B[jg];W[he];B[gd];W[ko];B[ee];W[de];B[gf];W[gg];B[fn] ;W[ie];B[hd];W[es];B[gr];W[en];B[fs];W[ds];B[oo];W[jr];B[no] ;W[mo];B[js];W[ks];B[is];W[ja];B[ia];W[ka];B[id];W[nb];B[pi] ;W[nf];B[fm];W[jl];B[em];W[el];B[jk];W[fq];B[fr];W[jn];B[jm] ;W[jo];B[hm];W[eo];B[na];W[ma];B[oa];W[in];B[hn];W[go];B[ho] ;W[nn])goban-1.1.orig/games/Hon-92-3.mgt0000644000175000017500000000173506045540452014105 0ustar alal (;GM[1]SZ[19]PB[Kobayashi Koichi]PW[Cho Chikun]DT[1992-06-09,10]PC[Kochi]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pq];W[cp];B[ep];W[eq];B[fq];W[dq];B[fp] ;W[cn];B[pk];W[jp];B[lp];W[fm];B[fn];W[nq];B[lq];W[gn];B[em] ;W[en];B[dn];W[fo];B[eo];W[cm];B[co];W[bo];B[do];W[dm];B[el] ;W[fn];B[bp];W[bq];B[bn];W[ap];B[bm];W[cl];B[ck];W[bl];B[bk] ;W[an];B[hp];W[fl];B[dl];W[am];B[ej];W[fj];B[jq];W[ei];B[dj] ;W[qq];B[pp];W[dh];B[ch];W[cg];B[ci];W[qp];B[po];W[dg];B[ek] ;W[fk];B[jc];W[qo];B[qn];W[rn];B[qm];W[rm];B[rl];W[pr];B[or] ;W[qr];B[oq];W[hc];B[je];W[qc];B[ro];W[rp];B[qd];W[pc];B[oc] ;W[ob];B[nb];W[rd];B[re];W[qe];B[od];W[rf];B[rc];W[se];B[rb] ;W[oe];B[pe];W[pf];B[of];W[ne];B[pg];W[qf];B[nc];W[ak];B[bj] ;W[ec];B[og];W[qh];B[rh];W[ri];B[qi];W[sh];B[ph];W[rg];B[cc] ;W[bf];B[eb];W[fb];B[db];W[bd];B[bc];W[ea];B[jh];W[kj];B[cd] ;W[ce];B[ad];W[be];B[ij];W[jk];B[ik];W[jm];B[fc];W[fd];B[gc] ;W[gb];B[gd];W[hd];B[ge];W[he];B[fe];W[de];B[jl];W[hh];B[im] ;W[in];B[jn];W[qj];B[pi];W[qk];B[pj])goban-1.1.orig/games/Hon-93-5.mgt0000644000175000017500000000263106045540454014106 0ustar alal (;GM[1]SZ[19]DT[1993-06-29,30]PB[Cho Chikun]PW[Yamashiro Hiroshi]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[cd];W[pp];B[nc];W[fd];B[df];W[pj];B[nq] ;W[lq];B[qq];W[qp];B[pq];W[op];B[nr];W[np];B[ph];W[dc];B[cc] ;W[jc];B[cn];W[fp];B[bp];W[cq];B[dl];W[mq];B[rp];W[ro];B[rq] ;W[ei];B[hc];W[hd];B[gd];W[gc];B[ge];W[hb];B[fc];W[ic];B[gb] ;W[hc];B[ed];W[fb];B[fe];W[cj];B[ck];W[ek];B[fm];W[hm];B[gl] ;W[dk];B[cl];W[ch];B[eb];W[ga];B[hq];W[ho];B[kp];W[jq];B[ip] ;W[lo];B[kq];W[kr];B[in];W[hn];B[gp];W[go];B[jr];W[ir];B[iq] ;W[js];B[kn];W[jp];B[jo];W[jr];B[io];W[gq];B[jl];W[qj];B[fj] ;W[bi];B[bg];W[cg];B[bf];W[bk];B[bl];W[gh];B[hj];W[fk];B[gk] ;W[gi];B[gj];W[eg];B[gr];W[fq];B[hr];W[bq];B[ih];W[mj];B[ak] ;W[jj];B[ik];W[hf];B[rn];W[qn];B[so];W[qo];B[qf];W[qc];B[pc] ;W[pb];B[rc];W[oc];B[qb];W[od];B[ob];W[nb];B[pa];W[mb];B[mc] ;W[lb];B[ne];W[rm];B[ln];W[rh];B[db];W[mg];B[nf];W[oq];B[or] ;W[mr];B[ml];W[ns];B[ps];W[nl];B[nm];W[om];B[nk];W[ol];B[mk] ;W[lj];B[lf];W[jg];B[lg];W[jh];B[mh];W[ld];B[ii];W[nd];B[hg] ;W[gf];B[if];W[he];B[le];W[md];B[oi];W[jf];B[ig];W[ke];B[ji] ;W[kh];B[ki];W[nn];B[co];W[fr];B[ef];W[gg];B[rg];W[qh];B[qg] ;W[mm];B[lm];W[rs];B[rr];W[ms];B[pr];W[sp];B[sq];W[nj];B[oj] ;W[ok];B[kk];W[pe];B[sh];W[si];B[sg];W[og];B[ng];W[pf];B[pg] ;W[qi];B[bj];W[ko];B[dj];W[ej];B[ci];W[bh];B[mo];W[lp];B[mn] ;W[cf];B[ce];W[lh];B[li];W[nh];B[mi];W[of];B[oh];W[im];B[jm] ;W[cp];B[ie];W[je];B[bo];W[no];B[eo];W[fo];B[dg];W[dh];B[do] )goban-1.1.orig/games/M-68-5.sgf0000644000175000017500000000353206252650370013550 0ustar alal( ; GM[1] EV[7th Meijin Title Match] RO[5] PB[Takagawa Shukaku] BR[9 dan] PW[Rin Kaiho] WR[Meijin] DT[1968/Oct/3,4] PC[Tokyo] RE[B+1] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[co];B[oc];W[po];B[qo];W[pp];B[qp];W[oq] ;B[pn];W[qq];B[pr];W[rq];B[or];W[np];B[no];W[mp];B[on];W[op] ;B[rp];W[qn];B[rn];W[qm];B[rr];W[rm];B[so];W[qj];B[ko];W[kq] ;B[ln];W[iq];B[qh];W[oj];B[nr];W[nm];B[mo];W[lp];B[pl];W[oe] ;B[oh];W[nk];B[ol];W[qi];B[ph];W[kk];B[km];W[dq];B[me];W[qe] ;B[pd];W[rf];B[rg];W[ri];B[pe];W[hn];B[jk];W[kj];B[jl];W[ce] ;B[jj];W[ni];B[fn];W[hl];B[fl];W[hj];B[fj];W[ji];B[ii];W[ij] ;B[ho];W[io];B[in];W[im];B[ip];W[jn];B[jp];W[hq];B[hp];W[ih] ;B[gq];W[lr];B[eq];W[dp];B[ep];W[hi];B[cm];W[lo];B[kn];W[mn] ;B[mm];W[nn];B[nl];W[oo];B[ml];W[ic];B[ci];W[lc];B[cg];W[cf] ;B[eg];W[bg];B[bh];W[dg];B[dh];W[ch];B[bn];W[bo];B[cg];W[pf] ;B[of];W[ch];B[db];W[ec];B[cg];W[rd];B[pg];W[ch];B[dr];W[cr] ;B[cg];W[eo];B[fo];W[ch];B[eb];W[cb];B[cg];W[qb];B[qf];W[ch] ;B[ki];W[kh];B[cg];W[re];B[df];W[gc];B[rc];W[qc];B[rb];W[sb] ;B[sc];W[ra];B[sa];W[qa];B[sf];W[sb];B[fd];W[fc];B[sa];W[mg] ;B[se];W[nb];B[ob];W[mb];B[na];W[le];B[hg];W[if];B[fr];W[ds] ;B[es];W[er];B[gk];W[il];B[dr];W[cs];B[mk];W[mj];B[ql];W[rk] ;B[hr];W[ir];B[is];W[mr];B[md];W[ld];B[bf];W[be];B[ag];W[ff] ;B[bc];W[bd];B[ae];W[ad];B[cc];W[bb];B[dd];W[de];B[ee];W[af] ;B[bq];W[er];B[ae];W[ac];B[dr];W[cq];B[ge];W[gh];B[gg];W[ed] ;B[fg];W[he];B[mf];W[lf];B[mh];W[nh];B[ng];W[lg];B[cn];W[er] ;B[fs];W[fe];B[ig];W[jg];B[hf];W[hd];B[ef];W[gd];B[en];W[do] ;B[js];W[jr];B[rl];W[sl];B[sn];W[ks];B[hs];W[sm];B[gf];W[af] ;B[bg];W[gm];B[bp];W[ao];B[br];W[ar];B[bs];W[ap];B[ns];W[fh] ;B[eh];W[fi];B[ei];W[fm];B[em];W[gn];B[an];W[aq];B[dn];W[as] ;B[ok];W[nj];B[lk];W[lj];B[kl];W[ma];B[oa];W[go];B[gp];W[sh] ;B[fd];W[fe];B[mc];W[sb];B[sd];W[nc];B[nd];W[lb];B[rh];W[si] ;B[nq];W[mq];B[dr];W[cp];B[ms];W[ae];B[er] ) goban-1.1.orig/games/Hon-62-2.sgf0000644000175000017500000000267306243707740014100 0ustar alal( ; DT[1962-] EV[17th Honinbo] RO[2] KM[4.5] BR[Honinbo] WR[9 dan] PB[Sakata Eio] PW[Handa Dogen] RE[B+R] ;B[qc];W[cp];B[pp];W[dc];B[ep];W[eq];B[fq];W[dq];B[fp] ;W[cn];B[jp];W[qj];B[ce];W[dh];B[ee];W[gc];B[cc];W[cb];B[bc] ;W[dd];B[de];W[ic];B[ql];W[pf];B[nc];W[cg];B[pq];W[em];B[ol] ;W[oj];B[fh];W[fi];B[eh];W[ei];B[di];W[dj];B[ci];W[cj];B[bh] ;W[bg];B[bj];W[be];B[cd];W[bk];B[ck];W[dk];B[gi];W[ch];B[bi] ;W[ej];B[hh];W[ge];B[hl];W[jn];B[do];W[hn];B[co];W[bo];B[bn] ;W[bp];B[cl];W[bl];B[cm];W[aj];B[el];W[fl];B[gm];W[dl];B[en] ;W[dm];B[dn];W[fm];B[gn];W[kp];B[ko];W[jo];B[jq];W[gg];B[gh] ;W[hj];B[lo];W[il];B[jh];W[jj];B[ik];W[jk];B[hf];W[eb];B[gf] ;W[nm];B[nl];W[lm];B[no];W[qd];B[pd];W[qe];B[rc];W[mc];B[nd] ;W[nb];B[ob];W[nn];B[mn];W[mm];B[on];W[go];B[fn];W[hq];B[ip] ;W[ho];B[er];W[dr];B[gr];W[es];B[fr];W[hp];B[hr];W[mb];B[md] ;W[ld];B[le];W[kd];B[hk];W[mj];B[og];W[pg];B[oh];W[pb];B[oc] ;W[qk];B[rl];W[of];B[nf];W[mf];B[ng];W[oa];B[lc];W[lb];B[kc] ;W[kb];B[ke];W[jd];B[qb];W[je];B[kn];W[hm];B[ij];W[km];B[ji] ;W[om];B[pm];W[lj];B[gl];W[pr];B[or];W[me];B[ne];W[kf];B[cf] ;W[bf];B[ri];W[qi];B[rg];W[eg];B[fg];W[fe];B[ff];W[ir];B[jr] ;W[qg];B[rh];W[rk];B[sl];W[sk];B[sf];W[rf];B[se];W[pa];B[pc] ;W[iq];B[is];W[dg];B[ef];W[ml];B[nk];W[nj];B[pl];W[pn];B[oo] ;W[qn];B[ro];W[mk];B[mg];W[lf];B[io];W[rn];B[sn];W[qo];B[rp] ;W[sm];B[rm];W[in];B[fk];W[bm];B[cn];W[ah];B[ed];W[an];B[bb] ;W[js];B[ks];W[ln];B[mo];W[ig];B[ca];W[db];B[fc];W[fb];B[gd] C[219 moves complete.] ) goban-1.1.orig/games/Hon-59-1.mgt0000644000175000017500000000212506045540252014076 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[B+R]DT[1959-06-]BS[0]WS[0];B[qd];W[pp];B[dc];W[de];B[ce];W[cf];B[cd];W[dg];B[do] ;W[ec];B[dd];W[ed];B[ee];W[df];B[eb];W[fb];B[db];W[gd];B[oc] ;W[cm];B[dq];W[em];B[bo];W[ff];B[qn];W[pj];B[qq];W[qp];B[pq] ;W[op];B[rp];W[ro];B[rq];W[qo];B[nq];W[qf];B[on];W[pm];B[pn] ;W[np];B[mq];W[mp];B[rn];W[sn];B[rl];W[qk];B[ok];W[ql];B[sm] ;W[so];B[mn];W[kp];B[om];W[lq];B[lo];W[lp];B[hp];W[jn];B[qi] ;W[pi];B[rk];W[qj];B[rj];W[qh];B[ri];W[oe];B[gm];W[jq];B[gk] ;W[ek];B[ir];W[jl];B[mc];W[fn];B[im];W[jm];B[ip];W[ko];B[go] ;W[bn];B[cn];W[bm];B[dl];W[dm];B[el];W[fl];B[fk];W[gl];B[hl] ;W[fm];B[ej];W[hk];B[hj];W[ik];B[dk];W[fi];B[cj];W[ep];B[eo] ;W[cp];B[co];W[hn];B[fo];W[di];B[ei];W[gh];B[gi];W[fh];B[hh] ;W[ii];B[hi];W[nl];B[ol];W[ji];B[hf];W[fj];B[gj];W[ie];B[jg] ;W[ke];B[kf];W[le];B[kh];W[mi];B[lf];W[nd];B[dh];W[pc];B[pd] ;W[if];B[ig];W[bk];B[ch];W[qm];B[rm];W[qc];B[od];W[rd];B[re] ;W[rc];B[qe];W[rf];B[me];W[md];B[ne];W[ld];B[ng];W[pf];B[sf] ;W[sg];B[se];W[rh];B[pb];W[nh];B[mh];W[lh];B[mg];W[ni];B[og] ;W[mf];B[nf];W[ph];B[lj];W[nb];B[ob];W[nc];B[rb])goban-1.1.orig/games/M-65-6.sgf0000644000175000017500000000304006252650136013540 0ustar alal( ; GM[1] EV[4th Meijin Title Match] RO[6] PB[Rin Kaiho] BR[8 dan] PW[Sakata Eio] WR[Meijin] DT[Sept 18/19, 1965] PC[Ishigawa] RE[B+12] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[od];B[ep];W[po];B[oc];W[nc];B[pc];W[md] ;B[qf];W[qq];B[cp];W[ce];B[cj];W[id];B[qr];W[qp];B[or];W[hq] ;B[pl];W[og];B[mp];W[no];B[mm];W[er];B[mo];W[qm];B[cg];W[dk] ;B[dj];W[ek];B[bl];W[hk];B[db];W[ec];B[eb];W[fc];B[cc];W[bc] ;B[cd];W[bd];B[dd];W[cb];B[bb];W[ca];B[de];W[ab];B[be];W[fe] ;B[mg];W[pe];B[qe];W[rk];B[ej];W[fk];B[jd];W[ic];B[jf];W[jc] ;B[jq];W[iq];B[jp];W[dq];B[dp];W[cq];B[fr];W[eq];B[fq];W[fp] ;B[gp];W[fo];B[go];W[fn];B[gq];W[bp];B[bo];W[bq];B[cn];W[gn] ;B[ho];W[hn];B[jh];W[dn];B[dm];W[em];B[kd];W[mb];B[ri];W[kg] ;B[jg];W[lg];B[lh];W[kh];B[ki];W[li];B[lf];W[mh];B[kf];W[lh] ;B[nh];W[kj];B[ji];W[mj];B[ng];W[ni];B[oh];W[pi];B[ph];W[qi] ;B[qh];W[rj];B[oi];W[oj];B[nk];W[nj];B[ob];W[nn];B[ad];W[ba] ;B[mn];W[rr];B[rs];W[nl];B[rq];W[op];B[np];W[oq];B[nq];W[sp] ;B[sr];W[cm];B[bm];W[ck];B[bk];W[cl];B[es];W[ds];B[fs];W[io] ;B[ip];W[bs];B[rp];W[ro];B[lk];W[lj];B[pr];W[oo];B[rh];W[mk] ;B[in];W[im];B[jn];W[jm];B[km];W[kl];B[lm];W[ll];B[lc];W[lb] ;B[ef];W[if];B[gj];W[ac];B[ae];W[fj];B[fi];W[gi];B[hi];W[gh] ;B[fh];W[hh];B[ii];W[hj];B[gg];W[hg];B[gf];W[ao];B[bn];W[bj] ;B[bi];W[ge];B[kc];W[kb];B[nb];W[mc];B[hf];W[ee];B[df];W[me] ;B[of];W[oe];B[pf];W[ml];B[ie];W[ma];B[he];W[hd];B[an];W[na] ;B[oa];W[ap];B[ig];W[gk];B[pp];W[qo];B[nm];W[om];B[jj];W[jk] ;B[ed];W[fd];B[do];W[en];B[sj];W[sk];B[si];W[ff];B[fg];W[le] ;B[ke];W[mf];B[nf];W[ne];B[ij];W[ik] ) goban-1.1.orig/games/T-04-1.mgt0000644000175000017500000000316306252627522013554 0ustar alal(;PB[Kato Masao]PW[Fujisawa Shuko]DT[1978-11-08]RE[W+0.5]KM[5.5]ID[ 4/1]GM[1]SZ[19]FF[3];B[qd];W[qp];B[cd];W[cp];B[oc];W[ed];B[ee];W[fe];B[de] ;W[gd];B[oq];W[lp];B[on];W[qm];B[ep];W[eq];B[fq];W[dq];B[fp] ;W[cn];B[jq];W[lm];B[ol];W[pk];B[pi];W[ok];B[ml];W[mm];B[nl] ;W[oi];B[ph];W[jp];B[ip];W[iq];B[kr];W[jo];B[ir];W[ld];B[mq] ;W[qj];B[ec];W[fc];B[eb];W[qg];B[pg];W[rh];B[jd];W[pf];B[of] ;W[pe];B[oe];W[pd];B[pc];W[qc];B[rc];W[od];B[nd];W[qe];B[qb] ;W[ne];B[re];W[qf];B[md];W[me];B[le];W[ng];B[lf];W[mg];B[lc] ;W[fg];B[dh];W[fb];B[cl];W[di];B[eh];W[dk];B[ci];W[ck];B[bl] ;W[bk];B[dm];W[fm];B[em];W[fk];B[fn];W[gm];B[dd];W[op];B[np] ;W[pq];B[or];W[no];B[oo];W[pp];B[ll];W[km];B[ki];W[hq];B[hp] ;W[ho];B[fh];W[ic];B[jc];W[id];B[mi];W[jb];B[kb];W[je];B[ke] ;W[gp];B[hr];W[io];B[he];W[hf];B[ge];W[ff];B[ie];W[fd];B[jf] ;W[ea];B[cb];W[ja];B[fr];W[pr];B[qn];W[kq];B[jr];W[lq];B[lr] ;W[mp];B[nq];W[os];B[ns];W[ps];B[nn];W[mo];B[mr];W[rn];B[rm] ;W[qo];B[ql];W[pn];B[pl];W[ni];B[gn];W[do];B[en];W[er];B[hb] ;W[ib];B[da];W[hj];B[cr];W[cq];B[hh];W[hc];B[rk];W[rj];B[an] ;W[bo];B[bi];W[jj];B[nj];W[og];B[hn];W[kj];B[li];W[ji];B[lg] ;W[hm];B[fa];W[gb];B[in];W[rf];B[im];W[il];B[jl];W[ik];B[gk] ;W[fj];B[fl];W[hl];B[el];W[gl];B[jh];W[kl];B[se];W[mh];B[am] ;W[sm];B[rl];W[ih];B[jg];W[ka];B[la];W[gq];B[gr];W[jm];B[jn] ;W[kn];B[mn];W[ln];B[gf];W[ii];B[bq];W[bp];B[ao];W[ap];B[es] ;W[ds];B[fs];W[br];B[ig];W[gg];B[hg];W[nk];B[mk];W[nm];B[om] ;W[lh];B[kh];W[aj];B[ai];W[dj];B[gi];W[gj];B[sf];W[sg];B[sj] ;W[si];B[dn];W[oj];B[mf];W[nf];B[mj];W[ef];B[df];W[cm];B[dl] ;W[ga];B[kk];W[jk];B[lk];W[ea];B[eg];W[gh];B[fi];W[hi];B[ek] ;W[ej];B[sk];W[fa])goban-1.1.orig/games/T-10-2.mgt0000644000175000017500000000306406252627522013552 0ustar alal(;GM[1]VW[]SZ[19]PW[Kataoka Satoshi]PB[Ishida Yoshio]DT[1984-11-19]RE[W+R]ID[10/2]FF[3];B[qd];W[cq];B[pp];W[dc];B[oc];W[qj];B[ce];W[di];B[dd] ;W[ec];B[cc];W[cb];B[bc];W[hc];B[qh];W[qn];B[ql];W[rl];B[fp] ;W[dn];B[jq];W[pl];B[qo];W[pn];B[rn];W[rm];B[np];W[qf];B[og] ;W[pe];B[pd];W[oe];B[pj];W[qk];B[lc];W[ld];B[mc];W[nd];B[kc] ;W[nc];B[nb];W[ob];B[pb];W[lg];B[mg];W[lf];B[lh];W[kh];B[ki] ;W[jh];B[li];W[ji];B[fn];W[jk];B[nj];W[lq];B[nq];W[go];B[fo] ;W[iq];B[ip];W[jp];B[do];W[co];B[cn];W[dp];B[dm];W[eo];B[en] ;W[jr];B[do];W[qq];B[pq];W[dn];B[bn];W[rp];B[ro];W[rr];B[mr] ;W[pr];B[or];W[oo];B[op];W[pi];B[oi];W[ph];B[pg];W[qi];B[qg] ;W[rf];B[lk];W[do];B[dk];W[bb];B[ed];W[fd];B[fe];W[fi];B[dg] ;W[bi];B[fk];W[fg];B[gd];W[fc];B[ff];W[ib];B[eg];W[io];B[gg] ;W[gj];B[gk];W[ej];B[cj];W[ci];B[ij];W[jj];B[hi];W[hj];B[gi] ;W[fj];B[hk];W[ik];B[ii];W[ek];B[el];W[cl];B[dl];W[nf];B[ml] ;W[mn];B[nn];W[no];B[ng];W[nk];B[mk];W[mi];B[ln];W[mo];B[mm] ;W[ok];B[km];W[kl];B[rg];W[sf];B[sg];W[ri];B[jo];W[hp];B[im] ;W[hm];B[gm];W[hg];B[gh];W[jn];B[jm];W[hn];B[hl];W[il];B[mf] ;W[le];B[je];W[jf];B[ie];W[oh];B[kk];W[ni];B[mh];W[kj];B[lj] ;W[qe];B[me];W[md];B[jl];W[od];B[pc];W[jd];B[kn];W[ll];B[in] ;W[ko];B[jc];W[id];B[kp];W[jn];B[kg];W[jg];B[jo];W[lo];B[ip] ;W[ho];B[hq];W[jp];B[kd];W[jn];B[ke];W[kf];B[jo];W[rd];B[ip] ;W[ir];B[rc];W[sc];B[sb];W[sd];B[gp];W[jp];B[gc];W[gq];B[gb] ;W[bo];B[cm];W[fq];B[ao];W[ap];B[an];W[bp];B[ip];W[hr];B[gn] ;W[hq];B[kr];W[lr];B[ls];W[kq];B[rb];W[hf];B[ks];W[js];B[ms] ;W[mq];B[mp];W[lp];B[ps];W[qr];B[qs];W[rs];B[po];W[on];B[os] ;W[sp];B[ep];W[he])goban-1.1.orig/games/Hon-90-5.mgt0000644000175000017500000000331306045540450014075 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Kobayashi Koichi]DT[1990-07-09,10]RE[W+7.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[cc];B[qo];W[jq];B[cn];W[mq];B[fq] ;W[fp];B[gp];W[eq];B[fo];W[ep];B[en];W[co];B[dm];W[gq];B[hq] ;W[fr];B[gr];W[go];B[hp];W[fn];B[eo];W[gn];B[jp];W[em];B[dn] ;W[el];B[ck];W[dh];B[ek];W[kp];B[jo];W[ko];B[jn];W[gl];B[ei] ;W[dl];B[cl];W[dk];B[dj];W[fk];B[bn];W[hr];B[fq];W[gs];B[jr] ;W[cj];B[ci];W[ir];B[iq];W[kq];B[gq];W[ho];B[ip];W[er];B[is] ;W[kr];B[hs];W[ej];B[di];W[km];B[cq];W[bq];B[jm];W[jl];B[il] ;W[jk];B[hm];W[ll];B[br];W[bp];B[dr];W[ar];B[es];W[fs];B[ik] ;W[ij];B[hj];W[fi];B[gm];W[fm];B[ii];W[jj];B[gj];W[fj];B[hh] ;W[eh];B[bh];W[kh];B[hf];W[gk];B[hk];W[ig];B[hg];W[hd];B[dd] ;W[cd];B[kg];W[lg];B[kf];W[lf];B[ke];W[le];B[kd];W[ld];B[lc] ;W[mc];B[kc];W[qf];B[mm];W[kn];B[pk];W[nd];B[re];W[qe];B[qd] ;W[rf];B[pb];W[fd];B[qj];W[jh];B[if];W[ic];B[rd];W[nk];B[om] ;W[bg];B[oi];W[oh];B[ph];W[pg];B[nh];W[og];B[nj];W[bj];B[bi] ;W[ch];B[bk];W[ff];B[or];W[qh];B[lj];W[li];B[fg];W[eg];B[mj] ;W[ih];B[cp];W[bs];B[bo];W[cr];B[ib];W[hb];B[jc];W[ri];B[do] ;W[ds];B[id];W[hc];B[rj];W[op];B[pp];W[oo];B[on];W[ah];B[aj] ;W[ml];B[qi];W[rh];B[mo];W[mp];B[oe];W[ng];B[mh];W[lh];B[mg] ;W[nf];B[ne];W[mf];B[ja];W[sj];B[sk];W[si];B[rl];W[oc];B[pc] ;W[ol];B[pl];W[ha];B[ge];W[fe];B[gd];W[gc];B[fc];W[fb];B[fh] ;W[he];B[gf];W[ec];B[mb];W[nb];B[lb];W[ie];B[je];W[jg];B[jf] ;W[in];B[im];W[ob];B[mr];W[od];B[pe];W[oq];B[nr];W[po];B[pn] ;W[lr];B[lo];W[ia];B[jb];W[pi];B[ok];W[nl];B[rb];W[mi];B[ni] ;W[ms];B[kj];W[ji];B[gi];W[pr];B[qr];W[qp];B[qq];W[lp];B[qn] ;W[no];B[mn];W[nq];B[me];W[md];B[sf];W[sg];B[se];W[pa];B[qa] ;W[ao];B[an];W[ap];B[ma];W[ns];B[ps];W[ls];B[ai];W[ag];B[os] ;W[kk];B[oa];W[na];B[js];W[dq];B[co];W[jd];B[pa];W[id];B[hi] )goban-1.1.orig/games/M-69-5.mgt0000644000175000017500000000214406252627042013557 0ustar alal(;GM[1]SZ[19]PW[Takagawa Kaku]PB[Rin Kaiho]KM[5]DT[1969-10-02,03]RE[B+R]FF[3]ID[69/5]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[oc];B[cp];W[ep];B[eq];W[fq];B[dq] ;W[qo];B[ld];W[nd];B[pg];W[qi];B[qb];W[jc];B[ke];W[lb];B[id] ;W[jd];B[je];W[ie];B[gd];W[if];B[ic];W[ib];B[hb];W[jb];B[gf] ;W[fe];B[ge];W[ih];B[oe];W[ne];B[kh];W[ng];B[pi];W[pj];B[oi] ;W[qh];B[og];W[lf];B[jg];W[ig];B[lg];W[mg];B[mh];W[nh];B[ni] ;W[pl];B[mi];W[le];B[kd];W[mc];B[gh];W[ij];B[cf];W[fb];B[ef] ;W[ce];B[bf];W[hc];B[hd];W[gc];B[fp];W[rf];B[pc];W[kf];B[jf] ;W[gj];B[ej];W[fl];B[dl];W[hp];B[fo];W[mq];B[hl];W[hn];B[jl] ;W[fn];B[fk];W[gk];B[gl];W[el];B[ek];W[dm];B[kk];W[ei];B[di] ;W[dk];B[eh];W[cl];B[qp];W[po];B[ro];W[rn];B[rp];W[kj];B[lk] ;W[fi];B[dj];W[dh];B[ch];W[dg];B[df];W[fg];B[fh];W[ik];B[fc] ;W[il];B[gb];W[od];B[qf];W[re];B[qe];W[cc];B[db];W[eb];B[ec] ;W[dc];B[bd];W[cb];B[fa];W[da];B[ab];W[ac];B[bc];W[bb];B[ba] ;W[aa];B[ob];W[nb];B[ab];W[be];B[ae];W[aa];B[en];W[gn];B[ab] ;W[gg];B[ff];W[aa];B[kc];W[cd];B[md];W[oa];B[pb];W[kb];B[ma] ;W[of];B[pe];W[me];B[nf];W[lj];B[ki];W[mj];B[rg];W[qg];B[rd] ;W[or];B[pr];W[fr];B[do])goban-1.1.orig/games/Hon-57-6.mgt0000644000175000017500000000347106045540250014104 0ustar alal (;GM[1]SZ[19]DT[1957-08-26,27]PW[Takagawa Kaku]RE[W+2.5]PB[Fujisawa Hosai]FF[3]KM[4.5]RO[6]PC[Akasaka, Tokyo]TM[10h]BS[0]WS[0];B[pd];W[dp];B[qp];W[dc];B[oq];W[qj];B[cf];W[cd];B[ci] ;W[ck];B[fq];W[dn];B[dr];W[cq];B[ip];W[qm];B[jc];W[nc];B[oc] ;W[nd];B[pf];W[gc];B[qh];W[kd];B[jd];W[ke];B[je];W[kf];B[jf] ;W[kg];B[ih];W[ki];B[ob];W[kp];B[iq];W[he];B[jg];W[ij];B[gf] ;W[ef];B[eh];W[gh];B[hi];W[dg];B[dk];W[dl];B[cg];W[hf];B[gi] ;W[gg];B[dj];W[el];B[bk];W[cl];B[de];W[ee];B[dd];W[ec];B[bd] ;W[cc];B[mp];W[dh];B[bj];W[fj];B[hk];W[be];B[bf];W[jl];B[hc] ;W[gb];B[lc];W[nb];B[ji];W[jj];B[mb];W[oe];B[na];W[kr];B[bl] ;W[mr];B[nr];W[mq];B[np];W[bm];B[bn];W[am];B[ko];W[ir];B[hr] ;W[jq];B[lp];W[jp];B[jo];W[lq];B[kh];W[lh];B[li];W[jh];B[is] ;W[jr];B[kh];W[kj];B[mh];W[jh];B[rm];W[ii];B[ql];W[qf];B[pe] ;W[qg];B[ph];W[rh];B[ri];W[rf];B[qi];W[rd];B[rc];W[qc];B[rb] ;W[qd];B[qb];W[sg];B[si];W[sh];B[lg];W[kh];B[ho];W[pl];B[pm] ;W[om];B[qn];W[nk];B[ce];W[pn];B[qm];W[bc];B[ae];W[cr];B[me] ;W[mf];B[nf];W[of];B[ng];W[ne];B[pg];W[ld];B[nl];W[ol];B[mk] ;W[mc];B[kc];W[nj];B[mi];W[ml];B[lk];W[mm];B[nn];W[nm];B[pj] ;W[pk];B[hm];W[on];B[lf];W[km];B[hb];W[ha];B[ia];W[ga];B[ib] ;W[hj];B[di];W[fi];B[eq];W[nq];B[or];W[pp];B[op];W[po];B[pq] ;W[qk];B[rk];W[fo];B[go];W[fp];B[gp];W[dq];B[gk];W[hq];B[hs] ;W[er];B[fr];W[ds];B[gj];W[ei];B[mg];W[le];B[fd];W[gd];B[ed] ;W[fe];B[fk];W[ek];B[ac];W[ab];B[bb];W[ad];B[kk];W[im];B[ac] ;W[lj];B[mj];W[in];B[hl];W[hh];B[hn];W[ig];B[aa];W[cb];B[fc] ;W[fb];B[io];W[ca];B[oj];W[ni];B[og];W[il];B[ln];W[lm];B[qe] ;W[re];B[ad];W[qo];B[ro];W[oi];B[pi];W[rj];B[sj];W[ch];B[bh] ;W[mn];B[fs];W[fm];B[hd];W[ie];B[id];W[pc];B[es];W[pb];B[pa] ;W[dr];B[al];W[cm];B[fn];W[en];B[gn];W[no];B[fl];W[mo];B[lo] ;W[cj];B[df];W[eg];B[gm];W[ep];B[sd];W[se];B[sc];W[js];B[gq] ;W[ns];B[os];W[ms];B[em];W[md];B[od];W[ok];B[jn];W[ej];B[bi] ;W[mf];B[fm];W[me])goban-1.1.orig/games/Hon-72-7.sgf0000644000175000017500000000366006243710422014072 0ustar alal( ; GM[1] FF[3] DT[1972-07-06,07] SZ[19] PB[Rin Kaiho] PW[Ishida Yoshio] ID[27/7] PC[Yugawara] RE[W+2.5] ;B[pd];W[cq];B[pq];W[dc];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[df];W[dg];B[cc];W[db];B[bc];W[cb];B[cg];W[ch];B[bb] ;W[eb];B[bg];W[bf];B[bh];W[bd];B[ci];W[eg];B[fe];W[fc];B[ff] ;W[ei];B[cl];W[gh];B[ie];W[ic];B[ke];W[po];B[pl];W[no];B[mq] ;W[pf];B[pi];W[nd];B[qc];W[nf];B[ih];W[nh];B[gc];W[gb];B[ij] ;W[el];B[gk];W[fk];B[gl];W[cm];B[dk];W[dm];B[fj];W[jf];B[id] ;W[cj];B[bj];W[ej];B[ek];W[di];B[dh];W[ck];B[fl];W[dl];B[ae] ;W[ad];B[af];W[ab];B[eh];W[fh];B[ch];W[dj];B[fi];W[fk];B[dq] ;W[cp];B[gp];W[qq];B[qr];W[qp];B[or];W[lo];B[qh];W[qg];B[ni] ;W[mi];B[nj];W[qm];B[ql];W[rl];B[rk];W[rm];B[kp];W[fq];B[gq] ;W[gr];B[fp];W[fr];B[eq];W[hq];B[eo];W[jq];B[kq];W[hp];B[ho] ;W[io];B[hr];W[hs];B[ir];W[jr];B[er];W[iq];B[hn];W[kr];B[lr] ;W[ks];B[co];W[bo];B[qe];W[kf];B[hc];W[rh];B[ri];W[ph];B[qi] ;W[oc];B[le];W[lf];B[lc];W[pb];B[qb];W[mc];B[lb];W[hb];B[jc] ;W[rf];B[re];W[rr];B[rs];W[sr];B[ib];W[li];B[nl];W[bk];B[me] ;W[ne];B[ai];W[ji];B[ii];W[ls];B[op];W[mr];B[np];W[oh];B[nr] ;W[lq];B[lp];W[om];B[ol];W[cr];B[ag];W[ba];B[jh];W[kh];B[en] ;W[mb];B[jj];W[if];B[hf];W[lk];B[lr];W[mk];B[pm];W[pn];B[on] ;W[oo];B[nn];W[lq];B[es];W[is];B[lr];W[ek];B[gj];W[lq];B[cn] ;W[bn];B[lr];W[dp];B[ep];W[lq];B[fd];W[ed];B[lr];W[ak];B[aj] ;W[lq];B[cs];W[bs];B[lr];W[nk];B[ok];W[lq];B[ds];W[mo];B[lr] ;W[oi];B[oj];W[lq];B[be];W[ac];B[lr];W[ig];B[hg];W[lq];B[qn] ;W[rn];B[lr];W[mm];B[nm];W[lq];B[rq];W[mp];B[lr];W[se];B[sd] ;W[lq];B[sq];W[nq];B[in];W[jn];B[jo];W[ip];B[jm];W[kn];B[kk] ;W[rp];B[ss];W[kl];B[jl];W[kj];B[jk];W[br];B[ki];W[la];B[lj] ;W[mj];B[kg];W[lh];B[ka];W[ma];B[pc];W[oa];B[sf];W[sg];B[mf] ;W[mg];B[qa];W[se];B[qf];W[rg];B[rd];W[je];B[kb];W[km];B[oq] ;W[mq];B[ml];W[mn];B[ia];W[ha];B[ee];W[ec];B[jg];W[lg];B[sp] ;W[so];B[sk];W[si];B[kj];W[sl];B[pa];W[ob];B[ll];W[qk];B[pk] ;W[ns];B[os];W[em];B[fm];W[lm];B[jd];W[ld];B[kd];W[md];B[fs] ;W[gs];B[oe];W[of];B[sf];W[ms];B[se]) goban-1.1.orig/games/M-77-4.mgt0000644000175000017500000000202006252627042013546 0ustar alal(;DT[1977-10-12]PB[Rin Kaiho]PW[Otake Hideo]RE[B+R]BR[9 Dan]WR[9 Dan]ID[77/4]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dc];B[qp];W[op];B[dp];W[qq];B[rq];W[pq];B[ro] ;W[kq];B[ce];W[dh];B[fe];W[gc];B[hd];W[hc];B[id];W[ic];B[jd] ;W[kc];B[ed];W[ec];B[dj];W[fh];B[hh];W[ej];B[ek];W[fj];B[di] ;W[eh];B[dn];W[hj];B[ji];W[jk];B[pn];W[qf];B[le];W[qi];B[iq] ;W[on];B[om];W[nn];B[nm];W[cq];B[dq];W[dr];B[er];W[bp];B[cr] ;W[cm];B[bl];W[br];B[ds];W[cn];B[mn];W[mp];B[cl];W[dm];B[gk] ;W[fk];B[el];W[en];B[fl];W[gl];B[hk];W[gm];B[il];W[gn];B[bh] ;W[bg];B[bf];W[hi];B[ik];W[ih];B[hg];W[ii];B[jj];W[jh];B[lh] ;W[hf];B[if];W[gf];B[ig];W[gd];B[ge];W[ch];B[bi];W[cf];B[ag] ;W[de];B[cg];W[df];B[dd];W[cd];B[be];W[he];B[cc];W[ff];B[bd] ;W[kg];B[ie];W[lg];B[lc];W[kb];B[pf];W[pg];B[nf];W[mh];B[og] ;W[lj];B[ph];W[qg];B[kk];W[oh];B[nh];W[oi];B[ni];W[lk];B[mi] ;W[jl];B[jm];W[kl];B[in];W[mg];B[ng];W[ij];B[do];W[ip];B[hp] ;W[hq];B[jp];W[gp];B[io];W[em];B[gq];W[bs];B[cp];W[bq];B[ao] ;W[bm];B[am];W[an];B[bn];W[fq];B[hr];W[bo];B[an];W[co];B[fo] ;B[an];W[bm])goban-1.1.orig/games/Hon-69-5.mgt0000644000175000017500000000233206045540400014076 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Kato Masao]KM[4.5]RE[B+R]DT[1969-06-05,06]FF[3]BS[0]WS[0];B[qd];W[qp];B[cd];W[dp];B[oc];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[fq];W[oq];B[dn];W[en];B[em];W[eo];B[cq] ;W[dm];B[dq];W[dl];B[qj];W[cp];B[iq];W[qm];B[ck];W[dk];B[cj] ;W[ch];B[dj];W[dg];B[cn];W[bl];B[bo];W[bm];B[bp];W[fm];B[fj] ;W[df];B[gk];W[gl];B[hk];W[io];B[jk];W[rd];B[rc];W[pd];B[qc] ;W[pf];B[qe];W[oj];B[pl];W[ql];B[pk];W[lk];B[ph];W[ij];B[jj] ;W[ii];B[hl];W[gp];B[fp];W[go];B[ji];W[ih];B[fo];W[ej];B[ei] ;W[ek];B[dh];W[cg];B[fh];W[gi];B[fi];W[gn];B[jn];W[jo];B[kn] ;W[kg];B[lh];W[kh];B[ki];W[oh];B[lg];W[pi];B[qh];W[qi];B[ri] ;W[rh];B[rg];W[li];B[lf];W[je];B[lj];W[mi];B[mj];W[mh];B[nj] ;W[ni];B[pj];W[oi];B[ok];W[me];B[ng];W[og];B[nf];W[ne];B[oe] ;W[of];B[jf];W[if];B[kd];W[ld];B[jd];W[ie];B[ke];W[jc];B[id] ;W[kf];B[le];W[mc];B[ic];W[mf];B[mg];W[ib];B[hb];W[jb];B[fb] ;W[gb];B[ga];W[hc];B[hd];W[ha];B[he];W[gg];B[gf];W[hf];B[ge] ;W[fg];B[fe];W[fd];B[ee];W[eb];B[de];W[bf];B[gh];W[hh];B[hr] ;W[rj];B[sh];W[rk];B[on];W[mn];B[no];W[mo];B[np];W[ko];B[nq] ;W[or];B[be];W[ce];B[pp];W[po];B[qo];W[pn];B[qq];W[rp];B[op] ;W[bd];B[ro];W[rq];B[rr];W[qr];B[pq];W[sr];B[rs];W[qs];B[sp] ;W[ss];B[rr];W[rs];B[so];W[fa];B[cf];W[om];B[nl];W[ce];B[dd] )goban-1.1.orig/games/Hon-68-3.mgt0000644000175000017500000000300106045540376014101 0ustar alal (;GM[1]SZ[19]KM[4.5]PB[Sakata Eio]PW[Rin Kaiho]RE[W+12.5]FF[3]DT[1968-06-27,28]BS[0]WS[0];B[qd];W[dd];B[pq];W[cp];B[oc];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qn];W[pn];B[pm];W[qq];B[pr];W[rq];B[qr];W[qm];B[ql] ;W[rr];B[or];W[rm];B[rn];W[rl];B[rp];W[qk];B[om];W[no];B[nq] ;W[nn];B[ok];W[qh];B[lp];W[lo];B[ko];W[kn];B[jo];W[mp];B[ln] ;W[lm];B[mo];W[mn];B[lo];W[ml];B[nj];W[mq];B[mr];W[np];B[op] ;W[lq];B[lk];W[jm];B[fp];W[hm];B[kq];W[lr];B[do];W[dp];B[ep] ;W[bn];B[kl];W[km];B[ho];W[ik];B[ki];W[ii];B[hd];W[qf];B[fc] ;W[ec];B[fd];W[cf];B[jg];W[nd];B[od];W[nf];B[pg];W[ph];B[og] ;W[qg];B[ne];W[me];B[oe];W[ke];B[lf];W[jc];B[lc];W[kc];B[lb] ;W[if];B[ie];W[jf];B[kd];W[kg];B[jd];W[lg];B[oh];W[dm];B[dr] ;W[fg];B[cc];W[fb];B[hf];W[hg];B[db];W[eb];B[be];W[bf];B[ce] ;W[de];B[bb];W[ae];B[bd];W[gf];B[le];W[en];B[co];W[bo];B[kf] ;W[jh];B[gb];W[mg];B[qj];W[rj];B[qe];W[cr];B[er];W[eo];B[cq] ;W[bp];B[br];W[md];B[ld];W[mf];B[fe];W[ef];B[jr];W[go];B[gp] ;W[kr];B[gn];W[gm];B[pk];W[pl];B[oi];W[jq];B[iq];W[kp];B[jp] ;W[kq];B[qi];W[ri];B[ir];W[ga];B[hb];W[re];B[rd];W[rf];B[jl] ;W[il];B[in];W[ms];B[nr];W[im];B[ad];W[af];B[bq];W[so];B[sp] ;W[sn];B[sr];W[sd];B[sc];W[se];B[rc];W[he];B[je];W[pf];B[of] ;W[ha];B[ia];W[fa];B[ib];W[ge];B[kh];W[fo];B[hn];W[mk];B[nm] ;W[mm];B[mi];W[jj];B[kj];W[jk];B[kk];W[da];B[dc];W[ed];B[ca] ;W[cd];B[pi];W[dq];B[eq];W[ea];B[aa];W[gd];B[gc];W[sm];B[rs] ;W[fn];B[ap];W[ao];B[aq];W[js];B[is];W[pe];B[mh];W[pd];B[pc] ;W[jn];B[hp];W[mc];B[ee];W[df];B[mb];W[nc];B[nb];W[ng];B[nh] ;W[ig];B[lh];W[jg];B[mj];W[ns];B[os];W[ls];W[ks])goban-1.1.orig/games/M-62-l15.sgf0000644000175000017500000000331706252641340013775 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[9 dan] PB[Hashimoto Shoji] PW[Shimamura Toshihiro] RE[B+3] ;B[pd];W[dp];B[pq];W[cc];B[qn];W[gq];B[dd];W[dc];B[ed] ;W[be];B[ec];W[df];B[ic];W[nq];B[cn];W[cp];B[ck];W[ci];B[oo] ;W[lp];B[nd];W[ln];B[en];W[dm];B[dn];W[bl];B[bk];W[bm];B[cm] ;W[cl];B[dl];W[dk];B[el];W[bn];B[dj];W[jd];B[ie];W[id];B[hd] ;W[he];B[hc];W[if];B[je];W[ek];B[fl];W[qm];B[jf];W[rn];B[qo] ;W[ej];B[qk];W[pm];B[mo];W[lo];B[nm];W[pk];B[qi];W[ro];B[rp] ;W[nn];B[on];W[om];B[mn];W[nl];B[mm];W[rq];B[qp];W[oi];B[nj] ;W[ni];B[nk];W[ml];B[lm];W[lj];B[lk];W[ll];B[ol];W[kl];B[pj] ;W[oj];B[pl];W[ok];B[ql];W[km];B[mp];W[lq];B[fo];W[qg];B[fq] ;W[gp];B[eq];W[rl];B[rk];W[qh];B[ri];W[pi];B[qj];W[qc];B[qd] ;W[rd];B[pc];W[rb];B[qb];W[rc];B[mf];W[eb];B[go];W[or];B[ei] ;W[fj];B[di];W[cj];B[fi];W[gj];B[gi];W[ho];B[hj];W[bj];B[hn] ;W[io];B[fb];W[pb];B[ob];W[qa];B[ef];W[qr];B[sp];W[dg];B[ce] ;W[cd];B[de];W[bf];B[jh];W[eg];B[fg];W[ff];B[ee];W[lg];B[lf] ;W[db];B[cr];W[bq];B[gk];W[ak];B[gr];W[hr];B[fs];W[jk];B[ki] ;W[li];B[pf];W[gb];B[fc];W[oa];B[nb];W[na];B[ma];W[pa];B[mb] ;W[fa];B[re];W[np];B[no];W[rf];B[pr];W[ps];B[in];W[jn];B[hs] ;W[ir];B[jo];W[jr];B[jm];W[kn];B[ik];W[ia];B[ja];W[ha];B[ib] ;W[jb];B[ka];W[kb];B[la];W[rh];B[sj];W[jj];B[se];W[og];B[ii] ;W[kg];B[jg];W[br];B[gc];W[dr];B[sr];W[mg];B[ck];W[bk];B[cf] ;W[cg];B[ip];W[hp];B[oq];W[mr];B[nf];W[il];B[hl];W[ea];B[rr] ;W[rs];B[eh];W[ij];B[hk];W[of];B[oe];W[pg];B[qf];W[dh];B[bg] ;W[ch];B[ds];W[dq];B[es];W[bs];B[co];W[bo];B[cs];W[kh];B[ji] ;W[mq];B[qq];W[qs];B[im];W[jl];B[sf];W[kf];B[ke];W[rg];B[ng] ;W[nh];B[kj];W[kk];B[sd];W[sc];B[fp];W[hq];B[er];W[is];B[gs] ;W[eo];B[ep];W[do];B[cq];W[bp];B[fn];W[op];B[pp]C[257 moves complete.]) goban-1.1.orig/games/M-65-2.sgf0000644000175000017500000000300306252650060013527 0ustar alal( ; GM[1] EV[4th Meijin Title Match] RO[2] PB[Rin Kaiho] BR[8 dan] PW[Sakata Eio] WR[Meijin] DT[Aug 8/9, 1965] PC[Okinawa] RE[B+4] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[dq];B[oc];W[po];B[qo];W[qn];B[qp];W[pm] ;B[nq];W[qi];B[ce];W[qf];B[do];W[ci];B[dd];W[ec];B[cc];W[cb] ;B[bc];W[gd];B[cq];W[cl];B[eq];W[dp];B[cp];W[ep];B[dr];W[fp] ;B[fq];W[cr];B[gp];W[fo];B[br];W[er];B[cs];W[gq];B[fr];W[gr] ;B[es];W[ho];B[kd];W[oe];B[od];W[ne];B[ed];W[fd];B[hc];W[hd] ;B[ic];W[ld];B[ke];W[nd];B[kg];W[li];B[hg];W[fg];B[fc];W[gc] ;B[fb];W[gb];B[db];W[id];B[kc];W[nb];B[ob];W[lb];B[ki];W[rd] ;B[rc];W[kh];B[jh];W[lh];B[if];W[ji];B[fe];W[ih];B[jg];W[hi] ;B[ge];W[re];B[nc];W[mc];B[na];W[mb];B[qb];W[op];B[oq];W[mp] ;B[np];W[no];B[mo];W[lp];B[kj];W[lj];B[jj];W[ii];B[kl];W[lk] ;B[jl];W[he];B[gf];W[fi];B[jp];W[jo];B[nn];W[oo];B[kp];W[ko] ;B[lo];W[ip];B[lq];W[lm];B[mm];W[nl];B[dl];W[cm];B[in];W[io] ;B[dm];W[fl];B[fm];W[gm];B[ck];W[bk];B[dk];W[cj];B[fn];W[gn] ;B[jb];W[en];B[dn];W[ln];B[mn];W[ml];B[ro];W[rn];B[mf];W[ng] ;B[bh];W[bn];B[bo];W[bi];B[em];W[jr];B[on];W[pn];B[mg];W[mh] ;B[sn];W[sm];B[so];W[rm];B[ch];W[gg];B[hf];W[ej];B[kr];W[dg] ;B[dh];W[eh];B[cg];W[jq];B[kq];W[ks];B[ls];W[js];B[cn];W[gs] ;B[ef];W[eg];B[bm];W[bl];B[an];W[cf];B[df];W[bf];B[di];W[dj] ;B[be];W[ah];B[af];W[mr];B[mq];W[qe];B[pd];W[lr];B[nr];W[ms] ;B[ns];W[ls];B[hh];W[gh];B[ek];W[fk];B[pe];W[pf];B[nf];W[of] ;B[om];W[ol];B[sd];W[se];B[sc];W[al];B[fs];W[go];B[eo];W[am] ;B[bn];W[lf];B[lg];W[le];B[kf];W[ka];B[ja];W[ma];B[oa];W[kb] ;B[me];W[md] ) goban-1.1.orig/games/M-85-5.mgt0000644000175000017500000000240706252627042013557 0ustar alal(;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1985-10-23,24]RE[W+2.5]ID[85/5]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[po];B[qo];W[qn];B[qp];W[pm];B[cp] ;W[oq];B[pp];W[op];B[oo];W[pn];B[or];W[nr];B[pr];W[no];B[nq] ;W[on];B[mq];W[od];B[qf];W[qc];B[rc];W[pc];B[rb];W[kc];B[eq] ;W[cj];B[fc];W[fd];B[eb];W[ec];B[db];W[gc];B[fb];W[gd];B[cd] ;W[ce];B[cc];W[be];B[ek];W[dl];B[el];W[dm];B[em];W[dn];B[fo] ;W[lp];B[dj];W[dk];B[ej];W[ci];B[jp];W[lq];B[mr];W[kn];B[qi] ;W[gb];B[bd];W[ph];B[qh];W[pf];B[pe];W[qg];B[rg];W[pg];B[ri] ;W[oe];B[ko];W[jn];B[lo];W[ln];B[ip];W[hj];B[oj];W[dp];B[dq] ;W[gm];B[en];W[nj];B[oi];W[ni];B[nh];W[oh];B[nk];W[mk];B[ml] ;W[nl];B[ok];W[lk];B[ll];W[kk];B[ng];W[nf];B[ij];W[li];B[pi] ;W[of];B[il];W[jk];B[ik];W[ih];B[mo];W[mn];B[ii];W[hh];B[ki] ;W[kh];B[kj];W[lj];B[im];W[jh];B[hi];W[gi];B[fi];W[cq];B[bp] ;W[co];B[bo];W[bn];B[ep];W[do];B[bq];W[gh];B[gj];W[cr];B[br] ;W[in];B[hn];W[hm];B[gn];W[eh];B[oa];W[ob];B[pa];W[na];B[qb] ;W[pb];B[qa];W[kb];B[ae];W[af];B[ad];W[bf];B[ro];W[ql];B[an] ;W[am];B[ao];W[np];B[mp];W[bm];B[ol];W[nm];B[rk];W[io];B[ho] ;W[fa];B[bb];W[rl];B[qk];W[pd];B[qe];W[rn];B[ea];W[ga];B[dc] ;W[ed];B[di];W[dh];B[fh];W[fg];B[jm];W[km];B[jl];W[kl];B[hk] ;W[ei];B[fj];W[sk];B[sj];W[sl];B[sn];W[sm];B[so];W[pl];B[pk] )goban-1.1.orig/games/M-93-1.mgt0000644000175000017500000000326606252627044013560 0ustar alal(;GM[1]PB[Otake Hideo]BR[9 Dan]PW[Kobayashi Koichi]PC[ ]RE[W+1.5]SZ[19]KM[5]ID[93/1]BS[0]WS[0]FF[3]WR[9 Dan]DT[1993-09-01,02]KI[10];B[qd];W[dp];B[fq];W[cn];B[dd];W[qq];B[dr];W[nc];B[pc] ;W[kc];B[ic];W[cf];B[fd];W[cc];B[cd];W[bd];B[dc];W[bb];B[cb] ;W[bc];B[qj];W[ne];B[pg];W[cq];B[iq];W[qn];B[oq];W[kq];B[oo] ;W[pp];B[op];W[ko];B[io];W[km];B[nm];W[hq];B[ir];W[hp];B[ip] ;W[fp];B[hr];W[gq];B[gr];W[eq];B[fr];W[il];B[ho];W[ql];B[dm] ;W[cm];B[dk];W[pj];B[pi];W[pk];B[mk];W[kk];B[oi];W[dh];B[cl] ;W[el];B[dl];W[fn];B[gp];W[cj];B[gl];W[fl];B[fk];W[gm];B[dj] ;W[di];B[gk];W[hm];B[fi];W[fg];B[em];W[fm];B[ii];W[ki];B[jh] ;W[id];B[hd];W[jd];B[he];W[ib];B[hc];W[jb];B[ob];W[nb];B[rk] ;W[gh];B[gi];W[if];B[ef];W[pe];B[qe];W[mq];B[cr];W[mo];B[po] ;W[qo];B[qr];W[rr];B[pq];W[qp];B[rl];W[nk];B[rs];W[sr];B[lp] ;W[lo];B[lr];W[lq];B[mr];W[kr];B[nj];W[nl];B[pm];W[qm];B[ml] ;W[pn];B[nr];W[pr];B[ps];W[qs];B[om];W[os];B[no];W[bj];B[kh] ;W[hh];B[jj];W[eo];B[ce];W[be];B[df];W[dg];B[kj];W[br];B[bm] ;W[er];B[es];W[ds];B[cs];W[bs];B[lf];W[oc];B[pb];W[hb];B[gb] ;W[ga];B[fb];W[pf];B[qf];W[ng];B[og];W[le];B[ke];W[ld];B[bn] ;W[fs];B[rm];W[is];B[js];W[jr];B[hs];W[ks];B[hq];W[bk];B[bl] ;W[rn];B[ie];W[fh];B[mg];W[mf];B[lg];W[nh];B[db];W[qk];B[of] ;W[nf];B[bp];W[co];B[lm];W[or];B[nq];W[jn];B[na];W[ma];B[oa] ;W[lb];B[bo];W[rj];B[qi];W[sm];B[ri];W[oj];B[jk];W[sl];B[sj] ;W[mn];B[mm];W[ca];B[jl];W[jm];B[kl];W[mi];B[gs];W[dq];B[oe] ;W[od];B[pd];W[lj];B[lk];W[ff];B[fe];W[hj];B[hi];W[ik];B[hf] ;W[je];B[jf];W[ig];B[mp];W[kp];B[go];W[fo];B[bq];W[ar];B[dn] ;W[do];B[fa];W[jg];B[kf];W[ha];B[da];W[ba];B[np];W[gf];B[hg] ;W[ih];B[ak];W[aj];B[al];W[li];B[ji];W[ge];B[aq];W[ds];B[gd] ;W[oh];B[ni];W[mh];B[ph];W[fs];B[is];W[es])goban-1.1.orig/games/M-92-2.mgt0000644000175000017500000000327006252640030013541 0ustar alal(;GM[1]VW[]FF[3]DT[1992-09-24,25]SZ[19]PB[Otake Hideo]PW[Kobayashi Koichi]PC[Shizuoka]RE[B+0.5]BS[0]WS[0]ID[92/2];B[qd];W[dp];B[cd];W[qp];B[oc];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[oq];W[lp];B[oo];W[pn];B[qq];W[rq];B[qr] ;W[pp];B[op];W[mq];B[ql];W[pl];B[pk];W[pm];B[qj];W[mm];B[rr] ;W[nl];B[ok];W[nn];B[nr];W[fp];B[dk];W[cm];B[mc];W[ke];B[iq] ;W[qe];B[pe];W[qf];B[rd];W[og];B[mj];W[mh];B[kj];W[nk];B[nj] ;W[oi];B[oj];W[lk];B[lj];W[kh];B[kq];W[jo];B[mr];W[ci];B[hf] ;W[ei];B[eg];W[ff];B[jh];W[jg];B[ih];W[fj];B[lg];W[lf];B[kg] ;W[mg];B[jf];W[nd];B[md];W[lh];B[ig];W[ic];B[dm];W[cl];B[go] ;W[dn];B[en];W[eo];B[cn];W[do];B[jm];W[jl];B[il];W[jk];B[km] ;W[ll];B[im];W[jj];B[qh];W[qg];B[ln];W[hi];B[ji];W[ki];B[kf] ;W[me];B[ie];W[ho];B[gp];W[hn];B[gn];W[hm];B[hk];W[qm];B[pi] ;W[jp];B[mo];W[gl];B[rl];W[lo];B[mn];W[no];B[mp];W[np];B[lq] ;W[nq];B[gk];W[fk];B[gi];W[hl];B[ik];W[ij];B[fl];W[el];B[fm] ;W[jn];B[dl];W[gj];B[bn];W[bo];B[ck];W[co];B[bl];W[an];B[bm] ;W[lb];B[mb];W[rh];B[oh];W[ri];B[nf];W[od];B[ne];W[oe];B[of] ;W[pd];B[pf];W[pg];B[pc];W[ng];B[nc];W[rj];B[ni];W[rk];B[qk] ;W[ph];B[nh];W[fr];B[sg];W[re];B[se];W[rm];B[fi];W[eh];B[fb] ;W[gb];B[ea];W[jq];B[bh];W[bi];B[hb];W[ib];B[ga];W[gc];B[fg] ;W[gg];B[fh];W[hj];B[gf];W[ek];B[dj];W[em];B[fe];W[hc];B[jr] ;W[kr];B[lr];W[ir];B[ks];W[hr];B[ej];W[fd];B[lc];W[ef];B[df] ;W[ee];B[hh];W[dg];B[gh];W[kb];B[ha];W[ia];B[fa];W[dd];B[cc] ;W[rp];B[on];W[nm];B[sm];W[sn];B[sl];W[sf];B[rf];W[sh];B[sd] ;W[rg];B[sf];W[qi];B[ge];W[jd];B[mf];W[la];B[le];W[ma];B[na] ;W[pq];B[pr];W[am];B[al];W[ao];B[de];W[bg];B[bf];W[ah];B[bj] ;W[aj];B[ak];W[po];B[cj];W[sr];B[kd];W[ld];B[sk];W[sj];B[kd] ;W[id];B[je];W[is];B[kp];W[ko];B[kk];W[kl];B[js];W[mk];B[rs] )goban-1.1.orig/games/Hon-59-2.mgt0000644000175000017500000000316006045540252014077 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+2.5]DT[1959-06-]BS[0]WS[0];B[pd];W[dc];B[dp];W[pq];B[qo];W[qk];B[no];W[mq];B[ce] ;W[ci];B[dd];W[ec];B[cc];W[cb];B[bc];W[hc];B[ed];W[fd];B[fe] ;W[gd];B[ck];W[cg];B[qi];W[qm];B[qq];W[qr];B[rq];W[rr];B[pl] ;W[pm];B[pp];W[oq];B[pk];W[om];B[np];W[lr];B[ql];W[rl];B[rk] ;W[rm];B[pj];W[mm];B[lp];W[mp];B[mo];W[lo];B[ln];W[ko];B[mn] ;W[ro];B[rp];W[so];B[io];W[jn];B[lm];W[ml];B[ll];W[mk];B[jl] ;W[in];B[ho];W[hn];B[go];W[jp];B[lj];W[mj];B[mi];W[ni];B[lk] ;W[mh];B[li];W[oj];B[pg];W[of];B[pf];W[pc];B[qc];W[oc];B[qb] ;W[od];B[pe];W[cq];B[cp];W[dq];B[bq];W[br];B[bp];W[fq];B[hq] ;W[fo];B[gn];W[ep];B[cm];W[en];B[gl];W[il];B[fk];W[ik];B[lh] ;W[bb];B[mf];W[ld];B[oe];W[sq];B[gr];W[fr];B[ir];W[jr];B[ar] ;W[bs];B[jd];W[lf];B[lg];W[je];B[ie];W[jf];B[ic];W[if];B[he] ;W[ge];B[hf];W[hg];B[gf];W[ff];B[gg];W[ee];B[hh];W[kb];B[jb] ;W[mb];B[eg];W[me];B[df];W[fg];B[eh];W[fh];B[ei];W[dj];B[fi] ;W[dm];B[cl];W[ek];B[jq];W[kq];B[ip];W[fm];B[gm];W[fl];B[gj] ;W[iq];B[do];W[dl];B[jq];W[kn];B[ne];W[nd];B[kf];W[le];B[ke] ;W[kd];B[kg];W[pb];B[hb];W[gb];B[cf];W[bh];B[bj];W[bf];B[be] ;W[af];B[ka];W[kc];B[oa];W[na];B[pa];W[ob];B[qa];W[ha];B[ib] ;W[la];B[ab];W[gh];B[ig];W[hd];B[id];W[sp];B[qp];W[sk];B[rj] ;W[op];B[oo];W[qn];B[po];W[hk];B[gk];W[oh];B[ii];W[jj];B[dn] ;W[ph];B[qh];W[is];B[hs];W[js];B[jo];W[iq];B[ba];W[da];B[jq] ;W[kp];B[cj];W[di];B[bi];W[ah];B[gp];W[eo];B[pi];W[ji];B[dr] ;W[cr];B[fs];W[es];B[er];W[gs];B[nq];W[nr];B[fs];W[eq];B[ds] ;W[gq];B[ej];W[dk];B[og];W[jh];B[jg];W[iq];B[hr];W[jq];B[dh] ;W[ch];B[gi];W[ae];B[ad];W[ai];B[aj];W[sj];B[si];W[sl];B[ng] ;W[nh];B[de];W[eb];B[mg];W[ij];B[ja])goban-1.1.orig/games/Hon-83-1.mgt0000644000175000017500000000235406045540436014103 0ustar alal (;GM[1]SZ[19]DT[1983-05-16,17]PC[Yokohama]PB[Rin Kaiho]PW[Cho Chikun]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[qq];B[dd];W[dp];B[jd];W[qf];B[cn];W[fp];B[dj] ;W[qc];B[pc];W[qd];B[pe];W[qe];B[og];W[cc];B[dc];W[cd];B[ce] ;W[be];B[bf];W[db];B[eb];W[ec];B[de];W[fb];B[cb];W[ea];B[bb] ;W[hc];B[ib];W[ph];B[oh];W[pi];B[oi];W[pj];B[np];W[kp];B[pp] ;W[qp];B[pn];W[qo];B[nk];W[ef];B[cq];W[cp];B[bp];W[dq];B[br] ;W[cr];B[bq];W[ip];B[pl];W[ee];B[dg];W[ed];B[if];W[cl];B[dr] ;W[er];B[cs];W[jh];B[dh];W[kf];B[kg];W[nd];B[ob];W[kd];B[jf] ;W[je];B[ie];W[jc];B[ke];W[ic];B[ld];W[kc];B[mc];W[el];B[dm] ;W[dl];B[gl];W[em];B[gn];W[co];B[en];W[bn];B[fo];W[gp];B[bo] ;W[fm];B[fn];W[gm];B[hm];W[hl];B[im];W[gk];B[il];W[hk];B[ik] ;W[hi];B[ij];W[hh];B[fh];W[fi];B[ej];W[fk];B[bk];W[bl];B[an] ;W[ck];B[bj];W[cj];B[ci];W[cm];B[dn];W[am];B[bm];W[bi];B[bh] ;W[bn];B[eq];W[fq];B[bm];W[ei];B[di];W[bn];B[qn];W[or];B[bm] ;W[ak];B[ai];W[kh];B[jo];W[io];B[ho];W[in];B[hn];W[jn];B[ii] ;W[ih];B[gg];W[bn];B[jq];W[iq];B[bm];W[kj];B[kl];W[bn];B[hj] ;W[gi];B[bm];W[mi];B[mg];W[bn];B[mq];W[ao];B[es];W[fr];B[qb] ;W[qk];B[kq];W[lp];B[lm];W[fs];B[ds];W[oq];B[jp];W[ln];B[ko] ;W[kn];B[lo];W[mo];B[mp];W[ll];B[lk];W[ml];B[kk];W[mk];B[mj] ;W[nl];B[lj];W[ok];B[nj];W[oo];B[ir];W[hr];B[no];W[on];B[ol] ;W[mn])goban-1.1.orig/games/Hon-95-1.sgf0000644000175000017500000000277206243541314014076 0ustar alal( ; GM[1] VW[] US[Jan van der Steen (jansteen@cwi.nl)] EV[50th Honinbo, game 1] PB[Kato Masao] BR[9 dan] PW[Cho Chikun] WR[9 dan] DT[11, 12 May 1995] PC[Seoul, Korea] RE[W+3.5] KM[5.5] ;B[qd];W[dd];B[cp];W[pp];B[eq];W[oc];B[pf];W[lc];B[cj];W[qn] ;B[kq];W[qh];B[pc];W[od];B[qf];W[cf];B[jc];W[hc];B[je];W[mf] ;B[kh];W[he];B[ld];W[md];B[le];W[kc];B[me];W[ne];B[mc];W[mb] ;B[nd];W[of];B[lb];W[kb];B[nb];W[la];B[ob];W[nc];B[md];W[lf] ;B[kd];W[jb];B[kf];W[oh];B[pi];W[ph];B[ng];W[nf];B[mh];W[og] ;B[nj];W[pk];B[pq];W[oq];B[op];W[nq];B[qp];W[po];B[qr];W[no] ;B[qo];W[pn];B[mp];W[np];B[ip];W[if];B[ih];W[dk];B[dj];W[ek] ;B[ej];W[fk];B[bl];W[en];B[dm];W[em];B[dn];W[cl];B[bm];W[fp] ;B[fq];W[do];B[gp];W[co];B[bo];W[fj];B[eo];W[fh];B[jf];W[ch] ;B[cc];W[cd];B[fg];W[gh];B[eh];W[eg];B[dg];W[ef];B[dh];W[df] ;B[ic];W[id];B[jd];W[ib];B[ie];W[hd];B[hf];W[bi];B[bj];W[gf] ;B[hg];W[gg];B[rg];W[ni];B[mi];W[oj];B[ri];W[rh];B[sh];W[mj] ;B[fo];W[rn];B[or];W[nr];B[rq];W[os];B[pr];W[ro];B[rp];W[cm] ;B[cn];W[rj];B[qi];W[nk];B[lr];W[ln];B[rk];W[ji];B[jh];W[rl] ;B[qk];W[ql];B[qj];W[hh];B[ig];W[in];B[lj];W[lk];B[kj];W[kk] ;B[jj];W[jp];B[jq];W[io];B[hp];W[il];B[ai];W[bg];B[fm];W[dl] ;B[dp];W[kp];B[lp];W[lo];B[ah];W[na];B[pb];W[ii];B[ij];W[hi] ;B[hm];W[im];B[bh];W[cg];B[ci];W[lg];B[ki];W[lh];B[li];W[kg] ;B[jg];W[oa];B[pa];W[mr];B[ma];W[na];B[ls];W[mo];B[pe];W[oe] ;B[lq];W[qg];B[rf];W[ei];B[di];W[fi];B[fn];W[el];B[ag];W[af] ;B[jk];W[jl];B[sl];W[sm];B[sk];W[ck];B[bk];W[rr];B[sr];W[sp] ;B[gj];W[hj];B[gk];W[gl];B[hk];W[hl];B[ik];W[fl];B[pd];W[oi] ) goban-1.1.orig/games/Hon-69-2.mgt0000644000175000017500000000361206045540400014075 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Kato Masao]KM[4.5]RE[W+3.5]DT[1969-04-30,05-01]FF[3]BS[0]WS[0];B[qd];W[dd];B[pq];W[nd];B[cp];W[qc];B[pc];W[pd];B[pb] ;W[qb];B[rb];W[rc];B[rd];W[sb];B[ra];W[qa];B[nb];W[pe];B[sd] ;W[qe];B[sc];W[sa];B[rb];W[po];B[qo];W[qn];B[qp];W[pn];B[nq] ;W[mo];B[eq];W[dj];B[cl];W[ek];B[oj];W[qj];B[oh];W[ni];B[oi] ;W[li];B[qi];W[ri];B[qh];W[rh];B[mk];W[kk];B[mm];W[mq];B[qk] ;W[pj];B[pk];W[rk];B[no];W[nn];B[mp];W[lp];B[np];W[mn];B[kl] ;W[ol];B[nj];W[jl];B[km];W[lk];B[nl];W[ll];B[lm];W[ko];B[om] ;W[pl];B[ok];W[pp];B[qq];W[ql];B[fc];W[fe];B[cc];W[cd];B[dc] ;W[dm];B[cm];W[co];B[bo];W[dp];B[cq];W[dq];B[dr];W[er];B[fr] ;W[ep];B[es];W[fq];B[gq];W[fp];B[er];W[nr];B[or];W[gp];B[jm] ;W[il];B[jo];W[jp];B[nm];W[hq];B[gr];W[gc];B[gb];W[fd];B[ec] ;W[hc];B[io];W[hp];B[hb];W[ic];B[bj];W[ci];B[bi];W[bh];B[im] ;W[hl];B[lq];W[kq];B[mr];W[on];B[mi];W[mh];B[nh];W[mg];B[ld] ;W[bd];B[bg];W[ch];B[bc];W[mb];B[nc];W[mc];B[md];W[kc];B[kd] ;W[kb];B[ne];W[od];B[of];W[ob];B[ra];W[oc];B[pa];W[lf];B[le] ;W[kf];B[je];W[jf];B[ie];W[if];B[cf];W[df];B[ah];W[cg];B[cn] ;W[lr];B[bf];W[bk];B[ck];W[cj];B[bl];W[mq];B[ns];W[ib];B[hr] ;W[ae];B[jr];W[ro];B[rp];W[rn];B[ag];W[do];B[fm];W[fl];B[gm] ;W[hm];B[dn];W[hn];B[el];W[gl];B[dk];W[ej];B[me];W[lj];B[rg] ;W[ac];B[bb];W[nf];B[oe];W[pg];B[qg];W[pf];B[mf];W[ng];B[og] ;W[re];B[mj];W[ml];B[fn];W[jq];B[se];W[sh];B[rf];W[kr];B[ir] ;W[ha];B[fa];W[ab];B[he];W[hf];B[ge];W[gf];B[pm];W[qm];B[ed] ;W[ee];B[so];W[sn];B[sp];W[en];B[em];W[eo];B[ln];W[lo];B[lc] ;W[lb];B[jc];W[jb];B[jd];W[ia];B[da];W[ga];B[fb];W[sg];B[sf] ;W[op];B[lq];W[in];B[jn];W[mq];B[rj];W[sj];B[lq];W[gn];B[ho] ;W[mq];B[lh];W[lg];B[lq];W[fo];B[dl];W[mq];B[pi];W[rj];B[lq] ;W[ba];B[ca];W[mq];B[oa];W[na];B[lq];W[eb];B[db];W[mq];B[nb] ;W[nc];B[lq];W[bp];B[bq];W[mq];B[ma];W[la];B[lq];W[bn];B[ap] ;W[mq];B[iq];W[ip];B[lq];W[ao];B[an];W[mq];B[aa];W[ad];B[lq] ;W[ai];B[aj];W[mq];B[oq];W[js];B[lq];W[is];B[hs];W[ks];B[mq] ;W[go];B[ba])goban-1.1.orig/games/M-77-3.mgt0000644000175000017500000000243206252627042013554 0ustar alal(;DT[1977-09-28]PB[Otake Hideo]PW[Rin Kaiho]RE[W+R]BR[9 Dan]WR[9 Dan]ID[77/3]GM[1]SZ[19]FF[3]BS[0]WS[0];B[qd];W[dd];B[pq];W[dp];B[fc];W[cf];B[kc];W[po];B[qm] ;W[on];B[mq];W[qq];B[om];W[nm];B[ol];W[qn];B[rm];W[pr];B[oq] ;W[or];B[qp];W[rp];B[nn];W[no];B[mn];W[mo];B[ln];W[qf];B[od] ;W[qi];B[lo];W[rr];B[fq];W[dn];B[cl];W[ci];B[el];W[go];B[bn] ;W[cq];B[iq];W[dk];B[dl];W[gl];B[fm];W[fp];B[eq];W[ip];B[jq] ;W[hm];B[bj];W[rd];B[rc];W[re];B[db];W[cc];B[hd];W[mc];B[pc] ;W[qb];B[qc];W[ne];B[pf];W[jc];B[jd];W[kb];B[ic];W[jb];B[lc] ;W[lb];B[md];W[nc];B[nd];W[ob];B[qg];W[rg];B[qe];W[rf];B[qh] ;W[rh];B[rj];W[oi];B[oh];W[nh];B[pg];W[qj];B[rk];W[ri];B[ni] ;W[ok];B[nl];W[mi];B[nj];W[nk];B[mj];W[mk];B[lj];W[ml];B[mm] ;W[kl];B[kk];W[jl];B[jn];W[bi];B[cj];W[dj];B[bp];W[bq];B[di] ;W[fk];B[dh];W[cg];B[im];W[fi];B[hn];W[gn];B[gm];W[hl];B[ck] ;W[cp];B[bo];W[lp];B[gq];W[dr];B[er];W[ds];B[aq];W[ar];B[bs] ;W[fn];B[ep];W[eo];B[gp];W[ho];B[in];W[il];B[mp];W[ap];B[cn] ;W[ao];B[bl];W[ak];B[aj];W[jp];B[kp];W[ko];B[lq];W[hp];B[hq] ;W[kn];B[km];W[jo];B[jm];W[dm];B[lm];W[cm];B[bm];W[dq];B[ll] ;W[gg];B[mh];W[rb];B[sc];W[cb];B[hi];W[hh];B[gi];W[fh];B[ih] ;W[ie];B[id];W[ii];B[ij];W[ig];B[ji];W[jg];B[eg];W[ff];B[pb] ;W[pa];B[ib];W[sb];B[kf];W[eb];B[de];W[ee];B[ed];W[ch];B[ce] ;W[df];B[dc];W[cd];B[ec];W[da])goban-1.1.orig/games/Hon-55-3.mgt0000644000175000017500000000332606045540244014101 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1955-06-02,03]BR[8 Dan]KM[4.5]RO[3]PC[Niigata]PB[Takagawa Kaku]PW[Shimamura Toshihiro]RE[B+R]TM[10h]FF[3];B[pd];W[dc];B[pp];W[dq];B[ce];W[cn];B[ci];W[cg];B[ee] ;W[fd];B[dh];W[cd];B[be];W[nq];B[pn];W[iq];B[kq];W[ko];B[jp] ;W[gq];B[jo];W[km];B[lo];W[qq];B[pq];W[pr];B[or];W[rr];B[ps] ;W[qr];B[oq];W[rn];B[jc];W[qo];B[po];W[ql];B[bc];W[hc];B[je] ;W[fe];B[ef];W[qf];B[ol];W[qc];B[pc];W[qd];B[pe];W[qe];B[pf] ;W[jb];B[kb];W[ib];B[kc];W[pg];B[og];W[oh];B[ph];W[qg];B[ng] ;W[bk];B[im];W[oi];B[pk];W[mi];B[pi];W[oj];B[pj];W[nl];B[nm] ;W[ml];B[mm];W[ok];B[pl];W[kk];B[fp];W[fq];B[cl];W[ck];B[co] ;W[dn];B[cq];W[dp];B[cp];W[dr];B[do];W[eo];B[bn];W[bm];B[ao] ;W[dl];B[cr];W[bi];B[cb];W[db];B[ki];W[lh];B[jl];W[lf];B[ll] ;W[ne];B[nc];W[kl];B[nk];W[mk];B[lk];W[mj];B[lj];W[ii];B[jh] ;W[jf];B[if];W[jg];B[ih];W[ig];B[hh];W[hg];B[bh];W[ch];B[bj] ;W[bg];B[ai];W[dg];B[eg];W[di];B[eh];W[ei];B[fi];W[ek];B[jr] ;W[bd];B[ad];W[gi];B[gh];W[fj];B[ik];W[md];B[nd];W[me];B[oe] ;W[ij];B[hi];W[fh];B[hj];W[gg];B[df];W[cj];B[cf];W[bi];B[ed] ;W[ec];B[dd];W[cc];B[bb];W[da];B[ca];W[pb];B[ob];W[qb];B[hd] ;W[rk];B[ci];W[oa];B[mc];W[bi];B[ep];W[go];B[ci];W[nb];B[oc] ;W[bi];B[gc];W[gd];B[ci];W[ac];B[ae];W[bi];B[qn];W[ro];B[ci] ;W[ag];B[bf];W[bi];B[mb];W[id];B[ci];W[fo];B[ar];W[bi];B[ic] ;W[hb];B[ci];W[in];B[jn];W[bi];B[mg];W[li];B[ci];W[kj];B[lm] ;W[bi];B[lg];W[kh];B[ji];W[kg];B[ci];W[bo];B[bp];W[bi];B[ke] ;W[he];B[kf];W[aj];B[ri];W[rh];B[qm];W[rm];B[ir];W[gm];B[qh] ;W[rg];B[hr];W[ie];B[gk];W[hl];B[gj];W[rj];B[fi];W[jd];B[kd] ;W[gi];B[qp];W[rp];B[fi];W[qs];B[os];W[gi];B[fc];W[fb];B[fi] ;W[gr];B[hq];W[gi];B[ff];W[gf];B[fi];W[fg];B[fk];W[fl];B[ej] ;W[dj];B[er];W[eq];B[ds];W[il];B[jm];W[na];B[hp];W[gp];B[hm] ;W[gl];B[hn];W[fj];B[si];W[gi];B[hk])goban-1.1.orig/games/M-80-4.mgt0000644000175000017500000000261706252627042013554 0ustar alal(;GM[1]RO[4]PB[Cho Chikun]BR[8 Dan]PW[Otake Hideo]DT[1980-10-09]ID[80/4a]SZ[19]FF[3]BS[0]WS[0]RE[0]WR[9 Dan];B[pd];W[dc];B[pp];W[dq];B[pj];W[ce];B[jd];W[nq];B[do] ;W[eo];B[cq];W[dn];B[dp];W[ep];B[eq];W[dr];B[cr];W[bo];B[er] ;W[cp];B[ds];W[dq];B[hq];W[qq];B[qp];W[pq];B[op];W[oq];B[fc] ;W[qf];B[qe];W[pf];B[nd];W[ph];B[qi];W[mg];B[ni];W[qh];B[np] ;W[oj];B[oi];W[pi];B[qj];W[ok];B[ql];W[pl];B[pm];W[qm];B[rl] ;W[le];B[li];W[lc];B[nf];W[ng];B[mf];W[lg];B[lf];W[kf];B[ke] ;W[oc];B[od];W[jf];B[ld];W[hc];B[hd];W[gd];B[gc];W[id];B[he] ;W[ic];B[ie];W[je];B[kd];W[gf];B[jc];W[jb];B[kb];W[ib];B[ge] ;W[kc];B[md];W[fe];B[fd];W[hf];B[lb];W[if];B[gd];W[gb];B[fb] ;W[ed];B[ja];W[lk];B[dj];W[ch];B[gj];W[ij];B[dl];W[ck];B[cl] ;W[bl];B[dk];W[bj];B[dr];W[co];B[hl];W[om];B[pn];W[em];B[jl] ;W[jk];B[kl];W[kk];B[fl];W[rc];B[re];W[nb];B[nl];W[nk];B[ll] ;W[ml];B[mm];W[mk];B[lq];W[mq];B[lr];W[mp];B[lp];W[mo];B[rq] ;W[rr];B[rp];W[lo];B[ko];W[kn];B[ln];W[mr];B[pc];W[pb];B[jo] ;W[hk];B[og];W[oh];B[fn];W[dq];B[gl];W[mb];B[ia];W[gp];B[hp] ;W[ls];B[ks];W[ms];B[jr];W[go];B[hi];W[ii];B[ee];W[ff];B[dd] ;W[ec];B[cc];W[eb];B[hb];W[ea];B[cj];W[bk];B[cg];W[dg];B[cd] ;W[de];B[be];W[bf];B[cf];W[df];B[bg];W[il];B[af];W[gq];B[gr] ;W[hr];B[ir];W[hm];B[im];W[in];B[ik];W[fr];B[hs];W[il];B[bi] ;W[ci];B[ik];W[fq];B[fs];W[il];B[bh];W[ei];B[ik];W[qk];B[pk] ;W[il];B[bm];W[cm];B[ik];W[ri];B[ol];W[il];B[dm];W[cn];B[ik] ;W[bd];B[bc];W[il])goban-1.1.orig/games/Hon-58-5.mgt0000644000175000017500000000220206045540250014073 0ustar alal (;GM[1]SZ[19]DT[1958-08-21,22]KM[4.5]RO[5]PC[Shizuoka City, Shizuoka Pref.]PB[Sugiuchi Masao]PW[Takagawa Kaku]RE[W+R]FF[3]TM[10h]BS[0]WS[0];B[pd];W[dp];B[dd];W[qo];B[pq];W[qj];B[np];W[qg];B[jd] ;W[cf];B[di];W[cc];B[dc];W[cd];B[de];W[df];B[ce];W[be];B[bd] ;W[bc];B[bf];W[ad];B[ef];W[eg];B[dg];W[cg];B[bg];W[ch];B[dh] ;W[bi];B[ff];W[jp];B[dk];W[bk];B[pf];W[pg];B[og];W[qf];B[qe] ;W[of];B[pe];W[nf];B[oh];W[nd];B[ld];W[mg];B[oj];W[ql];B[li] ;W[kg];B[pc];W[mc];B[lc];W[lb];B[kb];W[nb];B[la];W[ma];B[mb] ;W[jh];B[me];W[jj];B[ne];W[kk];B[oe];W[fh];B[gj];W[hh];B[hf] ;W[gl];B[dm];W[fo];B[fm];W[gm];B[fl];W[lq];B[gn];W[fn];B[hn] ;W[il];B[hp];W[fq];B[gq];W[fr];B[hl];W[hm];B[im];W[hk];B[gk] ;W[hl];B[jo];W[ko];B[jn];W[nl];B[jl];W[hj];B[kl];W[gi];B[bl] ;W[bn];B[ck];W[bj];B[ej];W[mo];B[kn];W[mk];B[no];W[mn];B[qi] ;W[ri];B[pi];W[rh];B[pj];W[pk];B[lg];W[lh];B[mh];W[lf];B[ng] ;W[mf];B[ni];W[rq];B[mq];W[lr];B[qr];W[or];B[rr];W[oq];B[rp] ;W[qp];B[qq];W[ro];B[pp];W[op];B[sq];W[po];B[so];W[rm];B[cp] ;W[co];B[dq];W[cq];B[ep];W[do];B[cr];W[bp];B[fp];W[eq];B[dr] ;W[go];B[gp];W[ho];B[ip];W[io];B[jq];W[kp];B[br];W[eo];B[ir] ;W[ie];B[hd];W[ge];B[he];W[gf];B[gg];W[fg])goban-1.1.orig/games/Hon-79-4.mgt0000644000175000017500000000334206045540410014101 0ustar alal (;GM[1]SZ[19]DT[1979-06-28,29]FF[3]RE[W+0.5]PW[Kato Masao]PB[Rin Kaiho]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pq];W[cp];B[ep];W[eq];B[fq];W[dq];B[fp] ;W[cn];B[jp];W[po];B[pl];W[qq];B[qr];W[qp];B[or];W[no];B[mp] ;W[mo];B[lp];W[pi];B[on];W[oo];B[qg];W[nl];B[ok];W[pg];B[pf] ;W[nk];B[oj];W[og];B[qh];W[qi];B[nj];W[qf];B[rf];W[qe];B[re] ;W[qd];B[qc];W[pe];B[oe];W[rd];B[of];W[pc];B[od];W[rc];B[qb] ;W[rb];B[ph];W[oh];B[oi];W[mg];B[ri];W[pb];B[qn];W[me];B[ll] ;W[pn];B[qm];W[lo];B[km];W[nq];B[np];W[op];B[mr];W[ko];B[kp] ;W[jo];B[io];W[in];B[jn];W[mm];B[om];W[lm];B[kk];W[kn];B[jm] ;W[rr];B[rs];W[sq];B[sr];W[ss];B[lf];W[nf];B[sr];W[ol];B[pm] ;W[ss];B[mc];W[qs];B[kc];W[jf];B[lg];W[le];B[ke];W[lc];B[lb] ;W[ld];B[nb];W[kd];B[jc];W[lh];B[jg];W[oc];B[nd];W[jd];B[hc] ;W[kg];B[ce];W[jh];B[bc];W[fc];B[ed];W[ib];B[ic];W[hb];B[gc] ;W[gb];B[ec];W[fd];B[eb];W[fb];B[he];W[ee];B[ig];W[if];B[de] ;W[fe];B[hf];W[id];B[ge];W[jb];B[kb];W[eg];B[fg];W[fh];B[gg] ;W[df];B[db];W[ih];B[hi];W[cf];B[dk];W[fj];B[dm];W[di];B[gj] ;W[dn];B[fk];W[em];B[fi];W[ej];B[ek];W[fn];B[fr];W[ei];B[gh] ;W[nr];B[oq];W[os];B[mq];W[ns];B[ms];W[ps];B[eh];W[dh];B[cj] ;W[bh];B[ds];W[cr];B[ho];W[gl];B[gk];W[cl];B[ff];W[ef];B[ki] ;W[hg];B[gm];W[gn];B[hn];W[hm];B[hl];W[fm];B[im];W[rj];B[qj] ;W[rg];B[rh];W[sg];B[dl];W[cm];B[bk];W[bf];B[be];W[sm];B[ro] ;W[so];B[bi];W[bl];B[ah];W[bg];B[cs];W[bs];B[er];W[dr];B[es] ;W[br];B[rp];W[sp];B[ci];W[ch];B[rk];W[li];B[ji];W[nc];B[md] ;W[sl];B[gm];W[go];B[gp];W[hm];B[nh];W[ng];B[gm];W[ck];B[dj] ;W[hm];B[ak];W[lj];B[rq];W[hh];B[oa];W[qa];B[fh];W[ka];B[la] ;W[ja];B[ob];W[rl];B[ql];W[ae];B[ad];W[kj];B[jj];W[lk];B[sk] ;W[pr];B[gm];W[fl];B[al];W[am];B[do];W[co];B[pj];W[se];B[sh] ;W[sf];B[ie];W[je];B[fa];W[ga];B[ea];W[ml];B[kl];W[ii];B[ij] ;W[mj];B[nn];W[mn];B[hm];W[af])goban-1.1.orig/games/Hon-54-4.mgt0000644000175000017500000000221506045540244014075 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1954-06-22,23]RO[4]PC[Toba]PB[Sugiuchi Masao]PW[Takagawa Kaku]RE[B+R]FF[3]TM[10h];B[pd];W[dc];B[pp];W[eq];B[cp];W[jq];B[ce];W[dh];B[df] ;W[ee];B[dd];W[ec];B[ed];W[fc];B[fd];W[gd];B[cc];W[cb];B[bc] ;W[ge];B[do];W[qj];B[mc];W[qn];B[nq];W[rp];B[hq];W[eo];B[en] ;W[fo];B[ho];W[dn];B[em];W[cn];B[dr];W[gn];B[cl];W[bl];B[ck] ;W[bp];B[bo];W[co];B[dp];W[bn];B[bq];W[ao];B[fq];W[bk];B[gl] ;W[hm];B[jo];W[hl];B[gj];W[fl];B[ci];W[gk];B[fj];W[el];B[hk] ;W[kc];B[lp];W[ej];B[ei];W[di];B[ek];W[dj];B[fk];W[fm];B[cj] ;W[dk];B[dl];W[ch];B[bh];W[eh];B[dm];W[bg];B[bi];W[cf];B[bf] ;W[cg];B[fn];W[fe];B[bb];W[gm];B[go];W[jl];B[ik];W[km];B[kj] ;W[ml];B[de];W[be];B[db];W[mj];B[gh];W[fg];B[kh];W[nc];B[nd] ;W[mb];B[oc];W[nb];B[md];W[qf];B[ob];W[rd];B[lb];W[bd];B[cd] ;W[kb];B[lc];W[ke];B[mi];W[ni];B[mh];W[lj];B[li];W[nh];B[ng] ;W[og];B[of];W[pg];B[gc];W[gb];B[hc];W[eb];B[ca];W[hb];B[ea] ;W[fb];B[kk];W[oo];B[ic];W[ib];B[ie];W[if];B[jd];W[kd];B[hf] ;W[ig];B[gf];W[gg];B[eg];W[hg];B[fh];W[oq];B[op];W[mq];B[np] ;W[nr];B[mp];W[lr];B[pq];W[or];B[lq];W[mr];B[ll];W[lm];B[mm] ;W[mn];B[nm];W[nn];B[om];W[on];B[nk];W[nj];B[mk];W[ok];B[kl] ;W[lo];B[kq];W[kr];B[jp])goban-1.1.orig/games/Hon-94-2.mgt0000644000175000017500000000251006045540456014102 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kataoka Satoshi]DT[1994-05-]RE[B+R]KM[5.5]FF[3]BS[0]WS[0];B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[cn];W[cp];B[dn] ;W[fq];B[dj];W[qj];B[fc];W[cf];B[db];W[cc];B[ic];W[nq];B[qn] ;W[qg];B[qe];W[pr];B[qq];W[ql];B[kp];W[oo];B[qr];W[nb];B[pb] ;W[kc];B[ch];W[cb];B[hq];W[bn];B[bm];W[bo];B[fr];W[gq];B[er] ;W[eq];B[gr];W[hp];B[iq];W[dr];B[cl];W[ke];B[op];W[np];B[lq] ;W[nm];B[ie];W[rf];B[re];W[nd];B[bg];W[bf];B[fe];W[jb];B[ds] ;W[cs];B[af];W[ae];B[ag];W[ce];B[es];W[br];B[pm];W[qm];B[on] ;W[nn];B[po];W[no];B[pl];W[pk];B[ok];W[oj];B[nk];W[km];B[nj] ;W[oi];B[kk];W[lo];B[kf];W[lf];B[kg];W[je];B[if];W[dh];B[di] ;W[cg];B[bi];W[eh];B[lg];W[ni];B[rm];W[rl];B[gh];W[ip];B[jp] ;W[mr];B[kr];W[or];B[rn];W[ib];B[hb];W[il];B[ik];W[hk];B[ij] ;W[hl];B[me];W[md];B[le];W[ng];B[pg];W[ph];B[fb];W[hi];B[hj] ;W[gi];B[gj];W[fi];B[ef];W[eg];B[ca];W[ba];B[da];W[bc];B[jd] ;W[kd];B[fg];W[se];B[sd];W[sf];B[rc];W[ob];B[oc];W[nc];B[sl] ;W[sk];B[sm];W[rk];B[mf];W[pa];B[qa];W[oa];B[qb];W[qs];B[rs] ;W[ps];B[rr];W[hh];B[hg];W[ek];B[jn];W[dk];B[ck];W[kl];B[lk] ;W[li];B[kn];W[ln];B[qf];W[rh];B[ml];W[em];B[og];W[jh];B[mh] ;W[mi];B[ol];W[od];B[oe];W[pc];B[qc];W[dm];B[cm];W[nf];B[ne] ;W[nh];B[mm];W[lm];B[hn];W[of];B[pf];W[ec];B[eb];W[fd];B[gd] ;W[ee];B[ed];W[mj];B[gk];W[jl];B[gl];W[gm];B[hm];W[fm];B[mk] ;W[jk];B[jj];W[kj];B[ki];W[lj];B[ji];W[kh];B[ih])goban-1.1.orig/games/Nih-73-1.mgt0000644000175000017500000000231106377113156014070 0ustar alal(;RO[1]PB[Sakata]RE[W+R]SO[Kido Yearbook]SZ[19]EV[21st Nihon Kiin Ch.ship]PW[Kato Masao]DT[1973];B[pd];W[dp];B[qp];W[dc];B[de];W[di];B[oq];W[fd];B[cc];W[cb];B[cd];W[bb];B[dg];W[qk];B[fq];W[dn];B[dr];W[cq];B[iq];W[qn];B[qi];W[nc];B[pf];W[pb];B[qc];W[kc];B[jd];W[kd];B[je];W[ib];B[hd];W[ff];B[fg];W[gf];B[ke];W[ef];B[eg];W[fi];B[gg];W[hg];B[hh];W[gh];B[ci];W[cj];B[hf];W[ig];B[bi];W[bj];B[hi];W[he];B[if];W[jg];B[ei];W[ej];B[dh];W[dj];B[gi];W[fj];B[ec];W[ed];B[dd];W[db];B[gc];W[fc];B[fb];W[eb];B[ji];W[kh];B[me];W[ki];B[jk];W[jj];B[ij];W[kj];B[il];W[hk];B[ik];W[ll];B[jn];W[oi];B[hb];W[ic];B[jc];W[jb];B[id];W[fa];B[gb];W[bg];B[cg];W[bf];B[bd];W[fh];B[aj];W[ak];B[ai];W[df];B[cf];W[bl];B[bh];W[af];B[ac];W[ah];B[ch];W[eh];B[ce];W[ab];B[ae];W[ee];B[ge];W[ea];B[bc];W[md];B[ne];W[qh];B[rh];W[qg];B[rg];W[qf];B[pi];W[og];B[oh];W[nh];B[ph];W[mg];B[pg];W[le];B[lf];W[ld];B[kg];W[jf];B[jh];W[ie];B[mf];W[kf];B[lg];W[ok];B[oj];W[nk];B[ln];W[oo];B[np];W[mi];B[eo];W[km];B[kn];W[gn];B[ho];W[go];B[ep];W[en];B[cr];W[hn];B[in];W[hp];B[hq];W[nn];B[ro];W[mo];B[lp];W[rn];B[do];W[co];B[cn];W[bn];B[qb];W[io];B[jo];W[br];B[bp];W[cp];B[bq];W[ar];B[pp];W[hl];B[rj];W[rk];B[mm];W[nm];B[ml];W[mk];B[ob];W[oc];B[pc];W[nb];B[pa];W[bo];B[na];W[lb])goban-1.1.orig/games/Hon-84-3.mgt0000644000175000017500000000302406045540440014074 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Awaji Shuzo]DT[1984-06-07,08]RE[W+2.5]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pq];W[cp];B[oc];W[qn];B[qp];W[qk];B[ep] ;W[eq];B[fq];W[dq];B[fp];W[cn];B[qi];W[jp];B[mp];W[fm];B[fn] ;W[gn];B[em];W[en];B[dn];W[fo];B[eo];W[cm];B[dm];W[fl];B[co] ;W[bo];B[do];W[cl];B[ek];W[jn];B[ck];W[gj];B[ei];W[jc];B[lc] ;W[nd];B[nc];W[qe];B[pd];W[qg];B[pj];W[pk];B[nj];W[ok];B[oj] ;W[rd];B[rc];W[nf];B[pf];W[pg];B[pe];W[og];B[lj];W[kf];B[ml] ;W[mn];B[nm];W[nk];B[mk];W[mi];B[mj];W[qj];B[pi];W[ri];B[rh] ;W[sj];B[pm];W[pn];B[qh];W[ro];B[oo];W[je];B[bk];W[bq];B[cf] ;W[df];B[dg];W[ce];B[ef];W[de];B[cg];W[fd];B[rp];W[on];B[nn] ;W[lq];B[mq];W[lp];B[hc];W[id];B[fc];W[gd];B[cc];W[eb];B[db] ;W[ec];B[bd];W[be];B[bb];W[mo];B[no];W[om];B[kb];W[jb];B[ea] ;W[fa];B[da];W[fb];B[bf];W[mr];B[nr];W[lr];B[ns];W[af];B[ag] ;W[ae];B[iq];W[bh];B[bi];W[ld];B[qf];W[ip];B[hq];W[fr];B[gr] ;W[er];B[go];W[fn];B[ho];W[im];B[ik];W[sp];B[sq];W[so];B[hl] ;W[fk];B[in];W[km];B[jl];W[jm];B[hm];W[gh];B[jr];W[kr];B[jq] ;W[io];B[hn];W[ko];B[gg];W[hg];B[fg];W[ii];B[hf];W[ig];B[rq] ;W[kh];B[rg];W[fh];B[eh];W[nh];B[li];W[lh];B[fj];W[fi];B[ej] ;W[gk];B[if];W[jf];B[ji];W[jh];B[ij];W[hi];B[dl];W[ka];B[la] ;W[ja];B[bl];W[an];B[mc];W[kc];B[lb];W[dc];B[ba];W[ad];B[ac] ;W[bg];B[ch];W[ah];B[ai];W[ag];B[ni];W[mh];B[fs];W[es];B[gs] ;W[nl];B[mm];W[lm];B[ki];W[kl];B[kk];W[il];B[jk];W[hp];B[gp] ;W[gf];B[ge];W[he];B[ff];W[ee];B[bm];W[bn];B[qo];W[rn];B[of] ;W[md];B[oh];W[cd];B[bc];W[ie];B[gf];W[am];B[kq];W[kp];B[po] ;W[al];B[ak];W[sh];B[sg];W[si];B[ks];W[ne];B[ph];W[ng];B[ll] ;W[hj])goban-1.1.orig/games/Hon-51-7.sgf0000644000175000017500000000330306243707364014074 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] ID[ 6/7] FF[3] PB[Hashimoto Utaro] PW[Sakata Eio] DT[1951-06-27,28] RE[B+3.5] KM[4.5] ;B[qd];W[dc];B[pq];W[oc];B[cp];W[po];B[pe];W[qq];B[qj];W[eq] ;B[ce];W[dh];B[df];W[cd];B[bd];W[bc];B[dd];W[cc];B[ed];W[fc] ;B[nd];W[cl];B[do];W[mc];B[hp];W[cg];B[qr];W[qp];B[or];W[ql] ;B[le];W[pj];B[pi];W[pk];B[dq];W[qi];B[qh];W[ri];B[ph];W[qc] ;B[nc];W[nb];B[mb];W[pb];B[na];W[ob];B[lc];W[od];B[ne];W[jq] ;B[hq];W[nq];B[op];W[nr];B[oo];W[dr];B[cr];W[ir];B[hr];W[rr] ;B[rs];W[rq];B[mp];W[lq];B[ko];W[jo];B[pm];W[rn];B[kn];W[kp] ;B[bf];W[mn];B[mo];W[jn];B[mm];W[fn];B[fo];W[go];B[fp];W[km] ;B[lm];W[kl];B[mk];W[bg];B[kj];W[fh];B[ge];W[bq];B[cq];W[gc] ;B[bm];W[bl];B[cm];W[dm];B[dl];W[cn];B[bn];W[dn];B[co];W[bo] ;B[bp];W[fm];B[im];W[ho];B[ek];W[cj];B[hm];W[gp];B[fq];W[gq] ;B[fr];W[hn];B[ij];W[jm];B[dj];W[ck];B[ec];W[eb];B[db];W[cb] ;B[fb];W[da];B[hc];W[gb];B[hb];W[rj];B[nj];W[gj];B[gk];W[nl] ;B[lk];W[hg];B[eg];W[eh];B[hd];W[hj];B[gm];W[gn];B[hk];W[jk] ;B[ik];W[jj];B[fj];W[ii];B[ji];W[ih];B[fl];W[ki];B[jh];W[jg] ;B[kh];W[kg];B[lh];W[gr];B[gs];W[is];B[hs];W[mq];B[if];W[ig] ;B[gh];W[gg];B[hi];W[fg];B[pn];W[lg];B[ip];W[jp];B[rd];W[rc] ;B[ns];W[ms];B[os];W[kr];B[jf];W[rh];B[rg];W[om];B[ol];W[ok] ;B[pl];W[ha];B[ib];W[pp];B[oq];W[qn];B[on];W[nk];B[ag];W[ah] ;B[af];W[bi];B[sc];W[sb];B[sd];W[rb];B[qm];W[rm];B[oe];W[hf] ;B[he];W[nm];B[nn];W[oi];B[oh];W[ke];B[kf];W[lf];B[kd];W[me] ;B[je];W[qg];B[qf];W[mi];B[mh];W[sg];B[rf];W[nh];B[ng];W[ni] ;B[li];W[nf];B[mj];W[md];B[kb];W[oj];B[of];W[mg];B[mf];W[am] ;B[ao];W[nf];B[og];W[mf];B[ff];W[fd];B[fe];W[oa];B[ma];W[ad] ;B[be];W[dg];B[ef];W[ld];B[ke];W[dk];B[sf];W[sh];B[ia];W[ga] ;B[el];W[di];B[ej];W[lo];B[ln];W[lp];B[np];W[cf];B[il];W[pd] ;B[eo];W[sr]) goban-1.1.orig/games/M-67-3.sgf0000644000175000017500000000331606252650230013540 0ustar alal( ; GM[1] EV[6th Meijin Title Match] RO[3] PB[Rin Kaiho] BR[Meijin] PW[Sakata Eio] WR[Honinbo] DT[Aug 30/31, 1967] PC[Ishigawa] RE[B+6] KM[5] SZ[19] ;B[qd];W[cd];B[oc];W[pq];B[cp];W[eq];B[qo];W[ec];B[hp];W[gp] ;B[go];W[do];B[co];W[dm];B[cn];W[gq];B[np];W[op];B[oo];W[po] ;B[pn];W[pp];B[on];W[qn];B[ro];W[rn];B[rq];W[qq];B[ql];W[rp] ;B[qm];W[so];B[jd];W[pg];B[mo];W[ho];B[dn];W[fo];B[gc];W[oe] ;B[md];W[me];B[ld];W[qf];B[pe];W[pf];B[qi];W[pi];B[pj];W[oj] ;B[oi];W[ph];B[nj];W[ok];B[mi];W[qj];B[pk];W[rj];B[cf];W[ch] ;B[ef];W[fc];B[gd];W[cr];B[ck];W[dk];B[cl];W[dj];B[dd];W[cc] ;B[gn];W[io];B[fp];W[jq];B[cj];W[eh];B[fj];W[fi];B[ce];W[de] ;B[ed];W[fd];B[ee];W[dc];B[gj];W[gi];B[ge];W[hj];B[hk];W[ik] ;B[gl];W[ij];B[ep];W[fq];B[dq];W[dr];B[re];W[hl];B[gk];W[fe] ;B[ff];W[dg];B[df];W[gg];B[ci];W[di];B[fb];W[eb];B[gb];W[bd] ;B[gf];W[nh];B[ni];W[ll];B[ml];W[gm];B[fm];W[hm];B[fn];W[dl] ;B[fl];W[pc];B[od];W[pd];B[qe];W[qc];B[rc];W[rb];B[sb];W[pb] ;B[qa];W[bi];B[lm];W[km];B[kl];W[lk];B[ln];W[cm];B[bm];W[bj] ;B[bl];W[jl];B[jp];W[ip];B[kq];W[jr];B[kr];W[kp];B[bg];W[bh] ;B[ne];W[of];B[kn];W[jm];B[nr];W[rf];B[qb];W[bq];B[ri];W[an] ;B[bp];W[ap];B[ao];W[bo];B[bn];W[ao];B[cq];W[aq];B[ek];W[si] ;B[qs];W[or];B[os];W[nq];B[mr];W[mq];B[lq];W[ks];B[lp];W[rr] ;B[mf];W[if];B[kj];W[kk];B[hf];W[hg];B[ie];W[jf];B[jh];W[kf] ;B[kh];W[ih];B[rm];W[qp];B[rk];W[se];B[rd];W[rh];B[be];W[ea] ;B[ad];W[ac];B[ae];W[bb];B[br];W[bs];B[ls];W[js];B[rs];W[ns] ;B[ps];W[mk];B[nk];W[mh];B[lh];W[ej];B[el];W[ko];B[oh];W[ng] ;B[ke];W[lf];B[le];W[jj];B[ah];W[ji];B[li];W[fa];B[ga];W[hn] ;B[jn];W[jo];B[mp];W[oq];B[nf];W[lg];B[en];W[in];B[fg];W[fh] ;B[qk];W[qh];B[sk];W[sm];B[sl];W[qr];B[mm];W[sr];B[lr];W[sf] ;B[ra];W[sd];B[sc];W[sn] ) goban-1.1.orig/games/Hon-88-7.mgt0000644000175000017500000000236206045540446014116 0ustar alal (;GM[1]PB[Takemiya Masaki]PW[Otake Hideo]SZ[19]FF[3]DT[1988-07-20,21 or 22]PC[Urayasu]RE[B+R]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dq];B[pj];W[ck];B[fc];W[nq];B[lq] ;W[qq];B[qp];W[pq];B[op];W[nr];B[mo];W[nc];B[pf];W[pb];B[cc] ;W[dc];B[cd];W[de];B[db];W[eb];B[cb];W[ec];B[cf];W[fd];B[me] ;W[ld];B[le];W[ke];B[kf];W[kd];B[jf];W[kk];B[do];W[fp];B[dl] ;W[cl];B[dm];W[ej];B[cq];W[cr];B[cp];W[er];B[cm];W[ch];B[cg] ;W[nj];B[dh];W[ci];B[je];W[nl];B[pl];W[qc];B[jd];W[md];B[mk] ;W[ml];B[lk];W[ll];B[mi];W[pm];B[qm];W[ol];B[ql];W[oj];B[pi] ;W[ki];B[li];W[kl];B[nd];W[mb];B[hq];W[kh];B[lg];W[bq];B[bp] ;W[br];B[go];W[rf];B[ik];W[ii];B[hi];W[hh];B[gi];W[ij];B[hj] ;W[hk];B[il];W[ig];B[fh];W[hl];B[im];W[fk];B[ff];W[kn];B[hf] ;W[eg];B[ef];W[en];B[jo];W[oh];B[jj];W[kj];B[ji];W[ih];B[jk] ;W[ph];B[mg];W[oi];B[re];W[lp];B[mp];W[kp];B[ko];W[lo];B[ln] ;W[mn];B[lm];W[jp];B[ip];W[jq];B[jr];W[io];B[jn];W[km];B[iq] ;W[mm];B[ln];W[lm];B[kq];W[ln];B[mq];W[on];B[oo];W[qi];B[qj] ;W[qg];B[qf];W[rj];B[rk];W[rh];B[rq];W[rr];B[rp];W[qn];B[rn] ;W[hd];B[fl];W[fm];B[gm];W[el];B[gl];W[gk];B[ho];W[em];B[dk] ;W[ei];B[eh];W[ek];B[jh];W[dg];B[df];W[ne];B[nf];W[sk];B[sl] ;W[sj];B[cj];W[bj];B[dj];W[di];B[bi];W[bk];B[bh];W[bm];B[bn] ;W[an];B[al];W[cn];B[dn];W[bo];B[co];W[jc];B[sr];W[od];B[bn] )goban-1.1.orig/games/hon-51-3.mgt0000644000175000017500000000420206333001430014114 0ustar alal(;EV[6th Honinbo Title Match]RO[3]TM[10h]PB[Sakata Eio]BR[7 dan]PW[Hashimoto Utaro]WR[Honinbo Shou]KM[4.5]DT[1951-05-03/04]PC[Japan]RE[B+2.5]SO[Mainichi Shimbun]US[Yasunori Suzuki]GN[6.3]BS[0]WS[0]GM[1]SZ[19]KI[9]FF[3];B[pd];W[dp];B[pq];W[dc ];B[de];W[po];B[qo];W[pp];B[qp] ;W[oq];B[pn];W[qq];B[pr];W[rq];B[or];W[np];B[nq];W[qn];B[op] ;W[oo];B[no];W[on];B[mp];W[ee];B[pm];W[om];B[qm];W[rn];B[ol] ;W[mn];B[ef];W[ed];B[dg];W[nl];B[nk];W[rm];B[pk];W[qk];B[pj] ;W[ce];B[cf];W[be];B[ml];W[nn];B[gf];W[hc];B[cn];W[fp];B[en] ;W[bp];B[gd];W[gc];B[jc];W[nc];B[je];W[ne];B[md];W[nd];B[pc] ;W[ob];B[pb];W[lc];B[bo];W[cj];B[bq];W[cp];B[ap];W[cq];B[br] ;W[pf];B[of];W[oe];B[pe];W[qf];B[og];W[jf];B[kf];W[ke];B[le] ;W[kd];B[jd];W[lf];B[kg];W[lg];B[mc];W[kh];B[jg];W[pa];B[rb] ;W[me];B[mb];W[ld];B[lb];W[ph];B[oh];W[jh];B[ig];W[mi];B[pg] ;W[ih];B[hq];W[go];B[gm];W[ip];B[iq];W[jq];B[hp];W[ho];B[jr] ;W[cr];B[cl];W[jp];B[kr];W[bf];B[bg];W[fj];B[ek];W[ej];B[ri] ;W[bs];B[fk];W[gk];B[gl];W[hg];B[if];W[gg];B[ff];W[dk];B[dl] ;W[gr];B[ib];W[ra];B[qb];W[qa];B[fd];W[fc];B[fa];W[eb];B[mh] ;W[lh];B[ni];W[rd];B[rc];W[rh];B[rj];W[qd];B[qg];W[rf];B[rg] ;W[sd];B[sf];W[oc];B[sb];W[oa];B[fh];W[gj];B[hi];W[ij];B[hh] ;W[mj];B[kj];W[hj];B[qe];W[re];B[fi];W[kk];B[sg];W[sa];B[jk] ;W[lk];B[jl];W[jj];B[bj];W[bi];B[di];W[dj];B[bk];W[ci];B[af] ;W[ae];B[ag];W[dd];B[ln];W[kn];B[se];W[od];B[mo];W[lm];B[lo] ;W[mm];B[km];W[ll];B[jn];W[in];B[im];W[fn];B[eo];W[gq];B[hr] ;W[hs];B[aq];W[eq];B[rr];W[fl];B[el];W[fm];B[jo];W[io];B[qr] ;W[rp];B[ai];W[lq];B[lr];W[nj];B[oj];W[rk];B[is];W[gs];B[mg] ;W[gp];B[ir];W[ea];B[ga];W[sr];B[ei];W[em];B[dm];W[df];B[cg] ;W[ii];B[de];W[co];B[bn];W[df];B[kc];W[le];B[de];W[ao];B[an] ;W[df];B[ko];W[kq];B[de];W[mq];B[mr];W[df];B[cs];W[ds];B[de] ;W[gi];B[gh];W[df];B[sq];W[sp];B[de];W[bh];B[ah];W[df];B[sk] ;W[sl];B[de];W[qj];B[qi];W[df];B[sj];W[mk];B[pl];W[rl];B[de] ;W[fb];B[hb];W[df];B[bc];W[de];B[cb];W[cc];B[bd];W[bb];B[ab] ;W[ba];B[ca];W[ad];B[aa];W[bb];B[ac];W[hd];B[he];W[nf];B[fe] ;W[db];B[gb];W[ch];B[dh];W[ng];B[id];W[cd];B[nh];W[ma];B[la] ;W[ep];B[na];W[kb];B[jb];W[nb];B[rs];W[ma];B[ka];W[na];B[ok]C[Black wins by 2.5 points.] ;) goban-1.1.orig/games/Hon-70-1.mgt0000644000175000017500000000324006045540400014061 0ustar alal (;GM[1]SZ[19]DT[1970-05-]PB[Rin Kaiho]PW[Sakata Eio]RE[B+0.5]FF[3]BS[0]WS[0]KM[4.5];B[qd];W[dd];B[pq];W[oc];B[dp];W[po];B[ld];W[qq];B[qr] ;W[qp];B[or];W[qk];B[pc];W[cn];B[fp];W[bp];B[cq];W[ck];B[od] ;W[qh];B[fc];W[df];B[np];W[hq];B[jq];W[jp];B[kp];W[ip];B[ko] ;W[in];B[fm];W[jc];B[db];W[cc];B[hc];W[gd];B[hd];W[ec];B[jd] ;W[fd];B[dn];W[co];B[dm];W[cl];B[jo];W[io];B[gr];W[kq];B[lq] ;W[kr];B[jr];W[gq];B[fq];W[lr];B[mr];W[on];B[ei];W[gl];B[gm] ;W[ek];B[ln];W[hl];B[pk];W[ql];B[hm];W[mq];B[ls];W[lp];B[ks] ;W[kn];B[lo];W[im];B[il];W[lm];B[gj];W[ik];B[jl];W[jk];B[kl] ;W[km];B[kk];W[fl];B[ki];W[kj];B[lj];W[jj];B[mk];W[nm];B[el] ;W[hk];B[hh];W[ji];B[li];W[ig];B[hg];W[he];B[ie];W[hf];B[if] ;W[ih];B[dg];W[ff];B[eg];W[gc];B[gb];W[fb];B[dj];W[dk];B[bh] ;W[hi];B[gi];W[fj];B[bf];W[kc];B[kd];W[hb];B[ib];W[ic];B[id] ;W[ga];B[lc];W[jb];B[kb];W[ia];B[bj];W[bq];B[br];W[kh];B[pj] ;W[qi];B[al];W[ak];B[bk];W[mg];B[mh];W[nh];B[lh];W[lg];B[oh] ;W[nd];B[ng];W[nf];B[og];W[oe];B[nc];W[pd];B[ob];W[ni];B[nj] ;W[kf];B[od];W[oi];B[pi];W[oc];B[ol];W[pm];B[od];W[ph];B[mi] ;W[oc];B[ml];W[nb];B[od];W[nr];B[lq];W[oc];B[mm];W[mc];B[qb] ;W[oa];B[re];W[pb];B[qc];W[rg];B[qj];W[rj];B[rc];W[bl];B[bd] ;W[bc];B[fg];W[ar];B[bs];W[rr];B[rs];W[sq];B[ac];W[ab];B[ad] ;W[cd];B[ce];W[cf];B[cg];W[de];B[be];W[bb];B[aj];W[cj];B[ci] ;W[op];B[oq];W[no];B[am];W[bn];B[mo];W[fi];B[hj];W[gf];B[fh] ;W[ej];B[di];W[do];B[eo];W[rf];B[ri];W[rh];B[pe];W[pf];B[qe] ;W[pp];B[ef];W[ps];B[qs];W[nq];B[mp];W[of];B[oj];W[ee];B[pl] ;W[nn];B[qa];W[se];B[sd];W[sf];B[pa];W[ob];B[an];W[ao];B[aq] ;W[cp];B[dr];W[dl];B[em];W[ap];B[gk];W[fk];B[ii];W[ij];B[rk] ;W[si];B[qm];W[rl];B[om];W[pn];B[nl];W[hi];B[gh];W[ii];B[ns] ;W[od];B[pr];W[sr];B[ss];W[rm])goban-1.1.orig/games/T-18-2.mgt0000644000175000017500000000276706252627522013573 0ustar alal(;PB[Yamashiro Hiroshi]BR[9 dan]PW[Rin Kaiho]WR[Tengen]RO[2]RE[B+5.5]KM[5.5]GM[1]SZ[19]ID[18/2]FF[3];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[kc];B[jp] ;W[dj];B[gp];W[qq];B[pq];W[qp];B[qn];W[rn];B[qm];W[pr];B[or] ;W[qr];B[nq];W[qo];B[po];W[fd];B[cn];W[dn];B[dm];W[en];B[cp] ;W[co];B[bo];W[do];B[bm];W[cq];B[bp];W[em];B[dl];W[el];B[dk] ;W[ek];B[cj];W[ci];B[bi];W[di];B[bh];W[cg];B[bg];W[cf];B[kg] ;W[rm];B[il];W[jj];B[kl];W[kk];B[ll];W[mg];B[ke];W[pc];B[od] ;W[oc];B[nd];W[mj];B[mc];W[qc];B[lc];W[ic];B[rd];W[kb];B[kd] ;W[rc];B[cc];W[eb];B[id];W[hd];B[he];W[ie];B[if];W[jd];B[je] ;W[id];B[ij];W[ii];B[hj];W[hh];B[lh];W[ki];B[jh];W[ji];B[fq] ;W[bf];B[fj];W[er];B[bd];W[hm];B[ho];W[bb];B[hl];W[fh];B[gf] ;W[bq];B[eq];W[dq];B[fr];W[ni];B[qk];W[og];B[pg];W[ml];B[mm] ;W[me];B[nf];W[lg];B[mf];W[lf];B[le];W[qd];B[qe];W[jm];B[jl] ;W[im];B[mh];W[ng];B[kh];W[pi];B[mk];W[of];B[ne];W[ej];B[fg] ;W[hg];B[hf];W[gg];B[fe];W[ee];B[ef];W[eh];B[lb];W[re];B[rf] ;W[sd];B[gi];W[gh];B[rl];W[oj];B[ok];W[qj];B[pk];W[oi];B[nb] ;W[ob];B[ka];W[ja];B[la];W[ib];B[de];W[ed];B[df];W[ce];B[jn] ;W[km];B[kn];W[rg];B[oa];W[pa];B[na];W[ds];B[af];W[ae];B[ag] ;W[be];B[aq];W[fs];B[gr];W[qg];B[qi];W[qf];B[pe];W[ar];B[ap] ;W[gs];B[hs];W[es];B[hr];W[cr];B[gm];W[gn];B[gk];W[hn];B[fo] ;W[fn];B[qh];W[rh];B[ri];W[lm];B[ln];W[lk];B[nk];W[jk];B[ik] ;W[bj];B[ck];W[ch];B[bk];W[ig];B[kf];W[ph];B[rj];W[nh];B[hi] ;W[li];B[sh];W[sf];B[ps];W[qs];B[os];W[sm];B[sl];W[ro];B[mi] ;W[nj];B[ih];W[lj];B[fi];W[in];B[io];W[dg];B[si];W[sg];B[ep] ;W[gd])goban-1.1.orig/games/M-75-1.mgt0000644000175000017500000000262606252656520013560 0ustar alal(;SZ[19]EV[Meijin title match]RO[1]DT[10, 11 septembre 1975]PB[Hideo Otake]TM[9 hours each]KM[5]RE[B+8]PW[Ishida Meijin]SO[Go review autumn 1975];B[qd];W[cq];B[pq];W[cc];B[oc];W[qk];B[qo];W[qh];B[cf];W[ec];B[ci];W[ep];B[jq];W[hq];B[cl];W[pr];B[or];W[oq];B[op];W[nq];B[nr];W[mr];B[mq];W[np];B[qr];W[pp];B[qq];W[oo];B[lq];W[mc];B[jd];W[me];B[ld];W[md];B[qf];W[qc];B[pc];W[rd];B[pe];W[re];B[qb];W[rf];B[rc];W[hd];B[jf];W[jc];B[kc];W[ic];B[lb];W[lf];B[id];W[gd];B[mb];W[qg];B[pl];W[ql];B[pn];W[mn];B[ml];W[of];B[kn];W[cn];B[mo];W[ol];B[on];W[ok];B[el];W[iq];B[jr];W[nm];B[nn];W[mm];B[kl];W[rn];B[ro];W[di];B[ch];W[ki];B[bm];W[lo];B[ln];W[io];B[jo];W[lj];B[bd];W[cd];B[bc];W[bb];B[ce];W[bn];B[hs];W[gr];B[cb];W[db];B[dd];W[dc];B[ab];W[ca];B[hb];W[hc];B[jb];W[ib];B[ia];W[gb];B[in];W[ho];B[gg];W[ke];B[jh];W[ji];B[ii];W[ij];B[hj];W[fl];B[em];W[ik];B[hk];W[fk];B[hi];W[gm];B[mk];W[mj];B[jj];W[kh];B[pf];W[pg];B[om];W[nl];B[pk];W[pj];B[pm];W[qn];B[qm];W[rm];B[mp];W[nj];B[jk];W[cm];B[bl];W[ek];B[dk];W[dj];B[cj];W[en];B[fm];W[hl];B[il];W[fn];B[sn];W[rl];B[oe];W[ne];B[hm];W[gl];B[hn];W[gn];B[gs];W[fs];B[ir];W[hr];B[is];W[fr];B[kg];W[lg];B[fi];W[kd];B[lc];W[hf];B[hg];W[if];B[ig];W[je];B[an];W[ao];B[am];W[bo];B[ej];W[ff];B[eg];W[ef];B[df];W[ha];B[ja];W[lm];B[km];W[fj];B[ei];W[ed];B[de];W[sd];B[gf];W[ge];B[ee];W[fe];B[be];W[nc];B[nb];W[sm];B[so];W[sc];B[sb];W[dm];B[dl];W[gj];B[fg];W[gi];B[gh];W[jp];B[kp];W[ip];B[le];W[nf];B[od];W[ba])goban-1.1.orig/games/T-23-2.mgt0000644000175000017500000000317706445640760013566 0ustar alal( ; FF[4] EV[23rd Tengen title] RO[2] PB[Kudo Norio] BR[9 dan] PW[Ryu Shikun] WR[8 dan] KM[5.5] DT[1997-11-13] PC[Japan] RE[B+3.5] US[Jan.van.der.Steen@cwi.nl] ;B[pd];W[dc];B[qp];W[np];B[oq];W[dp];B[op];W[no];B[mr];W[qf] ;B[qh];W[of];B[nd];W[pi];B[qe];W[rf];B[qi];W[pj];B[ph];W[oh] ;B[qj];W[pk];B[qk];W[oc];B[od];W[og];B[pl];W[ol];B[pm];W[lc] ;B[me];W[jd];B[ld];W[kd];B[mc];W[lb];B[lf];W[nk];B[de];W[ce] ;B[cf];W[cd];B[df];W[ed];B[cj];W[mb];B[nc];W[cl];B[cn];W[dn] ;B[do];W[eo];B[co];W[dm];B[cp];W[dq];B[cq];W[cr];B[br];W[dr] ;B[bm];W[bl];B[fo];W[bs];B[ar];W[fp];B[en];W[ep];B[fn];W[ek] ;B[ho];W[hq];B[ei];W[gk];B[ik];W[il];B[iq];W[jl];B[ip];W[gp] ;B[nn];W[ko];B[mn];W[kq];B[jn];W[lm];B[hr];W[in];B[hn];W[gr] ;B[kp];W[lp];B[jp];W[lo];B[lq];W[oo];B[po];W[am];B[an];W[cm] ;B[al];W[ak];B[ap];W[am];B[bn];W[ch];B[dd];W[cc];B[fe];W[fd] ;B[ge];W[gd];B[dh];W[ci];B[bj];W[bh];B[cg];W[di];B[dj];W[ej] ;B[fi];W[aj];B[ai];W[bi];B[ml];W[lj];B[ir];W[gs];B[nl];W[mk] ;B[ll];W[kl];B[re];W[ii];B[he];W[nb];B[ob];W[hd];B[hk];W[hl] ;B[gj];W[eh];B[fh];W[hj];B[fk];W[gl];B[kj];W[li];B[bg];W[dg] ;B[eg];W[fj];B[gi];W[em];B[dh];W[ah];B[jo];W[km];B[ag];W[ai] ;B[ki];W[kh];B[lh];W[jh];B[lk];W[kk];B[mh];W[ni];B[oa];W[pc] ;B[pb];W[rd];B[rc];W[se];B[qd];W[si];B[sj];W[nq];B[nr];W[be] ;B[fr];W[cs];B[hs];W[gq];B[mi];W[mj];B[om];W[ok];B[ig];W[ih] ;B[hh];W[if];B[al];W[bk];B[ie];W[jf];B[hg];W[kf];B[hi];W[ij] ;B[sd];W[sg];B[rg];W[sf];B[pf];W[pg];B[qg];W[pe];B[sh];W[rh] ;B[ri];W[pf];B[sh];W[nh];B[fm];W[fl];B[im];W[ee];B[ef];W[hf] ;B[gf];W[mq];B[lr];W[on];B[pn];W[id];B[na];W[ma];B[mo];W[mp] ;B[nf];W[mg];B[lg];W[ng];B[ae];W[ad];B[af];W[hm];B[jm];W[er] ;B[hp];W[go];B[gn];W[am];B[le];W[al]) goban-1.1.orig/games/Hon-93-1.mgt0000644000175000017500000000313706045540454014104 0ustar alal (;GM[1]SZ[19]DT[1993-05-07,08]RE[B+6.5]FF[3]PB[Cho Chikun]PW[Yamashiro Hiroshi]BS[0]WS[0]KM[5.5]PC[Fukushima];B[qd];W[dc];B[pp];W[dq];B[oc];W[qj];B[co];W[dl];B[de] ;W[ce];B[cf];W[cd];B[fo];W[gq];B[df];W[fc];B[dj];W[fl];B[hp] ;W[hq];B[ip];W[iq];B[jp];W[kq];B[ep];W[eq];B[hl];W[dn];B[dp] ;W[ej];B[di];W[dk];B[ei];W[fj];B[cq];W[hj];B[qh];W[qm];B[mq] ;W[fp];B[dr];W[er];B[qo];W[eo];B[gp];W[fq];B[jq];W[jr];B[kp] ;W[lq];B[lp];W[mr];B[lr];W[kr];B[nr];W[oj];B[pk];W[pj];B[oh] ;W[om];B[ms];W[kc];B[ge];W[hd];B[ed];W[ec];B[lc];W[pc];B[pb] ;W[ob];B[pd];W[mc];B[nl];W[qn];B[nb];W[nc];B[oa];W[lb];B[ri] ;W[rj];B[he];W[cr];B[br];W[ds];B[bp];W[id];B[oo];W[nm];B[ml] ;W[rn];B[ro];W[so];B[sp];W[sn];B[rp];W[ok];B[nd];W[md];B[ne] ;W[bf];B[bg];W[be];B[bj];W[km];B[mm];W[im];B[hm];W[mn];B[ln] ;W[no];B[np];W[ph];B[pg];W[lm];B[mo];W[nn];B[lk];W[kn];B[lo] ;W[jk];B[li];W[nh];B[ng];W[oi];B[pi];W[mh];B[ji];W[hk];B[il] ;W[jl];B[lg];W[mj];B[lj];W[fn];B[gd];W[gc];B[in];W[jj];B[ol] ;W[pl];B[on];W[pm];B[kf];W[bn];B[cn];W[cm];B[bo];W[bs];B[bm] ;W[bl];B[an];W[gh];B[fh];W[qi];B[rh];W[gg];B[fg];W[ar];B[bq] ;W[go];B[ih];W[jg];B[kh];W[fi];B[gi];W[hi];B[hh];W[bh];B[ag] ;W[ff];B[ch];W[gf];B[ef];W[ie];B[hf];W[fe];B[fd];W[bk];B[cj] ;W[ph];B[og];W[ho];B[io];W[jm];B[gn];W[jf];B[ke];W[kd];B[ir] ;W[hr];B[je];W[if];B[hg];W[gj];B[sj];W[sk];B[si];W[gl];B[rk] ;W[sl];B[rl];W[sm];B[qk];W[ql];B[mb];W[ld];B[ks];W[is];B[me] ;W[le];B[lf];W[mg];B[mi];W[ni];B[mf];W[aj];B[ai];W[ak];B[do] ;W[gm];B[hn];W[fo];B[ck];W[cl];B[pn];W[rm];B[jd];W[jc];B[af] ;W[ae];B[la];W[ka];B[ma];W[am];B[al];W[bi];B[ci];W[am];B[bn] ;W[pi];B[mk];W[nj];B[aq];W[al];B[ik];W[ij];B[as];W[cs];B[ar] )goban-1.1.orig/games/M-94-1.mgt0000644000175000017500000000356206252627044013560 0ustar alal(;GM[1]SZ[19]DT[1994-09-07,08]KM[5.5]RO[1]PC[Uzawa Garden Tokyo]PB[Rin Kaiho]PW[Kobayashi Koichi]TM[8 hours each]FF[3]RE[W+2.5]ID[94/1]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[qp];W[dp];B[fq];W[ip];B[cn];W[fp];B[gp] ;W[fo];B[eq];W[dq];B[go];W[dn];B[dm];W[gn];B[do];W[ep];B[hq] ;W[en];B[cl];W[iq];B[ho];W[oq];B[hn];W[gm];B[hm];W[po];B[qo] ;W[pn];B[qm];W[em];B[kn];W[lp];B[ci];W[nc];B[kd];W[qc];B[pc] ;W[qd];B[pe];W[pb];B[ob];W[qb];B[oc];W[qf];B[fc];W[dk];B[ck] ;W[db];B[cf];W[hc];B[fe];W[fb];B[ec];W[eb];B[pq];W[or];B[jc] ;W[ne];B[og];W[nb];B[na];W[pf];B[of];W[ma];B[oa];W[lb];B[oe] ;W[kc];B[qh];W[rg];B[ld];W[jb];B[lc];W[kb];B[nd];W[qn];B[rn] ;W[rm];B[rl];W[pm];B[ql];W[he];B[hk];W[if];B[dc];W[cc];B[cd] ;W[bc];B[bd];W[ro];B[sm];W[qr];B[qq];W[rr];B[gc];W[gb];B[ic] ;W[id];B[jd];W[ib];B[jg];W[jf];B[kf];W[ii];B[hh];W[ih];B[mo] ;W[mp];B[nn];W[jj];B[np];W[op];B[nq];W[mr];B[cp];W[cq];B[bp] ;W[dl];B[cm];W[fk];B[kh];W[il];B[hl];W[ig];B[ei];W[ad];B[be] ;W[lj];B[ir];W[jr];B[hr];W[jn];B[jm];W[jo];B[jl];W[km];B[nl] ;W[pr];B[rp];W[kl];B[jk];W[kk];B[kr];W[jq];B[gj];W[dj];B[di] ;W[er];B[fr];W[ok];B[nk];W[nj];B[oj];W[oi];B[pj];W[ni];B[ol] ;W[pi];B[qj];W[mm];B[nm];W[lg];B[kg];W[qi];B[mg];W[ff];B[ef] ;W[fg];B[cr];W[dr];B[br];W[bq];B[aq];W[ej];B[js];W[eg];B[ee] ;W[dg];B[gh];W[hg];B[fl];W[gl];B[gk];W[fm];B[fj];W[el];B[nr] ;W[ns];B[ln];W[mq];B[no];W[kq];B[rh];W[af];B[gd];W[bh];B[bi] ;W[hd];B[ae];W[bf];B[ce];W[cg];B[ah];W[bg];B[ed];W[rj];B[pl] ;W[ri];B[pg];W[sh];B[qe];W[re];B[qg];W[rf];B[bb];W[cb];B[ac] ;W[mh];B[nh];W[lh];B[lf];W[ki];B[lr];W[ko];B[mk];W[je];B[mi] ;W[li];B[mj];W[mb];B[mc];W[ke];B[le];W[df];B[de];W[mf];B[ng] ;W[cj];B[bj];W[hi];B[gi];W[jh];B[nf];W[cs];B[pa];W[qa];B[lm] ;W[ll];B[lk];W[lo];B[mn];W[ik];B[im];W[ij];B[sg];W[sf];B[rk] ;W[fh];B[fi];W[sq];B[sd];W[sc];B[rc];W[rb];B[sb];W[rd];B[sp] ;W[rq];B[fs];W[ba];B[ab];W[gg];B[ge];W[gf];B[ar];W[bs];B[sc] ;W[se];B[sk])goban-1.1.orig/games/Hon-47-4.mgt0000644000175000017500000000335206045540236014103 0ustar alal (;SZ[19]PB[Iwamoto Kaoru]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[W+0.5]DT[1947-12-]BS[0]WS[0];B[qd];W[dc];B[pp];W[dq];B[od];W[cf];B[co];W[dl];B[dn] ;W[cp];B[bp];W[bq];B[dp];W[cq];B[ep];W[fq];B[jc];W[qi];B[fc] ;W[ee];B[qm];W[qf];B[hd];W[nq];B[oq];W[np];B[go];W[qq];B[qp] ;W[or];B[pq];W[pr];B[qr];W[gq];B[hp];W[iq];B[cj];W[ek];B[bl] ;W[cm];B[cg];W[dg];B[ch];W[bf];B[bn];W[bm];B[am];W[ap];B[bo] ;W[di];B[ci];W[ip];B[dh];W[in];B[of];W[qk];B[gl];W[fi];B[eg] ;W[hi];B[ik];W[ji];B[hn];W[im];B[gj];W[gi];B[kg];W[li];B[om] ;W[mf];B[mg];W[pc];B[oc];W[rd];B[qc];W[ng];B[mh];W[nf];B[ko] ;W[io];B[ll];W[mi];B[nh];W[og];B[ni];W[nj];B[oj];W[ok];B[ph] ;W[nk];B[pi];W[oe];B[kj];W[ki];B[lf];W[nd];B[nc];W[md];B[qh] ;W[ro];B[rp];W[ml];B[mm];W[lk];B[lp];W[lm];B[mn];W[lr];B[kl] ;W[kk];B[jl];W[rc];B[qe];W[re];B[lb];W[ij];B[qj];W[ql];B[rm] ;W[qs];B[rr];W[kq];B[jk];W[jj];B[mk];W[mj];B[nl];W[ih];B[mk] ;W[lj];B[rg];W[rf];B[eq];W[er];B[dr];W[cr];B[hq];W[hr];B[eb] ;W[db];B[df];W[de];B[bg];W[qb];B[pb];W[rb];B[no];W[pl];B[rj] ;W[pm];B[pn];W[rl];B[sm];W[sl];B[qn];W[lc];B[mc];W[ld];B[kc] ;W[jf];B[ri];W[pa];B[ob];W[af];B[fl];W[dj];B[fj];W[ei];B[da] ;W[ca];B[ea];W[bb];B[rs];W[ck];B[bk];W[cl];B[el];W[hm];B[fr] ;W[ds];B[gr];W[fs];B[ag];W[gd];B[gc];W[id];B[hc];W[ec];B[gb] ;W[gm];B[fn];W[kp];B[ps];W[nr];B[lo];W[kn];B[jg];W[le];B[if] ;W[je];B[hg];W[hh];B[fd];W[ie];B[sf];W[km];B[kf];W[ke];B[ge] ;W[mp];B[mo];W[lq];B[oa];W[qa];B[jo];W[ml];B[hj];W[gg];B[ol] ;W[on];B[mk];W[ic];B[ib];W[ml];B[nm];W[fp];B[fo];W[gs];B[ho] ;W[hl];B[mk];W[se];B[sg];W[ml];B[hk];W[fk];B[mk];W[gf];B[he] ;W[ml];B[gk];W[ef];B[pd];W[pf];B[ed];W[dd];B[ao];W[aq];B[fg] ;W[ff];B[dg];W[hf];B[ig];W[fm];B[em];W[jp];B[sk];W[pk];B[rk] ;W[jn];B[mk];W[oo];B[op];W[ml];B[po];W[ln];B[mk];W[lh];B[lg] ;W[ml];B[nn];W[os];B[fh];W[mk];B[qs])goban-1.1.orig/games/Hon-77-4.mgt0000644000175000017500000000234606045540406014107 0ustar alal (;SZ[19]PW[Kato Masao]PB[Takemiya Masaki]KM[5.5]DT[1977-06-15,16]GM[1]FF[3]RE[W+R]BS[0]WS[0];B[pd];W[dp];B[pp];W[dc];B[pj];W[de];B[jd];W[jp];B[cn] ;W[dj];B[cq];W[cp];B[dq];W[ep];B[bp];W[bo];B[bq];W[co];B[fq] ;W[fp];B[gq];W[gp];B[pf];W[jf];B[ch];W[ci];B[ei];W[di];B[dh] ;W[eh];B[bi];W[bj];B[df];W[ee];B[cf];W[eg];B[bd];W[bc];B[cd] ;W[cc];B[ef];W[ff];B[bh];W[gg];B[ce];W[ld];B[ke];W[pc];B[qc] ;W[od];B[pe];W[oc];B[qb];W[mf];B[fc];W[ec];B[fd];W[fe];B[le] ;W[me];B[lc];W[md];B[kd];W[lg];B[hd];W[lk];B[ej];W[dk];B[ek] ;W[dl];B[hj];W[el];B[jj];W[ii];B[ij];W[li];B[jm];W[jl];B[il] ;W[jk];B[im];W[ik];B[hk];W[hl];B[kh];W[gl];B[lh];W[mh];B[kg] ;W[kf];B[lf];W[mg];B[if];W[ki];B[jg];W[ji];B[lm];W[ll];B[mm] ;W[ok];B[nq];W[pk];B[qj];W[qk];B[oj];W[nk];B[lq];W[hq];B[ro] ;W[rj];B[ri];W[rl];B[qh];W[hr];B[fr];W[po];B[oo];W[qp];B[qo] ;W[pn];B[pq];W[rp];B[rq];W[rn];B[qq];W[lb];B[io];W[jo];B[kn] ;W[lp];B[kq];W[lo];B[nn];W[kc];B[jc];W[kb];B[jb];W[dg];B[ai] ;W[ae];B[ad];W[bf];B[ag];W[cg];B[bg];W[aj];B[be];W[ig];B[je] ;W[ac];B[af];W[np];B[op];W[mq];B[mr];W[mp];B[ls];W[nr];B[oq] ;W[ho];B[hn];W[ip];B[gn];W[fm];B[oa];W[in];B[hm];W[jr];B[nb] ;W[nc];B[fn];W[en];B[eb];W[db];B[fb];W[kr];B[lr];W[qn];B[sp] ;W[gs];B[om];W[fs];B[dr];W[br];B[cs];W[es];B[ar];W[ap];B[bs] ;W[sj])goban-1.1.orig/games/Hon-91-1.mgt0000644000175000017500000000175306045540450014100 0ustar alal (;GM[1]SZ[19]DT[1991-05-10,11]FF[3]RO[1]PB[Cho Chikun]PW[Kobayashi Koichi]RE[W+R]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[cn];W[fq];B[bp];W[dd];B[pq];W[oc];B[hq] ;W[cq];B[ck];W[po];B[fc];W[jc];B[df];W[ec];B[fd];W[ee];B[ed] ;W[de];B[dc];W[cc];B[eb];W[db];B[oo];W[qq];B[pp];W[qp];B[qo] ;W[pn];B[ro];W[pr];B[nq];W[rr];B[ql];W[or];B[ol];W[om];B[nl] ;W[np];B[pe];W[md];B[cb];W[ec];B[kd];W[kc];B[dc];W[cl];B[dl] ;W[ec];B[mp];W[qm];B[dc];W[rl];B[da];W[cf];B[ch];W[dk];B[bl] ;W[qj];B[pl];W[rm];B[no];W[mn];B[nn];W[lq];B[bq];W[lp];B[mm] ;W[dn];B[cm];W[ho];B[pm];W[qn];B[gp];W[fn];B[fp];W[ep];B[fr] ;W[er];B[gq];W[ip];B[eq];W[dr];B[kr];W[lr];B[jq];W[jp];B[iq] ;W[kq];B[gn];W[go];B[js];W[fo];B[qh];W[qi];B[pc];W[ob];B[cd] ;W[bc];B[bd];W[bb];B[ba];W[be];B[ac];W[dh];B[ci];W[gf];B[ph] ;W[qb];B[dg];W[ef];B[eh];W[fh];B[ab];W[ce];B[ig];W[mf];B[id] ;W[jd];B[hh];W[ie];B[he];W[hf];B[if];W[je];B[ge];W[eg];B[di] ;W[gi];B[ij];W[gk];B[il];W[hl];B[mh];W[kg];B[kh];W[jh];B[jg] ;W[ki];B[lh];W[ii];B[hi];W[hj];B[jj];W[ji];B[ff];W[gg])goban-1.1.orig/games/Hon-41-6.mgt0000644000175000017500000000175506045540234014102 0ustar alal (;SZ[19]PW[Kato Shin]PB[Sekiyama Riichi]KM[0]TM[13h]RE[B+R]FF[3]GM[1]DT[1941-07-15]BS[0]WS[0];B[qd];W[dc];B[od];W[qp];B[eq];W[cp];B[oq];W[po];B[mp] ;W[do];B[de];W[dh];B[ge];W[gc];B[hq];W[id];B[qk];W[pq];B[ld] ;W[hf];B[fg];W[ei];B[gh];W[gj];B[dg];W[fd];B[cc];W[cb];B[cd] ;W[bb];B[go];W[qi];B[qg];W[pj];B[pk];W[ok];B[ol];W[nk];B[nl] ;W[mk];B[ml];W[pm];B[pl];W[lk];B[ll];W[kk];B[ch];W[ci];B[bg] ;W[bh];B[cg];W[or];B[nr];W[op];B[nq];W[nc];B[nd];W[mc];B[oc] ;W[lc];B[md];W[kc];B[oi];W[oj];B[kl];W[gm];B[fn];W[dq];B[er] ;W[bi];B[fm];W[dm];B[il];W[ef];B[eh];W[di];B[ed];W[fe];B[ec] ;W[eg];B[eb];W[jk];B[gl];W[hk];B[hl];W[lf];B[kd];W[jd];B[cr] ;W[mo];B[lo];W[mn];B[ln];W[rg];B[qf];W[db];B[ee];W[ff];B[bc] ;W[fb];B[ea];W[ps];B[bq];W[mg];B[ke];W[jf];B[je];W[ie];B[nb] ;W[mb];B[og];W[ni];B[fj];W[gk];B[fk];W[el];B[fl];W[fi];B[nh] ;W[mh];B[mi];W[nj];B[kf];W[kg];B[ik];W[ij];B[cn];W[dn];B[bp] ;W[bm];B[rh];W[ri];B[ob];W[lp];B[lq];W[kp];B[kq];W[ns];B[qh] ;W[ls];B[kr];W[rl];B[qm];W[rm];B[qn];W[rn];B[bo];W[ks];B[ir] )goban-1.1.orig/games/Hon-52-2.mgt0000644000175000017500000000306406045540240014070 0ustar alal (;GM[1]SZ[19]DT[1952-07-09,10]PB[Hashimoto Utaro]PW[Takagawa Kaku]RE[W+8.5]FF[3]BS[0]WS[0]KM[4.5];B[qd];W[dd];B[od];W[qp];B[eq];W[cp];B[oq];W[lp];B[on] ;W[qm];B[ip];W[mn];B[qq];W[rq];B[pp];W[qo];B[ol];W[qj];B[dl] ;W[cn];B[en];W[ep];B[fp];W[dq];B[er];W[ml];B[qr];W[kc];B[jd] ;W[jc];B[id];W[hc];B[cc];W[dc];B[cd];W[ce];B[be];W[bf];B[cf] ;W[de];B[bg];W[df];B[af];W[cg];B[bf];W[mc];B[nb];W[jn];B[dr] ;W[cr];B[do];W[dp];B[fo];W[dn];B[dg];W[eg];B[ch];W[eo];B[qh] ;W[ne];B[oe];W[jg];B[gg];W[dh];B[di];W[cg];B[le];W[nc];B[oc] ;W[me];B[dg];W[eh];B[ei];W[fi];B[if];W[cb];B[bb];W[bc];B[bd] ;W[ba];B[ab];W[eb];B[ig];W[jh];B[ld];W[lc];B[hd];W[gc];B[hi] ;W[fj];B[jq];W[ii];B[hj];W[fn];B[cj];W[em];B[ij];W[jj];B[fh] ;W[kq];B[jr];W[ho];B[hp];W[np];B[op];W[rr];B[mq];W[kr];B[mp] ;W[mo];B[no];W[po];B[ko];W[jo];B[ks];W[mr];B[jp];W[lo];B[nq] ;W[ls];B[js];W[kp];B[oo];W[qi];B[ph];W[rh];B[rg];W[jk];B[fk] ;W[ri];B[ql];W[rl];B[pm];W[rm];B[bm];W[gk];B[gj];W[mb];B[ob] ;W[nh];B[nk];W[mk];B[fl];W[el];B[cl];W[fg];B[gh];W[ek];B[gl] ;W[fe];B[il];W[bn];B[jl];W[kl];B[an];W[ao];B[am];W[bq];B[ej] ;W[lf];B[mj];W[mi];B[ih];W[rf];B[qf];W[sg];B[re];W[qg];B[pg] ;W[ji];B[nf];W[ng];B[nj];W[lj];B[of];W[mf];B[nm];W[qs];B[ps] ;W[rs];B[or];W[fq];B[gq];W[go];B[gp];W[hm];B[qk];W[rk];B[km] ;W[lm];B[jm];W[kn];B[hl];W[dk];B[ck];W[rg];B[kf];W[jf];B[je] ;W[kg];B[ic];W[ib];B[ge];W[gd];B[ff];W[ef];B[gf];W[ds];B[fr] ;W[pk];B[pl];W[pi];B[es];W[cs];B[pn];W[gm];B[ma];W[la];B[na] ;W[cm];B[qn];W[rn];B[bl];W[dj];B[ci];W[ik];B[hk];W[se];B[sd] ;W[ke];B[kd];W[im];B[io];W[in];B[ni];W[nr];B[mh];W[li];B[ns] ;W[mg];B[og];W[kf];B[cg];W[sf])goban-1.1.orig/games/M-77-2.mgt0000644000175000017500000000167606252627042013564 0ustar alal(;DT[1977-09-19]PB[Rin Kaiho]PW[Otake Hideo]RE[B+R]BR[9 Dan]WR[9 Dan]ID[77/2]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[cq];B[pp];W[cc];B[pj];W[nq];B[jd];W[dn];B[lq] ;W[lp];B[kp];W[mp];B[jq];W[pn];B[on];W[om];B[oo];W[pl];B[mn] ;W[qq];B[pq];W[qp];B[po];W[qo];B[qn];W[rn];B[nm];W[qm];B[nk] ;W[dj];B[dd];W[cd];B[df];W[ed];B[ff];W[de];B[fd];W[fe];B[ge] ;W[ee];B[ef];W[gd];B[he];W[fc];B[fj];W[ip];B[ko];W[nd];B[pf] ;W[pc];B[qc];W[oc];B[qb];W[ld];B[kf];W[mf];B[ep];W[dp];B[dq] ;W[eo];B[cp];W[do];B[cr];W[bq];B[er];W[fp];B[bp];W[eq];B[dr] ;W[bo];B[br];W[pr];B[or];W[qr];B[nr];W[qh];B[rj];W[oh];B[ng] ;W[og];B[of];W[nf];B[ni];W[oi];B[oj];W[nh];B[mg];W[lg];B[mh] ;W[mi];B[lh];W[nj];B[li];W[lj];B[kj];W[lk];B[rg];W[kk];B[lf] ;W[ki];B[kh];W[jj];B[jh];W[kc];B[jc];W[kb];B[jb];W[pb];B[mc] ;W[md];B[rh];W[hj];B[fl];W[hl];B[dk];W[ch];B[cj];W[di];B[cl] ;W[cf];B[gm];W[hn];B[go];W[co];B[aq];W[cm];B[gn];W[em];B[hm] ;W[im];B[il];W[nl];B[ml];W[ok];B[mk];W[ik];B[mj];W[qq])goban-1.1.orig/games/M-90-5.mgt0000644000175000017500000000211306252627042013545 0ustar alal(;GM[1]FF[3]DT[1990-10-25,26]SZ[19]PB[Otake Hideo]PW[Kobayashi Koichi]KM[5.5]RE[W+R]ID[90/5]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[dp];B[fq];W[cn];B[dr];W[po];B[pl] ;W[mp];B[oo];W[on];B[no];W[pp];B[nq];W[nn];B[mo];W[qq];B[oq] ;W[qr];B[df];W[ol];B[ok];W[nl];B[qm];W[qn];B[rn];W[ro];B[nk] ;W[mk];B[kp];W[qj];B[qk];W[pj];B[pk];W[qf];B[re];W[rf];B[fd] ;W[cc];B[ff];W[ck];B[qe];W[of];B[nd];W[lc];B[me];W[oi];B[mj] ;W[ic];B[ce];W[fb];B[ci];W[nb];B[ob];W[oc];B[pb];W[fc];B[cq] ;W[cp];B[ml];W[dq];B[br];W[bq];B[cr];W[iq];B[lk];W[gq];B[eq] ;W[fr];B[er];W[kr];B[mn];W[gr];B[bp];W[bo];B[aq];W[ek];B[kd] ;W[kc];B[jd];W[id];B[so];W[rm];B[sm];W[sn];B[jc];W[jb];B[rn] ;W[rp];B[ib];W[hb];B[rj];W[ri];B[rl];W[nc];B[rh];W[od];B[oe] ;W[pf];B[pe];W[si];B[qh];W[qi];B[oh];W[ph];B[pg];W[nh];B[pi] ;W[og];B[ph];W[oj];B[ni];W[sh];B[ng];W[mh];B[nf];W[mi];B[nj] ;W[rg];B[sf];W[kh];B[dl];W[cl];B[hp];W[gp];B[go];W[jp];B[kq] ;W[ho];B[gn];W[lr];B[dk];W[dj];B[ih];W[jg];B[ie];W[kf];B[cj] ;W[el];B[mc];W[lb];B[li];W[lh];B[dm];W[em];B[lf];W[qg];B[ej] ;W[di];B[ei];W[dh];B[eh];W[dn];B[hc];W[ia];B[jo];W[ld])goban-1.1.orig/games/Hon-75-3.sgf0000644000175000017500000000340606243711220014064 0ustar alal( ; DT[1975-] EV[30th Honinbo 1975] RO[3] KM[5.5] BR[Honinbo] WR[9 dan] PB[Ishida Yoshio] PW[Sakata Eio] RE[B+5.5] TM[9 hours each] ;B[qd];W[cq];B[dd];W[od];B[oc];W[nc];B[pc];W[md];B[qf] ;W[ic];B[gc];W[qq];B[lc];W[mb];B[jb];W[pe];B[qe];W[kd];B[jd] ;W[jc];B[kc];W[ld];B[ib];W[hc];B[hb];W[je];B[dn];W[eq];B[cj] ;W[he];B[cd];W[po];B[co];W[kp];B[go];W[gq];B[pl];W[gm];B[dp] ;W[dq];B[fp];W[ek];B[hq];W[gr];B[io];W[di];B[fl];W[gj];B[mp] ;W[gd];B[fc];W[hp];B[ho];W[mn];B[lo];W[oj];B[qj];W[fn];B[ko] ;W[im];B[pq];W[pr];B[qp];W[pp];B[oq];W[qr];B[hl];W[hm];B[fm] ;W[gl];B[qo];W[nq];B[pn];W[np];B[dl];W[el];B[em];W[fk];B[ll] ;W[kk];B[mj];W[on];B[pm];W[pk];B[qk];W[li];B[mi];W[mh];B[nh] ;W[lj];B[mg];W[lh];B[og];W[mk];B[nk];W[nl];B[ml];W[lk];B[nm] ;W[ol];B[om];W[ok];B[fe];W[pi];B[mq];W[nn];B[no];W[op];B[mo] ;W[oo];B[mm];W[km];B[ni];W[nj];B[rq];W[rr];B[ci];W[dg];B[ch] ;W[dh];B[gf];W[cg];B[be];W[ck];B[dk];W[dj];B[cl];W[bk];B[bj] ;W[bh];B[bl];W[hg];B[gg];W[gh];B[lg];W[kg];B[iq];W[qi];B[rg] ;W[rh];B[rp];W[nf];B[ng];W[qg];B[pg];W[ph];B[qh];W[rj];B[rk] ;W[qg];B[oe];W[rn];B[qn];W[gp];B[ip];W[hr];B[ir];W[mr];B[lr] ;W[nr];B[ls];W[ob];B[pb];W[bp];B[bf];W[bg];B[hf];W[if];B[fh] ;W[hh];B[id];W[hd];B[fi];W[fj];B[sg];W[pa];B[qa];W[oa];B[rb] ;W[la];B[kb];W[bn];B[bo];W[ao];B[jn];W[jm];B[rm];W[ep];B[eo] ;W[fo];B[gn];W[fq];B[cn];W[of];B[pf];W[ne];B[cp];W[bq];B[hs] ;W[gs];B[is];W[ef];B[eg];W[fd];B[ed];W[cf];B[ee];W[lf];B[bm] ;W[an];B[lb];W[mc];B[ka];W[ma];B[gi];W[hi];B[kl];W[jl];B[sr] ;W[ce];B[mf];W[me];B[pd];W[af];B[bd];W[ae];B[ad];W[ag];B[en] ;W[fp];B[oe];W[sq];B[sp];W[pe];B[ap];W[aq];B[oe];W[bi];B[ak] ;W[pe];B[am];W[ap];B[oe];W[qb];B[qc];W[pe];B[ms];W[ns];B[oe] ;W[kr];B[kq];W[pe];B[kf];W[le];B[oe];W[ec];B[eb];W[pe];B[sj] ;W[ri];B[qh];W[ai];B[rs];W[qs];B[qg];W[ei];B[sq];W[oe];B[ss] C[269 moves complete.] ) goban-1.1.orig/games/Hon-45--5.sgf0000644000175000017500000000202006243707004014134 0ustar alal( ; GM[1] SZ[19] DT[1945-11-] RO[5] FF[3] BR[7 dan] WR[7 dan] KM[0] PB[Hashimoto Utaro] PW[Iwamoto Kaoru] RE[B+R] TM[12 hours each] ID[ 3/5] ;B[qd];W[ce];B[od];W[qp];B[eq];W[cp];B[oq];W[kp];B[iq] ;W[po];B[mp];W[dc];B[qr];W[qk];B[jc];W[qh];B[gc];W[dn];B[cq] ;W[bq];B[dp];W[co];B[ci];W[gq];B[hp];W[cr];B[gp];W[jq];B[ir] ;W[kn];B[mn];W[ck];B[kl];W[im];B[il];W[hm];B[hl];W[gm];B[gl] ;W[fm];B[ei];W[no];B[mo];W[lq];B[dr];W[dq];B[jo];W[ko];B[mq] ;W[nd];B[nc];W[mc];B[md];W[ne];B[oc];W[kc];B[jd];W[kd];B[me] ;W[je];B[jb];W[kf];B[nf];W[ge];B[ec];W[dd];B[ek];W[hh];B[cq] ;W[hj];B[fl];W[jm];B[ij];W[cj];B[di];W[eb];B[rq];W[qq];B[rr] ;W[rp];B[hi];W[gi];B[ii];W[gh];B[rg];W[qg];B[rf];W[rh];B[pl] ;W[ql];B[dl];W[bm];B[cm];W[bn];B[fb];W[ed];B[ie];W[if];B[he] ;W[hf];B[jg];W[jf];B[gd];W[fe];B[dq];W[hb];B[hc];W[id];B[hd] ;W[kb];B[ea];W[fc];B[gb];W[bs];B[do];W[cn];B[en];W[em];B[fn] ;W[fj];B[dk];W[dm];B[cl];W[bl];B[om];W[pm];B[pn];W[qm];B[mb] ;W[lj];B[lh];W[da];B[on];W[nj];B[mk];W[mj];B[lk];W[kj];B[kk] ;W[qf];B[qe];W[bh];B[bi];W[bg];B[qn];W[rn];B[nk] ) goban-1.1.orig/games/Hon-72-4.sgf0000644000175000017500000000255006243710352014066 0ustar alal( ; EV[27th Honinbo] RO[4] BR[Meijin] WR[Honinbo] KM[4.5] PB[Rin Kaiho] PW[Ishida Yoshio] DT[1972-] PC[Japan] RE[W+1.5] ;B[qd];W[cq];B[pq];W[cc];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[cj];W[qf];B[ce];W[ed];B[cm];W[jc];B[eq] ;W[co];B[eo];W[df];B[cf];W[dg];B[cg];W[dh];B[ci];W[oe];B[nl] ;W[op];B[oq];W[mo];B[ll];W[ok];B[nk];W[ko];B[oj];W[pk];B[mc] ;W[je];B[io];W[km];B[jk];W[in];B[hn];W[im];B[ho];W[ik];B[jj] ;W[lj];B[mj];W[kl];B[li];W[kk];B[pi];W[qh];B[jh];W[ig];B[hi] ;W[gh];B[jg];W[jf];B[kq];W[jo];B[bc];W[bb];B[bd];W[dd];B[kb] ;W[jb];B[dr];W[cr];B[bn];W[bo];B[jp];W[lq];B[lr];W[kp];B[jq] ;W[pc];B[qc];W[nc];B[ob];W[nb];B[nd];W[od];B[pb];W[md];B[ne] ;W[ng];B[of];W[nf];B[me];W[mi];B[mh];W[le];B[ld];W[mf];B[md] ;W[ni];B[nh];W[lh];B[oh];W[ki];B[og];W[lf];B[rg];W[qg];B[qe] ;W[nj];B[dp];W[ar];B[gi];W[fi];B[hk];W[fj];B[fk];W[gj];B[il] ;W[rn];B[rf];W[mq];B[mr];W[gk];B[gl];W[fl];B[hm];W[ek];B[ro] ;W[ji];B[ii];W[jl];B[hl];W[kd];B[mb];W[ih];B[rk];W[qj];B[mp] ;W[lp];B[np];W[no];B[rh];W[ck];B[bk];W[dk];B[cl];W[ri];B[ab] ;W[ba];B[si];W[sj];B[sh];W[rj];B[sn];W[sm];B[so];W[qk];B[ja] ;W[ia];B[ka];W[kc];B[lb];W[ib];B[fm];W[em];B[en];W[ch];B[bh] ;W[pf];B[pe];W[dq];B[er];W[dj];B[dm];W[el];B[pp];W[oo];B[hh] ;W[hg];B[di];W[ei];B[cp];W[bp];B[cd];W[db];B[cs];W[bs];B[ds] ;W[do];B[ep];W[hj];B[ij];W[an];B[am];W[ao];B[mg];W[lg];B[de] ;W[ee];B[bj];W[cn];B[bm] C[203 moves complete.] ) goban-1.1.orig/games/M-81-1.mgt0000644000175000017500000000402606252627042013546 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Kato Masao]DT[1981-09-09,10]RE[W+1.5]ID[81/1]FF[3]BS[0]WS[0]BR[9 Dan];B[pd];W[dc];B[qp];W[dq];B[oq];W[qj];B[co];W[dm];B[eo] ;W[fp];B[hp];W[fo];B[en];W[gn];B[cq];W[cr];B[bq];W[dp];B[cn] ;W[jp];B[er];W[dr];B[gr];W[fq];B[io];W[ir];B[hq];W[hr];B[gq] ;W[cm];B[em];W[hm];B[fn];W[ho];B[ip];W[el];B[fl];W[ek];B[fk] ;W[ej];B[hk];W[ik];B[ij];W[il];B[jq];W[kq];B[kp];W[jo];B[kr] ;W[lq];B[jr];W[in];B[lp];W[mp];B[jn];W[ko];B[lo];W[kn];B[mo] ;W[fj];B[gj];W[gl];B[gk];W[km];B[gh];W[fh];B[gg];W[fg];B[ff] ;W[ef];B[ee];W[df];B[de];W[ce];B[fe];W[cd];B[ec];W[eb];B[fb] ;W[fc];B[gc];W[ed];B[fd];W[ec];B[hb];W[mc];B[oc];W[jc];B[qg] ;W[hf];B[gf];W[hd];B[gd];W[no];B[mq];W[jf];B[cf];W[eg];B[ld] ;W[lc];B[jd];W[id];B[je];W[ib];B[if];W[ig];B[ie];W[he];B[hg] ;W[le];B[kd];W[md];B[jg];W[ih];B[kf];W[jh];B[me];W[lf];B[lg] ;W[mf];B[kj];W[jj];B[ji];W[ki];B[jk];W[kh];B[kg];W[mh];B[mg] ;W[ng];B[nh];W[ne];B[og];W[nf];B[lh];W[li];B[mi];W[ke];B[ck] ;W[cl];B[bk];W[bl];B[cg];W[ci];B[bc];W[cb];B[bi];W[bh];B[ch] ;W[bj];B[cj];W[ai];B[di];W[bi];B[bg];W[dh];B[bb];W[ba];B[da] ;W[cc];B[ca];W[be];B[af];W[ei];B[ae];W[ad];B[bd];W[ag];B[ah] ;W[dj];B[mh];W[kc];B[jf];W[lj];B[lk];W[mj];B[oh];W[mk];B[ea] ;W[gi];B[hi];W[bf];B[fi];W[pe];B[qe];W[gi];B[hc];W[ic];B[fi] ;W[mn];B[lr];W[gi];B[hh];W[pf];B[qf];W[jl];B[ha];W[aa];B[br] ;W[cp];B[bp];W[bn];B[bo];W[bs];B[an];W[bm];B[ao];W[fm];B[gm] ;W[qd];B[qc];W[fm];B[nc];W[gm];B[nd];W[ia];B[ac];W[dg];B[mb] ;W[lb];B[nb];W[ga];B[fa];W[la];B[ii];W[fi];B[of];W[ag];B[oe] ;W[ll];B[me];W[qn];B[ql];W[kk];B[ma];W[rp];B[qq];W[jj];B[jb] ;W[hl];B[ja];W[pk];B[pl];W[qo];B[om];W[on];B[pj];W[pi];B[oj] ;W[ok];B[qk];W[oi];B[rj];W[nj];B[qi];W[hj];B[kb];W[dd];B[gb] ;W[db];B[ab];W[ba];B[aa];W[ad];B[ae];W[af];B[ge];W[ka];B[jb] ;W[ad];B[kb];W[ba];B[ja];W[fr];B[fs];W[rq];B[rr];W[sr];B[qr] ;W[np];B[nm];W[nn];B[rm];W[nq];B[nr];W[rn];B[op];W[qh];B[pj] ;W[ph];B[rh];W[bb];B[pg];W[eq];B[es];W[qm];B[rl];W[ds];B[gs] ;W[gp];B[iq];W[sm];B[sl];W[sn];B[po];W[oo];B[pp];W[pn];B[sq] ;W[sp];B[ln];W[mm];B[nl];W[rs];B[qs];W[sq];B[ol];W[ss])goban-1.1.orig/games/M-96-1.sgf0000644000175000017500000000103506252641720013540 0ustar alal( ; EV[21 Meijin 1996] RO[1] PB[Cho Chikun] BR[9 dan] PW[Takemiya Masaki] WR[9 dan] KM[5.5] DT[6/7 September 1996] PC[Hong Kong] RE[B+R] SY[Written by GoBase-0.0.9] ;B[qd];W[dp];B[dd];W[pp];B[qn];W[np];B[pk];W[nd];B[oc];W[jd] ;B[od];W[fc];B[cf];W[jp];B[cn];W[fp];B[dk];W[qi];B[oi];W[qg] ;B[hc];W[hd];B[id];W[ie];B[ic];W[gd];B[kb];W[je];B[ld];W[gg] ;B[rj];W[nf];B[og];W[of];B[pf];W[pg];B[qf];W[oh];B[ng];W[nh] ;B[mg];W[le];B[me];W[md];B[lf];W[lc];B[ke];W[kc];B[mj];W[pj] ;B[oj];W[qk];B[pl];W[rk];B[ph];W[pi];B[ql];W[qh];B[rl];W[nj] ;B[ok] ) goban-1.1.orig/games/Hon-71-3.mgt0000644000175000017500000000241106045540402014065 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Ishida Yoshio]FF[3]DT[1971-05-18,19]RE[B+R]PC[Yuda]BS[0]WS[0]KM[4.5];B[cp];W[pq];B[dc];W[qd];B[eq];W[nc];B[po];W[nq];B[qq] ;W[qr];B[qp];W[rr];B[qk];W[ce];B[dh];W[df];B[fd];W[bc];B[jc] ;W[qi];B[dk];W[ip];B[no];W[lp];B[qg];W[ph];B[of];W[pd];B[ng] ;W[nj];B[mh];W[ql];B[pl];W[rk];B[rl];W[qm];B[rj];W[pk];B[sk] ;W[qj];B[ok];W[rk];B[mq];W[mp];B[qk];W[pj];B[pm];W[rk];B[np] ;W[oq];B[qk];W[bp];B[co];W[rk];B[jp];W[jq];B[qk];W[ol];B[nl] ;W[jo];B[rk];W[ri];B[om];W[pg];B[pf];W[rf];B[bo];W[ch];B[ci] ;W[cg];B[ff];W[bi];B[cj];W[fb];B[eb];W[hc];B[fc];W[kc];B[kb] ;W[jd];B[lc];W[kd];B[jb];W[ld];B[mc];W[md];B[nb];W[oc];B[id] ;W[ie];B[hd];W[bj];B[bk];W[cl];B[aj];W[ah];B[ck];W[gq];B[gr] ;W[hr];B[gp];W[fq];B[fp];W[er];B[fr];W[hq];B[dq];W[gn];B[qf] ;W[rg];B[li];W[eo];B[fn];W[fo];B[go];W[gm];B[en];W[ho];B[ob] ;W[pb];B[ep];W[kj];B[lj];W[kk];B[fl];W[mk];B[ji];W[lk];B[ih] ;W[rq];B[rp];W[cb];B[cc];W[cd];B[gl];W[ij];B[ne];W[nd];B[dr] ;W[he];B[ge];W[hl];B[hk];W[il];B[db];W[bb];B[mb];W[gk];B[fk] ;W[gj];B[hf];W[if];B[ig];W[lg];B[kf];W[lf];B[ki];W[je];B[pa] ;W[qa];B[oa];W[qb];B[ln];W[kn];B[lm];W[lo];B[jj];W[jk];B[gi] ;W[fj];B[ej];W[fi];B[hi];W[hj];B[fh];W[jg];B[km];W[jm];B[mo] ;W[gs];B[es];W[mn];B[nn];W[kl];B[ml];W[qh];B[me];W[le];B[ee] ;W[sp];B[so];W[ro];B[sq];W[sn];B[rn])goban-1.1.orig/games/M-84-1.mgt0000644000175000017500000000313706252627042013553 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Otake Hideo]KM[5.5]TM[9 hours]DT[1984-09-11,12]PC[Tokyo]RE[B+2.5]ID[84/1]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[cp];W[pp];B[oc];W[eq];B[hp];W[en];B[cm] ;W[jp];B[hn];W[el];B[cq];W[fp];B[hl];W[hq];B[gq];W[gp];B[iq] ;W[ip];B[hr];W[ho];B[jq];W[kp];B[lq];W[lp];B[mq];W[mp];B[pj] ;W[nq];B[nr];W[jd];B[dm];W[em];B[dk];W[di];B[ek];W[kq];B[kr] ;W[hq];B[oq];W[lr];B[np];W[mr];B[nq];W[jr];B[qq];W[qp];B[rq] ;W[ql];B[qn];W[pn];B[ro];W[ol];B[qj];W[fk];B[fj];W[ej];B[ck] ;W[gk];B[ei];W[gj];B[dj];W[nj];B[ji];W[jg];B[ml];W[nn];B[mj] ;W[mi];B[li];W[lj];B[mk];W[lh];B[ki];W[ni];B[jl];W[qf];B[ok] ;W[pd];B[pc];W[nk];B[nl];W[pl];B[pg];W[pe];B[ng];W[qc];B[rd] ;W[qg];B[qh];W[rb];B[rc];W[qb];B[sb];W[mg];B[rk];W[rh];B[ph] ;W[ri];B[nd];W[rj];B[nf];W[me];B[ne];W[fc];B[rl];W[re];B[pb] ;W[lm];B[hi];W[gi];B[hh];W[lc];B[cf];W[bd];B[dr];W[kl];B[kk] ;W[jm];B[il];W[er];B[dg];W[hf];B[sj];W[se];B[qa];W[sg];B[si] ;W[rf];B[be];W[ce];B[bf];W[ee];B[ff];W[eh];B[dh];W[fe];B[ad] ;W[bc];B[ld];W[le];B[md];W[kd];B[lb];W[kb];B[mc];W[kc];B[oo] ;W[no];B[op];W[qm];B[rm];W[po];B[on];W[om];B[ms];W[ks];B[ll] ;W[pq];B[pr];W[nm];B[km];W[kn];B[mb];W[kl];B[ac];W[mm];B[km] ;W[ab];B[ae];W[kl];B[lk];W[bb];B[ka];W[ja];B[la];W[jb];B[es] ;W[fs];B[ds];W[fr];B[sk];W[sh];B[gf];W[ge];B[gn];W[fi];B[ej] ;W[in];B[gl];W[hg];B[gh];W[fh];B[df];W[fl];B[eo];W[fo];B[do] ;W[fn];B[mf];W[lf];B[kh];W[kg];B[qr];W[hj];B[ij];W[ih];B[ii] ;W[im];B[km];W[dq];B[cr];W[kl];B[nh];W[mh];B[km];W[rp];B[sp] ;W[kl];B[gm];W[dl];B[cl];W[dn];B[cn];W[oi];B[de];W[cd];B[jh] ;W[ig];B[go];W[hp];B[qo];W[pm];B[dp];W[sd];B[ns];W[ls];B[gg] ;W[km];B[ik])goban-1.1.orig/games/M-62-l11.sgf0000644000175000017500000000250006252641364013770 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[8 dan] PB[Miyashita Shuyo] PW[Fujisawa Shuko] RE[W+R] ;B[pd];W[dc];B[pp];W[cq];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[jc];W[qf];B[nd];W[rd];B[qc];W[qi];B[db];W[cc];B[fd] ;W[df];B[dp];W[dq];B[ep];W[bo];B[dm];W[fe];B[gd];W[fr];B[nq] ;W[ql];B[dk];W[md];B[qh];W[ph];B[pi];W[rh];B[me];W[ld];B[ne] ;W[jd];B[id];W[ic];B[kd];W[je];B[ke];W[ie];B[hd];W[kc];B[jb] ;W[lb];B[ib];W[le];B[kf];W[lf];B[kg];W[lg];B[kh];W[lh];B[ki] ;W[rc];B[oh];W[pg];B[ng];W[li];B[qj];W[ri];B[kj];W[lj];B[nj] ;W[kk];B[jk];W[nk];B[ok];W[nl];B[ol];W[nm];B[om];W[nn];B[on] ;W[jl];B[il];W[ik];B[jj];W[kl];B[im];W[hk];B[hf];W[gm];B[jm] ;W[mq];B[mp];W[np];B[lq];W[mr];B[no];W[mo];B[op];W[lp];B[np] ;W[lo];B[kq];W[jp];B[jq];W[ip];B[hl];W[iq];B[ir];W[kr];B[jr] ;W[hr];B[lr];W[gl];B[gk];W[hj];B[gj];W[hi];B[hn];W[hg];B[gf] ;W[hh];B[ig];W[fo];B[hp];W[fk];B[fj];W[go];B[mn];W[mk];B[kn] ;W[ko];B[hq];W[ho];B[gr];W[ro];B[rp];W[qo];B[qp];W[oi];B[ni] ;W[pj];B[pk];W[qk];B[bn];W[co];B[fq];W[er];B[cb];W[ci];B[oj] ;W[pi];B[so];W[cn];B[eq];W[bb];B[ba];W[ac];B[rm];W[qm];B[rn] ;W[qn];B[rl];W[rk];B[ef];W[eg];B[ff];W[bl];B[fl];W[fm];B[dh] ;W[ch];B[gh];W[jn];B[in];W[io];B[jo];W[kp];B[bk];W[bj];B[fs] ;W[dr];B[ak];W[cl];B[ck];W[el];B[dl];W[di];B[gi];W[km];B[ei] ;W[eh];B[gg];W[gn] C[192 moves complete.] ) goban-1.1.orig/games/Hon-43-1.mgt0000644000175000017500000000270606045540234014074 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1943-05-05,06,07]BR[7 dan]WR[7 dan]KM[4.5]RO[1]PC[Tokyo]PB[Hashimoto Utaro]PW[Sekiyama Riichi]RE[B+R]FF[3]TM[13h];B[qd];W[dc];B[od];W[qp];B[dp];W[fq];B[ce];W[cn];B[dn] ;W[dm];B[en];W[co];B[cp];W[gp];B[eq];W[ck];B[fp];W[fr];B[iq] ;W[gn];B[hp];W[gq];B[ho];W[go];B[em];W[hn];B[np];W[dl];B[el] ;W[jp];B[jq];W[lp];B[in];W[jn];B[ko];W[im];B[kp];W[ek];B[fk] ;W[ej];B[ee];W[fd];B[bc];W[jc];B[oq];W[qm];B[lc];W[bg];B[cg] ;W[ch];B[cf];W[dh];B[dr];W[bp];B[bq];W[bo];B[gl];W[cc];B[bb] ;W[cd];B[bd];W[bf];B[be];W[fe];B[ff];W[gf];B[gg];W[ef];B[fg] ;W[eg];B[cb];W[db];B[ca];W[hf];B[ik];W[io];B[gi];W[qj];B[qh] ;W[kq];B[kr];W[jk];B[lo];W[ij];B[hk];W[jl];B[kc];W[jd];B[ql] ;W[rl];B[qo];W[ro];B[le];W[oh];B[qn];W[rn];B[pm];W[rm];B[pi] ;W[lh];B[ji];W[ii];B[aq];W[jh];B[qr];W[rg];B[qg];W[qe];B[re] ;W[rd];B[pe];W[qc];B[qf];W[oc];B[rc];W[rb];B[sd];W[nd];B[ne] ;W[md];B[me];W[mb];B[mc];W[nc];B[lb];W[nb];B[jb];W[pb];B[hc] ;W[hd];B[gc];W[pl];B[ol];W[pk];B[om];W[pp];B[rq];W[pn];B[sb] ;W[ra];B[lj];W[ki];B[ok];W[ni];B[ll];W[rh];B[oo];W[po];B[ng] ;W[li];B[fc];W[de];B[hr];W[mj];B[mk];W[kj];B[ic];W[id];B[ec] ;W[ed];B[eb];W[lk];B[ml];W[on];B[nn];W[op];B[no];W[fi];B[fh] ;W[kf];B[ke];W[je];B[fj];W[ei];B[hg];W[gj];B[hj];W[hi];B[gk] ;W[fm];B[gm];W[fn];B[fl];W[ig];B[da];W[dd];B[lg];W[kg];B[bh] ;W[bi];B[kn];W[ip];B[hq];W[og];B[of];W[fo];B[ep];W[pq];B[pr] ;W[mg];B[mh];W[lf];B[nh];W[oi];B[pc];W[pd];B[pj];W[qk];B[pc] ;W[qb];B[oa];W[pa];B[kl];W[ma];B[ri];W[qi];B[rf];W[rj];B[er] )goban-1.1.orig/games/M-71-4.sgf0000644000175000017500000000244106252650630013536 0ustar alal( ; EV[10th Meijin Title] RO[4] PB[Rin Kaiho] BR[9 dan] PW[Fujisawa Shuko] WR[Meijin] DT[1971-] RE[W+R] KM[5] SZ[19] ;B[qd];W[dd];B[cp];W[pq];B[oc];W[eq];B[qo];W[pl];B[no] ;W[oo];B[on];W[op];B[qm];W[nn];B[om];W[mn];B[rk];W[dn];B[ep] ;W[dp];B[do];W[dq];B[eo];W[co];B[cn];W[bo];B[dm];W[gp];B[en] ;W[bp];B[iq];W[hq];B[nq];W[np];B[mo];W[lp];B[lo];W[ko];B[ln] ;W[mp];B[lm];W[io];B[hr];W[gr];B[ph];W[dj];B[jd];W[rd];B[qc] ;W[gd];B[fj];W[jg];B[eh];W[ch];B[he];W[hd];B[ie];W[lg];B[hg] ;W[ng];B[mh];W[mg];B[oi];W[pf];B[pg];W[nd];B[of];W[ld];B[mb] ;W[ni];B[cc];W[cd];B[bd];W[dc];B[bb];W[cb];B[bc];W[cf];B[db] ;W[eb];B[ca];W[ml];B[ll];W[mj];B[kj];W[og];B[oe];W[ji];B[li] ;W[nh];B[ik];W[hh];B[ih];W[ig];B[hi];W[gh];B[gg];W[gi];B[hj] ;W[ii];B[gj];W[jh];B[fh];W[lb];B[mc];W[lc];B[fc];W[ge];B[gf] ;W[ec];B[fe];W[fd];B[md];W[ke];B[me];W[jc];B[kq];W[kp];B[qq] ;W[qr];B[jr];W[lr];B[lq];W[mq];B[kr];W[mr];B[ip];W[ho];B[jp] ;W[hs];B[is];W[ir];B[cq];W[cr];B[hr];W[gs];B[gn];W[im];B[fp] ;W[go];B[fq];W[gq];B[la];W[nl];B[jm];W[jn];B[il];W[km];B[jl] ;W[lk];B[kk];W[kn];B[kl];W[qk];B[qj];W[pj];B[qi];W[rl];B[ql] ;W[pk];B[rj];W[qp];B[ic];W[rn];B[qn];W[ro];B[rm];W[id];B[je] ;W[jb];B[ci];W[fg];B[fi];W[ih];B[ef];W[hf];B[if];W[di];B[de] ;W[ce];B[hc];W[ed];B[dh];W[dg];B[kf];W[jf];B[eg];W[kd];B[bh] ;W[cg];B[bi];W[bm]C[192 moves complete.] ) goban-1.1.orig/games/Hon-85-1.mgt0000644000175000017500000000253106045540442014077 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Takemiya Masaki]DT[1985-05-15,16]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dq];B[do];W[co];B[cn];W[cp];B[gn] ;W[qj];B[dg];W[fd];B[dn];W[fq];B[fg];W[pn];B[ql];W[qp];B[qo] ;W[po];B[qn];W[qm];B[qq];W[rp];B[rm];W[pm];B[ro];W[pl];B[rq] ;W[op];B[pq];W[nc];B[pf];W[pb];B[pk];W[qk];B[rl];W[ok];B[gd] ;W[pj];B[fc];W[ec];B[fe];W[ed];B[qc];W[gc];B[hd];W[fb];B[ce] ;W[cd];B[hk];W[hi];B[md];W[mc];B[ld];W[qb];B[jj];W[gf];B[hh] ;W[ih];B[hg];W[ji];B[gi];W[oe];B[qg];W[jf];B[ig];W[ef];B[ff] ;W[cg];B[ch];W[bh];B[bg];W[cf];B[bi];W[dh];B[ci];W[bf];B[eg] ;W[jd];B[jg];W[of];B[lg];W[og];B[rb];W[ra];B[rc];W[rg];B[rh] ;W[rf];B[qf];W[qh];B[qi];W[ph];B[rj];W[re];B[rk];W[kj];B[qe] ;W[ij];B[jk];W[ik];B[il];W[jl];B[kk];W[ki];B[hj];W[ii];B[lk] ;W[lj];B[im];W[km];B[jm];W[kl];B[kn];W[mk];B[hq];W[fo];B[bn] ;W[gr];B[kf];W[fn];B[fm];W[ag];B[fp];W[ep];B[gp];W[go];B[ho] ;W[eo];B[en];W[bq];B[hr];W[bo];B[ln];W[mm];B[mq];W[bk];B[ck] ;W[cl];B[dk];W[em];B[fl];W[dl];B[el];W[bm];B[dm];W[hn];B[gm] ;W[pi];B[ri];W[mp];B[lp];W[nq];B[no];W[mr];B[lq];W[oo];B[lc] ;W[ic];B[cm];W[lr];B[kr];W[jr];B[kq];W[ks];B[jq];W[ke];B[le] ;W[mf];B[lf];W[ai];B[bj];W[aj];B[bl];W[or];B[mn];W[nm];B[np] ;W[nn];B[mo];W[oq];B[pr];W[gq];B[hp];W[jb];B[lb];W[od];B[de] ;W[be];B[mh];W[pc];B[sb];W[mi];B[nh];W[mb];B[gs];W[fs];B[hs] ;W[eq];B[ls];W[js];B[os];W[ni];B[ak];W[if];B[hf];W[nr];B[ah] )goban-1.1.orig/games/Hon-91-5.mgt0000644000175000017500000000300206045540452014073 0ustar alal (;PB[Cho Chikun]PW[Kobayashi Koichi]DT[1991-07-]RE[B+3.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[qd];W[dp];B[cd];W[qp];B[ec];W[od];B[oc];W[nc];B[pc] ;W[md];B[qf];W[ic];B[fq];W[ip];B[cn];W[fp];B[gp];W[fo];B[cq] ;W[eq];B[cp];W[go];B[nq];W[lq];B[qq];W[pq];B[pp];W[qr];B[rq] ;W[op];B[po];W[oq];B[rr];W[on];B[oo];W[no];B[qo];W[np];B[ck] ;W[fj];B[pm];W[pe];B[qe];W[nl];B[ok];W[nk];B[oj];W[nj];B[oi] ;W[dl];B[cl];W[mh];B[gi];W[fi];B[gh];W[fh];B[gg];W[fd];B[fg] ;W[ed];B[fc];W[dc];B[dd];W[gd];B[db];W[eg];B[ef];W[df];B[ee] ;W[ff];B[de];W[dh];B[gj];W[gk];B[hk];W[gf];B[hf];W[ie];B[ii] ;W[if];B[jk];W[il];B[ik];W[kj];B[fk];W[gl];B[ek];W[cf];B[hl] ;W[gm];B[hm];W[jl];B[kl];W[jm];B[ho];W[hp];B[kn];W[km];B[lm] ;W[kk];B[jn];W[ll];B[im];W[kl];B[io];W[jp];B[gn];W[fn];B[hn] ;W[fm];B[gc];W[hd];B[jo];W[ph];B[qi];W[qh];B[di];W[ci];B[ej] ;W[eh];B[cj];W[bi];B[be];W[bf];B[bj];W[bc];B[bd];W[cc];B[bb] ;W[ai];B[oh];W[pl];B[ol];W[ri];B[rk];W[pg];B[pf];W[og];B[dr] ;W[er];B[rg];W[pn];B[qn];W[om];B[qm];W[qj];B[qk];W[ob];B[of] ;W[ng];B[hb];W[pb];B[qb];W[ib];B[ne];W[nd];B[me];W[le];B[pa] ;W[nb];B[es];W[fs];B[ds];W[fr];B[pr];W[or];B[qs];W[do];B[co] ;W[ln];B[lo];W[mn];B[os];W[ns];B[ps];W[mq];B[kp];W[kq];B[ig] ;W[ia];B[ha];W[aj];B[ak];W[dm];B[cm];W[hc];B[gb];W[pd];B[qc] ;W[dq];B[cr];W[kh];B[af];W[ag];B[ae];W[cg];B[nm];W[nn];B[jg] ;W[kf];B[jf];W[je];B[nr];W[mr];B[pi];W[rh];B[rj];W[nf];B[oe] ;W[mf];B[kg];W[lg];B[jh];W[qg];B[rf];W[oa];B[qa];W[ki];B[dn] ;W[en];B[ni];W[mi];B[jj];W[he];B[hg];W[fe];B[ac];W[sg];B[sf] ;W[sj];B[sk];W[lp];B[ko];W[mo];B[si];W[sh];B[sj])goban-1.1.orig/games/Hon-60-6.sgf0000644000175000017500000000355406243707562014103 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[6] FF[3] BR[8 dan] WR[Honinbo] PB[Fujisawa Shuko] PW[Takagawa Shukaku] RE[W+1.5] KM[4.5] ID[15/6] ;B[qd];W[dc];B[pq];W[co];B[oc];W[qo];B[pl];W[pn];B[qp] ;W[rp];B[rq];W[pp];B[qq];W[op];B[nq];W[ce];B[cq];W[ep];B[eq] ;W[fp];B[fq];W[gp];B[ic];W[ph];B[qj];W[np];B[mq];W[mp];B[oi] ;W[oe];B[nd];W[pd];B[pc];W[qe];B[rd];W[mf];B[oh];W[pg];B[mh] ;W[kf];B[fc];W[dq];B[dr];W[dp];B[kh];W[if];B[di];W[br];B[cr] ;W[bq];B[hr];W[hq];B[iq];W[ir];B[gr];W[jq];B[ip];W[kr];B[cp] ;W[bp];B[es];W[cm];B[is];W[jr];B[lp];W[lo];B[ko];W[lq];B[kp] ;W[jp];B[ln];W[rn];B[oq];W[in];B[nm];W[nn];B[mn];W[ql];B[pm] ;W[qm];B[on];W[sq];B[sr];W[sp];B[kd];W[jd];B[je];W[ke];B[id] ;W[jf];B[ld];W[ie];B[jc];W[ih];B[cf];W[bf];B[bg];W[cg];B[df] ;W[bh];B[dg];W[ag];B[de];W[cd];B[fe];W[jk];B[nf];W[ne];B[of] ;W[me];B[pf];W[pe];B[ii];W[hi];B[ij];W[gh];B[jh];W[gf];B[hg] ;W[gj];B[gg];W[ig];B[fg];W[hh];B[hk];W[il];B[gl];W[kj];B[ki] ;W[ek];B[cj];W[fb];B[gb];W[eb];B[dd];W[ci];B[dj];W[gk];B[hl] ;W[fl];B[fm];W[em];B[gn];W[rr];B[en];W[dn];B[qr];W[ss];B[lr] ;W[kq];B[ms];W[kn];B[mo];W[jo];B[lo];W[ho];B[dh];W[ec];B[gd] ;W[nk];B[ok];W[qk];B[no];W[po];B[pj];W[re];B[rg];W[sd];B[rb] ;W[rh];B[ri];W[qg];B[sh];W[qf];B[mk];W[mj];B[nj];W[lk];B[ml] ;W[mi];B[ni];W[ls];B[ks];W[js];B[os];W[ls];B[mr];W[cs];B[fr] ;W[bi];B[dl];W[el];B[cl];W[eo];B[km];W[ed];B[hf];W[he];B[ge] ;W[bs];B[ds];W[ga];B[ha];W[fa];B[hc];W[sb];B[rc];W[sc];B[rk] ;W[rl];B[jn];W[hm];B[gm];W[hs];B[gs];W[ik];B[hj];W[qh];B[ch] ;W[bg];B[bm];W[bn];B[dm];W[fn];B[cn];W[md];B[mc];W[cm];B[fi] ;W[gi];B[cn];W[ng];B[og];W[cm];B[lh];W[lj];B[cn];W[mg];B[nh] ;W[cm];B[fj];W[fk];B[cn];W[ra];B[an];W[cm];B[jm];W[im];B[cn] ;W[bo];B[qb];W[bj];B[bk];W[sk];B[rj];W[ll];B[aj];W[ai];B[ak] ;W[ao];B[am];W[dk];B[ck];W[lm];B[kl];W[fh];B[eh];W[ej];B[ei] ;W[fd];B[gc];W[od];B[nc];W[ee];B[ef];W[go];B[qa];W[mm];B[nl] ;W[oo];B[qs];W[je];B[cm];W[se];B[sg];W[sa];B[ks];W[io];B[ls] ;W[is] ) goban-1.1.orig/games/M-68-3.sgf0000644000175000017500000000343006252650340013540 0ustar alal( ; GM[1] EV[7th Meijin Title Match] RO[3] PB[Takagawa Shukaku] BR[9 dan] PW[Rin Kaiho] WR[Meijin] DT[1968/Sept/9,10] PC[Tokyo] RE[B+3] KM[5] SZ[19] ;B[pd];W[dp];B[qp];W[dc];B[oq];W[qj];B[ce];W[dg];B[ef];W[gc] ;B[cn];W[fp];B[dk];W[jq];B[ql];W[qg];B[qe];W[mc];B[oc];W[mq] ;B[cq];W[cp];B[bp];W[bo];B[bq];W[co];B[er];W[fr];B[eq];W[fq] ;B[ep];W[eo];B[fo];W[dq];B[dr];W[en];B[bn];W[ao];B[es];W[fh] ;B[go];W[fm];B[fk];W[hm];B[io];W[hp];B[ho];W[jp];B[jo];W[jm] ;B[lo];W[np];B[il];W[im];B[mn];W[ij];B[ml];W[dm];B[cl];W[ej] ;B[dj];W[ch];B[ei];W[hl];B[ed];W[ec];B[fd];W[bj];B[dh];W[eg] ;B[ci];W[bh];B[bi];W[eh];B[di];W[cf];B[ai];W[cd];B[be];W[de] ;B[dd];W[cc];B[gd];W[hc];B[df];W[bf];B[ie];W[kf];B[jd];W[ld] ;B[hd];W[ic];B[ih];W[gj];B[gi];W[hg];B[ig];W[fi];B[fj];W[hh] ;B[kh];W[kj];B[mh];W[hf];B[if];W[nm];B[mm];W[mj];B[hj];W[hi] ;B[mf];W[pm];B[qm];W[ok];B[gk];W[ii];B[kl];W[ko];B[kn];W[kp] ;B[jn];W[po];B[ik];W[hk];B[kk];W[gj];B[lj];W[gh];B[qo];W[ke] ;B[li];W[mk];B[lk];W[id];B[he];W[nb];B[je];W[kb];B[ri];W[ng] ;B[mg];W[km];B[ln];W[qc];B[qi];W[re];B[rf];W[rd];B[qf];W[op] ;B[pp];W[pi];B[ph];W[oi];B[pg];W[or];B[ob];W[rb];B[bd];W[bc] ;B[ee];W[ad];B[ae];W[ac];B[pq];W[nq];B[pk];W[jh];B[jg];W[pr] ;B[oj];W[nl];B[nj];W[rq];B[nk];W[an];B[bm];W[ji];B[kg];W[cs] ;B[cr];W[bs];B[ap];W[ar];B[br];W[rp];B[af];W[fl];B[ro];W[ag] ;B[de];W[nd];B[pn];W[nn];B[fc];W[fb];B[ne];W[gl];B[ek];W[qq] ;B[hr];W[hq];B[fs];W[so];B[sn];W[sp];B[qn];W[sm];B[rn];W[ol] ;B[on];W[oo];B[pl];W[ir];B[ff];W[pb];B[pa];W[qa];B[oa];W[pj] ;B[ni];W[lp];B[lb];W[lc];B[kd];W[kc];B[le];W[no];B[om];W[nc] ;B[pc];W[qb];B[oe];W[sf];B[sg];W[se];B[na];W[ma];B[jc];W[jb] ;B[gf];W[gn];B[fn];W[hn];B[ah];W[cg];B[am];W[do];B[ip];W[iq] ;B[gs];W[gr];B[hs];W[is];B[gp];W[gq];B[me];W[lm];B[ll];W[rj] ;B[rk];W[qd];B[od];W[mo];B[cm];W[bg] ) goban-1.1.orig/games/M-83-3.mgt0000644000175000017500000000230506252627042013550 0ustar alal(;GM[1]SZ[19]DT[1983-09-28,29]PC[Izu]PW[Cho Chikun]PB[Otake Hideo]RE[B+R]OE[0]OS[0]FF[3]ID[83/3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[cp];W[pp];B[oc];W[eq];B[ip];W[gq];B[dq] ;W[ep];B[do];W[kp];B[dm];W[iq];B[qj];W[qn];B[fc];W[cf];B[db] ;W[cc];B[ic];W[ck];B[oj];W[je];B[hd];W[nd];B[nc];W[qe];B[pd] ;W[og];B[qg];W[oq];B[mg];W[ni];B[oh];W[oi];B[ph];W[le];B[kg] ;W[if];B[dg];W[cg];B[ih];W[gf];B[qq];W[qp];B[or];W[nr];B[ql] ;W[nm];B[ml];W[lh];B[lg];W[nl];B[mk];W[nk];B[nq];W[pr];B[hp] ;W[jq];B[di];W[jc];B[ch];W[ek];B[fi];W[fe];B[fl];W[jb];B[ib] ;W[cb];B[ec];W[eh];B[ei];W[fk];B[gk];W[gj];B[fj];W[cn];B[dn] ;W[bi];B[bh];W[cm];B[dl];W[cl];B[bo];W[bn];B[fr];W[co];B[dp] ;W[gr];B[bp];W[cj];B[nj];W[mj];B[lj];W[mi];B[ok];W[lk];B[mm] ;W[kj];B[nn];W[om];B[kl];W[ij];B[il];W[hh];B[hg];W[jh];B[hi] ;W[gh];B[gi];W[ii];B[ig];W[jg];B[gg];W[pi];B[qi];W[oe];B[nh] ;W[lc];B[kh];W[ki];B[kf];W[jf];B[ke];W[kd];B[id];W[jd];B[md] ;W[me];B[mc];W[ld];B[nf];W[ne];B[pe];W[hf];B[fg];W[hb];B[ia] ;W[da];B[ea];W[fb];B[gb];W[gc];B[ga];W[er];B[df];W[gd];B[hc] ;W[np];B[ed];W[de];B[ee];W[jl];B[jm];W[jk];B[im];W[be];B[pn] ;W[on];B[rn];W[hj];B[qo];W[fn];B[fm];W[gn];B[hl];W[po];B[qm] ;W[rp];B[ai];W[aj];B[ci];W[ah];B[ag];W[al];B[ai])goban-1.1.orig/games/Hon-68-6.mgt0000644000175000017500000000254206045540400014101 0ustar alal (;GM[1]SZ[19]KM[4.5]PW[Sakata Eio]PB[Rin Kaiho]RE[W+0.5]DT[1968-06-19,20]FF[3]BS[0]WS[0];B[pd];W[dc];B[qp];W[dp];B[oq];W[de];B[qj];W[nc];B[pf] ;W[jd];B[cj];W[ch];B[cm];W[gq];B[bp];W[kp];B[pb];W[cq];B[cc] ;W[cd];B[ec];W[db];B[ed];W[dd];B[hd];W[rp];B[qo];W[qh];B[pi] ;W[qf];B[qe];W[pg];B[rf];W[of];B[qg];W[rg];B[qf];W[ph];B[ni] ;W[mh];B[md];W[jf];B[mc];W[ic];B[gg];W[hc];B[gi];W[mq];B[mi] ;W[lh];B[ge];W[hf];B[ig];W[gf];B[ff];W[he];B[fg];W[li];B[ro] ;W[bn];B[cn];W[bo];B[co];W[cp];B[bm];W[bq];B[lj];W[kj];B[kk] ;W[jj];B[lk];W[jk];B[gl];W[rj];B[rk];W[ri];B[qk];W[gn];B[jl] ;W[ne];B[nd];W[il];B[jm];W[gd];B[jo];W[jp];B[ho];W[io];B[hn] ;W[hp];B[mo];W[in];B[go];W[im];B[fo];W[di];B[dj];W[ei];B[gj] ;W[fk];B[gk];W[ej];B[el];W[ee];B[mr];W[lr];B[nr];W[np];B[mp] ;W[nq];B[lq];W[lp];B[op];W[no];B[nn];W[oo];B[on];W[po];B[pn] ;W[kq];B[pp];W[lq];B[fq];W[fr];B[ln];W[lb];B[mb];W[ek];B[dl] ;W[do];B[dn];W[bi];B[fp];W[eq];B[dg];W[ci];B[bj];W[kn];B[km] ;W[kc];B[oe];W[nf];B[cg];W[bg];B[nh];W[ng];B[lc];W[kb];B[lf] ;W[kf];B[le];W[lg];B[fe];W[fd];B[oh];W[og];B[jh];W[hg];B[hh] ;W[ii];B[ih];W[jn];B[oj];W[lo];B[mn];W[aj];B[ak];W[ai];B[dk] ;W[eo];B[en];W[hm];B[gm];W[sg];B[la];W[ka];B[cf];W[bf];B[ma] ;W[fl];B[fm];W[or];B[pr];W[ms];B[os];W[sk];B[sl];W[sf];B[se] ;W[sj];B[an];W[ap];B[if];W[ie];B[ce];W[be];B[gp];W[hq];B[ji] ;W[ij];B[kg];W[ki];B[mf];W[mg];B[hk];W[ik];B[kd];W[ep];B[fn] ;W[ls];B[ns])goban-1.1.orig/games/T-22-3.mgt0000644000175000017500000000306506404362110013543 0ustar alal( ; EV[22nd Tengen] RO[3] PB[Ryu Shikun] BR[7 dan] PW[Rin Kaiho] WR[9 dan] KM[5.5] DT[1996-12-12] PC[Japan] RE[W+3.5] SY[Written by GoBase-0.0.9] ;B[pd];W[dd];B[pp];W[dp];B[fq];W[hq];B[cf];W[di];B[fc];W[df] ;B[dg];W[ef];B[cc];W[ce];B[dc];W[bf];B[cn];W[fp];B[ck];W[co] ;B[dn];W[gq];B[bi];W[dl];B[dk];W[cl];B[el];W[bk];B[cj];W[bl] ;B[bm];W[bo];B[cm];W[em];B[dm];W[an];B[am];W[fl];B[ek];W[en] ;B[bj];W[do];B[ak];W[np];B[pn];W[qf];B[qh];W[nd];B[pf];W[pg] ;B[qg];W[pc];B[qe];W[qc];B[cg];W[gf];B[lc];W[rf];B[re];W[of] ;B[pe];W[nb];B[fe];W[ed];B[fd];W[ec];B[eb];W[fb];B[db];W[ff] ;B[id];W[pq];B[qq];W[oq];B[qr];W[nn];B[pl];W[om];B[pm];W[qp] ;B[qo];W[jm];B[lm];W[ln];B[hl];W[jk];B[hj];W[fi];B[gh];W[fh] ;B[fk];W[bg];B[hn];W[im];B[fm];W[fn];B[gm];W[io];B[ns];W[ps] ;B[pr];W[or];B[os];W[ms];B[qs];W[nr];B[mb];W[mc];B[lb];W[oj] ;B[ob];W[oa];B[ne];W[me];B[mf];W[le];B[oc];W[od];B[oe];W[pb] ;B[ch];W[bd];B[bc];W[je];B[ie];W[if];B[jf];W[ge];B[ig];W[gc] ;B[gb];W[gd];B[fa];W[hf];B[ld];W[md];B[ke];W[lf];B[kg];W[cd] ;B[lg];W[rd];B[ee];W[bh];B[ci];W[ae];B[ac];W[de];B[fb];W[gi] ;B[rg];W[nk];B[hh];W[ad];B[pi];W[op];B[po];W[ki];B[mj];W[bn] ;B[al];W[oi];B[kf];W[nc];B[mk];W[mi];B[ni];W[nj];B[li];W[nh] ;B[lj];W[mm];B[nl];W[ol];B[ml];W[nm];B[pk];W[ok];B[ho];W[hp] ;B[hc];W[pj];B[qj];W[rp];B[rq];W[ph];B[qi];W[ps];B[kj];W[jj] ;B[ji];W[go];B[og];W[oh];B[ng];W[mh];B[km];W[ll];B[kl];W[kk] ;B[lk];W[lh];B[kh];W[kn];B[ki];W[hm];B[gn];W[in];B[gl];W[hd] ;B[ic];W[ma];B[la];W[mg];B[nf];W[jl];B[ll];W[ii];B[ih];W[se] ;B[sf];W[sd];B[qd];W[rc];B[oo];W[no];B[ij];W[hi];B[gj];W[ik] ;B[hk];W[os];B[ah];W[ag];B[ai];W[na] ) goban-1.1.orig/games/Hon-66-2.mgt0000644000175000017500000000335406045540374014107 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1966-05-06,07]PB[Sakata Eio]PW[Fujisawa Shuko]RE[B+1.5]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[oc];B[cp];W[eq];B[gp];W[fo];B[cm] ;W[po];B[qo];W[qn];B[qp];W[pn];B[op];W[qg];B[pe];W[pj];B[ce] ;W[dh];B[dg];W[eg];B[ed];W[ec];B[fd];W[fc];B[gd];W[df];B[gc] ;W[cg];B[de];W[bc];B[lc];W[qb];B[nd];W[nc];B[md];W[rc];B[ph] ;W[qh];B[lp];W[jq];B[ip];W[gr];B[dq];W[do];B[er];W[fq];B[co] ;W[jp];B[in];W[io];B[hn];W[hg];B[jo];W[iq];B[mb];W[pg];B[qc] ;W[rb];B[pc];W[pb];B[nb];W[ob];B[rd];W[oa];B[ng];W[ck];B[ho] ;W[lr];B[mr];W[ko];B[kp];W[jn];B[io];W[kn];B[en];W[fn];B[fm] ;W[kr];B[mq];W[fp];B[em];W[mn];B[il];W[fr];B[dr];W[eo];B[if] ;W[lg];B[og];W[hf];B[ie];W[jh];B[ol];W[pk];B[lk];W[ml];B[mk] ;W[kk];B[kj];W[jj];B[kl];W[jk];B[ll];W[pp];B[km];W[qq];B[rq] ;W[qr];B[rr];W[ro];B[rp];W[oq];B[pr];W[or];B[qs];W[mo];B[np] ;W[lj];B[ig];W[ih];B[kg];W[lh];B[li];W[kh];B[rn];W[rm];B[so] ;W[ql];B[pm];W[qm];B[bl];W[le];B[lf];W[mf];B[kf];W[nf];B[of] ;W[od];B[oe];W[mg];B[ne];W[me];B[jd];W[fb];B[gb];W[bk];B[bd] ;W[cb];B[ek];W[mp];B[lq];W[ga];B[ha];W[fa];B[ib];W[nl];B[mj] ;W[hk];B[hl];W[ok];B[dp];W[ir];B[bh];W[bg];B[bj];W[ci];B[fj] ;W[gi];B[bi];W[cl];B[bn];W[al];B[am];W[bm];B[hq];W[hr];B[bl] ;W[hb];B[hc];W[bm];B[cj];W[dj];B[bl];W[dk];B[ak];W[gk];B[ei] ;W[di];B[ej];W[ff];B[fh];W[gh];B[fg];W[eh];B[fi];W[gf];B[pi] ;W[qi];B[rf];W[rg];B[qf];W[ni];B[oi];W[dn];B[dm];W[mi];B[sg] ;W[sh];B[sf];W[ki];B[lj];W[ms];B[ls];W[ks];B[nq];W[jm];B[jl] ;W[oo];B[ke];W[na];B[mc];W[ma];B[la];W[lm];B[fs];W[gs];B[es] ;W[lo];B[sc];W[sb];B[sd];W[no];B[os];W[cn];B[bf];W[ah];B[gl] ;W[fk];B[fl];W[im];B[hm];W[gn];B[nj];W[oj];B[oh];W[mh];B[ik] ;W[ij];B[gj];W[hj];B[cf];W[ld];B[aj];W[kd];B[kc];W[he];B[af] ;W[jg];B[hd];W[jf];B[je];W[ag];B[ac];W[ab];B[ad];W[ch];B[ee] ;W[ef];B[sm];W[sl];B[sn])goban-1.1.orig/games/T-13-2.mgt0000644000175000017500000000324306445672314013557 0ustar alal(;SZ[19]EV[Tengen 13th match]DT[1987-11-27]PB[Kobayashi]BR[Tengen]PW[Cho]WR[9d] KM[5.5]RE[B+1.5]US[Jan van Rongen / thx Theo van Ees] SO[KY 1987]GC[246 moves, white connects last ko] ;B[qd];W[dp];B[cd];W[pp];B[oc];W[ed];B[ec];W[dd];B[dc];W[ce];B[fc];W[fd];B[gd] ;W[cc];B[bd];W[cb];B[bc];W[gc];B[hc];W[bb];B[be];W[gb];B[fb];W[cf];B[db];W[hb] ;B[ge];W[ef];B[bf];W[ic];B[cg];W[dg];B[ch];W[gf];B[he];W[ea];B[da];W[lc];B[ei] ;W[ab];B[ba];W[gh];B[hf];W[eh];B[fi];W[fh];B[di];W[ih];B[kf];W[cn];B[qn];W[pk] ;B[kd];W[fa];B[ac];W[ga];B[ca];W[kc];B[qq];W[qp];B[pq];W[op];B[rp];W[ro];B[rq] ;W[qo];B[nq];W[qe];B[pe];W[qf];B[pd];W[ph];B[rn];W[pn];B[pm];W[on];B[id];W[hd] ;B[qk];W[qj];B[hc];W[jc];B[ql];W[rj];B[so];W[om];B[kh];W[eq];B[iq];W[pl];B[qm] ;W[ck];B[mp];W[gq];B[mn];W[sm];B[sl];W[rl];B[cm];W[bm];B[hi];W[gi];B[gj];W[hj] ;B[ii];W[gk];B[fj];W[ff];B[dn];W[co];B[hq];W[gp];B[io];W[sp];B[sq];W[rk];B[ml] ;W[oq];B[or];W[nr];B[pr];W[rm];B[dm];W[cl];B[gn];W[lk];B[mk];W[li];B[pg];W[qg] ;B[ni];W[lm];B[mm];W[ji];B[ij];W[hh];B[jh];W[hk];B[jk];W[hn];B[ho];W[gm];B[fn] ;W[lo];B[mo];W[el];B[hm];W[jl];B[ki];W[ek];B[fk];W[fl];B[jm];W[nb];B[nc];W[mb] ;B[og];W[jd];B[je];W[le];B[lf];W[hr];B[ir];W[bi];B[hs];W[ci];B[dh];W[bh];B[bg] ;W[il];B[kl];W[ik];B[jj];W[gr];B[gs];W[fs];B[is];W[fq];B[ob];W[re];B[rd];W[me] ;B[ke];W[mc];B[pi];W[qh];B[oh];W[oj];B[oi];W[sd];B[sc];W[se];B[rb];W[mf];B[mg] ;W[ig];B[eo];W[hd];B[qi];W[ri];B[hc];W[np];B[mq];W[im];B[in];W[gl];B[ah];W[ai] ;B[cj];W[bj];B[dj];W[hd];B[fe];W[ee];B[hc];W[km];B[jn];W[hd];B[ie];W[jg];B[kg] ;W[ag];B[ep];W[cq];B[nf];W[nj];B[mj];W[ne];B[oe];W[pf];B[of];W[hp];B[ip];W[oa] ;B[pa];W[na];B[hg];W[no];B[gg];W[fg];B[nd];W[em];B[en];W[hc];B[af];W[bk])goban-1.1.orig/games/Hon-56-5.mgt0000644000175000017500000000223606045540246014105 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-07-19, 20]BR[8 dan]WR[Honinbo]KM[4.5]RO[5]PC[Tokyo]PB[Shimamura Toshihiro]PW[Takagawa Kaku]RE[W+R]TM[10 h]FF[3];B[pd];W[dc];B[pp];W[dq];B[do];W[co];B[dp];W[cp];B[eq] ;W[cn];B[dn];W[dm];B[cq];W[dr];B[bq];W[er];B[cm];W[em];B[fp] ;W[fq];B[ep];W[gp];B[bp];W[cl];B[bm];W[fo];B[gq];W[fr];B[bn] ;W[hq];B[pj];W[nc];B[kd];W[qc];B[qd];W[pc];B[od];W[mc];B[oc] ;W[ob];B[nb];W[pb];B[md];W[nd];B[ne];W[mb];B[me];W[de];B[mp] ;W[ql];B[qk];W[pl];B[qo];W[nk];B[ol];W[pk];B[ok];W[qj];B[qi] ;W[rk];B[ri];W[om];B[nl];W[qn];B[oj];W[dh];B[ro];W[oo];B[op] ;W[no];B[np];W[id];B[if];W[rn];B[rd];W[jc];B[cd];W[cc];B[cj] ;W[kq];B[cg];W[ch];B[bh];W[bi];B[bg];W[ci];B[ce];W[dd];B[ef] ;W[df];B[dg];W[eg];B[eh];W[fg];B[bj];W[ei];B[ai];W[fh];B[dk] ;W[dl];B[ek];W[gk];B[bc];W[bb];B[ad];W[ji];B[ie];W[hd];B[kc] ;W[kb];B[jd];W[lc];B[gf];W[gd];B[kh];W[ki];B[li];W[lj];B[jh] ;W[mi];B[lh];W[mk];B[ii];W[jk];B[nh];W[ni];B[oi];W[mr];B[nr] ;W[hg];B[hh];W[gg];B[ig];W[hf];B[ab];W[ba];B[lr];W[lq];B[mq] ;W[kr];B[ms];W[so];B[sp];W[sn];B[rp];W[bl];B[be];W[rj];B[cr] ;W[si];B[sh];W[sj];B[rh];W[rc];B[sc];W[sb];B[sd];W[rb];B[jm] ;W[ml];B[nm];W[mm];B[ko];W[ho];B[mn];W[jl];B[on];W[ln];B[jp] ;W[jq])goban-1.1.orig/games/T-01-4.mgt0000644000175000017500000000255506261070674013560 0ustar alal(;SZ[19]EV[1st Tengen match, game 4]DT[1976-01-08]PB[Fujisawa Shuko]BR[9d]PW[Ohira Shuzo]WR[9d]KM[5.5]RE[B+9.5]SO[Kido yearbook];B[pd];W[dp];B[pq];W[cc];B[pk];W[nc];B[pf];W[jd];B[jp];W[fq];B[po];W[dj];B[dd];W[cd];B[de];W[eb];B[ce];W[fd];B[fe];W[ge];B[ff];W[gf];B[fh];W[gg];B[ec];W[fc];B[db];W[dc];B[ed];W[fb];B[be];W[bc];B[dh];W[qq];B[qp];W[pr];B[qr];W[co];B[nd];W[md];B[oc];W[nb];B[me];W[ne];B[od];W[ld];B[lp];W[qi];B[qk];W[qg];B[qf];W[pg];B[nf];W[rj];B[rf];W[rk];B[rl];W[rh];B[hq];W[ml];B[pi];W[ph];B[oi];W[rg];B[mn];W[hr];B[gr];W[gq];B[ir];W[hp];B[hs];W[iq];B[hr];W[rm];B[le];W[ke];B[ob];W[mc];B[cj];W[ck];B[bj];W[bk];B[dk];W[ej];B[dl];W[cm];B[dm];W[cn];B[fk];W[eh];B[eg];W[ch];B[di];W[ci];B[ei];W[fj];B[gj];W[aj];B[fi];W[bi];B[fr];W[eq];B[lk];W[ip];B[jq];W[in];B[im];W[hm];B[hl];W[jm];B[il];W[jo];B[er];W[dr];B[ds];W[cr];B[kn];W[rq];B[rr];W[qm];B[ql];W[sl];B[om];W[jn];B[km];W[ko];B[jl];W[lo];B[mo];W[hn];B[kh];W[nh];B[ni];W[jg];B[jh];W[mh];B[mi];W[pm];B[ol];W[ig];B[hi];W[ih];B[ii];W[ln];B[lm];W[oa];B[pa];W[na];B[pb];W[pn];B[on];W[sf];B[se];W[cs];B[fm];W[es];B[fs];W[lq];B[kp];W[oq];B[pp];W[sg];B[re];W[kr];B[jr];W[mq];B[or];W[ro];B[rp];W[qo];B[fo];W[go];B[cg];W[bg];B[bf];W[ag];B[fp];W[gp];B[en];W[gm];B[gl];W[lh];B[li];W[lf];B[mf];W[kg];B[ek];W[cj];B[cl];W[bl];B[hh];W[qj];B[pj];W[gh];B[gi];W[sp];B[sq];W[so];B[hg];W[hf];B[og];W[oh];B[mg];W[lg];B[bd];W[ac];B[ad];W[cb];B[af];W[ds])goban-1.1.orig/games/Hon-64-3.mgt0000644000175000017500000000242306045540372014100 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1964-05-13,14]PB[Takagawa Kaku]PW[Sakata Eio]RE[W+R]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[od];W[po];B[qm];W[qq];B[qp] ;W[pp];B[qo];W[qn];B[pn];W[rn];B[rq];W[qr];B[ro];W[rm];B[oq] ;W[np];B[rr];W[ql];B[pm];W[pl];B[nm];W[so];B[rp];W[op];B[ol] ;W[nq];B[pr];W[or];B[qs];W[pj];B[qh];W[ok];B[nk];W[nj];B[mk] ;W[jp];B[de];W[fd];B[cc];W[cb];B[cd];W[bb];B[ci];W[ck];B[dp] ;W[dq];B[ep];W[cp];B[dn];W[fq];B[ek];W[dj];B[dh];W[di];B[eh] ;W[fj];B[go];W[fk];B[gq];W[fr];B[mj];W[on];B[om];W[rj];B[ni] ;W[oj];B[hc];W[gc];B[hd];W[mc];B[kc];W[kd];B[jc];W[me];B[mg] ;W[kf];B[fl];W[gl];B[gm];W[ef];B[ch];W[hm];B[hl];W[gk];B[hn] ;W[im];B[jo];W[kp];B[el];W[fh];B[fg];W[gh];B[je];W[jm];B[kh] ;W[fm];B[gn];W[io];B[co];W[fp];B[fo];W[cm];B[cn];W[pc];B[oc] ;W[ob];B[pd];W[qb];B[qc];W[pb];B[rb];W[ra];B[qa];W[nc];B[lb] ;W[mb];B[ke];W[lc];B[ka];W[nd];B[ld];W[oe];B[pf];W[ng];B[nh] ;W[qf];B[rf];W[pg];B[qg];W[of];B[qe];W[mf];B[gp];W[lg];B[jj] ;W[mm];B[nn];W[mn];B[ee];W[fe];B[ff];W[gf];B[gg];W[hg];B[eg] ;W[ih];B[ph];W[nl];B[ml];W[no];B[oo];W[cf];B[be];W[on];B[bp] ;W[bq];B[oo];W[bf];B[df];W[on];B[ec];W[ed];B[dd];W[db];B[oo] ;W[em];B[dm];W[on];B[ge];W[gb];B[oo];W[dl];B[mh];W[dk];B[gr] ;W[on];B[nl];W[iq];B[fs];W[eq];B[en];W[ej];B[es];W[eo];B[do] ;W[bs];B[bl];W[bk];B[ap];W[ar];B[bm];W[hf])goban-1.1.orig/games/M-62-l13.sgf0000644000175000017500000000177506252641454014007 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] PB[Kitani Minoru] PW[Sugiuchi Masao] RE[B+R] ;B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qq];W[pn];B[qm];W[pe];B[qe];W[pf];B[qf];W[pg];B[ic] ;W[eq];B[iq];W[pr];B[qr];W[kq];B[gq];W[eo];B[cm];W[cq];B[bq] ;W[cr];B[dp];W[fq];B[gp];W[fo];B[hn];W[ck];B[br];W[fm];B[dn] ;W[hl];B[fc];W[io];B[in];W[jo];B[go];W[fk];B[jn];W[ko];B[jl] ;W[fd];B[gd];W[ec];B[fe];W[ed];B[fb];W[ge];B[hd];W[gf];B[el] ;W[fl];B[dj];W[cj];B[di];W[dl];B[cf];W[bh];B[ef];W[be];B[bf] ;W[ce];B[gg];W[hg];B[gh];W[ff];B[eg];W[ee];B[hh];W[jk];B[kk] ;W[jj];B[ig];W[kj];B[lk];W[hf];B[jh];W[if];B[lj];W[li];B[ki] ;W[il];B[km];W[hj];B[jf];W[je];B[kf];W[kc];B[kb];W[ke];B[lc] ;W[le];B[lh];W[mi];B[mh];W[ni];B[ch];W[ci];B[dh];W[pm];B[ql] ;W[hr];B[nk];W[ok];B[oj];W[pk];B[oh];W[oi];B[pi];W[ph];B[nh] ;W[pj];B[qi];W[nj];B[mj];W[oj];B[nl];W[ll];B[lm];W[ml];B[mm] ;W[nn];B[mn];W[nm];B[mp];W[lp];B[lo];W[mq];B[np];W[ol];B[lr] ;W[mr];B[ir] C[241 moves complete.] ) goban-1.1.orig/games/T-13-1.mgt0000644000175000017500000000306406445672220013553 0ustar alal(;SZ[19]GC[232 moves]EV[Tengen 13th]RO[1]DT[1987-11-19]PB[Cho]BR[9 dan]PW[Kobayashi] WR[Tengen]KM[5.5]RE[W+2.5]US[Jan van Rongen /thx Theo van Ees]SO[KY 1988] ;B[qc];W[dp];B[qq];W[dc];B[ce];W[dh];B[df];W[bd];B[cc];W[cd];B[dd];W[ed];B[de] ;W[cb];B[ec];W[db];B[be];W[fc];B[bc];W[bb];B[ad];W[cn];B[jq];W[pp];B[pq];W[op] ;B[ro];W[pm];B[dj];W[di];B[cj];W[bh];B[fj];W[fi];B[gj];W[gi];B[hi];W[gg];B[fd] ;W[eb];B[fe];W[hj];B[ej];W[ff];B[hd];W[hk];B[ii];W[hf];B[fm];W[gc];B[he];W[jf] ;B[hc];W[jk];B[gb];W[fb];B[ki];W[lf];B[ib];W[ab];B[mi];W[nf];B[fp];W[in];B[hp] ;W[lh];B[cq];W[dq];B[cp];W[co];B[dr];W[er];B[cr];W[eo];B[fq];W[gn];B[fn];W[bp] ;B[eq];W[fo];B[go];W[ho];B[gp];W[bk];B[gm];W[bj];B[hn];W[lk];B[mc];W[pi];B[od] ;W[nd];B[nc];W[pd];B[qd];W[oe];B[oc];W[rm];B[qn];W[qm];B[ml];W[mk];B[kl];W[kk] ;B[il];W[ik];B[nm];W[ol];B[nr];W[nq];B[mq];W[mp];B[lq];W[km];B[ln];W[lm];B[kn] ;W[mn];B[qg];W[qh];B[rg];W[qe];B[re];W[pg];B[oq];W[np];B[ke];W[le];B[kf];W[kg] ;B[kd];W[qf];B[rf];W[bq];B[br];W[rh];B[ci];W[ch];B[sh];W[sg];B[sf];W[ri];B[aq] ;W[jn];B[lp];W[mo];B[bi];W[ai];B[je];W[ie];B[id];W[if];B[im];W[jm];B[jl];W[ll] ;B[dl];W[cl];B[bo];W[bn];B[ap];W[gl];B[hm];W[qp];B[rp];W[ip];B[iq];W[rn];B[qo] ;W[lo];B[bg];W[dm];B[ck];W[bm];B[fl];W[ga];B[hb];W[el];B[io];W[kp];B[jp];W[md] ;B[ag];W[eg];B[ha];W[fa];B[ah];W[aj];B[ek];W[dk];B[kq];W[ko];B[dl];W[em];B[en] ;W[dn];B[ei];W[eh];B[pc];W[pe];B[ld];W[cg];B[cf];W[pn];B[po];W[oo];B[rq];W[an] ;B[sn];W[sm];B[so];W[ao];B[bp];W[ef];B[ee];W[si];B[fk];W[sg];B[ge];W[gf];B[sh] ;W[rd];B[rc];W[sg];B[jg];W[jh];B[sh];W[dk];B[sd];W[dl];B[sg];W[ec])goban-1.1.orig/games/T-07-1.mgt0000644000175000017500000000375406262563314013564 0ustar alal(;SZ[19]EV[7th Tengen match]KM[5.5]SO[Go world 27]PB[Kato Masao]BR[9d, Tengen & Oza]PW[Kobayashi Koichi]WR[9d]RO[Game 1]DT[1981-11-25]PC[Hyuga City]RE[B+3.5]TM[6 hours each];B[pd];W[dc];B[dp];W[pp];B[ce];W[ci];B[ed];W[ec];B[gd];W[fd];B[fe];W[fc];B[ge];W[hc];B[ck];W[ei];B[ek];W[gi];B[id];W[ii];B[jp];W[cq];B[dq];W[cp];B[do];W[co];B[cn];W[bn];B[bm];W[cm];B[dn];W[bl];B[dm];W[cl];B[nq];W[qn];B[ic];W[ib];B[kc];W[qf];B[pj];W[rd];B[qc];W[ph];B[pq];W[qq];B[qr];W[oq];B[pr];W[op];B[or];W[rq];B[np];W[on];B[nj];W[nh];B[mn];W[nd];B[pf];W[pg];B[ne];W[me];B[nf];W[mf];B[qe];W[re];B[ng];W[mg];B[md];W[ld];B[mc];W[lc];B[nc];W[lb];B[mh];W[kf];B[jb];W[hb];B[if];W[kh];B[hh];W[hi];B[cg];W[cd];B[be];W[og];B[ni];W[oh];B[of];W[qi];B[lh];W[ki];B[lj];W[je];B[ie];W[cr];B[bk];W[eg];B[ef];W[ch];B[fh];W[fi];B[dl];W[am];B[kd];W[lg];B[jg];W[kg];B[bc];W[cb];B[dr];W[hl];B[qj];W[rc];B[in];W[kk];B[ml];W[de];B[df];W[bg];B[mb];W[ma];B[na];W[la];B[fg];W[jq];B[iq];W[kp];B[ri];W[rh];B[pi];W[rg];B[rb];W[lq];B[ir];W[jo];B[ip];W[kn];B[qh];W[sf];B[lo];W[ko];B[hm];W[jm];B[rm];W[no];B[rr];W[mr];B[nr];W[mo];B[sr];W[qm];B[rl];W[dg];B[cf];W[dj];B[dk];W[gm];B[gn];W[fm];B[ln];W[mp];B[kr];W[ql];B[fn];W[li];B[mi];W[lk];B[nl];W[rn];B[qk];W[pl];B[ol];W[sb];B[ra];W[qd];B[pb];W[pe];B[od];W[kq];B[ak];W[ds];B[es];W[cs];B[al];W[er];B[fs];W[io];B[ho];W[jr];B[is];W[bo];B[bm];W[bd];B[ad];W[bb];B[eh];W[dh];B[ke];W[le];B[jf];W[ih];B[gh];W[fr];B[gs];W[gr];B[hs];W[im];B[hn];W[hp];B[hq];W[gp];B[gq];W[fp];B[fq];W[js];B[ep];W[fk];B[an];W[ar];B[mk];W[sq];B[mq];W[lr];B[gc];W[gb];B[ia];W[ab];B[rk];W[sm];B[fl];W[gl];B[fj];W[el];B[ej];W[gj];B[em];W[ac];B[fl];W[ig];B[hg];W[el];B[sl];W[sn];B[fl];W[oa];B[nb];W[el];B[nn];W[om];B[fl];W[ll];B[gk];W[hk];B[sh];W[ae];B[af];W[dd];B[ee];W[ag];B[bi];W[bh];B[bf];W[ai];B[bj];W[fk];B[lp];W[oo];B[gk];W[pk];B[ok];W[fk];B[lm];W[km];B[gk];W[nm];B[mm];W[fk];B[jh];W[ji];B[gk];W[si];B[sj];W[fk];B[oi];W[qg];B[gk];W[ns];B[os];W[ms];B[fk];W[hd];B[he];W[ha];B[ja];W[fb];B[kj];W[jj];B[mj];W[ao];B[kb];W[am];B[qi];W[an];B[oe];W[qe];B[ad];W[di];B[ae])goban-1.1.orig/games/Hon-72-6.sgf0000644000175000017500000000344506243710402014070 0ustar alal( ; EV[27th Honinbo] RO[6] BR[Meijin] WR[Honinbo] KM[4.5] PB[Rin Kaiho] PW[Ishida Yoshio] DT[1972-] PC[Japan] RE[W+3.5] ;B[qd];W[cq];B[cd];W[qp];B[oc];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[oq];W[lp];B[oo];W[pn];B[qq];W[rq];B[qr] ;W[qi];B[pp];W[qo];B[pl];W[on];B[mo];W[nm];B[pj];W[qe];B[pe] ;W[pf];B[pi];W[rd];B[pd];W[re];B[of];W[pg];B[rc];W[ph];B[qj] ;W[ri];B[ni];W[lm];B[lo];W[hq];B[ng];W[eb];B[ml];W[mm];B[do] ;W[ep];B[eo];W[fp];B[cp];W[bq];B[rr];W[dk];B[io];W[jq];B[di] ;W[fo];B[el];W[ci];B[ch];W[dj];B[bi];W[cj];B[dh];W[cm];B[dm] ;W[cn];B[fk];W[bj];B[bp];W[bh];B[bg];W[ai];B[ic];W[id];B[jm] ;W[ll];B[jc];W[jd];B[kb];W[lb];B[lc];W[kd];B[jb];W[hc];B[mc] ;W[gb];B[rg];W[rj];B[rk];W[rh];B[db];W[da];B[ca];W[ea];B[bb] ;W[qc];B[qb];W[sc];B[rb];W[fm];B[dq];W[dp];B[dr];W[co];B[br] ;W[bo];B[cr];W[ap];B[fr];W[gr];B[ar];W[fq];B[fs];W[kn];B[gn] ;W[fn];B[hk];W[ko];B[he];W[hd];B[lq];W[jk];B[lj];W[kj];B[ij] ;W[hl];B[il];W[hm];B[ik];W[ki];B[jh];W[lk];B[rm];W[oh];B[nn] ;W[ol];B[hg];W[oi];B[pm];W[om];B[oj];W[nj];B[qn];W[rn];B[qm] ;W[po];B[ro];W[rp];B[sn];W[gs];B[eq];W[lr];B[mq];W[mr];B[nr] ;W[kq];B[mp];W[nh];B[im];W[sk];B[rl];W[fl];B[ek];W[ej];B[fj] ;W[ei];B[mi];W[mj];B[mh];W[mg];B[lg];W[mf];B[lh];W[mb];B[nb] ;W[md];B[lf];W[ne];B[oe];W[eh];B[gh];W[kh];B[jg];W[ag];B[be] ;W[jf];B[kg];W[if];B[fg];W[ig];B[nf];W[me];B[eg];W[ih];B[ji] ;W[ok];B[kr];W[jr];B[ia];W[hb];B[li];W[ee];B[jj];W[kk];B[ef] ;W[de];B[hn];W[ip];B[df];W[af];B[ge];W[hf];B[gf];W[bf];B[fe] ;W[fd];B[cg];W[ce];B[bd];W[hh];B[gg];W[ld];B[nc];W[ib];B[ma] ;W[sb];B[sj];W[sg];B[sl];W[rf];B[dl];W[cl];B[dn];W[gi];B[fi] ;W[hi];B[fh];W[sr];B[kp];W[jo];B[go];W[gp];B[ae];W[ah];B[ms] ;W[ks];B[la];W[ha];B[ja];W[mn];B[no];W[pk];B[qk];W[rs];B[ns] ;W[ls];B[nd];W[sq];B[qs];W[so];B[sp];W[er];B[es];W[so];B[rn] ;W[si];B[ra];W[jp];B[lp];W[ss];B[sk];W[sp] C[276 moves complete.] ) goban-1.1.orig/games/Hon-92-2.mgt0000644000175000017500000000205306045540452014076 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]DT[1992-05-27,28]PC[Gifu]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[oc];W[dp];B[pp];W[qd];B[dd];W[kc];B[of];W[qg];B[ic] ;W[ke];B[ph];W[pg];B[og];W[oh];B[qh];W[pe];B[oe];W[oi];B[qj] ;W[pj];B[ri];W[rg];B[pk];W[ok];B[pl];W[lh];B[qb];W[rb];B[mc] ;W[pb];B[kb];W[ol];B[pm];W[qq];B[qp];W[pq];B[oq];W[or];B[nq] ;W[rp];B[ro];W[nr];B[mq];W[dc];B[ec];W[cc];B[ed];W[be];B[nj] ;W[mi];B[mg];W[lg];B[mj];W[lj];B[ni];W[lk];B[cn];W[nh];B[mh] ;W[li];B[oj];W[cl];B[dl];W[dk];B[el];W[cm];B[dn];W[fq];B[ep] ;W[eq];B[cp];W[cq];B[do];W[dq];B[cf];W[ce];B[di];W[ek];B[fk] ;W[ej];B[gl];W[fj];B[gj];W[gi];B[hj];W[fh];B[hi];W[fm];B[fl] ;W[hh];B[ih];W[hg];B[ig];W[if];B[hf];W[ie];B[gf];W[fg];B[jg] ;W[mf];B[ng];W[jf];B[ji];W[ef];B[gd];W[jd];B[bj];W[ck];B[bf] ;W[ch];B[bh];W[ci];B[de];W[df];B[bi];W[cg];B[bg];W[bc];B[cj] ;W[eh];B[bk];W[bl];B[ak];W[ai];B[ae];W[ad];B[af];W[ah];B[ab] ;W[eb];B[fb];W[db];B[bb];W[fc];B[gc];W[fa];B[fd];W[ba];B[mr] ;W[rq];B[ms];W[pr];B[ld];W[kg];B[le];W[kl];B[lm];W[km];B[il] ;W[ln];B[mm];W[jo];B[gp];W[mn];B[nm];W[nn];B[om];W[lp])goban-1.1.orig/games/Hon-85-4.mgt0000644000175000017500000000263406045540442014106 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Rin Kaiho]DT[1985-06-19,20]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pq];W[dq];B[do];W[qo];B[pl];W[co];B[cn] ;W[cp];B[fc];W[df];B[jd];W[no];B[mq];W[qf];B[qh];W[qc];B[pc] ;W[qd];B[pe];W[rf];B[og];W[dj];B[fe];W[qq];B[qr];W[pp];B[rq] ;W[oq];B[qp];W[pr];B[qq];W[nq];B[po];W[pn];B[op];W[np];B[on] ;W[kq];B[fn];W[fp];B[om];W[ec];B[fb];W[em];B[en];W[dm];B[dn] ;W[gl];B[hn];W[hp];B[im];W[ik];B[fj];W[fk];B[lo];W[kn];B[dp] ;W[cq];B[ip];W[io];B[ho];W[hq];B[ep];W[eq];B[gj];W[kl];B[jl] ;W[jk];B[jo];W[ko];B[kp];W[lp];B[jp];W[jq];B[jn];W[km];B[iq] ;W[ir];B[fo];W[fg];B[eh];W[eg];B[ch];W[ei];B[ce];W[cd];B[cj] ;W[ck];B[di];W[ej];B[fh];W[gh];B[fi];W[bj];B[bi];W[ci];B[dh] ;W[hl];B[gg];W[gf];B[hg];W[hh];B[ih];W[ig];B[hf];W[ii];B[cf] ;W[de];B[cj];W[ge];B[if];W[jh];B[ff];W[bg];B[cg];W[bd];B[mp] ;W[bk];B[lq];W[jf];B[gd];W[eb];B[ea];W[da];B[fa];W[db];B[kg] ;W[jg];B[kk];W[lj];B[lk];W[mk];B[kj];W[li];B[ll];W[le];B[je] ;W[kf];B[lc];W[qj];B[pb];W[rh];B[rk];W[rj];B[ki];W[lh];B[jr] ;W[hr];B[qk];W[ok];B[nl];W[mc];B[pj];W[pi];B[oi];W[oj];B[pk] ;W[qi];B[ef];W[dg];B[ni];W[kc];B[lb];W[mb];B[ld];W[md];B[fm] ;W[fl];B[me];W[kd];B[kb];W[jc];B[jb];W[ne];B[mf];W[nf];B[mg] ;W[ng];B[mh];W[nh];B[mi];W[oh];B[nd];W[ic];B[ib];W[lg];B[sj] ;W[pg];B[nc];W[mj];B[nb];W[kr];B[lr];W[js];B[rb];W[ml];B[mm] ;W[il];B[jm];W[ie];B[he];W[id];B[qe];W[re];B[qb];W[sc];B[si] ;W[hc];B[rc];W[rd];B[of];W[oe];B[pf];W[ph];B[gp];W[fq];B[hb] ;W[bo])goban-1.1.orig/games/T-09-4.mgt0000644000175000017500000000263506262660160013563 0ustar alal(;SZ[19]EV[9th Tengen match]PB[Kataoka Satoshi]BR[Tengen]PW[Awaji Shuzo]WR[8d]KM[5.5]SO[Go world 36]RO[Game 4]DT[1983-12-12]PC[Nihon Ki-in]RE[B+R];B[qd];W[qq];B[dc];W[de];B[ee];W[ef];B[ed];W[dg];B[cp];W[eq];B[cm];W[cc];B[cd];W[dd];B[ce];W[df];B[bc];W[ec];B[cb];W[db];B[cc];W[fd];B[pp];W[pq];B[op];W[fe];B[qp];W[nr];B[nc];W[qj];B[qh];W[pm];B[rq];W[rr];B[nq];W[mr];B[or];W[rp];B[oq];W[lp];B[qn];W[sq];B[nn];W[nl];B[ln];W[jp];B[pn];W[qm];B[oh];W[ne];B[nd];W[le];B[kc];W[pe];B[pd];W[qe];B[oj];W[pk];B[qi];W[pj];B[re];W[rf];B[rd];W[mo];B[mn];W[dn];B[cn];W[cq];B[bq];W[dp];B[co];W[no];B[oo];W[om];B[on];W[rn];B[qf];W[jn];B[kp];W[kq];B[ko];W[jo];B[jq];W[kr];B[mp];W[lo];B[kn];W[lq];B[jm];W[im];B[jl];W[ll];B[mk];W[ml];B[kl];W[lk];B[jj];W[hn];B[cr];W[ik];B[lj];W[nh];B[oe];W[oi];B[lh];W[og];B[pg];W[mi];B[li];W[mg];B[ij];W[hk];B[ig];W[dr];B[do];W[br];B[dq];W[kg];B[ep];W[hi];B[lg];W[lf];B[hj];W[gj];B[gi];W[hh];B[fi];W[fj];B[gg];W[ji];B[jh];W[gh];B[fh];W[ii];B[kj];W[fg];B[kf];W[jf];B[ke];W[jg];B[ld];W[je];B[kd];W[ei];B[id];W[kh];B[mf];W[of];B[me];W[fq];B[er];W[fr];B[ds];W[od];B[oc];W[pf];B[qg];W[fp];B[cj];W[en];B[rj];W[rk];B[ri];W[mj];B[gc];W[fb];B[gb];W[hd];B[ic];W[bf];B[be];W[dl];B[ck];W[sj];B[fs];W[gr];B[eo];W[fo];B[dm];W[em];B[el];W[ek];B[fl];W[gm];B[dk];W[ie];B[gd];W[ge];B[bh];W[bg];B[ch];W[ah];B[ai];W[ag];B[ci];W[rg];B[si];W[sk];B[sg];W[gs];B[pr];W[qr];B[hc];W[pi];B[sf];W[es];B[dr];W[he];B[oe];W[ph];B[nf];W[ng];B[fm];W[fn];B[gl])goban-1.1.orig/games/Hon-57-5.mgt0000644000175000017500000000265706045540250014110 0ustar alal (;GM[1]SZ[19]DT[1957-08-15,16]PW[Fujisawa Hosai]RE[W+R]PB[Takagawa Kaku]FF[3]KM[4.5]RO[5]PC[Nagano City, Nagano Pref.]TM[10h]BS[0]WS[0];B[qd];W[cp];B[pq];W[dc];B[od];W[ep];B[po];W[de];B[pj] ;W[dj];B[jp];W[mc];B[jd];W[me];B[gd];W[nf];B[pg];W[jb];B[gg] ;W[hp];B[jn];W[ie];B[id];W[ge];B[ld];W[md];B[kf];W[hd];B[hc] ;W[he];B[ib];W[jc];B[ic];W[fd];B[kh];W[ob];B[nh];W[pc];B[pd] ;W[qc];B[hn];W[qm];B[qn];W[om];B[rm];W[ql];B[rl];W[oo];B[on] ;W[nn];B[pn];W[mm];B[op];W[kl];B[kj];W[il];B[gl];W[lo];B[lq] ;W[gj];B[hk];W[jj];B[hj];W[lj];B[ki];W[nj];B[lk];W[kk];B[mj] ;W[ll];B[mk];W[io];B[jo];W[hm];B[gm];W[in];B[jm];W[im];B[gi] ;W[nk];B[mi];W[ii];B[dl];W[dh];B[ek];W[ir];B[hq];W[kq];B[ip] ;W[kp];B[jl];W[ik];B[jr];W[kr];B[hr];W[jk];B[er];W[gp];B[is] ;W[cn];B[cm];W[dn];B[ej];W[ck];B[bm];W[dr];B[fr];W[qj];B[ln] ;W[kn];B[pi];W[pk];B[fb];W[eb];B[fc];W[gc];B[gb];W[nq];B[mo] ;W[mp];B[no];W[or];B[pr];W[ps];B[lr];W[ks];B[mr];W[mn];B[dq] ;W[cr];B[cq];W[bq];B[eq];W[lp];B[dp];W[bo];B[do];W[bn];B[fo] ;W[qr];B[rk];W[qk];B[ec];W[dd];B[br];W[bs];B[ar];W[aq];B[bp] ;W[as];B[co];W[ds];B[aj];W[ao];B[bi];W[bg];B[qq];W[rr];B[rq] ;W[gn];B[db];W[cb];B[ea];W[fn];B[ff];W[fe];B[bk];W[ci];B[bh] ;W[cg];B[en];W[em];B[eo];W[fm];B[go];W[ho];B[ei];W[rd];B[re] ;W[rc];B[sr];W[qf];B[pf];W[qe];B[rf];W[qg];B[qh];W[rg];B[rh] ;W[se];B[ag];W[af];B[ol];W[nl];B[pm];W[ok];B[nm];W[ml];B[oq] ;W[nr];B[ch];W[di];B[bf];W[ah];B[dg];W[cf];B[eg];W[bj];B[cj] ;W[gq];B[gr];W[bj];B[lb];W[ai];B[mb];W[hh])goban-1.1.orig/games/M-95-5.mgt0000644000175000017500000000331406252627044013560 0ustar alal(;GM[1]BS[0]WS[0]BL[1800.0]WL[1800.0]SZ[19]DT[1995-10-27]FF[3]KM[5.5]ID[95/5]PB[Takemiya Masaki]PW[Kobayashi Koichi]RE[B+R]BR[9 Dan]WR[9 Dan]KI[11];B[pd];W[pp];B[dd];W[dp];B[jd];W[qf];B[pj];W[qc];B[qd] ;W[pc];B[od];W[rd];B[re];W[rc];B[qe];W[nc];B[pm];W[mp];B[dj] ;W[dm];B[nd];W[mc];B[md];W[dh];B[fj];W[df];B[gh];W[ff];B[fd] ;W[hf];B[ig];W[gd];B[gc];W[hd];B[fe];W[fh];B[fi];W[gg];B[hg] ;W[ge];B[eh];W[fg];B[jf];W[fc];B[ec];W[fb];B[gb];W[eb];B[db] ;W[ee];B[ed];W[cd];B[fa];W[de];B[ea];W[mm];B[mk];W[kl];B[qp] ;W[qq];B[qo];W[pq];B[hq];W[jq];B[jr];W[kr];B[er];W[dq];B[ir] ;W[ql];B[pl];W[qj];B[qi];W[qk];B[ri];W[pk];B[ok];W[oj];B[pi] ;W[pn];B[qm];W[qn];B[ol];W[rn];B[dr];W[cr];B[rm];W[kp];B[fp] ;W[fo];B[gp];W[kj]TB[fc][fb][eb][da][ca][dc][aa][ba][bb][ab][ga][sl][sk][sj][si][sh][sg][rg][rf][rh][ri][rj][rk][rl][ql][qk][pk][qj][qi][qh][qg][qf][pf][pe][pg][ph][pi][pj][oj][oi][oh][og][of][oe][fs][gs][hs][is][hr][gr][fr][gq][ne][mf][me][nf][le]TC[-1]TW[ma][na][oa][pa][qa][ra][sa][sb][sc][rb][qb][pb][nb][gf][ef][ce][cf][bf][be][an][ao][aq][ar][as][br][bq][bp][ap][bo][bn][co][cn][ms][os][ps][qs][ss][rs][sr][sq][sp][rp][rq][rr][qr][qq][qp][qo][pp][oq][or][pr][nr][mr][lr][lq][mq][nq];B[ch];W[dg];B[on];W[po];B[cl];W[cm];B[bg] ;W[ci];B[bi];W[cj];B[di];W[cg];B[bh];W[ck];B[dl];W[bl];B[bm] ;W[bk];B[bn];W[dk];B[el];W[ek];B[fk];W[fl];B[em];W[dn];B[fm] ;W[bo];B[co];W[bp];B[gl];W[do];B[be];W[bd];B[bf];W[ce];B[bj] ;W[an];B[ae];W[ag];B[aj];W[ah];B[ad];W[bb];B[ab];W[cb];B[eg] ;W[ic];B[jb];W[jc];B[kc];W[kd];B[ib];W[je];B[ke];W[id];B[ld] ;W[kf];B[jd];W[hh];B[gi];W[kd];B[ei];W[ef];B[jd];W[jg];B[ie] ;W[if];B[ih];W[je];B[am];W[cn];B[jf];W[hi];B[je];W[jh];B[ii] ;W[hj];B[he];W[gf];B[ij];W[hk];B[ik];W[hl];B[il];W[hm];B[cc] ;W[bc];B[ac])goban-1.1.orig/games/Hon-91-4.mgt0000644000175000017500000000352206045540452014101 0ustar alal (;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1991-07-]RE[W+5.5]KM[5.5]GM[1]SZ[19]FF[3]BS[0]WS[0];B[pd];W[dp];B[pp];W[dd];B[fq];W[dn];B[jq];W[qj];B[ql] ;W[qf];B[nc];W[qq];B[pq];W[qp];B[qn];W[qo];B[po];W[rn];B[rm] ;W[pn];B[qm];W[pr];B[or];W[qr];B[nq];W[qd];B[qc];W[rc];B[qe] ;W[rd];B[pe];W[re];B[qh];W[pf];B[qb];W[ph];B[qi];W[pi];B[rj] ;W[pj];B[rh];W[of];B[kc];W[cj];B[fc];W[ld];B[lc];W[nd];B[oc] ;W[fd];B[ed];W[ee];B[ec];W[de];B[dc];W[cc];B[cb];W[gc];B[bc] ;W[cd];B[eb];W[fe];B[gn];W[fn];B[fm];W[gm];B[en];W[fo];B[em] ;W[eo];B[gl];W[hm];B[dm];W[cn];B[dj];W[di];B[dk];W[ei];B[hl] ;W[im];B[gp];W[il];B[hj];W[ik];B[cm];W[bn];B[fj];W[ij];B[ci] ;W[ch];B[hi];W[fi];B[ii];W[ji];B[jh];W[ih];B[bi];W[bj];B[bk] ;W[bh];B[ck];W[ai];B[gj];W[kh];B[jg];W[kg];B[ro];W[rp];B[sn] ;W[sr];B[dr];W[mn];B[ko];W[kn];B[jn];W[km];B[nm];W[lo];B[kp] ;W[jf];B[ml];W[go];B[hd];W[gd];B[ig];W[hp];B[hq];W[ip];B[iq] ;W[ga];B[gb];W[hb];B[fb];W[he];B[hg];W[gh];B[hh];W[er];B[eq] ;W[cr];B[dq];W[cq];B[cs];W[bs];B[ds];W[bd];B[bb];W[mp];B[mq] ;W[on];B[om];W[mj];B[ki];W[li];B[rg];W[rf];B[jj];W[md];B[io] ;W[ho];B[jd];W[id];B[lj];W[mi];B[ke];W[le];B[lk];W[kl];B[jb] ;W[mc];B[mb];W[lp];B[lq];W[lb];B[ob];W[ma];B[nb];W[je];B[kd] ;W[kf];B[gg];W[fg];B[br];W[bq];B[as];W[ja];B[kb];W[ib];B[la] ;W[jp];B[jo];W[sg];B[rk];W[ok];B[nn];W[oo];B[np];W[no];B[rb] ;W[sh];B[si];W[sf];B[bm];W[am];B[al];W[an];B[aq];W[ap];B[ep] ;W[cp];B[sc];W[sd];B[sb];W[qg];B[ri];W[ll];B[mk];W[mm];B[nk] ;W[nj];B[ol];W[kk];B[kj];W[gf];B[pk];W[oj];B[gi];W[fh];B[ad] ;W[ae];B[ac];W[os];B[ns];W[ps];B[ic];W[hc];B[oe];W[ne];B[in] ;W[hn];B[op];W[sp];B[so];W[ak];B[aj];W[hk];B[gk];W[ak];B[pm] ;W[mo];B[aj];W[ej];B[ek];W[ak];B[rr];W[rs];B[aj];W[ar];B[bs] ;W[ak];B[be];W[af];B[aj];W[fp];B[gq];W[ak];B[bf];W[ag];B[aj] ;W[nr];B[mr];W[ak];B[bg];W[ah];B[aj];W[ms];B[ls];W[ak];B[bl] ;W[od];B[pc];W[if];B[fa];W[qk];B[ha];W[jm];B[kq];W[jk];B[pl] ;W[aq];B[jc];W[aj])goban-1.1.orig/games/M-84-5.mgt0000644000175000017500000000276006252627042013560 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Otake Hideo]DT[1985-10-24,25]PC[Ito City]RE[W+R]ID[84/5]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[dq];B[oc];W[qo];B[pl];W[pn];B[np] ;W[rq];B[jq];W[co];B[ce];W[ch];B[fe];W[gc];B[gq];W[qj];B[ok] ;W[qg];B[nn];W[eh];B[fn];W[cd];B[de];W[ed];B[ee];W[hd];B[he] ;W[ie];B[hf];W[dl];B[dd];W[cc];B[id];W[je];B[ic];W[hc];B[kc] ;W[jg];B[hh];W[ji];B[pi];W[qi];B[og];W[pj];B[oj];W[ql];B[hj] ;W[jk];B[cj];W[ej];B[cm];W[cl];B[bl];W[bk];B[bm];W[bj];B[dm] ;W[fl];B[hl];W[jm];B[fi];W[ei];B[ib];W[ii];B[hi];W[ig];B[em] ;W[er];B[el];W[ld];B[lc];W[md];B[mc];W[jo];B[fb];W[gb];B[dg] ;W[bg];B[be];W[eb];B[dh];W[dj];B[ij];W[hg];B[gg];W[gf];B[ff] ;W[jj];B[fr];W[bo];B[fd];W[fc];B[mf];W[mh];B[ph];W[rf];B[kf] ;W[mo];B[lm];W[mk];B[lo];W[od];B[pd];W[nc];B[kd];W[nd];B[ke] ;W[ob];B[of];W[pe];B[li];W[mi];B[lj];W[mj];B[lk];W[ll];B[ml] ;W[kl];B[lh];W[gh];B[fg];W[fh];B[il];W[hn];B[gn];W[eg];B[cg] ;W[bh];B[bf];W[ho];B[gp];W[fk];B[gm];W[kq];B[jr];W[lp];B[mn] ;W[ko];B[mp];W[ln];B[km];W[mq];B[nq];W[nr];B[or];W[nl];B[mm] ;W[no];B[oo];W[lo];B[on];W[op];B[oq];W[pp];B[pm];W[po];B[jl] ;W[mr];B[qm];W[ro];B[qe];W[pc];B[qf];W[rg];B[oe];W[rc];B[rd] ;W[rl];B[rm];W[pg];B[pf];W[oi];B[oh];W[pk];B[sl];W[sk];B[sm] ;W[rj];B[mb];W[kr];B[qc];W[qb];B[rb];W[ra];B[sc];W[nb];B[ep] ;W[dp];B[eq];W[dr];B[fj];W[ek];B[ab];W[bb];B[bd];W[bc];B[ac] ;W[di];B[ef];W[ol];B[ni];W[im];B[do];W[hr];B[ip];W[jp];B[iq] ;W[hs];B[io];W[hm];B[kk];W[jn];B[bq];W[br];B[cn];W[eo];B[dn] ;W[fs];B[gr];W[gs];B[an];W[fp];B[fq];W[fo])goban-1.1.orig/games/Hon-62-3.sgf0000644000175000017500000000321406243707756014100 0ustar alal( ; DT[1962-] EV[17th Honinbo] RO[3] KM[4.5] BR[9 dan] WR[Honinbo] PB[Handa Dogen] PW[Sakata Eio] RE[B+5.5] ;B[qd];W[dc];B[pq];W[cq];B[oc];W[qo];B[pl];W[pn];B[oo] ;W[pp];B[op];W[qq];B[oq];W[qr];B[on];W[ip];B[de];W[ce];B[cf] ;W[cd];B[df];W[fc];B[cj];W[cl];B[gp];W[do];B[dq];W[dp];B[eq] ;W[cr];B[gn];W[in];B[kq];W[fo];B[go];W[kp];B[jo];W[io];B[iq] ;W[hq];B[jp];W[hp];B[gl];W[jn];B[gq];W[ik];B[gj];W[el];B[jq] ;W[ir];B[gr];W[hr];B[hm];W[kk];B[bl];W[bm];B[ck];W[dl];B[kd] ;W[kn];B[pm];W[ej];B[hi];W[ji];B[qn];W[ro];B[ge];W[fi];B[ih] ;W[ch];B[kg];W[po];B[nl];W[mi];B[dh];W[hd];B[bh];W[rd];B[qc] ;W[qe];B[qg];W[qf];B[pg];W[rc];B[rb];W[of];B[nh];W[pd];B[pc] ;W[sb];B[qa];W[rg];B[rh];W[rf];B[mk];W[jh];B[jg];W[lk];B[mj] ;W[hk];B[gk];W[ii];B[hg];W[lq];B[lr];W[kr];B[mq];W[lp];B[jr] ;W[mm];B[ib];W[nd];B[od];W[oe];B[nc];W[md];B[mc];W[hb];B[mf] ;W[ng];B[mg];W[oh];B[qi];W[og];B[ni];W[ph];B[qh];W[se];B[ic] ;W[gh];B[hh];W[hj];B[gi];W[hc];B[ha];W[ga];B[ia];W[fb];B[ks] ;W[ml];B[rn];W[id];B[jd];W[me];B[bk];W[oj];B[sn];W[rq];B[am] ;W[bn];B[pj];W[fm];B[hl];W[li];B[nj];W[nm];B[an];W[ao];B[al] ;W[bq];B[be];W[bd];B[af];W[di];B[ci];W[eh];B[dg];W[ad];B[sg] ;W[pi];B[pk];W[sc];B[dj];W[ek];B[ei];W[fj];B[gg];W[fh];B[ed] ;W[ec];B[le];W[if];B[ld];W[ne];B[mp];W[mo];B[pr];W[sf];B[sh] ;W[ra];B[qb];W[rj];B[qj];W[nr];B[mr];W[ps];B[os];W[qs];B[nq] ;W[dr];B[er];W[mh];B[oi];W[ol];B[nk];W[lg];B[lf];W[lj];B[ok] ;W[kh];B[fn];W[en];B[fp];W[eo];B[so];W[sp];B[om];W[ko];B[gd] ;W[gc];B[im];W[jm];B[il];W[jl];B[nn];W[mn];B[je];W[hf];B[gf] ;W[jf];B[kf];W[fd];B[pe];W[pf];B[ds];W[cs];B[es];W[gs];B[fs] ;W[fl];B[fe];W[dd];B[ee];W[ae];B[bf];W[hs];B[js];W[lh];B[di] ;W[sa];B[pd];W[fg];B[no]C[253 moves complete.] ) goban-1.1.orig/games/M-66-4.sgf0000644000175000017500000000343706261340130013537 0ustar alal( ; GM[1] EV[5th Meijin Title Match] RO[4] PB[Rin Kaiho] BR[Meijin] PW[Sakata Eio] WR[Honinbo] DT[Sept 2/3, 1966] PC[Takanoyama] RE[B+4] KM[5] SZ[19] ;B[qd];W[cd];B[ec];W[qq];B[eq];W[od];B[mc];W[qc];B[pc] ;W[pd];B[oc];W[nc];B[nd];W[nb];B[qb];W[rc];B[ob];W[qe] ;B[mb];W[ne];B[md];W[de];B[fe];W[cp];B[jq];W[ep];B[dp] ;W[do];B[dq];W[cq];B[gq];W[dh];B[np];W[qo];B[cm];W[cn] ;B[dm];W[fo];B[cj];W[dc];B[eb];W[hp];B[hq];W[bi];B[gl] ;W[hd];B[he];W[ge];B[gd];W[gf];B[ie];W[fd];B[gc];W[ed] ;B[fc];W[da];B[eh];W[di];B[ee];W[dd];B[fg];W[hf];B[dg] ;W[cg];B[if];W[hh];B[gh];W[ig];B[jg];W[hi];B[fj];W[jh] ;B[kg];W[ic];B[ib];W[id];B[hb];W[ej];B[fk];W[ff];B[ng] ;W[ef];B[oe];W[pe];B[of];W[pg];B[kh];W[dk];B[gn];W[ip] ;B[ck];W[ek];B[el];W[en];B[bn];W[dr];B[er];W[fm];B[bo] ;W[co];B[em];W[gm];B[hm];W[fn];B[fl];W[iq];B[cr];W[bl] ;B[bm];W[jr];B[gp];W[go];B[ho];W[hr];B[gr];W[hn];B[io] ;W[in];B[jo];W[jp];B[ko];W[lq];B[lp];W[kp];B[lo];W[jm] ;B[mq];W[lr];B[qm];W[qi];B[pp];W[qp];B[br];W[qk];B[rb] ;W[rd];B[ll];W[kl];B[pr];W[pq];B[oq];W[qr];B[hs];W[ir] ;B[lm];W[hl];B[eg];W[df];B[bj];W[ci];B[ai];W[ah];B[aj] ;W[bh];B[dl];W[nh];B[om];W[mg];B[mf];W[mh];B[lf];W[oo] ;B[pf];W[qf];B[rk];W[rj];B[pk];W[ql];B[pl];W[pn];B[rl] ;W[qj];B[pm];W[rn];B[rm];W[no];B[op];W[kq];B[kk];W[oj] ;B[km];W[hk];B[jl];W[mo];B[mp];W[nl];B[on];W[mn];B[nm] ;W[po];B[mm];W[bp];B[ei];W[dj];B[il];W[im];B[gj];W[fp] ;B[gg];W[fq];B[fr];W[dn];B[db];W[cb];B[ea];W[ca];B[pj] ;W[pi];B[os];W[qs];B[mr];W[is];B[nj];W[gs];B[ar];W[ok] ;B[nk];W[og];B[nf];W[oi];B[sb];W[ol];B[ji];W[hg];B[sn] ;W[so];B[sm];W[jj];B[kj];W[ii];B[ki];W[jk];B[sc];W[sd] ;B[sj];W[si];B[sk];W[gi];B[fi];W[ni];B[mj];W[ms];B[ns] ;W[ls];B[ps];W[ao];B[an];W[ap];B[sp];W[ro];B[sr];W[sq] ;B[rq];W[rr];B[mi];W[ml];B[mk];W[lh];B[li];W[ik];B[kl] ;W[hj];B[ln];W[rp];B[jn];W[ih] ) goban-1.1.orig/games/M-66-2.mgt0000644000175000017500000000251506260576404013557 0ustar alal(;SZ[19]GC[Moves after 200 not in source]EV[5th Meijin match game 2]DT[1966 August 13,14]PC[Sapporo,Hokkaido]PB[Rin]PW[Sakata]KM[5]RE[B+5]SO[Go review 6/11];B[qd];W[dd];B[pq];W[oc];B[cp];W[eq];B[qo];W[dm];B[do];W[gp];B[dq];W[ep];B[dr];W[kq];B[mc];W[pe];B[pd];W[od];B[oe];W[ne];B[of];W[md];B[pf];W[lc];B[cf];W[fd];B[di];W[nq];B[pj];W[oo];B[cc];W[cd];B[bd];W[dc];B[bb];W[cb];B[bc];W[nf];B[kc];W[lb];B[hd];W[hf];B[jf];W[eg];B[dg];W[ie];B[kd];W[je];B[ke];W[kf];B[ld];W[mb];B[lf];W[kg];B[lg];W[jg];B[li];W[oh];B[qh];W[oj];B[kh];W[mh];B[lh];W[jc];B[kb];W[jb];B[ja];W[hb];B[jh];W[ig];B[ih];W[ei];B[dj];W[eh];B[ef];W[ej];B[dk];W[ek];B[gg];W[ff];B[hg];W[if];B[dl];W[hi];B[el];W[fl];B[kk];W[km];B[fm];W[gm];B[hj];W[gj];B[hk];W[hl];B[gk];W[fk];B[fn];W[ii];B[mk];W[mj];B[lj];W[jj];B[lm];W[nl];B[nj];W[nk];B[mi];W[ni];B[kl];W[qg];B[pg];W[ph];B[rg];W[jm];B[nm];W[ok];B[ml];W[qp];B[pp];W[om];B[kn];W[jn];B[nn];W[po];B[ko];W[ro];B[qn];W[qq];B[rn];W[rp];B[qk];W[qm];B[rm];W[ql];B[rl];W[qi];B[rh];W[rj];B[pk];W[pl];B[rk];W[pi];B[ri];W[no];B[hh];W[gi];B[mo];W[mp];B[jo];W[qc];B[jq];W[jr];B[kr];W[lr];B[lq];W[ks];B[kp];W[kr];B[lp];W[mq];B[rd];W[rc];B[ee];W[qj];B[sj];W[sk];B[sl];W[fe];B[ib];W[ic];B[ia];W[gb];B[mg];W[ng];B[nh];W[mj];B[pc];W[pb];B[qe];W[mh];B[gf];W[ge];B[nh];W[og];B[nj];W[mh];B[il];W[ik];B[hm];W[gl];B[in];W[er];B[es];W[eo];B[en];W[dp];B[co];W[cq];B[cr];W[ip])goban-1.1.orig/games/Hon-59-5.mgt0000644000175000017500000000342606045540252014107 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[W+15.5]DT[1959-07-]BS[0]WS[0];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[qo];W[qn];B[ro] ;W[oo];B[np];W[rn];B[pp];W[qg];B[pc];W[od];B[ob];W[nb];B[pb] ;W[mc];B[pe];W[og];B[pm];W[pn];B[nm];W[mn];B[mp];W[nn];B[pj] ;W[nf];B[mj];W[fq];B[dq];W[jp];B[fc];W[hc];B[cc];W[dc];B[cd] ;W[de];B[db];W[eb];B[cb];W[ec];B[cf];W[lq];B[mr];W[fo];B[dn] ;W[dg];B[cg];W[dh];B[mg];W[oi];B[nk];W[mi];B[li];W[mh];B[lm] ;W[lh];B[ki];W[mm];B[ml];W[om];B[pl];W[nl];B[kl];W[kh];B[ji] ;W[jh];B[ii];W[gh];B[hq];W[hp];B[ip];W[io];B[iq];W[jo];B[jq] ;W[ol];B[gp];W[fp];B[ho];W[hn];B[kq];W[go];B[fh];W[gg];B[gi] ;W[fi];B[ei];W[fj];B[eh];W[df];B[fm];W[hp];B[gq];W[lp];B[lo] ;W[ln];B[kn];W[ko];B[mo];W[gm];B[fn];W[jm];B[km];W[gl];B[fk] ;W[fl];B[ej];W[el];B[gj];W[dm];B[en];W[cn];B[ff];W[ck];B[gf] ;W[ih];B[hf];W[lj];B[jk];W[nj];B[mk];W[ok];B[rf];W[rg];B[id] ;W[ic];B[sn];W[sm];B[so];W[lr];B[kp];W[kr];B[jr];W[mq];B[nq] ;W[nr];B[ks];W[ms];B[js];W[qp];B[rm];W[qq];B[qr];W[pr];B[or] ;W[op];B[oq];W[os];B[ps];W[no];B[ns];W[rp];B[ls];W[sp];B[co] ;W[bn];B[bo];W[bh];B[cj];W[bj];B[bk];W[bl];B[dk];W[ak];B[cl] ;W[cm];B[hd];W[ch];B[jc];W[ce];B[be];W[bf];B[bd];W[gc];B[kd] ;W[er];B[dr];W[qf];B[re];W[le];B[ke];W[rc];B[qe];W[rb];B[ld] ;W[sf];B[ra];W[oe];B[pf];W[pg];B[qb];W[jl];B[kk];W[lf];B[jn] ;W[in];B[hl];W[im];B[bk];W[ci];B[md];W[of];B[sd];W[gr];B[kf] ;W[kg];B[ib];W[hb];B[fd];W[fb];B[jb];W[lb];B[ig];W[hh];B[ha] ;W[ga];B[ia];W[ck];B[gd];W[gb];B[bk];W[jg];B[rr];W[jf];B[hr] ;W[ck];B[hk];W[gn];B[br];W[dj];B[ek];W[kb];B[fg];W[da];B[ab] ;W[hs];B[dl];W[em];B[ep];W[eo];B[do];W[ao];B[ap];W[an];B[eq] ;W[oa];B[pa];W[na];B[qc];W[sr];B[es];W[fr];B[ka];W[la];B[di] ;W[cj];B[ca];W[ea];B[me];W[mf];B[nd];W[nc];B[af];W[ag];B[ae] ;W[il];B[ik];W[hi];B[hj];W[sb];B[ee];W[ie];B[he];W[ho];B[rs] ;W[is];B[mr];W[ja])goban-1.1.orig/games/Hon-89-1.mgt0000644000175000017500000000272406045540446014113 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Cho Chikun]DT[1989-05-12,13]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[oc];W[pp];B[dq];W[dd];B[qd];W[co];B[ep];W[ck];B[qn] ;W[np];B[lq];W[pj];B[pl];W[qo];B[pn];W[mo];B[jp];W[nk];B[mm] ;W[lp];B[mq];W[nq];B[kp];W[oe];B[pf];W[ng];B[ph];W[ni];B[oj] ;W[oi];B[qj];W[pi];B[qi];W[en];B[cf];W[gp];B[fo];W[ho];B[fn] ;W[in];B[kn];W[nm];B[cm];W[dm];B[cl];W[dk];B[dn];W[em];B[do] ;W[cn];B[cp];W[eo];B[dp];W[fp];B[bk];W[bj];B[bl];W[ek];B[ef] ;W[fe];B[ci];W[ce];B[cj];W[bf];B[cg];W[bg];B[bh];W[dh];B[eh] ;W[ei];B[fh];W[di];B[ch];W[ff];B[eg];W[mc];B[fc];W[eb];B[ic] ;W[iq];B[lo];W[mn];B[mp];W[kc];B[fb];W[ie];B[db];W[ec];B[ea] ;W[cc];B[fd];W[ee];B[cb];W[hb];B[bd];W[bc];B[bb];W[ad];B[ae] ;W[ac];B[hc];W[ib];B[ge];W[he];B[ed];W[gd];B[dc];W[jq];B[ip] ;W[er];B[dr];W[jr];B[jn];W[il];B[nr];W[or];B[fr];W[gr];B[fq] ;W[gq];B[oq];W[op];B[os];W[pr];B[lr];W[ms];B[ns];W[ps];B[mr] ;W[ro];B[rn];W[qk];B[pk];W[qg];B[pg];W[qh];B[rk];W[pd];B[qc] ;W[pc];B[pe];W[pb];B[qb];W[od];B[gc];W[hg];B[gi];W[qe];B[qf] ;W[qa];B[ra];W[pa];B[rc];W[fs];B[eq];W[jc];B[gk];W[hj];B[gj] ;W[gm];B[gl];W[fm];B[jj];W[ki];B[ih];W[jg];B[so];W[sp];B[sn] ;W[rp];B[ok];W[nj];B[kj];W[ji];B[ii];W[lj];B[ig];W[jf];B[hl] ;W[ik];B[ij];W[hm];B[hd];W[gf];B[ab];W[cd];B[jm];W[kk];B[im] ;W[kl];B[io];W[hk];B[hn];W[gn];B[hi];W[lm];B[es];W[hp];B[gs] ;W[hs];B[jh];W[kh];B[ag];W[on];B[if];W[hf];B[jl];W[jk];B[li] ;W[lk];B[kg];W[lh];B[lg];W[mh];B[je];W[kf];B[ke];W[lf];B[id] ;W[jd];B[le];W[mf];B[af];W[be];B[ah];W[pm];B[qm];W[om];B[gg] )goban-1.1.orig/games/M-88-1.mgt0000644000175000017500000000217306252627042013556 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Kato Masao]DT[1988-09-07,08]RE[B+R]ID[88/1]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[hq];B[ho];W[fq];B[pn];W[lp];B[iq];W[hp];B[jn];W[pq];B[oq] ;W[op];B[or];W[np];B[qp];W[on];B[pm];W[pr];B[mq];W[mr];B[lr] ;W[lq];B[ms];W[kr];B[nr];W[jq];B[cf];W[di];B[cc];W[cd];B[dc] ;W[ed];B[bd];W[be];B[bc];W[ce];B[fc];W[mp];B[jr];W[kq];B[ip] ;W[ir];B[qr];W[go];B[gp];W[gq];B[gn];W[fo];B[ck];W[ci];B[bo] ;W[co];B[bp];W[bn];B[cn];W[bm];B[dq];W[dn];B[cp];W[do];B[er] ;W[qh];B[nd];W[md];B[oc];W[ne];B[od];W[il];B[hm];W[gk];B[jl] ;W[jk];B[kl];W[kk];B[im];W[ik];B[ll];W[cr];B[br];W[fm];B[fd] ;W[fe];B[ge];W[gd];B[ec];W[ff];B[hd];W[gf];B[he];W[nb];B[me] ;W[ld];B[ph];W[qi];B[qj];W[rf];B[rd];W[pi];B[oi];W[pg];B[oh] ;W[og];B[ng];W[of];B[nf];W[qg];B[oe];W[rj];B[rk];W[sj];B[lb] ;W[jb];B[ob];W[oj];B[ql];W[mi];B[mh];W[nj];B[nh];W[pk];B[qk] ;W[qe];B[ic];W[kf];B[hf];W[mb];B[na];W[ma];B[lc];W[mc];B[jc] ;W[kc];B[kb];W[kd];B[gh];W[hg];B[gg];W[eg];B[jg];W[ib];B[hb] ;W[id];B[hc];W[ka];B[ia];W[la];B[eh];W[hh];B[hi];W[ih];B[ji] ;W[ii];B[ij];W[hj];B[jh];W[jj];B[ig];W[gi];B[lb])goban-1.1.orig/games/M-62-l04.sgf0000644000175000017500000000405406252641274014000 0ustar alal( ; EV[1st Meijin 1962] RO[League] BL[1800.0] WL[1800.0] PB[Shimamura Toshihiro] BR[9 dan] PW[Go Seigen] WR[9 dan] DT[1962-] PC[Japan] RE[B+4] KM[5] ;B[pd];W[dd];B[pq];W[cp];B[eq];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qq];W[pn];B[qm];W[pr];B[jq];W[qn];B[rn];W[qr];B[rl] ;W[rq];B[rp];W[sp];B[ro];W[dn];B[cq];W[bq];B[dp];W[co];B[fc] ;W[cg];B[pm];W[no];B[cc];W[dc];B[db];W[eb];B[cb];W[ec];B[be] ;W[fd];B[kd];W[hq];B[jo];W[ho];B[jm];W[nm];B[nk];W[qf];B[qe] ;W[pf];B[nd];W[pi];B[hd];W[hm];B[df];W[cf];B[ce];W[de];B[ef] ;W[dh];B[gf];W[hc];B[ic];W[gc];B[ib];W[he];B[hf];W[ff];B[fg] ;W[fe];B[eg];W[id];B[jd];W[ie];B[if];W[ge];B[jf];W[bf];B[cd] ;W[fi];B[rj];W[ri];B[rh];W[od];B[oe];W[pe];B[qd];W[oc];B[ne] ;W[qh];B[rg];W[rf];B[pc];W[qj];B[si];W[rk];B[qi];W[pb];B[ob] ;W[ri];B[nq];W[or];B[qi];W[nc];B[qb];W[ri];B[dj];W[sj];B[ek] ;W[bj];B[gk];W[hk];B[hj];W[ik];B[gl];W[im];B[fn];W[rr];B[fp] ;W[ip];B[jp];W[gn];B[dl];W[gh];B[gi];W[fh];B[gg];W[fm];B[en] ;W[em];B[dm];W[gm];B[cr];W[bl];B[bm];W[bn];B[eh];W[fj];B[gj] ;W[kl];B[jl];W[jk];B[kk];W[km];B[kn];W[lk];B[kj];W[lj];B[ki] ;W[in];B[jn];W[fr];B[gp];W[iq];B[er];W[jr];B[kr];W[is];B[mm] ;W[ml];B[ln];W[mn];B[lm];W[ll];B[nl];W[li];B[mo];W[nn];B[np] ;W[op];B[mr];W[lh];B[ii];W[hr];B[pk];W[qk];B[oj];W[ni];B[ql] ;W[om];B[ol];W[so];B[sm];W[sq];B[sn];W[br];B[do];W[sl];B[sk] ;W[lo];B[mp];W[sl];B[oo];W[on];B[sk];W[lp];B[lq];W[sl];B[ks] ;W[cn];B[sk];W[nr];B[mq];W[sl];B[io];W[hp];B[sk];W[nb];B[pa] ;W[sl];B[js];W[go];B[fq];W[fs];B[sk];W[di];B[rj];W[le];B[ld] ;W[ei];B[ng];W[sj];B[oi];W[oh];B[rj];W[kh];B[lf];W[sj];B[sl] ;W[kf];B[ke];W[hh];B[ih];W[ij];B[ji];W[nh];B[hi];W[fk];B[rj] ;W[lg];B[kg];W[sj];B[og];W[jg];B[ig];W[kf];B[pg];W[ph];B[qg] ;W[mf];B[je];W[sh];B[sg];W[me];B[md];W[ae];B[ad];W[af];B[ab] ;W[hb];B[ia];W[bs];B[es];W[gq];B[si];W[mg];B[ir];W[hs];B[fl] ;W[el];B[rj];W[fo];B[eo];W[sj];B[ha];W[ga];B[rj];W[jc];B[jb] ;W[sj];B[fa];W[fb];B[rj];W[ea];B[qi];W[kc];B[kb];W[ri];B[sj] ;W[nf];B[of];W[cs];B[ds];W[ms];B[ls];W[ns];B[jh];W[kg];B[mj] ;W[mi];B[da];W[nj];B[pj];W[qi];B[mk];W[dg];B[ee];W[jr] C[308 moves complete.] ;W[ir] C[White wins and fills the ko.] ) goban-1.1.orig/games/Hon-86-1.mgt0000644000175000017500000000364406045540442014106 0ustar alal (;GM[1]SZ[19]DT[1986-05-14,15]PC[Misawa]RE[W+4.5]PB[Yamashiro Hiroshi]PW[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[cd];W[pp];B[qn];W[od];B[ld];W[og];B[qg] ;W[oi];B[nq];W[oo];B[qq];W[fe];B[ed];W[fd];B[fc];W[gc];B[ec] ;W[he];B[kg];W[gh];B[mg];W[ne];B[lj];W[lf];B[kf];W[lg];B[lh] ;W[mf];B[kh];W[df];B[eh];W[ee];B[ej];W[gj];B[el];W[gl];B[en] ;W[fp];B[go];W[fo];B[fn];W[gn];B[gm];W[hn];B[hm];W[in];B[hl] ;W[lq];B[pq];W[lo];B[cq];W[cp];B[dr];W[er];B[bp];W[bo];B[br] ;W[ap];B[bq];W[dn];B[fr];W[eq];B[es];W[gr];B[ds];W[hk];B[jm] ;W[jk];B[im];W[ll];B[jn];W[hp];B[hi];W[ih];B[ii];W[gi];B[hh] ;W[fl];B[fm];W[dm];B[em];W[hg];B[ig];W[di];B[ei];W[gg];B[ck] ;W[dh];B[bm];W[gb];B[jd];W[cm];B[cl];W[bj];B[eo];W[fq];B[do] ;W[co];B[ip];W[gp];B[kp];W[ko];B[jo];W[kq];B[hq];W[fs];B[hr] ;W[dq];B[cs];W[jr];B[iq];W[bk];B[dl];W[cn];B[bl];W[gq];B[cg] ;W[dg];B[lm];W[mm];B[kl];W[qp];B[op];W[no];B[mq];W[mp];B[ml] ;W[rq];B[rr];W[rp];B[sr];W[nl];B[lk];W[qi];B[ol];W[nk];B[pm] ;W[om];B[po];W[ql];B[rn];W[qc];B[rc];W[rb];B[qb];W[pc];B[sb] ;W[db];B[cc];W[be];B[ce];W[cf];B[bd];W[ea];B[ca];W[bf];B[fa] ;W[fb];B[eb];W[ga];B[cb];W[rd];B[ra];W[qe];B[pl];W[rk];B[is] ;W[gs];B[qj];W[rj];B[oj];W[nj];B[pi];W[ph];B[pj];W[mi];B[mh] ;W[oh];B[re];W[sd];B[qf];W[pd];B[ri];W[qh];B[rh];W[pf];B[rm] ;W[if];B[jf];W[li];B[jj];W[ij];B[ki];W[jg];B[cj];W[ci];B[kb] ;W[mb];B[ib];W[si];B[rg];W[rl];B[sl];W[pg];B[qm];W[sg];B[sj] ;W[sk];B[sf];W[sm];B[sh];W[ok];B[pk];W[qo];B[on];W[nm];B[pn] ;W[nn];B[so];W[se];B[sc];W[rf];B[jp];W[lp];B[re];W[np];B[oq] ;W[rf];B[io];W[ho];B[re];W[ad];B[ac];W[rf];B[nc];W[sg];B[ob] ;W[pb];B[pa];W[mr];B[nr];W[lr];B[ae];W[ns];B[os];W[ms];B[pr] ;W[ia];B[hb];W[id];B[ic];W[jc];B[jb];W[je];B[ke];W[kd];B[kc] ;W[jd];B[hd];W[ie];B[le];W[ha];B[ja];W[hc];B[md];W[kk];B[kj] ;W[sl];B[sn];W[eg];B[af];W[ag];B[ad];W[bi];B[nf];W[me];B[ng] ;W[nd];B[oc];W[dd];B[dc];W[de];B[js];W[of];B[fh];W[fg];B[aq] ;W[ao];B[fk];W[gk];B[dj];W[fj];B[ek];W[kn];B[ln];W[ks];B[jq] ;W[ak];B[mn];W[gd])goban-1.1.orig/games/M-75-2.mgt0000644000175000017500000000234006252720762013552 0ustar alal(;SZ[19]DT[25,26 september 1975]PB[Ishida]PW[Otake]KM[5]RE[B+R (187 moves)]SO[Go review winter 1976]EV[Meijin match, round 2];B[qd];W[dc];B[dp];W[qq];B[ce];W[ck];B[ci];W[cn];B[gc];W[ed];B[bc];W[fe];B[dg];W[kc];B[mc];W[hd];B[jc];W[jb];B[ic];W[lc];B[ie];W[nc];B[gd];W[ib];B[hb];W[fg];B[ge];W[fi];B[co];W[dn];B[fp];W[bi];B[bh];W[di];B[ch];W[md];B[qg];W[qi];B[pc];W[op];B[jq];W[lq];B[pl];W[cj];B[jo];W[cq];B[cp];W[lo];B[qp];W[pp];B[qo];W[rq];B[qk];W[oi];B[po];W[oo];B[kr];W[ip];B[hq];W[iq];B[ir];W[jp];B[lr];W[pg];B[qf];W[qm];B[pm];W[rm];B[on];W[qj];B[rk];W[qn];B[pn];W[ro];B[ok];W[mr];B[nj];W[hp];B[gp];W[kq];B[jr];W[fr];B[gr];W[mh];B[dq];W[bb];B[cc];W[fb];B[ia];W[ka];B[gf];W[eg];B[jg];W[cb];B[dd];W[de];B[cd];W[ec];B[ke];W[ob];B[pb];W[kh];B[kg];W[ko];B[mn];W[lj];B[qh];W[gn];B[ii];W[ph];B[ri];W[aj];B[df];W[ac];B[ad];W[ab];B[ee];W[ae];B[bd];W[ij];B[hi];W[bn];B[mb];W[hc];B[gb];W[ne];B[nb];W[oc];B[oa];W[pe];B[qe];W[kd];B[jd];W[le];B[lf];W[mf];B[lh];W[bq];B[bp];W[hj];B[km];W[aq];B[cr];W[br];B[dr];W[ap];B[rp];W[sp];B[im];W[hl];B[nr];W[mq];B[ms];W[or];B[fn];W[fm];B[en];W[em];B[bs];W[bo];B[kk];W[ah];B[ag];W[bg];B[ai];W[hr];B[gq];W[ah];B[ff];W[af];B[mi];W[mg];B[jj];W[lg];B[li];W[kf];B[je];W[ig];B[jh];W[il];B[jl];W[nq];B[hm];W[gl];B[pf];W[of];B[gg])goban-1.1.orig/games/M-62-l18.sgf0000644000175000017500000000252006252641322013773 0ustar alal( ; BL[1800.0] WL[1800.0] DT[1962-] EV[1st Meijin 1962 league] RO[League] KM[5] BR[9 dan] WR[9 dan] PB[Fujisawa Hosai] PW[Hashimoto Shoji] RE[B+R] ;B[qd];W[qq];B[cd];W[cp];B[ed];W[oc];B[lc];W[qc];B[rc] ;W[pd];B[qb];W[qe];B[pc];W[rd];B[qc];W[pe];B[eq];W[hp];B[cn] ;W[ep];B[dq];W[dp];B[cq];W[fq];B[fr];W[gq];B[gr];W[hr];B[iq] ;W[gs];B[er];W[hq];B[bp];W[bo];B[bq];W[co];B[oq];W[po];B[mp] ;W[di];B[qm];W[qn];B[pm];W[no];B[qi];W[nd];B[qr];W[rr];B[pr] ;W[gc];B[cg];W[dc];B[ec];W[eb];B[fb];W[db];B[fc];W[dd];B[de] ;W[ee];B[ce];W[gb];B[fe];W[ef];B[fa];W[cc];B[ff];W[eg];B[bc] ;W[bb];B[bd];W[ca];B[fg];W[fh];B[gd];W[ea];B[ci];W[ic];B[jd] ;W[he];B[hd];W[id];B[ie];W[gg];B[eh];W[dh];B[ei];W[dg];B[dj] ;W[ej];B[fi];W[cj];B[dk];W[ch];B[bi];W[bh];B[bj];W[bf];B[gh] ;W[cf];B[je];W[qk];B[pk];W[rk];B[rm];W[pj];B[ok];W[pi];B[qp] ;W[pp];B[rq];W[pq];B[ro];W[nq];B[nr];W[op];B[or];W[mo];B[lp] ;W[lo];B[kp];W[om];B[ol];W[ko];B[re];W[rf];B[sd];W[qg];B[dn] ;W[jp];B[jq];W[ip];B[np];W[en];B[em];W[fm];B[el];W[fn];B[gk] ;W[le];B[ld];W[jh];B[me];W[kf];B[md];W[hh];B[hi];W[ii];B[hj] ;W[il];B[nm];W[ij];B[on];W[oo];B[bn];W[an];B[am];W[ao];B[bl] ;W[hk];B[gj];W[gl];B[ig];W[ml];B[jg];W[ih];B[kg];W[li];B[mm] ;W[lm];B[hg];W[mb];B[lb];W[ob];B[mk];W[lk];B[mj];W[kh];B[lg] ;W[la];B[ka];W[ma];B[kb];W[kr];B[kq];W[hs];B[lr];W[fs];B[bs] ;W[js];B[ne];W[mc];B[oe];W[od];B[og]C[195 moves complete.]) goban-1.1.orig/games/Hon-41-5.mgt0000644000175000017500000000301606045540234014071 0ustar alal (;SZ[19]PW[Sekiyama Riichi]PB[Kato Shin]KM[0]TM[13h]RE[B+11]GM[1]FF[3]DT[1941-]BS[0]WS[0];B[pd];W[dp];B[pp];W[fd];B[pj];W[nq];B[pn];W[jp];B[cd] ;W[cc];B[dc];W[dd];B[db];W[de];B[bc];W[ce];B[bd];W[dj];B[cq] ;W[dq];B[cp];W[co];B[bo];W[cn];B[bn];W[cm];B[dr];W[er];B[cr] ;W[fq];B[mo];W[qf];B[qe];W[pf];B[nd];W[ph];B[mq];W[mp];B[lp] ;W[np];B[ln];W[lq];B[kq];W[mr];B[kp];W[no];B[nn];W[kr];B[jq] ;W[on];B[oo];W[om];B[pm];W[ol];B[pl];W[mm];B[mn];W[ok];B[pk] ;W[kl];B[km];W[jm];B[ll];W[kk];B[ml];W[kn];B[lm];W[mj];B[jn] ;W[in];B[jo];W[qc];B[pc];W[re];B[rd];W[me];B[lj];W[lk];B[mk] ;W[mi];B[im];W[jl];B[rf];W[md];B[il];W[kj];B[ho];W[hn];B[gn] ;W[hm];B[gm];W[hl];B[gp];W[pq];B[qq];W[ec];B[eb];W[gc];B[gl] ;W[gj];B[mb];W[op];B[po];W[qr];B[pr];W[or];B[kc];W[jd];B[be] ;W[rg];B[se];W[oj];B[oq];W[ps];B[cg];W[cf];B[bf];W[dg];B[do] ;W[fo];B[dn];W[fp];B[dm];W[cl];B[go];W[dl];B[el];W[em];B[en] ;W[gr];B[fj];W[gi];B[ch];W[dh];B[ci];W[di];B[of];W[ri];B[pi] ;W[og];B[oi];W[oe];B[nj];W[jc];B[mh];W[li];B[ni];W[qi];B[ng] ;W[lg];B[jb];W[nc];B[nb];W[kb];B[lb];W[kd];B[ka];W[rk];B[pq] ;W[rr];B[jr];W[cj];B[ks];W[lr];B[hr];W[fs];B[bj];W[bk];B[bi] ;W[rm];B[hk];W[ik];B[gk];W[hj];B[gq];W[nf];B[rq];W[sr];B[bm] ;W[eo];B[fm];W[fi];B[ic];W[id];B[hc];W[hd];B[hb];W[fb];B[hs] ;W[gs];B[rn];W[sq];B[qm];W[rl];B[sp];W[sn];B[so];W[sm];B[bl] ;W[ak];B[aj];W[od];B[oc];W[mc];B[ro];W[ea];B[cb];W[fk];B[ek] ;W[ej];B[al];W[ck];B[lc];W[mg];B[nh];W[fn];B[em];W[ls];B[gb] ;W[pe];B[qd];W[io];B[ip];W[js];B[da];W[fa];B[ga];W[fc];B[ld] ;W[le];B[lh];W[kh];B[qj];W[rj];B[ds];W[es];B[sg];W[sh];B[sf] )goban-1.1.orig/games/Hon-63-2.mgt0000644000175000017500000000262306045540370014076 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-05-02,03]PB[Sakata Eio]PW[Takagawa Kaku]RE[B+R]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[dc];B[qp];W[dq];B[oq];W[co];B[ce];W[dh];B[df] ;W[fd];B[bc];W[jc];B[iq];W[qk];B[qi];W[qn];B[nd];W[nf];B[pf] ;W[gq];B[dk];W[fh];B[ff];W[fk];B[cn];W[bn];B[bo];W[bp];B[do] ;W[ao];B[cp];W[bo];B[cm];W[dp];B[fm];W[hk];B[eo];W[ip];B[jq] ;W[hp];B[lp];W[el];B[em];W[dl];B[cl];W[ck];B[cq];W[bk];B[cr] ;W[dr];B[er];W[eq];B[ds];W[fr];B[bq];W[aq];B[ar];W[bs];B[ap] ;W[np];B[nq];W[aq];B[dj];W[ci];B[ap];W[oe];B[pd];W[aq];B[gk] ;W[gj];B[ap];W[rp];B[qq];W[aq];B[gl];W[fj];B[ap];W[od];B[oc] ;W[aq];B[hl];W[bb];B[cc];W[cb];B[dd];W[ec];B[fe];W[gd];B[kc] ;W[kb];B[lc];W[jd];B[ap];W[qh];B[qj];W[pk];B[ph];W[aq];B[ro] ;W[lb];B[mb];W[cs];B[ap];W[dm];B[dn];W[aq];B[ik];W[hj];B[ap] ;W[bd];B[ad];W[aq];B[bh];W[br];B[bi];W[cj];B[jm];W[lm];B[oi] ;W[qo];B[rn];W[rm];B[rq];W[lo];B[mp];W[kk];B[jk];W[kj];B[ko] ;W[ma];B[mc];W[og];B[pg];W[oa];B[pb];W[lg];B[nn];W[jn];B[kn] ;W[km];B[jo];W[jl];B[im];W[rj];B[ri];W[sk];B[hr];W[si];B[rh] ;W[ab];B[ac];W[hf];B[ke];W[om];B[on];W[nm];B[pn];W[qm];B[nh] ;W[mg];B[je];W[ie];B[if];W[ig];B[jf];W[jg];B[la];W[ka];B[id] ;W[ic];B[po];W[he];B[pm];W[nj];B[mh];W[lh];B[mj];W[nk];B[mi] ;W[pj];B[pi];W[cg];B[bg];W[fo];B[hn];W[sh];B[sg];W[sj];B[rg] ;W[mo];B[ln];W[mn];B[no];W[mm];B[pl];W[sn];B[sp];W[cf];B[bf] ;W[dg];B[ef];W[fg];B[ki];W[ji];B[li];W[jj];B[fl];W[ek];B[kh] ;W[kg];B[fp];W[go];B[ep];W[hq];B[gr];W[fq];B[ed])goban-1.1.orig/games/Hon-92-6.mgt0000644000175000017500000000234106045540454014104 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]RE[B+R]FF[3]DT[1992-07-08,09]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[dc];W[qp];B[ce];W[kc];B[oc];W[hc];B[fq] ;W[cn];B[op];W[oq];B[nq];W[pq];B[np];W[qn];B[jp];W[ip];B[iq] ;W[hq];B[hp];W[io];B[ho];W[jq];B[ir];W[hn];B[hr];W[go];B[gp] ;W[fp];B[gq];W[in];B[fo];W[kp];B[gn];W[nm];B[cq];W[cp];B[dq] ;W[ck];B[nn];W[om];B[jr];W[lm];B[pp];W[qq];B[kq];W[qh];B[ci] ;W[qf];B[gc];W[gd];B[fc];W[hd];B[lc];W[ld];B[mc];W[kd];B[ne] ;W[ng];B[bl];W[cl];B[mf];W[mg];B[lf];W[lg];B[bk];W[cj];B[bj] ;W[di];B[dh];W[ch];B[bi];W[eh];B[dg];W[ei];B[ff];W[cc];B[dd] ;W[cd];B[be];W[ee];B[de];W[hl];B[kf];W[md];B[nd];W[ig];B[jg] ;W[jh];B[if];W[hg];B[hf];W[lb];B[mb];W[gg];B[gb];W[jb];B[ia] ;W[ma];B[ja];W[ha];B[hb];W[ib];B[ga];W[qc];B[gf];W[ka];B[ha] ;W[ob];B[pb];W[na];B[nc];W[qb];B[nb];W[pa];B[oa];W[lp];B[qa] ;W[lq];B[lr];W[mr];B[jo];W[kn];B[kg];W[kh];B[rd];W[ls];B[fg] ;W[fh];B[ks];W[kr];B[gl];W[gk];B[fl];W[fk];B[lr];W[nr];B[sf] ;W[rg];B[bm];W[cm];B[ms];W[bp];B[bq];W[pe];B[of];W[pd];B[pc] ;W[re];B[se];W[og];B[or];W[os];B[mq];W[pr];B[pf];W[qe];B[rb] ;W[el];B[pg];W[ph];B[sg];W[sh];B[ep];W[aq];B[ar];W[ap];B[br] ;W[eg];B[ef];W[em];B[gm];W[bn];B[do];W[dn];B[hm];W[im];B[jn] ;W[jm];B[an];W[ko];B[jq];W[ao];B[am];W[co];B[eo];W[fn];B[qg] )goban-1.1.orig/games/Hon-92-7.mgt0000644000175000017500000000261506045540454014111 0ustar alal (;GM[1]SZ[19]PB[Cho Chikun]PW[Kobayashi Koichi]DT[1992-07-22,23]RE[B+7.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[kc];B[jp] ;W[hq];B[cf];W[di];B[cc];W[cd];B[dc];W[ed];B[bd];W[be];B[bc] ;W[ce];B[fc];W[nq];B[ck];W[ci];B[pn];W[pr];B[cn];W[bo];B[bf] ;W[df];B[dg];W[af];B[bh];W[bi];B[ag];W[cg];B[ae];W[eg];B[fq] ;W[fp];B[gp];W[gq];B[cp];W[eq];B[co];W[cq];B[bq];W[cr];B[np] ;W[mp];B[oq];W[or];B[mq];W[nr];B[lq];W[no];B[op];W[qq];B[mo] ;W[rn];B[ob];W[nb];B[oc];W[bn];B[fo];W[fr];B[cm];W[bp];B[gk] ;W[dl];B[dk];W[ek];B[fm];W[el];B[go];W[en];B[eo];W[do];B[em] ;W[dm];B[dn];W[cl];B[jj];W[bm];B[kg];W[ne];B[ng];W[ik];B[ij] ;W[hk];B[hj];W[gl];B[jk];W[io];B[ip];W[im];B[jn];W[rl];B[hl] ;W[gm];B[rj];W[oa];B[pa];W[na];B[pb];W[hc];B[il];W[hm];B[jm] ;W[qk];B[qj];W[qo];B[qm];W[rm];B[po];W[lf];B[kf];W[le];B[lg] ;W[oe];B[pe];W[fn];B[qp];W[rp];B[rq];W[rr];B[gb];W[hb];B[qn] ;W[ro];B[hp];W[pk];B[ok];W[pl];B[rk];W[ql];B[ol];W[ad];B[ac] ;W[fd];B[hg];W[ga];B[fa];W[gc];B[fb];W[ec];B[eb];W[ha];B[da] ;W[if];B[hf];W[ie];B[ig];W[jr];B[kr];W[jq];B[kq];W[ch];B[ke] ;W[kd];B[he];W[id];B[mf];W[me];B[iq];W[ir];B[fk];W[fl];B[ej] ;W[fi];B[fj];W[dj];B[ei];W[fh];B[eh];W[ff];B[af];W[bg];B[ah] ;W[ai];B[ad];W[dh];B[gi];W[gh];B[hh];W[in];B[od];W[jo];B[ko] ;W[nd];B[js];W[hr];B[mr];W[nf];B[mg];W[of];B[og];W[pm];B[om] ;W[jf];B[jg];W[is];B[ks];W[je];B[ep];W[fq];B[pq];W[sq];B[ns] ;W[os];B[ms];W[sk];B[sj];W[sl];B[fe];W[ee];B[ge])goban-1.1.orig/games/M-84-7.mgt0000644000175000017500000000224706252627042013562 0ustar alal(;GM[1]SZ[19]PW[Cho Chikun]PB[Otake Hideo]DT[1984-11-14,15]PC[Yugawara City]RE[W+R]ID[84/7]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[qq];B[cd];W[cp];B[ec];W[od];B[oc];W[nc];B[pc] ;W[md];B[qf];W[ic];B[eq];W[hp];B[fp];W[dn];B[jq];W[io];B[cq] ;W[bq];B[dp];W[co];B[cr];W[cj];B[oq];W[qo];B[oo];W[qm];B[jo] ;W[jn];B[ko];W[gn];B[ch];W[kn];B[ln];W[iq];B[jp];W[cf];B[gc] ;W[bd];B[cc];W[ef];B[lc];W[mb];B[jb];W[pe];B[qe];W[ke];B[jd] ;W[eh];B[kd];W[lb];B[kb];W[ob];B[pb];W[pa];B[qa];W[oa];B[rb] ;W[ce];B[br];W[eo];B[hj];W[fj];B[le];W[ld];B[lf];W[nf];B[qk] ;W[pf];B[bc];W[jf];B[fg];W[ff];B[ck];W[dj];B[bj];W[bl];B[hf] ;W[hh];B[ek];W[dk];B[jg];W[kg];B[kf];W[ig];B[jh];W[if];B[he] ;W[ji];B[kh];W[ih];B[gg];W[eg];B[je];W[ki];B[lh];W[kk];B[kl] ;W[jk];B[qr];W[rr];B[pr];W[pp];B[op];W[qi];B[pl];W[qg];B[ip] ;W[ho];B[jl];W[il];B[lk];W[ll];B[lm];W[ml];B[in];W[im];B[mk] ;W[jm];B[km];W[nl];B[li];W[lo];B[mn];W[lj];B[mj];W[ir];B[jr] ;W[gq];B[mo];W[bp];B[ar];W[kj];B[ni];W[pj];B[pm];W[rl];B[rk] ;W[er];B[fr];W[fq];B[gr];W[ep];B[dq];W[hs];B[es];W[be];B[ii] ;W[ij];B[de];W[df];B[do];W[cn];B[ph];W[oh];B[oi];W[pi];B[og] ;W[pg];B[rn];W[qn];B[rp];W[rq];B[ro];W[rm];B[rs];W[sr];B[nh] ;W[of];B[ok];W[fd])goban-1.1.orig/games/Hon-81-6.mgt0000644000175000017500000000307506045540434014105 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Cho Chikun]DT[1981-07-15,16]RE[B+3.5]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[dp];W[pq];B[ce];W[ed];B[qo];W[oc];B[md] ;W[oe];B[pf];W[kd];B[mf];W[mc];B[np];W[po];B[pp];W[op];B[qp] ;W[oq];B[oo];W[pn];B[qq];W[nq];B[no];W[lq];B[rm];W[pl];B[lo] ;W[ml];B[kq];W[kr];B[lp];W[mr];B[jq];W[jr];B[pj];W[oj];B[oi] ;W[nj];B[pk];W[ol];B[kl];W[kj];B[nd];W[nc];B[od];W[pc];B[pd] ;W[ql];B[hq];W[rl];B[rj];W[rn];B[qn];W[qm];B[on];W[ch];B[qc] ;W[qb];B[bc];W[bb];B[cc];W[cb];B[dg];W[dh];B[eg];W[cg];B[ee] ;W[cf];B[dd];W[ec];B[df];W[hd];B[ck];W[ej];B[rb];W[gg];B[gf] ;W[hf];B[ff];W[dl];B[cl];W[cp];B[co];W[cq];B[dq];W[bo];B[cn] ;W[bn];B[dk];W[dr];B[cr];W[br];B[lc];W[kc];B[er];W[cs];B[ek] ;W[be];B[bd];W[ae];B[ad];W[bg];B[hg];W[hh];B[ig];W[ld];B[fd] ;W[fc];B[gd];W[gc];B[he];W[ge];B[fe];W[id];B[gj];W[ab];B[ik] ;W[fq];B[fp];W[sm];B[pm];W[fr];B[do];W[eq];B[gp];W[pb];B[de] ;W[bi];B[ni];W[mj];B[fj];W[ij];B[jk];W[mh];B[ng];W[ih];B[if] ;W[ra];B[sb];W[lm];B[km];W[hj];B[hk];W[bm];B[ir];W[qr];B[rr] ;W[pr];B[mi];W[li];B[lh];W[pi];B[ph];W[lg];B[kh];W[kg];B[jh] ;W[jg];B[mg];W[jf];B[gh];W[ji];B[nh];W[ki];B[mh];W[rk];B[qi] ;W[ln];B[kn];W[cm];B[dm];W[rc];B[rd];W[ac];B[cd];W[ro];B[lf] ;W[je];B[lk];W[lj];B[gr];W[rp];B[rq];W[bj];B[bl];W[al];B[ak] ;W[am];B[bk];W[ep];B[eo];W[ll];B[kk];W[sj];B[si];W[aj];B[nm] ;W[ok];B[om];W[rs];B[le];W[dj];B[el];W[eh];B[fi];W[sk];B[js] ;W[ks];B[is];W[qk];B[qj];W[gs];B[hs];W[fs];B[mp];W[mq];B[mn] ;W[sp];B[cj];W[fh];B[fg];W[ci];B[ei];W[di];B[hi];W[ii];B[gq] ;W[es];B[mm];W[ke];B[mk];W[nl];B[ie];W[jj];B[gi];W[nk];B[kf] ;W[qa];B[sc];W[sa];B[sq];W[ss];B[sr];W[qs])goban-1.1.orig/games/M-80-1.mgt0000644000175000017500000000263406252627042013550 0ustar alal(;GM[1]RO[1]PB[Otake Hideo]PW[Cho Chikun]DT[1980-09-10,11]PC[Tokyo]RE[W+R]ID[80/1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[8 Dan];B[qd];W[dd];B[pq];W[od];B[oc];W[nc];B[pc];W[md];B[ne] ;W[me];B[nb];W[mb];B[nd];W[mc];B[nf];W[mg];B[mf];W[lf];B[lg] ;W[mh];B[kf];W[le];B[kg];W[id];B[ki];W[mj];B[kk];W[pn];B[ol] ;W[pl];B[ok];W[pk];B[om];W[pm];B[oj];W[ph];B[pi];W[qi];B[oh] ;W[og];B[oe];W[qg];B[ng];W[nq];B[dp];W[dj];B[cl];W[fd];B[dh] ;W[jp];B[fq];W[ek];B[fh];W[gj];B[hf];W[jj];B[kj];W[hh];B[cd] ;W[ce];B[de];W[dc];B[bj];W[be];B[hd];W[hc];B[jd];W[jc];B[ie] ;W[ic];B[cj];W[em];B[dn];W[qp];B[pp];W[no];B[nr];W[mr];B[or] ;W[mm];B[qj];W[pj];B[oi];W[rq];B[on];W[po];B[oo];W[mq];B[rr] ;W[sr];B[op];W[re];B[hp];W[hm];B[rd];W[rf];B[jq];W[kq];B[iq] ;W[km];B[jk];W[en];B[eo];W[fo];B[fp];W[go];B[hk];W[ho];B[ip] ;W[io];B[ll];W[kr];B[gk];W[co];B[do];W[cp];B[cq];W[fj];B[jo] ;W[kp];B[lm];W[ln];B[mn];W[kn];B[mo];W[bh];B[bg];W[cg];B[ch] ;W[bf];B[hj];W[hs];B[hr];W[is];B[gs];W[jr];B[ir];W[js];B[gq] ;W[bq];B[cr];W[bm];B[br];W[bl];B[cm];W[bi];B[ck];W[cn];B[ao] ;W[gi];B[ci];W[ob];B[pb];W[na];B[kd];W[qr];B[qq];W[ro];B[gm] ;W[fl];B[gl];W[gn];B[ei];W[ej];B[ri];W[qh];B[rj];W[rk];B[kc] ;W[kb];B[lo];W[ko];B[ih];W[np];B[nn];W[gd];B[im];W[il];B[jm] ;W[jl];B[hl];W[jn];B[hn];W[in];B[hm];W[kl];B[he];W[hg];B[ig] ;W[ik];B[ij];W[rh];B[ee];W[sd];B[sc];W[se];B[rb];W[pf];B[dg] ;W[ag];B[ai];W[pe];B[pd];W[ff];B[qe];W[qf];B[df];W[cf];B[pa] ;W[ed];B[oa];W[nb])goban-1.1.orig/games/Hon-58-1.mgt0000644000175000017500000000240406045540250014073 0ustar alal (;GM[1]SZ[19]DT[1958-07-09,10]KM[4.5]RO[1]PC[Hongo, Tokyo]PB[Sugiuchi Masao]PW[Takagawa Kaku]RE[W+R]FF[3]TM[10h]BS[0]WS[0];B[pd];W[dp];B[pp];W[dc];B[ce];W[dh];B[pj];W[cd];B[jd] ;W[nq];B[kp];W[no];B[pn];W[pr];B[qq];W[kr];B[ee];W[gc];B[ge] ;W[nm];B[be];W[cm];B[bc];W[jb];B[jc];W[he];B[gd];W[ic];B[hc] ;W[hb];B[hd];W[id];B[ie];W[ib];B[fc];W[lc];B[hf];W[gb];B[fb] ;W[nc];B[dj];W[pl];B[qr];W[nk];B[el];W[fp];B[hm];W[hk];B[en] ;W[co];B[jl];W[jj];B[jk];W[kj];B[ij];W[ed];B[fd];W[de];B[df] ;W[ef];B[dd];W[qf];B[oe];W[de];B[eg];W[cf];B[dd];W[ii];B[ff] ;W[fk];B[hj];W[ek];B[dk];W[dl];B[em];W[di];B[ej];W[gi];B[ik] ;W[fi];B[bi];W[hi];B[gk];W[fj];B[cl];W[dm];B[bm];W[bn];B[bk] ;W[am];B[bl];W[cj];B[ci];W[lg];B[pg];W[ip];B[ho];W[hp];B[kn] ;W[fo];B[mp];W[oo];B[cq];W[po];B[qo];W[qn];B[qm];W[rn];B[ro] ;W[pm];B[er];W[gm];B[hl];W[dq];B[dr];W[bq];B[br];W[cp];B[cr] ;W[gn];B[gq];W[so];B[sp];W[sn];B[rq];W[qp];B[rp];W[pq];B[sr] ;W[qh];B[ph];W[qi];B[pi];W[re];B[qc];W[qj];B[ch];W[jo];B[lm] ;W[lq];B[jn];W[pb];B[rd];W[qe];B[nf];W[nh];B[nd];W[md];B[me] ;W[le];B[pf];W[mf];B[oc];W[ob];B[qb];W[ng];B[qg];W[rg];B[qk] ;W[pk];B[pc];W[nb];B[se];W[rk];B[ne];W[fa];B[ea];W[ga];B[ec] ;W[je];B[bp];W[ei];B[ck];W[jf];B[io];W[gp];B[eq];W[ep];B[gl] ;W[fl];B[hr];W[ir];B[lp];W[mq];B[mj];W[nj];B[lk];W[lj];B[mk] ;W[mi])goban-1.1.orig/games/M-93-2.mgt0000644000175000017500000000306406252627044013555 0ustar alal(;GM[1]PB[Kobayashi Koichi]BR[9 Dan]PW[Otake Hideo]WR[9 Dan]DT[1993-09-15,16]PC[Nagano prefecture]RE[B+1.5]SZ[19]KM[5.5]ID[93/2]BS[0]WS[0]FF[3]KI[11];B[pd];W[dc];B[pq];W[dp];B[qo];W[kq];B[cf];W[cd];B[ci] ;W[nc];B[qf];W[pb];B[mq];W[qc];B[pj];W[ko];B[fq];W[fo];B[hp] ;W[hn];B[dr];W[cq];B[jp];W[kp];B[jq];W[mp];B[np];W[no];B[mo] ;W[mn];B[lp];W[lo];B[mp];W[jo];B[cl];W[pl];B[nd];W[md];B[oc] ;W[ob];B[mc];W[nb];B[ne];W[ld];B[nn];W[nm];B[oo];W[mm];B[nj] ;W[lf];B[ed];W[ec];B[gd];W[fe];B[ge];W[fd];B[gc];W[qg];B[pg] ;W[ph];B[qh];W[qi];B[rg];W[rh];B[oh];W[qg];B[kc];W[pi];B[oi] ;W[qj];B[qh];W[lc];B[lb];W[mb];B[ff];W[fc];B[gg];W[qg];B[og] ;W[rf];B[qh];W[di];B[cj];W[qg];B[kr];W[sg];B[kj];W[cn];B[be] ;W[bd];B[cr];W[el];B[jd];W[rn];B[ro];W[mi];B[mj];W[lj];B[lk] ;W[li];B[ml];W[kk];B[kl];W[jk];B[jl];W[ik];B[il];W[hk];B[nl] ;W[qe];B[om];W[ho];B[ip];W[km];B[lq];W[lm];B[ll];W[ol];B[mg] ;W[hf];B[gf];W[jf];B[pf];W[kb];B[jb];W[la];B[fi];W[ej];B[dh] ;W[pm];B[qn];W[rm];B[qm];W[ql];B[bq];W[bp];B[ar];W[df];B[dg] ;W[ce];B[bf];W[ef];B[ih];W[ji];B[gb];W[fb];B[qd];W[rd];B[he] ;W[mf];B[pe];W[re];B[sn];W[rl];B[ad];W[ac];B[ae];W[bc];B[bm] ;W[nf];B[of];W[bn];B[dq];W[cp];B[ja];W[jr];B[ir];W[ng];B[dl] ;W[dm];B[fl];W[fk];B[gl];W[fm];B[gm];W[gn];B[im];W[on];B[dk] ;W[ek];B[ok];W[pk];B[oj];W[no];B[po];W[ii];B[jh];W[kh];B[hi] ;W[hj];B[hh];W[eg];B[ei];W[dj];B[eh];W[gj];B[jg];W[kg];B[je] ;W[if];B[nh];W[mh];B[ep];W[eo];B[fp];W[pc];B[od];W[ga];B[ha] ;W[fa];B[jn];W[ie];B[id];W[gi];B[gh];W[fg];B[fh];W[sm];B[so] ;W[kd];B[jc];W[an];B[am];W[cm];B[bl];W[ap];B[aq];W[kn];B[ka] ;W[lb];B[gp];W[nn])goban-1.1.orig/games/T-14-5.mgt0000644000175000017500000000177506404441752013566 0ustar alal(;SZ[19]EV[Tengen 14th]RO[Game 5]DT[1988]PB[Sonoda]PW[Cho]KM[5.5]RE[W+R]SO[Go 26/1]GC[154 moves];B[pd];W[dc];B[pp];W[dq];B[de];W[ce];B[cf];W[cd];B[do];W[df];B[fp];W[co];B[cp];W[dp];B[cq];W[cr];B[br];W[dr];B[bo];W[cn];B[bn];W[cm];B[eo];W[bs];B[bq];W[gq];B[bm];W[cl];B[hp];W[bl];B[am];W[hr];B[hq];W[fr];B[jq];W[ir];B[gp];W[iq];B[ip];W[jp];B[lq];W[kq];B[kp];W[jr];B[jo];W[lp];B[jq];W[ar];B[kr];W[aq];B[pj];W[qp];B[qo];W[ro];B[po];W[rp];B[rn];W[pq];B[oq];W[pr];B[or];W[rr];B[jd];W[nc];B[ne];W[qc];B[pc];W[qd];B[qe];W[pb];B[ob];W[re];B[qb];W[rb];B[pa];W[qf];B[pe];W[rg];B[pg];W[hd];B[he];W[ge];B[hf];W[id];B[je];W[jc];B[kc];W[gd];B[gf];W[kb];B[jb];W[ic];B[lb];W[qn];B[qm];W[pn];B[rl];W[kd];B[ka];W[lc];B[kb];W[ie];B[if];W[jf];B[ke];W[ij];B[fj];W[kj];B[ji];W[jj];B[jg];W[on];B[op];W[mk];B[ok];W[kf];B[le];W[kl];B[lk];W[ll];B[lj];W[ki];B[mj];W[hl];B[gk];W[jh];B[kg];W[hk];B[dg];W[ef];B[ee];W[ff];B[gh];W[eh];B[eg];W[fg];B[fh];W[fe];B[dh];W[hh];B[ri];W[ra];B[bf];W[bh];B[ch];W[ci];B[di];W[cj];B[nm];W[sn];B[rm];W[ln];B[mo];W[mi])goban-1.1.orig/games/M-63-2.mgt0000644000175000017500000000335606252627042013554 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-08-14,15]KM[5]ID[63/2]RO[2]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+0]GC[The rule was that W wins in case of jigo]FF[3]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[od];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[de];W[ce];B[dd];W[cd];B[ec];W[df];B[cc] ;W[db];B[bc];W[eb];B[fd];W[fc];B[cf];W[ed];B[ee];W[fe];B[ef] ;W[gd];B[dg];W[mc];B[qg];W[cl];B[ql];W[rm];B[rj];W[pk];B[pj] ;W[qj];B[qk];W[pl];B[ri];W[qh];B[rh];W[oj];B[md];W[ld];B[lc] ;W[nb];B[nd];W[kc];B[lb];W[kb];B[le];W[kd];B[pi];W[pc];B[qc] ;W[ph];B[oi];W[pg];B[pf];W[nh];B[ni];W[mi];B[nj];W[mj];B[nk] ;W[mg];B[nm];W[nn];B[lh];W[mh];B[mn];W[no];B[lk];W[mo];B[ln] ;W[of];B[pe];W[lo];B[kn];W[kj];B[lq];W[ko];B[jn];W[ro];B[cn] ;W[eq];B[en];W[dj];B[ke];W[kk];B[mk];W[kg];B[jf];W[qm];B[sk] ;W[ih];B[ob];W[mb];B[cp];W[dp];B[bp];W[bq];B[do];W[gp];B[jq] ;W[rq];B[cj];W[ci];B[ck];W[dk];B[bl];W[bk];B[bj];W[bm];B[ak] ;W[cm];B[di];W[bi];B[ch];W[ei];B[dh];W[iq];B[jr];W[gn];B[el] ;W[dl];B[bn];W[kl];B[im];W[fn];B[hl];W[em];B[ep];W[dq];B[am] ;W[hj];B[ll];W[nl];B[fl];W[gm];B[ij];W[hi];B[gl];W[fj];B[ik] ;W[fm];B[ii];W[ji];B[hh];W[ig];B[gh];W[fh];B[gf];W[gg];B[hg] ;W[if];B[fg];W[jl];B[il];W[sl];B[rk];W[hf];B[gi];W[gj];B[ol] ;W[om];B[ml];W[ok];B[dm];W[dn];B[ip];W[eo];B[hq];W[io];B[jo] ;W[hp];B[ir];W[in];B[jm];W[kp];B[jp];W[kq];B[kr];W[qr];B[jd] ;W[mf];B[me];W[jc];B[id];W[ic];B[na];W[mr];B[mq];W[or];B[nr] ;W[bb];B[cb];W[ca];B[ab];W[ba];B[be];W[pr];B[hd];W[hc];B[jg] ;W[jh];B[ge];W[nf];B[oq];W[co];B[bo];W[gr];B[gq];W[fq];B[rp] ;W[sp];B[lj];W[li];B[hr];W[fr];B[os];W[nl];B[oh];W[og];B[ol] ;W[he];B[je];W[nl];B[mm];W[la];B[oc];W[ps];B[ns];W[eh];B[ff] ;W[fd];B[rl];W[eg];B[bd];W[sm];B[qq];W[rr];B[hn];W[ho];B[hm] ;W[hs];B[is];W[gs];B[lf];W[lg];B[km];W[ap];B[an];W[jj];B[ol] ;W[do];B[nl])goban-1.1.orig/games/T-08-2.mgt0000644000175000017500000000326006270527152013555 0ustar alal(;PB[Kataoka Satoshi]PW[Kato Masao]SZ[19]EV[8th Tengen Match] RO[Game 2]DT[1982-11-17]PC[Nihon Ki-in]BR[7d]WR[9d]KM[5.5]RE[B+0.5] SO[Go World 31] ;B[pd];W[dp];B[pq];W[dd];B[fq];W[dn];B[jp];W[qn];B[qp];W[qk];B[qi] ;W[nc];B[pc];W[kc];B[fc];W[eb];B[ic];W[df];B[ie];W[ke];B[nd];W[mc] ;B[pm];W[qm];B[pl];W[pn];B[pk];W[ql];B[qj];W[on];B[mp];W[qe];B[qd] ;W[pj];B[nl];W[oj];B[nk];W[op];B[oq];W[ph];B[qh];W[qg];B[rg];W[np] ;B[nq];W[pg];B[rf];W[mo];B[nh];W[mi];B[ni];W[nj];B[mj];W[pi];B[lj] ;W[of];B[pe];W[rj];B[ri];W[si];B[rh];W[li];B[ki];W[mg];B[ng];W[kh] ;B[nf];W[kj];B[ji];W[mk];B[lk];W[ml];B[jh];W[lf];B[kg];W[lg];B[lh] ;W[mh];B[ne];W[mm];B[kk];W[ld];B[ch];W[ck];B[ce];W[cd];B[de];W[ee] ;B[cf];W[ed];B[dg];W[ef];B[fb];W[dr];B[jb];W[kb];B[lo];W[ln];B[no] ;W[mn];B[ec];W[db];B[bb];W[bc];B[dc];W[be];B[cb];W[bf];B[cg];W[eh] ;B[dj];W[di];B[cj];W[ej];B[dk];W[ci];B[bi];W[bh];B[bk];W[ai];B[bj] ;W[bg];B[bn];W[hq];B[co];W[do];B[cq];W[dq];B[iq];W[cp];B[bp];W[cn] ;B[bo];W[cl];B[cm];W[dm];B[bm];W[dl];B[bl];W[hp];B[hr];W[gr];B[ir] ;W[lp];B[mq];W[ko];B[lq];W[fr];B[ob];W[jd];B[fi];W[fh];B[ei];W[dh] ;B[gi];W[ek];B[hl];W[bq];B[aj];W[gh];B[hi];W[pp];B[fl];W[rp];B[rq] ;W[qo];B[qq];W[el];B[go];W[ho];B[gn];W[so];B[br];W[cr];B[aq];W[fm] ;B[gm];W[gk];B[hk];W[rk];B[fp];W[bs];B[cq];W[fn];B[nb];W[id];B[hd] ;W[he];B[hc];W[bq];B[ar];W[mb];B[sq];W[jl];B[jk];W[qf];B[re];W[in] ;B[gj];W[kp];B[kq];W[il];B[ik];W[jc];B[ib];W[ab];B[sp];W[ro];B[ge] ;W[cc];B[ba];W[hf];B[gf];W[fk];B[gl];W[ig];B[jf];W[gg];B[if];W[hg] ;B[jg];W[ff];B[fd];W[oc];B[km];W[jn];B[kl];W[ah];B[sh];W[sj];B[fo] ;W[eo];B[gs];W[fs];B[hs];W[fe];B[gd];W[ih];B[ii];W[pb];B[qb];W[na] ;B[pa];W[ja];B[ia];W[ka];B[eq];W[er];B[kn];W[jo];B[ip];W[cq];B[gq])goban-1.1.orig/games/Hon-60-3.sgf0000644000175000017500000000226206243707502014065 0ustar alal( ; GM[1] SZ[19] DT[1960-] RO[3] FF[3] BR[Honinbo] WR[8 dan] PB[Takagawa Shukaku] PW[Fujisawa Shuko] RE[W+R] KM[4.5] ID[15/3] ;B[pd];W[cq];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[cj];W[qj];B[jq];W[qn];B[np];W[qq];B[qp];W[rp];B[ro] ;W[rq];B[qo];W[or];B[nr];W[oq];B[nq];W[op];B[oo];W[no];B[on] ;W[pq];B[qg];W[mo];B[nm];W[kq];B[lp];W[jp];B[kp];W[lq];B[mp] ;W[iq];B[jo];W[jr];B[io];W[oj];B[do];W[kn];B[ln];W[ep];B[eo] ;W[fp];B[hp];W[fo];B[gq];W[hr];B[fn];W[gn];B[fm];W[gm];B[go] ;W[fl];B[dm];W[co];B[dp];W[dq];B[gr];W[cp];B[em];W[dn];B[en] ;W[er];B[hq];W[hk];B[cn];W[rn];B[sn];W[lm];B[lo];W[sp];B[so] ;W[mr];B[ns];W[ip];B[km];W[qc];B[qd];W[pc];B[oc];W[ob];B[nb] ;W[nc];B[od];W[mb];B[rm];W[na];B[kl];W[oh];B[nd];W[qh];B[mc] ;W[nb];B[pg];W[ph];B[lc];W[rl];B[qm];W[ek];B[dj];W[cl];B[bn] ;W[dl];B[bl];W[fj];B[cm];W[rd];B[re];W[rc];B[aq];W[bq];B[hc] ;W[kc];B[kd];W[jc];B[jd];W[lb];B[ic];W[ld];B[md];W[le];B[mf] ;W[id];B[ie];W[je];B[hd];W[ke];B[id];W[jg];B[hg];W[lh];B[rg] ;W[hh];B[ig];W[ih];B[kg];W[jh];B[lg];W[jf];B[mh];W[mi];B[kh] ;W[li];B[ki];W[nh];B[mg];W[gg];B[pk];W[kj];B[jj];W[mk];B[gf] ;W[kk];B[jk];W[ll];B[eb];W[ec];B[fb];W[db];B[ji];W[fg];B[pj] ;W[ok];B[pl];W[mm];B[pi];W[oi];B[nl];W[nj] ) goban-1.1.orig/games/M-69-3.mgt0000644000175000017500000000320006252627042013547 0ustar alal(;GM[1]SZ[19]PB[Takagawa Kaku]PW[Rin Kaiho]KM[5]DT[1969-09-09,10]RE[W+8]ID[69/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qc];W[dp];B[qp];W[dc];B[oq];W[de];B[jc];W[cj];B[pe] ;W[qj];B[gc];W[jp];B[qh];W[qm];B[cq];W[cp];B[dq];W[eq];B[er] ;W[fq];B[fr];W[gq];B[bp];W[bo];B[bq];W[cn];B[di];W[ci];B[dg] ;W[dh];B[eh];W[ch];B[fg];W[cg];B[ed];W[dd];B[kf];W[mf];B[md] ;W[of];B[pf];W[rh];B[qi];W[ri];B[oi];W[mh];B[qk];W[pj];B[rk] ;W[rj];B[pl];W[nj];B[oh];W[pk];B[ql];W[nl];B[pm];W[ki];B[nn] ;W[rf];B[mi];W[ni];B[nh];W[lh];B[lf];W[ng];B[oe];W[mq];B[lo] ;W[on];B[nm];W[ml];B[oo];W[mo];B[lm];W[jg];B[gr];W[fj];B[ie] ;W[rd];B[rc];W[me];B[ld];W[no];B[np];W[po];B[op];W[om];B[pn] ;W[ol];B[mp];W[qn];B[sl];W[qo];B[rm];W[sj];B[sk];W[rn];B[so] ;W[pp];B[pq];W[rp];B[qq];W[sn];B[rq];W[sp];B[sq];W[ro];B[ll] ;W[lk];B[kk];W[kj];B[mk];W[lj];B[fb];W[ec];B[hg];W[fc];B[gd] ;W[im];B[hk];W[gh];B[fk];W[ek];B[hm];W[il];B[gj];W[gi];B[hq] ;W[hp];B[iq];W[ip];B[ik];W[jk];B[in];W[jn];B[fi];W[ej];B[hi] ;W[hh];B[ih];W[ii];B[ij];W[hj];B[ok];W[oj];B[hi];W[qd];B[pc] ;W[hj];B[mm];W[nk];B[hi];W[ne];B[nd];W[hj];B[ep];W[eo];B[hi] ;W[gb];B[hb];W[hj];B[hl];W[gk];B[jl];W[jq];B[jm];W[jr];B[ir] ;W[is];B[hr];W[gn];B[eb];W[db];B[fl];W[gg];B[ff];W[gf];B[fd] ;W[el];B[fm];W[nr];B[qf];W[rg];B[sc];W[sd];B[jj];W[ig];B[fo] ;W[fp];B[go];W[gp];B[em];W[dm];B[en];W[dn];B[or];W[he];B[df] ;W[cf];B[ei];W[id];B[if];W[jd];B[kd];W[hd];B[ga];W[ea];B[kn] ;W[lq];B[ho];W[og];B[qg];W[hc];B[ic];W[fe];B[ee];W[ge];B[gb] ;W[fh];B[ef];W[jo];B[ns];W[ms];B[os];W[dj];B[eg];W[io];B[hn] ;W[hf];B[jf];W[ap];B[aq];W[ao];B[hs];W[js];B[kp];W[pd];B[od] ;W[qe];B[kq];W[kr];B[gl];W[gj];B[lg];W[mg];B[kg];W[kh];B[ji] ;W[jh])goban-1.1.orig/games/M-96-5.sgf0000644000175000017500000000217706252642006013552 0ustar alal( ; EV[21st Meijin title] RO[5] PB[Cho Chikun] BR[9 dan] PW[Takemiya Masaki] WR[9 dan] KM[5.5] DT[23/24 October 1996] PC[Japan] RE[W+R] ;B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[kc];B[jp];W[gp] ;B[ci];W[nq];B[oq];W[np];B[pn];W[ko];B[jo];W[kn];B[kp];W[lp] ;B[jn];W[km];B[jm];W[kl];B[jl];W[kk];B[lq];W[mo];B[cq];W[dq] ;B[cp];W[co];B[bo];W[cn];B[bn];W[cm];B[dr];W[er];B[cr];W[jk] ;B[gn];W[fm];B[fn];W[en];B[eo];W[do];B[cf];W[gm];B[hm];W[hl] ;B[il];W[hn];B[ho];W[im];B[in];W[hm];B[go];W[el];B[hp];W[dh] ;B[ef];W[fd];B[ch];W[ce];B[dg];W[bf];B[bg];W[be];B[nd];W[md] ;B[oc];W[ne];B[od];W[nb];B[me];W[ld];B[mf];W[ob];B[or];W[qc] ;B[qd];W[ql];B[pl];W[qm];B[qn];W[pm];B[qj];W[om];B[mq];W[oi] ;B[hc];W[ff];B[ec];W[fc];B[fb];W[gb];B[eb];W[gc];B[bc];W[ee] ;B[fg];W[gf];B[cb];W[og];B[pg];W[ph];B[qh];W[of];B[nk];W[mh] ;B[ik];W[ii];B[on];W[nn];B[fq];W[fh];B[eq];W[eh];B[bk];W[rd] ;B[re];W[rc];B[mj];W[mi];B[lj];W[ki];B[ml];W[oj];B[ok];W[nm] ;B[li];W[lh];B[kj];W[jj];B[kh];W[ji];B[kg];W[lf];B[nj];W[oh] ;B[ni];W[mg];B[ri];W[bm];B[dk];W[eg];B[dl];W[dm];B[ek];W[fk] ;B[fj];W[gk];B[ga];W[bl];B[ak];W[ag];B[ah];W[bi];B[kf];W[le] ;B[hj];W[gj];B[bj];W[ai];B[hi];W[df] ) goban-1.1.orig/games/Hon-56-6.mgt0000644000175000017500000000322306045540246014103 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1956-08-31, 09-01]BR[Honinbo]WR[8 dan]KM[4.5]RO[6]PC[Izu-san]PB[Takagawa Kaku]PW[Shimamura Toshihiro]RE[B+2.5]TM[10 h]FF[3];B[pd];W[dc];B[pp];W[cq];B[de];W[cg];B[ef];W[gc];B[cc] ;W[cd];B[dd];W[ce];B[ec];W[db];B[cf];W[bf];B[df];W[bd];B[fc] ;W[cb];B[gd];W[qj];B[jp];W[hq];B[ho];W[fp];B[mc];W[pn];B[qn] ;W[qm];B[qo];W[pm];B[np];W[qg];B[jd];W[dk];B[dp];W[cp];B[do] ;W[dq];B[fo];W[gp];B[go];W[jr];B[pi];W[qi];B[pf];W[pg];B[og] ;W[qf];B[qe];W[of];B[pe];W[ng];B[oh];W[ne];B[nd];W[nh];B[ni] ;W[mi];B[nj];W[lh];B[mk];W[ld];B[md];W[je];B[ie];W[me];B[oe] ;W[nf];B[kd];W[rm];B[lj];W[ke];B[lc];W[jg];B[if];W[jj];B[ki] ;W[ji];B[kh];W[kg];B[jh];W[ih];B[li];W[ig];B[ii];W[ge];B[hi] ;W[hd];B[id];W[gi];B[fd];W[hh];B[ik];W[mm];B[hk];W[eh];B[ej] ;W[dj];B[rn];W[oq];B[pq];W[nq];B[op];W[lq];B[cl];W[dl];B[cm] ;W[rf];B[se];W[fa];B[ea];W[eb];B[fb];W[da];B[gb];W[re];B[rd] ;W[sf];B[sd];W[ll];B[jk];W[pr];B[qr];W[ck];B[or];W[nr];B[ps] ;W[gg];B[fh];W[fg];B[dh];W[ei];B[dg];W[co];B[dm];W[fl];B[fk] ;W[fj];B[gk];W[em];B[en];W[ch];B[bk];W[bj];B[bi];W[bl];B[ci] ;W[ag];B[bm];W[di];B[al];W[aj];B[ap];W[bp];B[km];W[kl];B[an] ;W[aq];B[kr];W[kq];B[ir];W[jq];B[iq];W[hr];B[eq];W[ip];B[hp] ;W[io];B[in];W[jo];B[fr];W[gq];B[ep];W[dr];B[ao];W[br];B[pk] ;W[sm];B[qk];W[rk];B[ns];W[he];B[hc];W[mr];B[fe];W[hf];B[jl] ;W[kn];B[fm];W[el];B[gl];W[sn];B[so];W[mp];B[le];W[lf];B[ln] ;W[lo];B[jn];W[ko];B[lm];W[mn];B[jm];W[ml];B[ph];W[pj];B[qh] ;W[rh];B[oi];W[rj];B[ok];W[kk];B[kj];W[rp];B[ro];W[po];B[qp] ;W[ek];B[cn];W[er];B[fq];W[no];B[om];W[ms];B[os];W[bo];B[ak] ;W[cj];B[jf];W[kf];B[ff];W[bn];B[am];W[gf];B[ql];W[rl];B[mj] ;W[mh];B[nl];W[pl];B[oo];W[on];B[nm];W[nn];B[ga];W[es];B[gj] ;W[ea];B[ld])goban-1.1.orig/games/Hon-74-1.sgf0000644000175000017500000000303406243710636014070 0ustar alal( ; GM[1] SZ[19] DT[1974-05-22, 23] BR[9 dan] WR[7 dan] KM[4.5] RO[1] PB[Ishida Yoshio] PW[Takemiya Masaki] RE[B+10.5] FF[3] ID[29/1] ;B[qd];W[dd];B[pp];W[dq];B[oc];W[qj];B[co];W[ck];B[fo] ;W[gq];B[qh];W[pn];B[np];W[jc];B[cf];W[ce];B[df];W[fd];B[ci] ;W[ek];B[cq];W[cr];B[bq];W[ei];B[fh];W[ep];B[eo];W[jq];B[eh] ;W[di];B[dh];W[cm];B[cj];W[dp];B[do];W[em];B[ho];W[gp];B[go] ;W[hl];B[bk];W[qp];B[qq];W[qo];B[rq];W[lq];B[mq];W[lp];B[cl] ;W[dk];B[bm];W[bf];B[hc];W[mc];B[ec];W[dc];B[ed];W[ee];B[fc] ;W[de];B[bg];W[dl];B[bl];W[oj];B[db];W[cb];B[eb];W[be];B[oh] ;W[ob];B[pb];W[nb];B[ol];W[ql];B[ri];W[pc];B[qc];W[pd];B[pe] ;W[od];B[oe];W[nd];B[qb];W[oo];B[mr];W[ib];B[hb];W[ie];B[he] ;W[jl];B[rj];W[ne];B[no];W[nn];B[mn];W[nm];B[qk];W[pl];B[ip] ;W[iq];B[pk];W[ok];B[rl];W[nh];B[ng];W[mh];B[id];W[jd];B[if] ;W[je];B[gj];W[gi];B[fi];W[hj];B[hi];W[gk];B[gh];W[ij];B[jh] ;W[ki];B[ji];W[jj];B[ca];W[bb];B[br];W[op];B[oq];W[mo];B[ko] ;W[kn];B[jn];W[in];B[jp];W[ln];B[rm];W[pj];B[rk];W[qm];B[jm] ;W[km];B[fe];W[ff];B[ge];W[ef];B[dr];W[er];B[cs];W[mp];B[nq] ;W[im];B[ba];W[af];B[ic];W[jb];B[ag];W[rp];B[sp];W[so];B[sq] ;W[rn];B[es];W[og];B[pg];W[mg];B[of];W[kg];B[fr];W[eq];B[ab] ;W[da];B[ea];W[bc];B[hr];W[hq];B[gr];W[ir];B[lr];W[kr];B[nf] ;W[mf];B[jf];W[kf];B[ej];W[cp];B[bp];W[cn];B[bn];W[io];B[hp] ;W[jo];B[kp];W[kq];B[dj];W[fm];B[ia];W[ja];B[ha];W[hg];B[hh] ;W[hf];B[ig];W[gf];B[gm];W[gl];B[kh];W[lh];B[oi];W[ni];B[sm] ;W[sn];B[ks];W[js];B[ls];W[pi];B[ph];W[fk];B[oa];W[na];B[pa] ;W[dg];B[cg];W[eg];B[pq];W[po];B[gn];W[fj];B[lo];W[fq];B[fs] ;W[is];B[da];W[ac];B[aa];B[gi] ) goban-1.1.orig/games/M-90-1.mgt0000644000175000017500000000222706252627042013547 0ustar alal(;GM[1]FF[3]DT[1990-09-12,13]SZ[19]PB[Otake Hideo]PW[Kobayashi Koichi]KM[5.5]BR[9 Dan]RE[W+R]ID[90/1]BS[0]WS[0]WR[9 Dan];B[qd];W[dp];B[pq];W[dc];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[dj];W[oc];B[cn];W[fq];B[pe];W[qk];B[qo];W[qh];B[jp] ;W[dk];B[ck];W[cl];B[cj];W[dn];B[co];W[cp];B[do];W[eo];B[bl] ;W[lq];B[ko];W[oq];B[pp];W[pr];B[qr];W[mo];B[lm];W[jr];B[nd] ;W[mc];B[ld];W[qc];B[md];W[pb];B[oh];W[ok];B[mk];W[id];B[rl] ;W[rk];B[lc];W[od];B[oe];W[fe];B[rd];W[rc];B[ed];W[fd];B[np] ;W[nq];B[ql];W[nj];B[pl];W[nh];B[ng];W[oi];B[mh];W[ni];B[og] ;W[lj];B[li];W[mj];B[ec];W[eb];B[db];W[cb];B[ib];W[gb];B[nb] ;W[nc];B[mb];W[ob];B[gq];W[fp];B[mp];W[lp];B[lo];W[op];B[no] ;W[oo];B[nn];W[mq];B[or];W[nr];B[ps];W[iq];B[jj];W[ho];B[bp] ;W[bq];B[bo];W[nm];B[on];W[ll];B[ml];W[kj];B[ki];W[kl];B[mm] ;W[il];B[br];W[cq];B[aq];W[cr];B[hn];W[io];B[jm];W[ik];B[dm] ;W[fm];B[fk];W[fg];B[bf];W[be];B[ie];W[kb];B[lb];W[je];B[jd] ;W[if];B[he];W[kd];B[jc];W[kf];B[kc];W[hd];B[jq];W[ir];B[gl] ;W[gm];B[hm];W[sl];B[gn];W[en];B[go];W[gp];B[hi];W[hg];B[fi] ;W[jn];B[km];W[im];B[in];W[jo];B[hl];W[pj];B[ph];W[pi];B[rh] ;W[ri];B[qg];W[qi];B[sm];W[sk];B[rn];W[eh];B[rg];W[ch];B[bh] ;W[kp])goban-1.1.orig/games/Hon-63-4.mgt0000644000175000017500000000325606045540372014105 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-05-23,24]PB[Sakata Eio]PW[Takagawa Kaku]RE[W+1.5]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[oq];W[ec];B[co];W[dl];B[eo] ;W[fp];B[cq];W[cr];B[bq];W[dp];B[do];W[iq];B[cj];W[ek];B[cf] ;W[cm];B[em];W[gk];B[dh];W[qj];B[ql];W[qg];B[kq];W[oc];B[qe] ;W[lc];B[jc];W[hc];B[oe];W[le];B[je];W[he];B[jg];W[lg];B[hf] ;W[gf];B[hg];W[ie];B[if];W[re];B[qf];W[rf];B[rd];W[pd];B[qd] ;W[pb];B[pg];W[qh];B[ng];W[oh];B[og];W[ne];B[ge];W[ff];B[fh] ;W[ol];B[qn];W[oi];B[nd];W[md];B[nf];W[nc];B[me];W[fe];B[fj] ;W[fk];B[gm];W[cp];B[bp];W[bn];B[bo];W[gp];B[bl];W[ik];B[im] ;W[kk];B[lh];W[mh];B[li];W[mi];B[kd];W[ld];B[ji];W[gj];B[hb] ;W[od];B[ra];W[gb];B[ic];W[gd];B[br];W[dr];B[ep];W[eq];B[be] ;W[pe];B[pf];W[ne];B[se];W[rg];B[nd];W[bk];B[ck];W[cl];B[bj] ;W[ne];B[sb];W[hn];B[gn];W[mq];B[ko];W[mo];B[km];W[ll];B[ir] ;W[hr];B[ip];W[hq];B[jq];W[on];B[fr];W[fq];B[jr];W[gr];B[bc] ;W[cc];B[bb];W[rm];B[qm];W[rl];B[nm];W[mm];B[rn];W[op];B[nq] ;W[mr];B[np];W[mp];B[ho];W[no];B[pp];W[lj];B[jj];W[jk];B[cb] ;W[qk];B[eb];W[id];B[kc];W[gh];B[hh];W[db];B[da];W[dc];B[pl] ;W[om];B[nr];W[po];B[oo];W[qb];B[rb];W[op];B[qo];W[pq];B[pr] ;W[ns];B[qq];W[pk];B[dk];W[el];B[ej];W[bd];B[ad];W[hp];B[jp] ;W[mf];B[lb];W[mb];B[ha];W[fb];B[la];W[ea];B[ca];W[ce];B[bg] ;W[df];B[dg];W[eg];B[ln];W[mn];B[os];W[go];B[io];W[ei];B[fi] ;W[eh];B[di];W[bs];B[lr];W[ms];B[ls];W[ii];B[fg];W[ef];B[hi] ;W[ij];B[ih];W[sf];B[sd];W[ma];B[ja];W[ga];B[kb];W[rk];B[oo] ;W[pn];B[ph];W[pi];B[nh];W[ni];B[sm];W[sl];B[sn];W[is];B[js] ;W[hs];B[al];W[bm];B[jl];W[il];B[kl];W[pc];B[qa];W[gg];B[gi] ;W[lm];B[lo];W[fn];B[fm];W[en];B[dn];W[fo];B[dm];W[hl];B[hm] ;W[pa];B[kf];W[hj];B[ao];W[ke];B[lp];W[kj];B[ki];W[kg];B[jh] ;W[of];B[ar];W[oe];B[op])goban-1.1.orig/games/Hon-76-5.sgf0000644000175000017500000000337506243711450014101 0ustar alal( ; EV[31st Honinbo 1976] RO[5] PB[Takemiya Masaki] BR[8 dan] PW[Ishida Yoshio] WR[Honinbo] KM[5.5] DT[1976-] PC[Japan] RE[B+R] TM[9 hours each] ;B[pd];W[cq];B[pp];W[dd];B[fc];W[jd];B[df];W[de];B[ef] ;W[fd];B[id];W[je];B[ie];W[if];B[jc];W[jf];B[fe];W[gd];B[ge] ;W[gc];B[he];W[kc];B[ib];W[gb];B[kb];W[qf];B[of];W[ji];B[pi] ;W[qc];B[qd];W[rd];B[re];W[rc];B[qe];W[ob];B[np];W[jp];B[dp] ;W[dq];B[ep];W[bo];B[eq];W[qp];B[qo];W[ro];B[po];W[qq];B[rn] ;W[or];B[mq];W[rp];B[qm];W[gp];B[dm];W[gn];B[cn];W[co];B[do] ;W[bn];B[cl];W[en];B[dn];W[ni];B[li];W[ng];B[og];W[nf];B[lk] ;W[mj];B[lj];W[oh];B[ph];W[oe];B[pe];W[od];B[rf];W[jk];B[oj] ;W[mk];B[ll];W[ml];B[lm];W[jm];B[be];W[bd];B[cf];W[ce];B[bf] ;W[ad];B[fl];W[ol];B[ko];W[jo];B[kn];W[jn];B[gj];W[ql];B[qk] ;W[bm];B[lc];W[md];B[bl];W[gh];B[ij];W[jj];B[hh];W[hi];B[ii] ;W[ih];B[hg];W[hj];B[gi];W[ik];B[er];W[cr];B[pl];W[al];B[ak] ;W[am];B[bj];W[gk];B[fk];W[hf];B[gg];W[gf];B[fg];W[gr];B[nr] ;W[oq];B[os];W[rr];B[kq];W[jq];B[qs];W[rs];B[mb];W[nb];B[pc] ;W[pb];B[gm];W[pk];B[rl];W[pm];B[nm];W[mm];B[mn];W[ql];B[cp] ;W[bp];B[pl];W[fh];B[eh];W[ql];B[dc];W[ec];B[pl];W[bk];B[ck] ;W[ql];B[cc];W[cd];B[pl];W[ok];B[hn];W[go];B[im];W[ho];B[kd] ;W[kr];B[lr];W[kp];B[lp];W[lq];B[br];W[bq];B[kq];W[ql];B[qj] ;W[lq];B[es];W[cs];B[kq];W[fi];B[fj];W[lq];B[eb];W[fb];B[kq] ;W[jr];B[om];W[pl];B[pn];W[in];B[hm];W[lf];B[kh];W[ld];B[ig] ;W[jh];B[jg];W[km];B[ke];W[kf];B[lq];W[op];B[oo];W[ls];B[ms] ;W[ks];B[nq];W[mc];B[ma];W[kg];B[em];W[mh];B[lh];W[lg];B[fn] ;W[fo];B[eo];W[se];B[sf];W[sd];B[oi];W[nh];B[gs];W[hs];B[fs] ;W[gq];B[hb];W[ff];B[ei];W[le];B[kc];W[oc];B[so];W[sp];B[sn] ;W[ha];B[na];W[oa];B[ia];W[ae];B[af];W[hc];B[ic];W[ga];B[da] ;W[ea];B[fa];W[lb];B[la];W[ea];B[hr];W[is];B[fa];W[ka];B[ja] ;W[ea];B[ir];W[js];B[fa];W[bb];B[bc];W[ed];B[ab] C[267 moves.]) goban-1.1.orig/games/Hon-85-5.mgt0000644000175000017500000000315506045540442014106 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Takemiya Masaki]DT[1985-06-26,27]RE[B+2.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pp];W[dp];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[dj];W[cl];B[pj];W[nq];B[lq];W[qq];B[qp];W[pq];B[op] ;W[rq];B[np];W[nr];B[fq];W[fp];B[gp];W[fo];B[eq];W[dq];B[hp] ;W[nc];B[pf];W[pb];B[do];W[dm];B[co];W[ep];B[bq];W[dn];B[cr] ;W[bp];B[cp];W[cq];B[bo];W[br];B[ap];W[fr];B[en];W[fl];B[gm] ;W[gq];B[hq];W[gr];B[dr];W[er];B[em];W[dk];B[cj];W[fm];B[fn] ;W[gn];B[el];W[ek];B[fk];W[gl];B[eo];W[ej];B[hm];W[hl];B[il] ;W[gj];B[ik];W[fj];B[dh];W[hi];B[ji];W[go];B[in];W[ar];B[bs] ;W[ds];B[me];W[mp];B[mo];W[lp];B[lo];W[kp];B[ko];W[qc];B[qd] ;W[ro];B[qn];W[kf];B[mc];W[md];B[ld];W[nd];B[lf];W[kh];B[jh] ;W[jg];B[lg];W[kg];B[ig];W[if];B[hf];W[ie];B[hg];W[bn];B[cn] ;W[bm];B[dl];W[ck];B[cm];W[lh];B[gd];W[ke];B[le];W[kc];B[lc] ;W[nb];B[kb];W[gc];B[ic];W[jj];B[ki];W[ih];B[hd];W[lj];B[li] ;W[mi];B[ii];W[ij];B[hh];W[kj];B[ih];W[mg];B[mj];W[kd];B[ni] ;W[mh];B[ne];W[nj];B[mk];W[oi];B[nh];W[nk];B[nl];W[ng];B[oh] ;W[og];B[ph];W[pg];B[rc];W[qh];B[pi];W[rb];B[qg];W[qf];B[rg] ;W[rf];B[rh];W[of];B[oe];W[pe];B[pc];W[qb];B[mb];W[rd];B[re] ;W[sc];B[qe];W[pf];B[hk];W[gk];B[hj];W[od];B[sf];W[oc];B[jp] ;W[kq];B[bk];W[bl];B[bj];W[cs];B[aq];W[an];B[ao];W[al];B[rp] ;W[sp];B[jq];W[kr];B[rn];W[hb];B[ib];W[bf];B[bg];W[be];B[ed] ;W[ec];B[fh];W[ei];B[eh];W[se];B[sn];W[ri];B[qi];W[sh];B[rj] ;W[ag];B[bh];W[jr];B[so];W[io];B[jo];W[sq];B[gi];W[fd];B[fe] ;W[dd];B[ee];W[jc];B[jb];W[hr];B[hc];W[gb];B[na];W[oa];B[ma] ;W[ho];B[oq];W[or];B[ah];W[af];B[si];W[hn];B[im];W[he];B[ge] ;W[ak];B[sg];W[ia];B[ja];W[ha];B[id];W[aj];B[di];W[ai];B[je] ;W[jf];B[jd];W[bi];B[ci];W[ir])goban-1.1.orig/games/T-03-4.mgt0000644000175000017500000000335606261032670013554 0ustar alal(;PB[Shimamura Toshihiro]BR[9p]PW[Sonoda Yuichi]WR[8p]DT[1977-12-22]RE[B+3.5]KM[5.5]SZ[19]EV[3rd Tengen match game 4];B[pd];W[dc];B[qp];W[dq];B[oq];W[qj];B[ce];W[cg];B[cn];W[cl];B[cq];W[cp];B[dp];W[bq];B[cr];W[do];B[ep];W[co];B[fq];W[nc];B[qf];W[qm];B[oc];W[ob];B[pb];W[jc];B[dg];W[ch];B[ed];W[dd];B[de];W[ee];B[ef];W[fe];B[id];W[jd];B[eb];W[ec];B[fd];W[ge];B[fc];W[db];B[fb];W[cd];B[be];W[bc];B[ie];W[gd];B[hc];W[fg];B[dh];W[hg];B[cb];W[da];B[je];W[ci];B[gh];W[gg];B[di];W[gj];B[dk];W[ck];B[fk];W[ic];B[hd];W[hb];B[gc];W[nb];B[bb];W[ab];B[ca];W[qb];B[ld];W[kd];B[jg];W[gk];B[fl];W[fj];B[dl];W[dn];B[lc];W[ke];B[nd];W[lb];B[oa];W[md];B[mc];W[mb];B[me];W[le];B[ji];W[ik];B[fn];W[gm];B[en];W[kh];B[jh];W[kk];B[lj];W[mf];B[kj];W[qc];B[pc];W[re];B[nf];W[ng];B[mg];W[mh];B[lf];W[kf];B[jf];W[lg];B[mf];W[kg];B[nh];W[mi];B[lk];W[kl];B[ll];W[km];B[rf];W[gp];B[eo];W[br];B[dr];W[mq];B[mn];W[or];B[pr];W[lo];B[hq];W[jq];B[nr];W[ro];B[qo];W[rn];B[iq];W[rq];B[jp];W[kq];B[pj];W[qq];B[mo];W[ln];B[lm];W[ip];B[hp];W[io];B[qk];W[oo];B[qr];W[pq];B[nq];W[nm];B[ok];W[pl];B[pk];W[rr];B[mr];W[ni];B[lp];W[kp];B[lq];W[oh];B[qh];W[qe];B[pe];W[qd];B[ho];W[lr];B[mp];W[in];B[qa];W[ra];B[ba];W[pa];B[dm];W[cm];B[qa];W[bf];B[bd];W[pa];B[bn];W[bo];B[qa];W[sb];B[on];W[po];B[ij];W[hj];B[il];W[jk];B[gl];W[hl];B[hm];W[hk];B[hn];W[im];B[rl];W[qs];B[os];W[bs];B[ir];W[kr];B[nn];W[cj];B[cf];W[af];B[ae];W[bg];B[hh];W[fh];B[ei];W[fi];B[pn];W[qn];B[pa];W[kc];B[md];W[pg];B[pf];W[pi];B[qi];W[ol];B[na];W[ds];B[er];W[cs];B[ma];W[kb];B[qg];W[og];B[nj];W[oi];B[ql];W[pm];B[nl];W[om];B[ej];W[ii];B[ih];W[jj];B[ki];W[es];B[fs];W[of];B[oe];W[la];B[mm];W[mj];B[mk];W[oj];B[nk];W[li];B[ga];W[ha];B[se];W[sd];B[sf];W[sm];B[rm];W[pp];B[sl];W[sn];B[ib];W[ja];B[gb];W[ia];B[js];W[jo];B[hi];W[eg];B[df];W[jr];B[ms];W[ij])goban-1.1.orig/games/T-11-3.mgt0000644000175000017500000000205106265101064013537 0ustar alal(;SZ[19]EV[11th Tengen Title match]PB[Ishida Yoshio]BR[9d, Tengen]PW[Kobayashi Koichi]WR[9d, Judan]KM[5.5]SO[Go world 44]RO[Game 3]DT[1985-12-4]PC[Kushiro City Hokkaido]RE[W+R (146 moves)];B[pd];W[dd];B[pq];W[cp];B[eq];W[qo];B[pm];W[lq];B[po];W[iq];B[dp];W[co];B[cq];W[bq];B[cr];W[do];B[fp];W[qp];B[pp];W[qn];B[qm];W[pn];B[on];W[qq];B[om];W[ck];B[pf];W[kc];B[fc];W[hc];B[cc];W[dc];B[cd];W[de];B[db];W[eb];B[cb];W[ec];B[cf];W[qh];B[qf];W[ni];B[mc];W[li];B[mh];W[oj];B[id];W[ic];B[dm];W[cm];B[pr];W[qr];B[hr];W[ln];B[mi];W[mj];B[lj];W[lk];B[kj];W[mk];B[kh];W[no];B[oo];W[qk];B[rm];W[rn];B[qs];W[rs];B[ps];W[rl];B[mp];W[mq];B[np];W[ko];B[nq];W[hq];B[gq];W[kk];B[jj];W[nb];B[pb];W[ld];B[jd];W[lg];B[lh];W[md];B[nc];W[nd];B[mb];W[oc];B[ob];W[jf];B[dl];W[cl];B[fe];W[df];B[cg];W[gd];B[fd];W[gb];B[fg];W[ig];B[eh];W[hh];B[fb];W[fa];B[ge];W[dg];B[dh];W[ch];B[bh];W[ci];B[hd];W[gc];B[ke];W[mf];B[dj];W[bi];B[hf];W[hj];B[gh];W[gi];B[hg];W[ih];B[if];W[kg];B[ik];W[fi];B[fh];W[je];B[ie];W[hl];B[nf];W[ng];B[mg];W[lf];B[il];W[im];B[jm];W[in];B[nh];W[og];B[oh];W[pg];B[qi];W[ri])goban-1.1.orig/games/M-66-4.mgt0000644000175000017500000000326106260604106013547 0ustar alal(;SZ[19]EV[5th Meijin match game 4]DT[1966 September 2,3]PB[Rin]PW[Sakata]KM[5]RE[B+4]SO[Go review 6/11];B[qd];W[cd];B[ec];W[qq];B[eq];W[od];B[mc];W[qc];B[pc];W[pd];B[oc];W[nc];B[nd];W[nb];B[qb];W[rc];B[ob];W[qe];B[mb];W[ne];B[md];W[de];B[fe];W[cp];B[jq];W[ep];B[dp];W[do];B[dq];W[cq];B[gq];W[dh];B[np];W[qo];B[dm];W[cn];B[cm];W[fo];B[cj];W[dc];B[eb];W[hp];B[hq];W[bi];B[gl];W[hd];B[he];W[ge];B[gd];W[gf];B[ie];W[fd];B[gc];W[ed];B[fc];W[da];B[eh];W[di];B[ee];W[dd];B[fg];W[hf];B[dg];W[cg];B[if];W[hh];B[gh];W[ig];B[jg];W[hi];B[fj];W[jh];B[kg];W[ic];B[ib];W[id];B[hb];W[ej];B[fk];W[ff];B[ng];W[ef];B[oe];W[pe];B[of];W[pg];B[kh];W[dk];B[gn];W[ip];B[ck];W[ek];B[el];W[en];B[bn];W[dr];B[er];W[fm];B[bo];W[co];B[em];W[gm];B[hm];W[fn];B[fl];W[iq];B[cr];W[bl];B[bm];W[jr];B[gp];W[go];B[ho];W[hr];B[gr];W[hn];B[io];W[in];B[jo];W[jp];B[ko];W[lq];B[lp];W[kp];B[lo];W[jm];B[mq];W[lr];B[qm];W[qi];B[pp];W[qp];B[br];W[qk];B[rb];W[rd];B[ll];W[kl];B[pr];W[pq];B[oq];W[qr];B[hs];W[ir];B[lm];W[hl];B[eg];W[df];B[bj];W[ci];B[ai];W[ah];B[aj];W[bh];B[dl];W[nh];B[om];W[mg];B[mf];W[mh];B[lf];W[oo];B[pf];W[qf];B[rk];W[rj];B[pk];W[ql];B[pl];W[pn];B[rl];W[qj];B[pm];W[rn];B[rm];W[no];B[op];W[qn];B[kk];W[oj];B[km];W[hk];B[jl];W[mo];B[mp];W[nl];B[on];W[mn];B[nm];W[po];B[mm];W[bp];B[ei];W[dj];B[il];W[im];B[gj];W[fp];B[gg];W[fq];B[fr];W[dn];B[db];W[cb];B[ea];W[ca];B[pj];W[pi];B[os];W[qs];B[mr];W[is];B[nj];W[gs];B[ar];W[ok];B[nk];W[og];B[nf];W[oi];B[sb];W[ol];B[ji];W[hg];B[sn];W[so];B[sm];W[jj];B[kj];W[ii];B[ki];W[jk];B[sc];W[sd];B[sj];W[si];B[sk];W[gi];B[fi];W[ni];B[mj];W[ms];B[ns];W[ls];B[ps];W[ao];B[an];W[ap];B[sp];W[ro];B[sr];W[sq];B[rq];W[rr];B[mi];W[ml];B[mk];W[lh];B[li];W[ik];B[kl];W[hj];B[ln];W[rp];B[jn];W[ih];B[ds];W[fs])goban-1.1.orig/games/Hon-84-4.mgt0000644000175000017500000000160506045540442014102 0ustar alal (;GM[1]SZ[19]PW[Awaji Shuzo]PB[Rin Kaiho]DT[1984-06-20,21]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[dq];W[qp];B[ce];W[ck];B[co];W[ch];B[oq] ;W[kp];B[on];W[qm];B[ip];W[kn];B[pl];W[ql];B[pk];W[qk];B[pj] ;W[qi];B[kl];W[mn];B[po];W[qo];B[ml];W[in];B[gp];W[mq];B[gc] ;W[ed];B[jc];W[nm];B[pm];W[qj];B[oh];W[nl];B[nk];W[kd];B[kc] ;W[ld];B[ie];W[kg];B[ki];W[lc];B[bc];W[gd];B[fc];W[fd];B[hc] ;W[ig];B[hg];W[if];B[hf];W[he];B[je];W[kf];B[hh];W[lb];B[cb] ;W[eg];B[dg];W[de];B[cf];W[dh];B[eh];W[fh];B[ei];W[fg];B[fj] ;W[db];B[hd];W[ge];B[ih];W[li];B[lh];W[ib];B[ke];W[le];B[lf] ;W[lg];B[mf];W[mg];B[nf];W[kh];B[jd];W[kj];B[ji];W[mj];B[ng] ;W[nh];B[ni];W[mh];B[jf];W[jg];B[ic];W[oi];B[pi];W[og];B[ph] ;W[of];B[ne];W[oe];B[nd];W[od];B[nc];W[oc];B[ob];W[pb];B[nb] ;W[pc];B[lk];W[lj];B[jl];W[ik];B[jk];W[jj];B[ij];W[hj];B[ii] ;W[nj];B[oj];W[mk];B[ok];W[il];B[oi];W[gi];B[mi];W[bg];B[bf] ;W[el];B[qh];W[cq];B[dp])goban-1.1.orig/games/M-68-4.sgf0000644000175000017500000000327406252650352013552 0ustar alal( ; GM[1] EV[7th Meijin Title Match] RO[4] PB[Rin Kaiho] BR[Meijin] PW[Takagawa Shukaku] WR[9 dan] DT[1968/Sep/21,22] PC[Tokyo] RE[W+J] KM[5] SZ[19] ;B[qd];W[cd];B[ec];W[pp];B[eq];W[hd];B[oc];W[dc];B[cp];W[ed] ;B[cj];W[qj];B[nq];W[pn];B[jp];W[cl];B[ek];W[co];B[dp];W[em] ;B[bo];W[dj];B[dk];W[ck];B[ci];W[di];B[ch];W[dh];B[cg];W[cn] ;B[fi];W[fh];B[gh];W[dg];B[be];W[bd];B[cf];W[fg];B[bn];W[gm] ;B[gk];W[im];B[jj];W[jl];B[jh];W[kd];B[qg];W[pr];B[pm];W[on] ;B[pk];W[qc];B[pd];W[qh];B[pg];W[oi];B[nk];W[mj];B[hn];W[hm] ;B[mk];W[lj];B[lk];W[kj];B[kk];W[jk];B[ij];W[lh];B[mn];W[kn] ;B[mh];W[nj];B[lo];W[kg];B[gg];W[ce];B[bk];W[bl];B[ak];W[hf] ;B[gf];W[ge];B[ff];W[df];B[hg];W[io];B[if];W[ip];B[ee];W[de] ;B[fd];W[om];B[lm];W[ko];B[lp];W[ln];B[mm];W[qk];B[jq];W[iq] ;B[jr];W[bf];B[bg];W[ae];B[ag];W[eo];B[lc];W[kc];B[ld];W[eb] ;B[dd];W[bi];B[ai];W[ed];B[pl];W[rm];B[dd];W[bj];B[bh];W[ed] ;B[qm];W[rn];B[dd];W[ob];B[pc];W[ed];B[kb];W[jb];B[lb];W[fc] ;B[oq];W[pq];B[gq];W[fl];B[fk];W[ir];B[or];W[fp];B[gp];W[go] ;B[ps];W[qs];B[os];W[qr];B[qn];W[qo];B[mg];W[lq];B[lr];W[kp] ;B[no];W[kq];B[kr];W[rg];B[rf];W[rh];B[he];W[id];B[jc];W[jd] ;B[oh];W[ph];B[og];W[gr];B[fr];W[fs];B[hr];W[hs];B[es];W[hq] ;B[fq];W[dr];B[cr];W[lf];B[mf];W[gd];B[ja];W[jg];B[ig];W[ib] ;B[ia];W[ha];B[ka];W[sf];B[re];W[hb];B[le];W[er];B[gs];W[rc] ;B[rd];W[fs];B[dq];W[ds];B[cs];W[fe];B[ef];W[dl];B[bm];W[al] ;B[aj];W[am];B[km];W[jm];B[cm];W[dm];B[do];W[dn];B[jo];W[jn] ;B[oo];W[po];B[js];W[mp];B[mo];W[mq];B[mr];W[ji];B[ii];W[ki] ;B[ie];W[is];B[pj];W[pi];B[af];W[be];B[se];W[sg];B[es];W[gs] ;B[eg];W[eh];B[ep];W[fo];B[hp];W[ho];B[bp];W[nl];B[ol];W[nm] ;B[an];W[ql];B[ok];W[nh];B[mi];W[ni];B[ng];W[hk];B[hj];W[ej] ;B[fj] ) goban-1.1.orig/games/M-94-4.mgt0000644000175000017500000000340406252627044013556 0ustar alal(;GM[1]SZ[19]DT[1994-10-12,13]KM[5.5]RO[4]PC[Shichifuku-So, Takarazuka, Hyogo]PB[Kobayashi Koichi]PW[Rin Kaiho]RE[B+3.5]TM[8 hours each]FF[3]ID[94/4]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[cp];B[eq];W[qn];B[qp];W[pj];B[qh] ;W[on];B[mp];W[hp];B[fp];W[dn];B[cr];W[ck];B[fc];W[df];B[db] ;W[gc];B[gd];W[hc];B[hd];W[fb];B[ec];W[jc];B[id];W[kb];B[cc] ;W[qf];B[pf];W[qe];B[pe];W[qd];B[qc];W[rc];B[rb];W[qb];B[pc] ;W[sb];B[qg];W[ra];B[ql];W[op];B[oq];W[rj];B[qk];W[qj];B[ol] ;W[og];B[rf];W[re];B[se];W[rd];B[oh];W[nh];B[oi];W[nl];B[nm] ;W[pl];B[nk];W[pk];B[ng];W[cd];B[eb];W[di];B[rn];W[ro];B[qo] ;W[rm];B[pn];W[qm];B[jp];W[hn];B[en];W[gq];B[do];W[cn];B[co] ;W[bo];B[dp];W[jq];B[kp];W[iq];B[kr];W[po];B[om];W[pm];B[em] ;W[hl];B[bm];W[bn];B[go];W[ho];B[cj];W[dk];B[bk];W[ci];B[cl] ;W[cq];B[dj];W[dr];B[er];W[br];B[ej];W[bi];B[ld];W[mc];B[lc] ;W[lb];B[md];W[nc];B[ik];W[kq];B[lq];W[jr];B[lr];W[gk];B[fl] ;W[il];B[jk];W[gi];B[ih];W[nd];B[nf];W[jd];B[bd];W[be];B[bc] ;W[fh];B[ke];W[ii];B[ji];W[jg];B[je];W[ig];B[jh];W[hh];B[kg] ;W[lm];B[ml];W[lo];B[kn];W[ln];B[jl];W[ll];B[lk];W[rp];B[rq] ;W[hf];B[mo];W[pp];B[qq];W[ko];B[jo];W[km];B[jm];W[jn];B[in] ;W[im];B[kn];W[bj];B[ek];W[jn];B[ce];W[bf];B[kn];W[nn];B[mn] ;W[jn];B[ee];W[de];B[kn];W[oj];B[nj];W[jn];B[ob];W[io];B[nb] ;W[fa];B[ic];W[ib];B[hb];W[gb];B[ha];W[ia];B[la];W[kc];B[mb] ;W[ka];B[lp];W[kf];B[kh];W[jf];B[lf];W[rg];B[rh];W[sf];B[sp] ;W[sn];B[mm];W[in];B[ff];W[ed];B[fd];W[ef];B[fe];W[np];B[nq] ;W[fg];B[ei];W[eh];B[kl];W[kn];B[es];W[dq];B[hr];W[gr];B[gs] ;W[gn];B[fn];W[gp];B[fo];W[ep];B[eo];W[hk];B[ij];W[gf];B[hj] ;W[gj];B[ie];W[ak];B[dl];W[am];B[bl];W[al];B[pb];W[gm];B[fq] ;W[ma];B[ds];W[cs];B[si];W[sj];B[ea];W[ga];B[hi];W[no];B[ae] ;W[af];B[ad];W[is];B[hs];W[ks];B[ls];W[pa];B[sq];W[so];B[js] ;W[ir];B[ks])goban-1.1.orig/games/M-96-2.sgf0000644000175000017500000000135706252641734013555 0ustar alal( ; EV[21st Meijin title] RO[2] PB[Takemiya Masaki] BR[9 dan] PW[Cho Chikun] WR[9 dan] KM[5.5] DT[1996-09-18/19] PC[Japan] RE[B+R] ; B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[oe];W[qc];B[pc];W[qd]; B[qf];W[rf];B[rg];W[re];B[qg];W[pb];B[ob];W[qb];B[mp];W[fq]; B[ci];W[cg];B[dl];W[cn];B[qo];W[ec];B[jp];W[jd];B[ei];W[eg]; B[kk];W[me];B[kf];W[ke];B[lf];W[jf];B[jg];W[mf];B[if];W[je]; B[ig];W[mg];B[mj];W[mq];B[lq];W[nq];B[lr];W[qq];B[pq];W[pr]; B[rq];W[rr];B[rp];W[oq];B[mr];W[oo];B[mn];W[nr];B[qp];W[pk]; B[pm];W[oj];B[ok];W[qr];B[os];W[ol];B[nk];W[qj];B[pi];W[pl]; B[qm];W[ns];B[sr];W[om];B[op];W[qi];B[oi];W[rl];B[qh];W[rm]; B[rn];W[ri];B[ql];W[qk];B[sm];W[sk];B[sh];W[og];B[oh];W[np]; B[no];W[mm];B[nn];W[lp];B[kp];W[lo];B[ln];W[ko];B[mo];W[jo]; B[km] ) goban-1.1.orig/games/Hon-84-5.mgt0000644000175000017500000000205206045540442014100 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Awaji Shuzo]DT[1984-06-28,29]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[dq];W[pp];B[ce];W[di];B[fe];W[ee];B[ef] ;W[ed];B[df];W[ff];B[ge];W[gf];B[he];W[fh];B[bc];W[gc];B[hc] ;W[hb];B[ib];W[ic];B[hd];W[cg];B[cf];W[bb];B[bd];W[gb];B[jc] ;W[ab];B[ch];W[dh];B[bg];W[ci];B[bh];W[oc];B[gh];W[gi];B[fg] ;W[hh];B[gg];W[hi];B[jg];W[co];B[ep];W[iq];B[dn];W[cm];B[el] ;W[cn];B[gq];W[qb];B[kq];W[mq];B[jp];W[hl];B[fn];W[qg];B[pe] ;W[rc];B[pj];W[of];B[nd];W[nc];B[qc];W[rb];B[qf];W[rf];B[re] ;W[rh];B[ne];W[mg];B[ck];W[bq];B[ji];W[jk];B[pc];W[pb];B[mc] ;W[kh];B[jh];W[lj];B[mb];W[if];B[ig];W[le];B[kf];W[lf];B[oa] ;W[pa];B[ld];W[sc];B[sf];W[ke];B[je];W[qo];B[no];W[lp];B[kk] ;W[kj];B[jj];W[jl];B[lk];W[mk];B[km];W[nj];B[lm];W[dl];B[nl] ;W[pl];B[pn];W[qn];B[ok];W[qi];B[nq];W[oq];B[fk];W[dk];B[hk] ;W[np];B[ko];W[ml];B[nm];W[lo];B[ln];W[kr];B[ej];W[fi];B[bj] ;W[bi];B[ai];W[ek];B[fj];W[dj];B[br];W[cq];B[cr];W[dr];B[er] ;W[bl];B[jr];W[jq];B[kp];W[lr];B[ir];W[gl];B[fl];W[gk];B[im] ;W[il];B[bk];W[hn];B[cl];W[dm];B[bm];W[bn];B[al];W[en];B[eo] ;W[em])goban-1.1.orig/games/M-89-4.mgt0000644000175000017500000000342006252627042013556 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Awaji Shuzo]DT[1989-10-18,19]RE[W+2.5]ID[89/4]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qe];W[dp];B[ed];W[pp];B[pc];W[cc];B[de];W[eb];B[fc] ;W[fb];B[hc];W[qj];B[bd];W[bc];B[cn];W[dk];B[en];W[fp];B[fk] ;W[ei];B[gn];W[hp];B[gi];W[dm];B[dn];W[ch];B[bk];W[bl];B[cl] ;W[ck];B[bm];W[bj];B[al];W[fg];B[dg];W[cg];B[fh];W[eh];B[eg] ;W[gg];B[cd];W[ad];B[ae];W[ac];B[gh];W[be];B[bf];W[af];B[cf] ;W[ef];B[df];W[bg];B[hg];W[nq];B[pi];W[oc];B[pd];W[pb];B[qb] ;W[lc];B[jc];W[jb];B[ib];W[kc];B[jd];W[od];B[ob];W[nb];B[pa] ;W[me];B[mb];W[mc];B[na];W[nc];B[ql];W[pj];B[oj];W[ok];B[qi] ;W[pk];B[nk];W[pm];B[ne];W[ke];B[lf];W[mf];B[nl];W[om];B[oe] ;W[mh];B[le];W[ld];B[kf];W[nj];B[oi];W[ni];B[lk];W[oh];B[mj] ;W[qg];B[ng];W[mg];B[nh];W[mi];B[og];W[jf];B[kg];W[rj];B[ri] ;W[lj];B[kk];W[mk];B[ml];W[jg];B[kh];W[jh];B[ki];W[kj];B[ji] ;W[jj];B[ii];W[jk];B[km];W[jm];B[jn];W[jl];B[ln];W[in];B[jo] ;W[io];B[jq];W[mm];B[lm];W[kl];B[mq];W[mp];B[lq];W[nr];B[nm] ;W[ll];B[nn];W[mo];B[mn];W[oo];B[hq];W[iq];B[ir];W[jp];B[kp] ;W[ip];B[gr];W[jr];B[kq];W[ko];B[lo];W[kn];B[lp];W[ph];B[qh] ;W[pg];B[rg];W[si];B[rh];W[fr];B[qo];W[po];B[no];W[np];B[qq] ;W[rn];B[qn];W[rm];B[qm];W[rl];B[mr];W[ns];B[eq];W[fq];B[cq] ;W[cp];B[bp];W[dq];B[br];W[cr];B[bq];W[gb];B[kb];W[lb];B[ja] ;W[gc];B[gd];W[ec];B[fd];W[dl];B[aj];W[bi];B[dr];W[hr];B[hs] ;W[gq];B[hr];W[es];B[kr];W[cs];B[bs];W[ds];B[kd];W[ma];B[rf] ;W[cm];B[bl];W[hj];B[hi];W[oa];B[ro];W[qp];B[na];W[nf];B[of] ;W[oa];B[rp];W[qr];B[na];W[gl];B[dh];W[di];B[ij];W[fm];B[fn] ;W[gj];B[em];W[el];B[fj];W[ik];B[fi];W[oa];B[pr];W[pq];B[na] ;W[hb];B[oa];W[hd];B[ic];W[he];B[hf];W[dc];B[dd];W[la];B[ka] ;W[ha];B[ia];W[gm];B[hn];W[hm];B[sh];W[sj];B[co];W[ep];B[ej] ;W[dj];B[gk];W[hk];B[nd];W[md];B[ol];W[pl];B[on];W[pn];B[ms] ;W[go];B[bn];W[ai];B[ak])goban-1.1.orig/games/Hon-45-3.sgf0000644000175000017500000000314606243706744014101 0ustar alal( ; GM[1] SZ[19] DT[1945-11-] RO[3] FF[3] BR[7 dan] WR[7 dan] KM[0] PB[Hashimoto Utaro] PW[Iwamoto Kaoru] RE[B+3] TM[12 hours each] ID[ 3/3] ;B[qd];W[dc];B[pq];W[oc];B[cp];W[pn];B[np];W[eq];B[ce] ;W[dh];B[ld];W[md];B[le];W[me];B[lc];W[pg];B[hp];W[cq];B[bq] ;W[dp];B[co];W[cr];B[dm];W[gc];B[fd];W[fc];B[cc];W[cb];B[dd] ;W[ec];B[bc];W[mn];B[nn];W[nm];B[no];W[om];B[mm];W[ln];B[ml] ;W[lp];B[kl];W[in];B[fp];W[hr];B[gr];W[gq];B[hq];W[fr];B[jq] ;W[jp];B[ok];W[qk];B[pl];W[qp];B[qq];W[ql];B[pc];W[od];B[pm] ;W[qm];B[qf];W[on];B[qg];W[mg];B[kg];W[rp];B[lq];W[mq];B[mp] ;W[kq];B[lr];W[kr];B[lo];W[kp];B[mr];W[do];B[dn];W[ck];B[cl] ;W[dk];B[fn];W[pe];B[qe];W[km];B[ic];W[bb];B[bh];W[pi];B[jl] ;W[lk];B[ll];W[hm];B[gl];W[hl];B[hk];W[gk];B[fl];W[ik];B[hj] ;W[il];B[ki];W[fk];B[lj];W[br];B[bk];W[bj];B[bl];W[gi];B[hi] ;W[hh];B[jj];W[gh];B[ci];W[jh];B[kh];W[ie];B[jg];W[hf];B[gp] ;W[gs];B[ko];W[ih];B[pf];W[og];B[of];W[nf];B[nh];W[ni];B[oi] ;W[oh];B[mh];W[ng];B[oj];W[qh];B[df];W[ij];B[cj];W[ob];B[qb] ;W[kb];B[jd];W[ib];B[jb];W[ja];B[jc];W[hb];B[rq];W[sq];B[sr] ;W[sp];B[pp];W[po];B[jm];W[jn];B[kn];W[rg];B[rf];W[sh];B[ej] ;W[ek];B[ji];W[ii];B[bp];W[ac];B[ad];W[ab];B[be];W[sf];B[se] ;W[sd];B[sg];W[je];B[kf];W[sf];B[rd];W[re];B[sc];W[lb];B[mc] ;W[mb];B[rr];W[iq];B[ol];W[jk];B[kk];W[lh];B[mi];W[lg];B[nc] ;W[nd];B[eh];W[eg];B[ei];W[dg];B[ef];W[fg];B[cg];W[lf];B[ke] ;W[kc];B[kd];W[ch];B[bi];W[pb];B[qa];W[pd];B[qc];W[ar];B[aq] ;W[eo];B[gn];W[li];B[mj];W[ed];B[ee];W[fe];B[ff];W[gd];B[pj] ;W[qj];B[nb];W[na];B[gf];W[ge];B[fq];W[ls];B[ms];W[ks];B[gr] ;W[jr];B[oo];W[jo];B[lm];W[nl];B[nk];W[qn];B[pa];W[oa];B[ig] ;W[oe];B[gg];W[fh];B[hg];W[dl];B[gq] ) goban-1.1.orig/games/Nih-74-5.mgt0000644000175000017500000000321006377113370014072 0ustar alal(;SZ[19]EV[22nd Nihon Ki-in Championship]RO[5]PB[Sakata]PW[Cho Chikun]RE[B+4.5]DT[1975-02-06];B[pd];W[dc];B[dq];W[qp];B[de];W[ce];B[cf];W[cd];B[dg];W[ef];B[df];W[fd];B[cl];W[oq];B[jc];W[qf];B[nd];W[pj];B[jp];W[ho];B[do];W[hq];B[iq];W[cq];B[cp];W[eq];B[dr];W[ep];B[dp];W[hr];B[in];W[io];B[jo];W[jn];B[np];W[kn];B[nq];W[op];B[lp];W[ir];B[jr];W[no];B[mo];W[nn];B[mn];W[mm];B[im];W[ln];B[or];W[pr];B[lm];W[ll];B[nm];W[km];B[ml];W[lm];B[nr];W[gm];B[ik];W[lo];B[mp];W[oo];B[qr];W[ps];B[nl];W[kq];B[kr];W[jq];B[kp];W[ip];B[nj];W[il];B[jl];W[lk];B[lq];W[hl];B[ql];W[mj];B[oj];W[rd];B[qc];W[ph];B[qj];W[pk];B[pl];W[ok];B[nk];W[qi];B[rj];W[qn];B[mi];W[ol];B[om];W[pm];B[ro];W[qm];B[qo];W[pn];B[pq];W[rp];B[qq];W[li];B[pp];W[po];B[sp];W[qk];B[mh];W[lh];B[mg];W[md];B[me];W[kd];B[kj];W[lj];B[lg];W[jd];B[hd];W[nc];B[mc];W[ld];B[nb];W[oc];B[od];W[mb];B[ob];W[jf];B[jg];W[if];B[kh];W[jm];B[ge];W[gf];B[ed];W[fe];B[ec];W[db];B[eb];W[gb];B[bb];W[bc];B[gc];W[hb];B[ic];W[hc];B[fb];W[id];B[cb];W[da];B[be];W[bd];B[dd];W[ab];B[ba];W[cc];B[bf];W[ad];B[ib];W[he];B[ga];W[gd];B[dj];W[lc];B[rc];W[ha];B[rl];W[rk];B[sk];W[pi];B[sm];W[rm];B[sn];W[sl];B[rl];W[dm];B[cm];W[er];B[eo];W[ds];B[cs];W[es];B[cr];W[jj];B[fl];W[fm];B[el];W[em];B[jk];W[ki];B[hk];W[jh];B[gl];W[hm];B[fh];W[dl];B[dk];W[gi];B[fj];W[qe];B[of];W[kg];B[si];W[ql];B[sl];W[rh];B[gh];W[hi];B[hh];W[ii];B[fo];W[fi];B[ei];W[na];B[pc];W[mc];B[pa];W[fp];B[sd];W[se];B[sc];W[sh];B[rq];W[og];B[ng];W[oh];B[ni];W[pf];B[lf];W[oe];B[nf];W[pe];B[ne];W[iq];B[go];W[gp];B[kk];W[gj];B[gk];W[rn];B[so];W[dn];B[cn];W[lr];B[mr];W[hg];B[kf];W[ig];B[eg];W[fc];B[ae];W[ca];B[qd];W[re];B[ke];W[js];B[ls];W[fg];B[ij];W[je];B[ji];W[ih];B[ee];W[ff];B[fa])goban-1.1.orig/games/Hon-65-4.mgt0000644000175000017500000000355106045540374014107 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1965-05-27,28]PB[Sakata Eio]PW[Yamabe Toshiro]RE[B+8.5]FF[3]BR[9 Dan];B[qc];W[oq];B[cd];W[co];B[dq];W[ed];B[df];W[cc];B[bc] ;W[dc];B[be];W[ic];B[dm];W[eo];B[fp];W[ho];B[fo];W[en];B[cp] ;W[hq];B[gq];W[gr];B[fr];W[gp];B[fq];W[bp];B[bq];W[dp];B[cq] ;W[em];B[dk];W[gm];B[gn];W[hm];B[hn];W[in];B[im];W[jn];B[il] ;W[gk];B[fe];W[gc];B[ij];W[cm];B[ip];W[jp];B[qq];W[qn];B[pp] ;W[on];B[op];W[nq];B[np];W[mq];B[mp];W[kq];B[qi];W[qg];B[oi] ;W[mn];B[pm];W[pn];B[ro];W[qo];B[rp];W[qk];B[lp];W[ri];B[lq] ;W[lr];B[rj];W[qj];B[rh];W[pi];B[qh];W[ph];B[pg];W[oh];B[pf] ;W[qd];B[pd];W[pc];B[qe];W[rd];B[pj];W[oj];B[rc];W[od];B[pe] ;W[pb];B[pk];W[rk];B[si];W[ni];B[pl];W[qm];B[ml];W[ll];B[mk] ;W[nl];B[jr];W[kr];B[rn];W[rm];B[nk];W[ok];B[nm];W[ol];B[mm] ;W[om];B[ir];W[qr];B[rr];W[pr];B[iq];W[ln];B[kp];W[lm];B[jq] ;W[ms];B[lk];W[nn];B[cl];W[hk];B[ik];W[hi];B[jh];W[ei];B[ci] ;W[jo];B[qp];W[rs];B[sq];W[dn];B[qb];W[dg];B[cf];W[dl];B[li] ;W[jf];B[lf];W[nf];B[kf];W[jg];B[kg];W[ih];B[ji];W[ld];B[oc] ;W[ob];B[kd];W[kc];B[je];W[jd];B[ie];W[hf];B[ke];W[he];B[id] ;W[jc];B[hd];W[gd];B[hc];W[hb];B[ib];W[jb];B[if];W[ig];B[nc] ;W[nb];B[mc];W[nd];B[ge];W[ee];B[hg];W[gf];B[hj];W[gg];B[gj] ;W[ek];B[gh];W[hh];B[fh];W[ff];B[mb];W[lb];B[pa];W[md];B[eh] ;W[lc];B[ck];W[di];B[dh];W[ch];B[ej];W[dj];B[fi];W[fj];B[cj] ;W[ej];B[bh];W[bn];B[cb];W[db];B[ba];W[bl];B[bk];W[go];B[gb] ;W[ia];B[fn];W[sr];B[ss];W[cg];B[bg];W[sr];B[kn];W[jm];B[ss] ;W[fd];B[eg];W[sr];B[sk];W[sm];B[ss];W[gi];B[kj];W[sr];B[nr] ;W[or];B[ss];W[hr];B[io];W[sr];B[fb];W[da];B[ss];W[hp];B[gs] ;W[sr];B[ha];W[ga];B[ss];W[js];B[hs];W[sr];B[kl];W[jl];B[jk] ;W[km];B[ss];W[qs];B[sr];W[aq];B[ar];W[ap];B[br];W[ep];B[mg] ;W[ks];B[ng];W[sl];B[sj];W[mh];B[lh];W[ra];B[qa];W[og];B[nh] ;W[of];B[mi];W[re];B[rf];W[nj];B[al];W[bm];B[dd];W[oe];B[qf] ;W[fm];B[hl];W[gl];B[de];W[eq];B[er];W[sn];B[so];W[am];B[ak] ;W[ko];B[ec];W[eb];B[me];W[mj];B[kk])goban-1.1.orig/games/Hon-47-2.mgt0000644000175000017500000000300206045540236014071 0ustar alal (;SZ[19]PB[Iwamoto Kaoru]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+8.5]DT[1947-10-]BS[0]WS[0];B[qd];W[dc];B[pq];W[oc];B[cp];W[po];B[pe];W[qq];B[qr] ;W[qp];B[or];W[qk];B[df];W[cd];B[ep];W[ck];B[kc];W[mc];B[hc] ;W[qb];B[qi];W[rc];B[nd];W[md];B[qc];W[rb];B[nc];W[nb];B[od] ;W[ob];B[me];W[le];B[ld];W[lb];B[ke];W[lf];B[kf];W[lg];B[nf] ;W[pi];B[qh];W[qj];B[nh];W[ph];B[qg];W[kg];B[mp];W[jf];B[je] ;W[if];B[he];W[gg];B[ed];W[ec];B[ff];W[cn];B[hq];W[li];B[nj] ;W[pm];B[be];W[bd];B[io];W[en];B[dj];W[cj];B[di];W[ci];B[dh] ;W[bp];B[bq];W[bo];B[ih];W[jh];B[ii];W[hf];B[gf];W[hg];B[lk] ;W[ie];B[id];W[ge];B[hd];W[kb];B[lc];W[jd];B[jc];W[kd];B[mb] ;W[mn];B[ln];W[lm];B[lo];W[km];B[fo];W[ma];B[cr];W[gi];B[jk] ;W[jn];B[jo];W[mk];B[il];W[mj];B[in];W[np];B[nq];W[mo];B[lp] ;W[oh];B[ch];W[gb];B[dk];W[cl];B[mh];W[ni];B[mi];W[oi];B[op] ;W[oo];B[fn];W[fm];B[ce];W[rr];B[rs];W[sr];B[bi];W[bj];B[lj] ;W[ll];B[ki];W[lh];B[og];W[ji];B[jj];W[gm];B[rj];W[rk];B[sk] ;W[rl];B[no];W[nn];B[rd];W[ri];B[si];W[sj];B[pc];W[pb];B[rj] ;W[hk];B[hj];W[gj];B[jm];W[sj];B[ml];W[nk];B[kn];W[mm];B[rj] ;W[mf];B[ng];W[sj];B[dd];W[sh];B[fc];W[fb];B[cc];W[cb];B[bc] ;W[bb];B[ad];W[gc];B[hb];W[gd];B[jb];W[mc];B[ah];W[gn];B[go] ;W[do];B[dp];W[dl];B[el];W[em];B[sg];W[rh];B[pg];W[nl];B[rg] ;W[mb];B[md];W[kl];B[ik];W[hi];B[ij];W[fd];B[fg];W[ab];B[co] ;W[ek];B[hl];W[fe];B[ee];W[gk];B[ej];W[fl];B[eo];W[dn];B[fj] ;W[fi];B[sc];W[sb];B[sd];W[bn];B[ig];W[fk];B[ap];W[ha];B[ia] ;W[ga];B[aj];W[ak];B[ai];W[np];B[pp];W[ao];B[aq];W[eh];B[eg] ;W[hn];B[ho];W[ka];B[ja];W[jg];B[hm];W[jl];B[no])goban-1.1.orig/games/Hon-92-5.mgt0000644000175000017500000000162706045540454014111 0ustar alal (;GM[1]SZ[19]PB[Kobayashi Koichi]PW[Cho Chikun]DT[1992-06-25,26]PC[Yamanashi]RE[W+R]RO[5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[qo];W[jp];B[cj];W[cl];B[cf] ;W[ch];B[bh];W[ci];B[bi];W[dj];B[ck];W[dk];B[bl];W[bm];B[dl] ;W[cm];B[di];W[dh];B[ei];W[ek];B[eh];W[dg];B[ef];W[df];B[de] ;W[ee];B[ce];W[eg];B[ed];W[ff];B[cg];W[fd];B[fg];W[ef];B[ec] ;W[gf];B[dc];W[fi];B[lp];W[lo];B[ko];W[kp];B[mp];W[ln];B[jo] ;W[ip];B[io];W[hp];B[jl];W[ho];B[im];W[ll];B[jj];W[lj];B[ih] ;W[fh];B[li];W[mj];B[ki];W[mi];B[mh];W[nh];B[mg];W[ng];B[nf] ;W[mf];B[kg];W[oo];B[op];W[oe];B[of];W[pe];B[oi];W[om];B[qd] ;W[ph];B[oh];W[og];B[pg];W[ni];B[pf];W[qe];B[ne];W[od];B[oj] ;W[qh];B[rg];W[pk];B[re];W[nd];B[qg];W[qj];B[ld];W[md];B[kc] ;W[me];B[rc];W[lb];B[kb];W[kf];B[ke];W[pc];B[qc];W[jf];B[lf] ;W[le];B[lg];W[nb];B[pb];W[je];B[kd];W[ic];B[ib];W[hb];B[jb] ;W[jd];B[gb];W[ha];B[hc];W[gc];B[hd];W[fb];B[hf];W[he];B[ge] ;W[gd];B[ie];W[hg])goban-1.1.orig/games/M-93-3.mgt0000644000175000017500000000367606252627044013567 0ustar alal(;GM[1]PB[Otake Hideo]BR[9 Dan]PW[Kobayashi Koichi]WR[9 Dan]DT[1993-09-29,30]PC[ ]RE[B+6.5]SZ[19]KM[5.5]ID[93/3]BS[0]WS[0]FF[3];B[qd];W[dp];B[pq];W[dc];B[de];W[ce];B[cf];W[cd];B[gf] ;W[gc];B[pn];W[jq];B[dm];W[fp];B[gm];W[ek];B[fl];W[gj];B[fk] ;W[fj];B[ej];W[ei];B[dj];W[di];B[cj];W[ci];B[bi];W[bh];B[bj] ;W[dg];B[df];W[bf];B[gh];W[fh];B[hd];W[gd];B[ge];W[hc];B[id] ;W[od];B[oc];W[nc];B[pc];W[nd];B[pf];W[if];B[jf];W[je];B[ie] ;W[kf];B[jg];W[jd];B[ic];W[jc];B[ib];W[ig];B[jb];W[lc];B[cg] ;W[ch];B[ec];W[eb];B[ed];W[fb];B[fg];W[qh];B[qg];W[pm];B[kg] ;W[kb];B[ih];W[qn];B[po];W[rg];B[rf];W[pg];B[qf];W[qm];B[qo] ;W[oq];B[or];W[pi];B[hq];W[ip];B[fq];W[dn];B[gp];W[em];B[bg] ;W[ag];B[el];W[cm];B[dl];W[dq];B[fo];W[mq];B[co];W[do];B[bo] ;W[bp];B[er];W[bn];B[cr];W[dr];B[ds];W[br];B[og];W[eg];B[ef] ;W[rh];B[bs];W[bl];B[bq];W[ap];B[lf];W[ke];B[ok];W[pj];B[nq] ;W[mr];B[om];W[ii];B[hh];W[ob];B[pb];W[ro];B[rp];W[rn];B[jo] ;W[lo];B[kp];W[kq];B[hj];W[ko];B[jn];W[lm];B[gi];W[fi];B[be] ;W[af];B[db];W[cb];B[gk];W[ah];B[km];W[nm];B[pl];W[on];B[ol] ;W[oo];B[ql];W[rl];B[rk];W[qp];B[pp];W[qq];B[no];W[qr];B[nn] ;W[qk];B[ln];W[lp];B[kn];W[ni];B[mj];W[nj];B[nk];W[mi];B[ir] ;W[jp];B[le];W[ld];B[li];W[mo];B[mn];W[ar];B[cq];W[cp];B[pr] ;W[rq];B[jr];W[kr];B[nb];W[mb];B[oa];W[sf];B[se];W[sg];B[qe] ;W[fn];B[gn];W[ho];B[go];W[hn];B[hm];W[lh];B[ki];W[aq];B[cs] ;W[ng];B[mg];W[mh];B[nf];W[mk];B[lj];W[oh];B[nh];W[oj];B[hb] ;W[gb];B[dd];W[da];B[me];W[ng];B[ph];W[lg];B[nh];W[ne];B[oi] ;W[md];B[mf];W[oh];B[kc];W[kd];B[oi];W[as];B[es];W[oh];B[dh] ;W[eh];B[oi];W[eq];B[gr];W[oh];B[bd];W[cc];B[oi];W[sd];B[re] ;W[oh];B[bc];W[bb];B[oi];W[gg];B[hg];W[oh];B[ai];W[ac];B[oi] ;W[nl];B[op];W[oh];B[al];W[am];B[oi];W[on];B[oo];W[oh];B[ak] ;W[ng];B[cl];W[bk];B[aj];W[ao];B[nh];W[in];B[im];W[ng];B[of] ;W[fd];B[fe];W[kh];B[jh];W[js];B[is];W[ks];B[eo];W[en];B[ep] ;W[iq];B[hs];W[ma];B[na];W[ck];B[dk];W[bm];B[pd];W[pk];B[on] ;W[qs];B[nr];W[ms];B[pg];W[nh];B[oe];W[ja];B[ga];W[fa];B[ha] )goban-1.1.orig/games/Hon-53-6.mgt0000644000175000017500000000256306045540242014102 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+R]DT[1953-07-07,08]BS[0]WS[0];B[pd];W[dq];B[dd];W[pq];B[po];W[qo];B[qn];W[ro];B[do] ;W[co];B[cn];W[bo];B[pn];W[pp];B[dn];W[dp];B[jd];W[dj];B[dg] ;W[pj];B[no];W[mp];B[go];W[pf];B[nd];W[gq];B[nf];W[hc];B[fc] ;W[jb];B[fj];W[dl];B[fl];W[bm];B[qh];W[ph];B[qi];W[pi];B[qg] ;W[qj];B[pg];W[np];B[ln];W[ni];B[li];W[mk];B[lb];W[he];B[ko] ;W[gc];B[fd];W[kc];B[lk];W[kd];B[pl];W[og];B[of];W[ng];B[mg] ;W[rk];B[ci];W[cj];B[rn];W[ri];B[qf];W[mj];B[lj];W[je];B[rh] ;W[mh];B[lh];W[mo];B[mn];W[nl];B[nn];W[ol];B[kq];W[iq];B[hp] ;W[hq];B[fp];W[fq];B[cl];W[bi];B[bn];W[bg];B[ch];W[bh];B[be] ;W[cm];B[dm];W[bl];B[el];W[ck];B[ao];W[ap];B[an];W[bp];B[mc] ;W[bd];B[ce];W[cc];B[db];W[hh];B[ii];W[gj];B[hk];W[eb];B[dc] ;W[fb];B[da];W[ih];B[mr];W[kr];B[jr];W[jq];B[lq];W[jo];B[or] ;W[pr];B[io];W[jp];B[jn];W[ir];B[lr];W[js];B[lo];W[ep];B[eo] ;W[hj];B[ij];W[gk];B[gl];W[jh];B[ik];W[ll];B[kl];W[fg];B[ff] ;W[eg];B[df];W[ef];B[ee];W[gf];B[rq];W[rp];B[rr];W[ps];B[op] ;W[oq];B[nq];W[rs];B[oo];W[os];B[nr];W[sp];B[sn];W[qq];B[sr] ;W[qc];B[pb];W[pc];B[ob];W[mf];B[me];W[lg];B[le];W[gp];B[fo] ;W[bf];B[ae];W[lm];B[km];W[fe];B[ec];W[gd];B[fi];W[gi];B[cf] ;W[ji];B[si];W[sj];B[rj];W[jj];B[jk];W[ri];B[sh];W[qr];B[so] ;W[kb];B[rj];W[oc];B[qd];W[ri];B[kg];W[kf];B[rj];W[kh];B[sk] ;W[rl];B[pk];W[ok];B[om];W[qk];B[gh];W[fh];B[hi];W[gg];B[lf] ;W[mg];B[ke];W[jf];B[nb])goban-1.1.orig/games/Nih-74-1.mgt0000644000175000017500000000166406377113266014105 0ustar alal(;SZ[19]EV[22nd Nihon Ki-in Championship]RO[1]PB[Cho]PW[Sakata]RE[B+R]SO[Kido Yearbook]DT[1974-12-25];B[pd];W[cq];B[pp];W[dd];B[pj];W[nq];B[lq];W[lp];B[kp];W[mp];B[oq];W[kq];B[jq];W[kr];B[jp];W[jr];B[ir];W[mr];B[js];W[lr];B[or];W[hq];B[iq];W[hp];B[kn];W[mn];B[kl];W[ep];B[om];W[oo];B[po];W[op];B[on];W[nn];B[cj];W[nc];B[pf];W[jd];B[cf];W[cl];B[cc];W[cd];B[dc];W[ed];B[bd];W[be];B[bc];W[ce];B[fc];W[df];B[ej];W[el];B[gj];W[di];B[dl];W[dm];B[dk];W[cm];B[fl];W[em];B[ml];W[hk];B[ei];W[dh];B[ii];W[jk];B[hm];W[gm];B[gl];W[hl];B[im];W[jl];B[jm];W[kk];B[ki];W[lj];B[li];W[mj];B[ni];W[nj];B[no];W[np];B[oj];W[ll];B[lm];W[km];B[ln];W[io];B[kl];W[hj];B[hi];W[km];B[jn];W[gk];B[fk];W[gi];B[fj];W[gh];B[il];W[ik];B[hg];W[gg];B[dj];W[mi];B[mh];W[nh];B[oi];W[lh];B[mg];W[lg];B[jg];W[hh];B[lf];W[mf];B[ng];W[kf];B[kj];W[ec];B[eb];W[fb];B[gb];W[gc];B[fa];W[jh];B[ih];W[kh];B[ji];W[le];B[hf];W[gf];B[he];W[hd];B[ge];W[ig];B[if];W[fd];B[ff];W[fg];B[fe];W[ef];B[lk])goban-1.1.orig/games/Hon-80-4.mgt0000644000175000017500000000251506045540434014100 0ustar alal (;GM[1]SZ[19]DT[1980-06-18,19]PC[Yunoyama]RE[B+R]PW[Kato Masao]PB[Takemiya Masaki]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[cc];B[pk];W[nc];B[pf];W[pb];B[qc] ;W[kc];B[jp];W[po];B[qp];W[op];B[oq];W[mp];B[nq];W[mm];B[fq] ;W[dn];B[df];W[fd];B[ci];W[ck];B[cq];W[dq];B[dr];W[cp];B[br] ;W[bq];B[cr];W[bf];B[ei];W[ff];B[ek];W[dl];B[dc];W[cd];B[dd] ;W[dh];B[fc];W[gc];B[cb];W[bb];B[eb];W[ca];B[gb];W[hc];B[hb] ;W[de];B[ee];W[ce];B[fe];W[ge];B[ed];W[ef];B[gf];W[he];B[fg] ;W[eg];B[fh];W[gg];B[hf];W[gh];B[gi];W[if];B[hg];W[hh];B[ig] ;W[hi];B[hj];W[jg];B[ih];W[ii];B[jh];W[ij];B[kh];W[hk];B[di] ;W[cg];B[gj];W[ik];B[eh];W[dg];B[dk];W[cl];B[fj];W[db];B[gd] ;W[hd];B[fd];W[ib];B[ic];W[jc];B[id];W[ie];B[jd];W[ke];B[jb] ;W[kd];B[ia];W[mg];B[mh];W[ng];B[mj];W[pg];B[qg];W[ph];B[ll] ;W[kn];B[jm];W[ml];B[mk];W[jn];B[im];W[kl];B[km];W[lm];B[lk] ;W[in];B[hm];W[gl];B[fm];W[gm];B[hn];W[gn];B[ho];W[kp];B[kq] ;W[lq];B[ko];W[lo];B[lp];W[cj];B[dj];W[kp];B[kf];W[je];B[lp] ;W[fa];B[ea];W[kp];B[lf];W[lg];B[kg];W[me];B[lp];W[lh];B[ki] ;W[kp];B[md];W[nd];B[lp];W[fb];B[ga];W[kp];B[le];W[ne];B[lp] ;W[kj];B[li];W[kp];B[kb];W[mc];B[lp];W[oj];B[ok];W[kp];B[pj] ;W[qf];B[lp];W[nl];B[pi];W[qh];B[kp];W[qo];B[mo];W[ql];B[om] ;W[pm];B[on];W[ol];B[pl];W[oo];B[nn];W[mn];B[no];W[np];B[ln] ;W[rp];B[rq];W[lo];B[pn];W[qm];B[ln];W[rr];B[lo];W[sq];B[mq] ;W[qq];B[fn];W[fo];B[eo];W[en];B[el])goban-1.1.orig/games/Hon-55-1.mgt0000644000175000017500000000305406045540244014075 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1955-05-06,07]BR[8 Dan]KM[4.5]RO[1]PC[Hirano]PB[Takagawa Kaku]PW[Shimamura Toshihiro]RE[B+1.5]TM[10h]FF[3];B[pd];W[dc];B[dq];W[co];B[pp];W[nq];B[pn];W[ce];B[jc] ;W[qi];B[qk];W[qf];B[qe];W[pf];B[nd];W[gq];B[ep];W[jp];B[cl] ;W[dm];B[dl];W[em];B[cm];W[eo];B[gp];W[dp];B[eq];W[cq];B[hq] ;W[cr];B[ch];W[ir];B[fo];W[hr];B[gr];W[el];B[ho];W[qq];B[pq] ;W[pr];B[or];W[qr];B[oq];W[ro];B[np];W[jn];B[rn];W[qo];B[qn] ;W[hc];B[rf];W[rg];B[re];W[oi];B[ld];W[qp];B[ok];W[nr];B[ns] ;W[mp];B[mo];W[no];B[op];W[mn];B[lo];W[lp];B[nn];W[ln];B[ko] ;W[kp];B[oo];W[jo];B[dj];W[gn];B[iq];W[jr];B[fn];W[cn];B[fm] ;W[bg];B[mq];W[lr];B[mr];W[bh];B[bi];W[im];B[cg];W[cf];B[ah] ;W[bf];B[mj];W[oe];B[od];W[mh];B[ki];W[eg];B[nf];W[ng];B[lg] ;W[nj];B[nk];W[lj];B[li];W[mi];B[mk];W[mf];B[hl];W[kn];B[ne] ;W[lh];B[kh];W[kg];B[lf];W[kf];B[ke];W[mg];B[le];W[rj];B[he] ;W[gm];B[fl];W[ek];B[ej];W[jj];B[ii];W[fk];B[fq];W[jb];B[gc] ;W[gb];B[ic];W[ib];B[hd];W[hb];B[kb];W[fc];B[hh];W[gf];B[bn] ;W[bo];B[bm];W[hf];B[if];W[gd];B[hg];W[id];B[jd];W[ka];B[lb] ;W[la];B[ma];W[ja];B[mc];W[en];B[og];W[pg];B[of];W[oh];B[gl] ;W[no];B[mo];W[jl];B[ao];W[ap];B[an];W[bq];B[rk];W[ge];B[ie] ;W[ag];B[ci];W[ai];B[bj];W[lk];B[ll];W[kl];B[dg];W[ef];B[ml] ;W[dr];B[so];W[sp];B[sn];W[sr];B[er];W[eh];B[oj];W[ni];B[pe] ;W[si];B[pj];W[pi];B[sg];W[sh];B[sf];W[dk];B[ck];W[gi];B[ei] ;W[ji];B[jh];W[ij];B[fg];W[fh];B[gg];W[hi];B[ih];W[ff];B[kj] ;W[kk];B[df];W[de];B[lq];W[kr];B[hs];W[is];B[gs];W[dh];B[di] ;W[mm];B[nm];W[es];B[fs];W[ds];B[ik];W[il];B[hk];W[lm];B[ip] ;W[ps];B[lo];W[aj];B[ak];W[ah];B[sk];W[ls];B[me])goban-1.1.orig/games/M-67-1.mgt0000644000175000017500000000305706252627042013555 0ustar alal(;GM[1]VW[]FF[3]DT[1967-08-09,10]PC[Tokyo]RE[B+2]SZ[19]PB[Rin Kaiho]PW[Sakata Eio]ID[67/1]BS[0]WS[0];B[qd];W[dd];B[oc];W[qq];B[dq];W[co];B[dl];W[dn];B[fp] ;W[bq];B[jq];W[qi];B[np];W[pp];B[qg];W[lq];B[lp];W[mq];B[mp] ;W[nq];B[kq];W[op];B[fc];W[df];B[jd];W[cj];B[fn];W[ej];B[qk] ;W[pj];B[pk];W[nj];B[ok];W[oj];B[ml];W[lj];B[kk];W[dc];B[ck] ;W[bj];B[ji];W[og];B[ee];W[de];B[fk];W[hc];B[hd];W[gc];B[fd] ;W[fb];B[eb];W[gb];B[ec];W[id];B[ie];W[gd];B[ge];W[he];B[hf] ;W[hd];B[gf];W[je];B[if];W[kd];B[jc];W[kc];B[jb];W[kb];B[ib] ;W[ka];B[eh];W[ch];B[ke];W[jf];B[kf];W[jg];B[lh];W[ih];B[jh] ;W[ig];B[hi];W[gg];B[gh];W[kg];B[lg];W[lf];B[le];W[mf];B[me] ;W[nd];B[ne];W[nf];B[lc];W[lb];B[oe];W[kh];B[ki];W[li];B[hg] ;W[mh];B[ii];W[mg];B[mb];W[ld];B[md];W[mc];B[nc];W[ia];B[lc] ;W[hb];B[br];W[cq];B[cr];W[dp];B[eq];W[eo];B[fo];W[nl];B[nm] ;W[mm];B[mn];W[om];B[lm];W[nk];B[on];W[pn];B[cm];W[bn];B[pm] ;W[ol];B[po];W[qn];B[qo];W[oo];B[rn];W[qm];B[rm];W[nn];B[rj] ;W[ro];B[ql];W[qp];B[ri];W[kr];B[jr];W[db];B[da];W[ca];B[ea] ;W[cb];B[bp];W[ap];B[bm];W[en];B[ao];W[aq];B[ar];W[cp];B[fj] ;W[kj];B[jj];W[mm];B[ln];W[pf];B[lr];W[qe];B[rd];W[re];B[rg] ;W[pe];B[pd];W[ms];B[ma];W[mc];B[oq];W[or];B[lc];W[ja];B[mr] ;W[nr];B[ks];W[sd];B[sc];W[se];B[rc];W[sg];B[sh];W[qh];B[rh] ;W[el];B[ek];W[fm];B[gm];W[dj];B[dk];W[ef];B[fg];W[ll];B[kl] ;W[of];B[bk];W[mc];B[od];W[mk];B[aj];W[ai];B[ak];W[ci];B[dh] ;W[cg];B[rl];W[ei];B[fi];W[an];B[cn];W[em];B[am];W[bo];B[fl] ;W[no];B[mo];W[sn];B[sm];W[so];B[pg];W[ph];B[pl];W[fa];B[lk] ;W[ml];B[sf];W[lc];B[ep];W[rf];B[hh];W[ns];B[ls];W[eg];B[sg] )goban-1.1.orig/games/Hon-88-5.mgt0000644000175000017500000000207506045540446014115 0ustar alal (;GM[1]PB[Takemiya Masaki]PW[Otake Hideo]SZ[19]FF[3]DT[1988-06-29,30]PC[Toi]RE[B+R]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pp];W[cp];B[ep];W[eq];B[fq];W[dq];B[fp] ;W[cn];B[jp];W[qn];B[ql];W[qq];B[pq];W[qp];B[po];W[rn];B[om] ;W[nc];B[kd];W[ne];B[pf];W[pb];B[qc];W[kb];B[de];W[ce];B[df] ;W[cf];B[dd];W[cd];B[ec];W[dg];B[cc];W[db];B[bc];W[cb];B[cg] ;W[ch];B[bb];W[eb];B[bg];W[bf];B[fc];W[fb];B[bh];W[bd];B[ci] ;W[eg];B[fe];W[gc];B[gd];W[hc];B[hd];W[id];B[ie];W[jd];B[je] ;W[ke];B[kf];W[le];B[jg];W[lf];B[lg];W[mg];B[lh];W[ej];B[ae] ;W[ad];B[dk];W[gf];B[he];W[ek];B[dm];W[hj];B[hl];W[gl];B[gm] ;W[fm];B[gk];W[fl];B[hk];W[dn];B[fn];W[en];B[gn];W[bl];B[ei] ;W[fi];B[dj];W[eh];B[di];W[fj];B[cl];W[ij];B[jk];W[cm];B[bk] ;W[pr];B[or];W[qr];B[mf];W[me];B[ba];W[ca];B[af];W[ac];B[nq] ;W[qj];B[ok];W[qh];B[og];W[rf];B[pi];W[qi];B[ag];W[ab];B[qk] ;W[rd];B[ih];W[hi];B[jj];W[nf];B[mh];W[er];B[fr];W[fs];B[gs] ;W[es];B[gr];W[pj];B[oj];W[ph];B[oh];W[oi];B[ni];W[qf];B[ic] ;W[jc];B[qe];W[re];B[ib];W[gb];B[dl];W[em];B[qb];W[ob];B[pc] ;W[ng];B[nh];W[bm];B[dp];W[ak];B[bj];W[co];B[rc];W[hh];B[rj] ;W[ri];B[rk])goban-1.1.orig/games/Hon-71-5.mgt0000644000175000017500000000262606045540402014077 0ustar alal (;GM[1]SZ[19]PB[Rin Kaiho]PW[Ishida Yoshio]RE[W+R]FF[3]DT[1971-06-10,11]PC[Otaru]BS[0]WS[0]KM[4.5];B[eq];W[pq];B[qd];W[dc];B[cp];W[ce];B[po];W[od];B[oc] ;W[nc];B[pc];W[nd];B[qf];W[jd];B[qq];W[qr];B[qp];W[or];B[cj] ;W[mp];B[pl];W[ch];B[ej];W[iq];B[db];W[ec];B[eb];W[fc];B[cc] ;W[bc];B[cd];W[bd];B[dd];W[cb];B[bb];W[ca];B[de];W[ab];B[cf] ;W[be];B[gc];W[fb];B[ge];W[df];B[fd];W[gb];B[hc];W[hb];B[ic] ;W[jc];B[ib];W[ef];B[ed];W[dm];B[hg];W[og];B[hp];W[ip];B[ho] ;W[dk];B[ci];W[gg];B[gh];W[fg];B[hf];W[hh];B[ih];W[hi];B[fi] ;W[eh];B[ei];W[gl];B[bh];W[cg];B[bl];W[ii];B[jh];W[jf];B[ke] ;W[je];B[jg];W[lg];B[lh];W[mg];B[kj];W[jk];B[jj];W[jn];B[im] ;W[gi];B[ik];W[fo];B[hq];W[fq];B[fr];W[co];B[dp];W[hk];B[ij] ;W[fh];B[do];W[ek];B[cm];W[io];B[ph];W[qj];B[ql];W[oj];B[ni] ;W[oi];B[oh];W[nh];B[qi];W[mh];B[li];W[mi];B[kg];W[kf];B[rj] ;W[ri];B[rh];W[pg];B[op];W[np];B[qh];W[gr];B[gq];W[hr];B[fp] ;W[rr];B[rq];W[pd];B[pe];W[qc];B[qb];W[rc];B[rb];W[nb];B[pa] ;W[cl];B[cn];W[bm];B[ck];W[dl];B[bk];W[on];B[oq];W[nq];B[pn] ;W[pk];B[nk];W[mk];B[ha];W[da];B[hj];W[gj];B[hl];W[gk];B[gm] ;W[re];B[qe];W[rk];B[qk];W[ob];B[pb];W[sj];B[ok];W[nj];B[pj] ;W[qg];B[rg];W[pi];B[rj];W[rf];B[rd];W[qj];B[nr];W[mr];B[rj] ;W[dn];B[bo];W[qj];B[pp];W[pr];B[rj];W[bn];B[co];W[qj];B[fl] ;W[fm];B[rj];W[gn];B[qj];W[jl];B[lk];W[ml];B[jm];W[il];B[hm] ;W[hn];B[kl];W[ji];B[id];W[mj];B[ki];W[he];B[gf];W[ie];B[kn] ;W[in];B[kk];W[jl];B[lm];W[mn];B[em];W[fn];B[fk];W[kp])goban-1.1.orig/games/Hon-88-1.mgt0000644000175000017500000000223206045540444014102 0ustar alal (;GM[1]PB[Takemiya Masaki]PW[Otake Hideo]SZ[19]FF[3]DT[1988-05-10,11]PC[Paris]RE[W+R]BS[0]WS[0]KM[5.5];B[pd];W[dc];B[pp];W[dp];B[pj];W[ci];B[jp];W[nc];B[kd] ;W[ne];B[pf];W[pb];B[qc];W[kb];B[ng];W[gp];B[pn];W[jn];B[ho] ;W[go];B[hn];W[hp];B[ip];W[jl];B[hl];W[jj];B[hj];W[jh];B[hh] ;W[jf];B[hf];W[gk];B[hk];W[mm];B[mo];W[nj];B[ce];W[ed];B[ef] ;W[cd];B[dl];W[gg];B[gf];W[cg];B[de];W[bl];B[nf];W[ql];B[ok] ;W[qo];B[qp];W[rj];B[qn];W[qg];B[me];W[qi];B[nd];W[mc];B[kk] ;W[jk];B[ml];W[ll];B[mk];W[lk];B[mj];W[lj];B[mi];W[ko];B[kp] ;W[lo];B[lp];W[mn];B[no];W[rm];B[cq];W[cp];B[dq];W[ep];B[fr] ;W[er];B[eq];W[fq];B[gr];W[bq];B[dr];W[cr];B[es];W[ei];B[fg] ;W[gi];B[hi];W[gh];B[hg];W[fe];B[ff];W[fm];B[gj];W[ek];B[ki] ;W[li];B[kh];W[kj];B[rf];W[qf];B[qe];W[rg];B[jb];W[kc];B[jc] ;W[ld];B[fc];W[be];B[le];W[jd];B[ke];W[qb];B[hc];W[bs];B[hq] ;W[bf];B[ji];W[lh];B[lg];W[ro];B[rn];W[sn];B[rp];W[sp];B[sq] ;W[so];B[rq];W[ja];B[rb];W[eb];B[fb];W[ee];B[df];W[ec];B[qa] ;W[oc];B[pc];W[oa];B[re];W[hb];B[ic];W[ia];B[ph];W[qh];B[gd] ;W[pi];B[md];W[lc];B[ra];W[gb];B[ga];W[ge];B[he];W[ha];B[fa] ;W[gc];B[fd];W[ea];B[hd];W[ma];B[mh];W[oi];B[fi];W[eh];B[fh] ;W[ii];B[kg];W[ij];B[ih];W[pg];B[og];W[fk])goban-1.1.orig/games/Hon-87-4.mgt0000644000175000017500000000302306045540444014103 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Yamashiro Hiroshi]DT[1987-06-25,26]RE[W+0.5]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[gp];B[cf];W[ch];B[cc];W[dc];B[cd];W[de];B[cb];W[df];B[bf] ;W[cg];B[oq];W[qo];B[qp];W[ql];B[qj];W[ol];B[cp];W[co];B[bo] ;W[do];B[bp];W[bn];B[dq];W[eq];B[dr];W[er];B[br];W[jk];B[nk] ;W[po];B[oo];W[on];B[no];W[nn];B[mn];W[mm];B[lm];W[ml];B[ln] ;W[ro];B[pb];W[mf];B[lc];W[ld];B[hc];W[kc];B[eb];W[fc];B[fb] ;W[jq];B[iq];W[ip];B[kq];W[jr];B[io];W[hp];B[kp];W[ir];B[gj] ;W[ej];B[ij];W[jj];B[ik];W[il];B[hl];W[hm];B[gl];W[ii];B[hi] ;W[fk];B[gk];W[jl];B[gm];W[rh];B[qg];W[rj];B[rg];W[fi];B[hn] ;W[ri];B[oh];W[hh];B[ih];W[ji];B[gh];W[hg];B[gi];W[el];B[rp] ;W[sp];B[sq];W[so];B[rr];W[mh];B[he];W[if];B[em];W[dm];B[en] ;W[dn];B[ah];W[ag];B[bg];W[bh];B[af];W[bi];B[kr];W[im];B[gg] ;W[gf];B[ie];W[hf];B[fl];W[ic];B[gc];W[hb];B[ge];W[ff];B[gb] ;W[je];B[nb];W[mb];B[ob];W[ks];B[ls];W[js];B[lr];W[ce];B[be] ;W[ib];B[eh];W[ei];B[lb];W[mc];B[ma];W[kb];B[la];W[sg];B[sf] ;W[sh];B[rf];W[fo];B[fn];W[db];B[da];W[fh];B[an];W[am];B[ao] ;W[bm];B[nm];W[om];B[nl];W[ok];B[nj];W[oj];B[oi];W[lk];B[mi] ;W[li];B[pl];W[qm];B[lj];W[kj];B[mj];W[mk];B[ni];W[ng];B[ne] ;W[me];B[nd];W[md];B[lh];W[ki];B[fd];W[oc];B[pc];W[go];B[gn] ;W[qh];B[ph];W[og];B[pg];W[ec];B[fe];W[pk];B[es];W[fs];B[ds] ;W[gr];B[jn];W[qk];B[pi];W[id];B[hd];W[ka];B[na];W[oe];B[od] ;W[of];B[pe];W[ga];B[fa];W[ha];B[eo];W[ep];B[ee];W[ef];B[fg] ;W[eg];B[fj];W[ek];B[kl];W[kk];B[jm];W[kh];B[ll];W[bd];B[ad] ;W[bc];B[bb];W[ai];B[ac];W[ag];B[nh];W[mg];B[in];W[ah])goban-1.1.orig/games/M-85-1.mgt0000644000175000017500000000261706252627042013556 0ustar alal(;PB[Kobayashi Koichi]PW[Cho Chikun]DT[1985-09-11,12]RE[B+5.5]ID[85/1]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[dq];B[oc];W[qn];B[qp];W[qk];B[co] ;W[dk];B[dp];W[eq];B[cq];W[cr];B[bq];W[hq];B[qi];W[jc];B[cf] ;W[ce];B[df];W[fd];B[ep];W[fp];B[fo];W[gp];B[di];W[fk];B[fi] ;W[mc];B[cc];W[be];B[ec];W[ed];B[fc];W[dc];B[db];W[gc];B[gb] ;W[cb];B[eb];W[bc];B[ca];W[bb];B[hc];W[gd];B[ic];W[jb];B[ie] ;W[ke];B[hf];W[ne];B[go];W[ci];B[ch];W[cj];B[cl];W[dl];B[cm] ;W[bh];B[ff];W[ho];B[mq];W[pf];B[oi];W[ok];B[rf];W[qc];B[pc] ;W[rd];B[re];W[pd];B[qe];W[qb];B[od];W[sc];B[pe];W[ng];B[mb] ;W[nb];B[nc];W[lb];B[md];W[lc];B[ob];W[ma];B[se];W[ra];B[oa] ;W[sb];B[mh];W[lg];B[rj];W[rk];B[jq];W[br];B[ro];W[rn];B[on] ;W[mk];B[ip];W[jr];B[kr];W[ir];B[nl];W[nk];B[lm];W[po];B[oo] ;W[hp];B[lh];W[kg];B[pm];W[kk];B[ji];W[jl];B[gl];W[gn];B[fn] ;W[dh];B[eh];W[cg];B[gk];W[jn];B[ko];W[jo];B[kp];W[ig];B[dg] ;W[bg];B[lj];W[lk];B[hg];W[ih];B[me];W[mf];B[oe];W[qg];B[rg] ;W[ol];B[nm];W[kn];B[ln];W[rq];B[rp];W[pp];B[oq];W[pi];B[pj] ;W[ph];B[qj];W[qq];B[rr];W[oj];B[of];W[qr];B[sq];W[pk];B[og] ;W[rs];B[sr];W[nh];B[oh];W[ni];B[ii];W[hh];B[hi];W[gh];B[gi] ;W[ia];B[hb];W[fg];B[eg];W[sj];B[si];W[sk];B[rh];W[ge];B[if] ;W[kh];B[fh];W[ki];B[jj];W[kj];B[ar];W[dn];B[dm];W[em];B[fm] ;W[en];B[cn];W[bk];B[bl];W[nf];B[nd];W[gg];B[gf];W[dj];B[iq] ;W[om];B[pn];W[qo];B[pr];W[nn];B[no];W[ba];B[qm];W[rm];B[hn] ;W[hr];B[js])goban-1.1.orig/games/T-10-3.mgt0000644000175000017500000000320006252627522013543 0ustar alal(;GM[1]VW[]SZ[19]PW[Ishida Yoshio]PB[Kataoka Satoshi]DT[1984-12-03]RE[W+2.5]ID[10/3]FF[3];B[qd];W[cc];B[pq];W[dq];B[fd];W[df];B[jc];W[qo];B[do] ;W[np];B[po];W[pp];B[op];W[qp];B[oq];W[oo];B[pn];W[qq];B[nq] ;W[no];B[lq];W[rm];B[cq];W[od];B[qf];W[dk];B[dp];W[eq];B[cr] ;W[hp];B[jq];W[om];B[ch];W[cf];B[dc];W[dd];B[ec];W[cb];B[cm] ;W[qc];B[pc];W[pd];B[qb];W[rc];B[rd];W[ic];B[id];W[jd];B[ib] ;W[hc];B[kd];W[je];B[kb];W[ke];B[hd];W[pb];B[oc];W[rb];B[nc] ;W[nd];B[mc];W[ld];B[md];W[kc];B[jb];W[me];B[of];W[ne];B[qi] ;W[cl];B[dm];W[bm];B[ei];W[fk];B[gi];W[bn];B[fp];W[pg];B[qg] ;W[iq];B[jp];W[fq];B[dr];W[gp];B[fo];W[io];B[gl];W[cj];B[gk] ;W[jo];B[ko];W[kn];B[lo];W[jm];B[mm];W[pm];B[kl];W[hr];B[jr] ;W[er];B[hn];W[ir];B[ci];W[bp];B[cp];W[bk];B[sc];W[qa];B[sb] ;W[fj];B[gj];W[ob];B[lc];W[lh];B[nh];W[gf];B[ff];W[ie];B[he] ;W[hf];B[fe];W[ii];B[ig];W[hh];B[lf];W[le];B[kg];W[jh];B[jg] ;W[lg];B[hg];W[gg];B[gh];W[kh];B[if];W[nb];B[lb];W[pi];B[og] ;W[mg];B[pj];W[oi];B[qj];W[mj];B[ni];W[eg];B[fg];W[fi];B[kf] ;W[mf];B[kj];W[lj];B[nl];W[jl];B[fh];W[ok];B[nk];W[oj];B[nj] ;W[kk];B[eh];W[ra];B[qr];W[rr];B[rs];W[pr];B[ps];W[qs];B[jk] ;W[lk];B[jj];W[ll];B[qr];W[ph];B[pf];W[qs];B[lm];W[km];B[qr] ;W[sr];B[rk];W[rl];B[or];W[ea];B[fa];W[da];B[fb];W[bg];B[bh] ;W[cn];B[bq];W[ap];B[qn];W[qm];B[pk];W[ol];B[aq];W[co];B[fl] ;W[dj];B[in];W[jn];B[ho];W[ip];B[dn];W[qh];B[rh];W[mp];B[mq] ;W[sa];B[sd];W[qe];B[re];W[pe];B[rf];W[ds];B[cs];W[es];B[mb] ;W[hm];B[gm];W[hl];B[hk];W[go];B[gn];W[ep];B[eo];W[aj];B[ah] ;W[ag];B[cg];W[bf];B[is];W[hs];B[js];W[el];B[em];W[lp];B[kp] ;W[di];B[ef];W[dg];B[dh];W[de];B[sl];W[sm];B[sk];W[ma];B[la] ;W[na];B[nn];W[on];B[db];W[kd])goban-1.1.orig/games/Hon-73-3.sgf0000644000175000017500000000204406243710562014067 0ustar alal( ; EV[28th Honinbo] RO[3] BR[Meijin] WR[Honinbo] PB[Rin Kaiho] PW[Ishida Yoshio] KM[4.5] DT[1973-] PC[Japan] RE[W+R] ;B[qd];W[cq];B[pq];W[cc];B[oc];W[po];B[qo];W[qn];B[qp] ;W[pm];B[nq];W[qi];B[cj];W[ch];B[dn];W[eq];B[df];W[ec];B[cd] ;W[dd];B[ce];W[bc];B[dh];W[qf];B[ci];W[mc];B[oe];W[jd];B[gq] ;W[bn];B[mn];W[hp];B[dp];W[dq];B[gp];W[ho];B[ir];W[ko];B[lm] ;W[go];B[fp];W[jq];B[iq];W[ip];B[kq];W[fn];B[jr];W[ep];B[fo] ;W[eo];B[gn];W[hq];B[gr];W[jp];B[gm];W[en];B[lr];W[im];B[ql] ;W[rm];B[qj];W[pj];B[pk];W[rj];B[rk];W[qk];B[jl];W[op];B[on] ;W[pn];B[oq];W[hl];B[qj];W[ok];B[gl];W[hk];B[oj];W[qk];B[jm] ;W[pl];B[in];W[nb];B[ob];W[gk];B[fl];W[hn];B[hm];W[il];B[kn] ;W[ej];B[el];W[dl];B[dm];W[ek];B[em];W[cm];B[do];W[cp];B[kp] ;W[hd];B[ld];W[md];B[lf];W[lc];B[ie];W[id];B[cl];W[dk];B[bl] ;W[fk];B[hr];W[jk];B[ij];W[jj];B[ii];W[ik];B[ig];W[ji];B[re] ;W[eg];B[ef];W[gg];B[fg];W[fh];B[ff];W[eh];B[dg];W[gf];B[nf] ;W[af];B[ad];W[bd];B[be];W[ae];B[ag];W[ac];B[bf];W[kf];B[kg] ;W[lg];B[ge];W[he];B[gh];W[hf];B[lh];W[jg]C[146 moves complete. White wins by resignation.] ) goban-1.1.orig/games/Hon-58-4.mgt0000644000175000017500000000226006045540250014076 0ustar alal (;GM[1]SZ[19]DT[1958-08-10,11]KM[4.5]RO[4]PC[Takaishi Town, Osaka Pref.]PB[Takagawa Kaku]PW[Sugiuchi Masao]RE[W+R]FF[3]TM[10h]BS[0]WS[0];B[pd];W[dp];B[pp];W[dc];B[ce];W[dh];B[fe];W[gc];B[cn] ;W[cl];B[cq];W[cp];B[dq];W[ep];B[bp];W[bo];B[bq];W[co];B[fq] ;W[go];B[gq];W[cg];B[cc];W[cb];B[fc];W[cd];B[gd];W[hc];B[eb] ;W[ed];B[fd];W[kc];B[hd];W[id];B[jd];W[ie];B[ic];W[ib];B[jc] ;W[jb];B[kd];W[lc];B[kf];W[jf];B[de];W[dd];B[hf];W[jg];B[ld] ;W[md];B[me];W[ne];B[nd];W[mc];B[mf];W[hh];B[gh];W[gi];B[fi] ;W[gg];B[fh];W[hg];B[fg];W[ee];B[ef];W[df];B[nc];W[nb];B[ob] ;W[mb];B[gj];W[hi];B[ek];W[oe];B[qc];W[pe];B[qe];W[qf];B[rf] ;W[og];B[qg];W[gf];B[ff];W[mh];B[ck];W[hj];B[gk];W[dl];B[hk] ;W[mg];B[fn];W[dn];B[fo];W[mq];B[oq];W[jq];B[mo];W[jo];B[pk] ;W[qm];B[qo];W[om];B[lr];W[lq];B[mr];W[kr];B[nq];W[lo];B[mm] ;W[pl];B[ok];W[nl];B[li];W[nk];B[nj];W[qk];B[qj];W[rj];B[rk] ;W[ql];B[kp];W[ls];B[nr];W[ko];B[ir];W[km];B[kl];W[lm];B[ll] ;W[jl];B[jk];W[il];B[ik];W[hn];B[rl];W[pj];B[qi];W[oj];B[oi] ;W[ol];B[oh];W[nh];B[rm];W[pf];B[ni];W[pn];B[rh];W[dk];B[dj] ;W[cj];B[ci];W[bj];B[di];W[bi];B[bh];W[bg];B[ch];W[ah];B[iq] ;W[eq];B[er];W[fr];B[dr];W[mp];B[db];W[bc];B[jr];W[kq];B[he] ;W[kh];B[gb];W[hb];B[jh];W[if])goban-1.1.orig/games/T-10-4.mgt0000644000175000017500000000361206252627522013553 0ustar alal(;GM[1]VW[]SZ[19]PW[Kataoka Satoshi]PB[Ishida Yoshio]DT[1984-12-17]RE[B+1.5]ID[10/4]FF[3];B[qd];W[cq];B[cd];W[qp];B[oc];W[ed];B[ec];W[fc];B[dc] ;W[gd];B[cf];W[kc];B[oq];W[kq];B[pp];W[qo];B[qq];W[rq];B[qr] ;W[ql];B[eq];W[co];B[hq];W[on];B[ph];W[mc];B[ie];W[ic];B[fe] ;W[fd];B[qj];W[rr];B[mq];W[ko];B[mo];W[cl];B[cr];W[br];B[dq] ;W[cp];B[ne];W[ch];B[jd];W[jc];B[le];W[ho];B[eo];W[iq];B[hp] ;W[ip];B[go];W[gn];B[fo];W[hn];B[nc];W[md];B[me];W[lj];B[rk] ;W[rl];B[ln];W[km];B[ji];W[np];B[no];W[nr];B[nq];W[or];B[mr] ;W[pr];B[pq];W[qs];B[ps];W[os];B[rs];W[ss];B[hr];W[oo];B[op] ;W[lp];B[mp];W[jj];B[ms];W[ii];B[em];W[dk];B[cm];W[bm];B[bg] ;W[bh];B[ki];W[kj];B[mh];W[lh];B[li];W[mi];B[lg];W[nh];B[kh] ;W[mg];B[mj];W[ni];B[mk];W[pi];B[qi];W[pj];B[pk];W[ok];B[qk] ;W[ol];B[kn];W[jn];B[kl];W[ml];B[oj];W[oi];B[ll];W[lh];B[kg] ;W[qh];B[rh];W[qg];B[rg];W[qf];B[rf];W[mm];B[lm];W[lk];B[ij] ;W[ik];B[hj];W[jk];B[eb];W[nb];B[ob];W[fb];B[fa];W[ga];B[ea] ;W[gb];B[og];W[pg];B[qe];W[oh];B[pf];W[ph];B[ah];W[ai];B[ag] ;W[ci];B[bj];W[bi];B[dl];W[ck];B[sl];W[gh];B[hi];W[hg];B[hh] ;W[hf];B[ef];W[dr];B[er];W[cs];B[mb];W[lb];B[na];W[rs];B[jm] ;W[im];B[ns];W[ps];B[hk];W[jl];B[hl];W[il];B[jr];W[kr];B[ks] ;W[ir];B[is];W[sm];B[sk];W[rm];B[of];W[kd];B[ig];W[fj];B[fh] ;W[gg];B[fg];W[ke];B[if];W[fi];B[ld];W[lc];B[eh];W[de];B[cg] ;W[ce];B[be];W[dd];B[bc];W[cn];B[di];W[dj];B[dh];W[cj];B[dm] ;W[nd];B[od];W[fl];B[es];W[df];B[dg];W[jq];B[js];W[dp];B[ep] ;W[kf];B[ng];W[mh];B[jo];W[in];B[mf];W[nj];B[kp];W[jp];B[lo] ;W[io];B[hd];W[hc];B[ge];W[gi];B[ds];W[cr];B[lq];W[fm];B[kp] ;W[jf];B[jg];W[lp];B[nn];W[nm];B[kp];W[ri];B[si];W[lp];B[po] ;W[pn];B[kp];W[id];B[he];W[lp];B[bl];W[bn];B[kp];W[bd];B[ad] ;W[lp];B[pl];W[pm];B[kp];W[el];B[fn];W[lp];B[rp];W[ro];B[kp] ;W[cb];B[cc];W[lp];B[sp];W[so];B[kp];W[la];B[jo];W[ma];B[nb] ;W[ko];B[sq];W[sr];B[jo];W[sh];B[rj];W[ko];B[gk];W[fk];B[jo] ;W[lr];B[ls];W[ei];B[ko];W[je];B[gf];W[gm];B[km])goban-1.1.orig/games/M-80-5.mgt0000644000175000017500000000243706252627042013555 0ustar alal(;GM[1]RO[5]PB[Otake Hideo]PW[Cho Chikun]DT[1980-10-22,23]RE[W+R]KM[5.5]ID[80/4b]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[8 Dan];B[qd];W[cc];B[pq];W[cq];B[oc];W[qk];B[qo];W[qh];B[cj] ;W[jq];B[lq];W[jo];B[gp];W[cn];B[do];W[co];B[dq];W[cp];B[ip] ;W[jp];B[lo];W[ch];B[er];W[dp];B[ep];W[dr];B[eq];W[jm];B[fd] ;W[de];B[dc];W[dd];B[ec];W[cb];B[ic];W[fm];B[cr];W[br];B[ds] ;W[ej];B[di];W[fh];B[ei];W[fi];B[dg];W[cg];B[df];W[cf];B[fg] ;W[fe];B[fj];W[gj];B[fk];W[gk];B[ek];W[gg];B[cl];W[id];B[hd] ;W[jc];B[jd];W[ie];B[kc];W[jb];B[ib];W[pc];B[pd];W[ob];B[pb] ;W[kb];B[lc];W[lb];B[mc];W[nc];B[qc];W[kd];B[je];W[ld];B[if] ;W[he];B[nd];W[gd];B[gb];W[gc];B[hb];W[fb];B[mb];W[hc];B[la] ;W[jf];B[ke];W[kf];B[le];W[lf];B[me];W[oo];B[qm];W[oq];B[pr] ;W[om];B[nr];W[ok];B[lm];W[ga];B[ja];W[ll];B[ml];W[lk];B[nn] ;W[on];B[mk];W[mj];B[nj];W[nk];B[jn];W[kn];B[in];W[km];B[ko] ;W[ln];B[mo];W[el];B[dl];W[io];B[hn];W[ho];B[gn];W[go];B[fn] ;W[fo];B[en];W[eo];B[dn];W[gr];B[bs];W[ar];B[bm];W[bn];B[gq] ;W[hr];B[iq];W[ir];B[kr];W[jr];B[fr];W[fp];B[fq];W[fs];B[gs] ;W[bp];B[aq];W[bq];B[gl];W[cm];B[bl];W[fl];B[dj];W[hl];B[gm] ;W[mm];B[ao];W[an];B[ap];W[as];B[fc];W[eb];B[es];W[cs];B[gf] ;W[ge];B[bs];W[hp];B[mi];W[nl];B[pi];W[qi];B[pj];W[qj];B[ig] ;W[li];B[nh];W[mh];B[ni];W[rn];B[ff];W[cs];B[qn];W[rm];B[bs] ;W[or];B[os];W[cs])goban-1.1.orig/games/M-82-3.mgt0000644000175000017500000000307706252627042013556 0ustar alal(;PB[Cho Chikun]PW[Otake Hideo]KM[5.5]ID[82/3]GM[1]SZ[19]FF[3]BS[0]WS[0]PC[ ]DT[1982-]WR[9 Dan]BR[9 Dan]RE[B+]KI[11];B[qd];W[pp];B[cp];W[dc];B[eq];W[oc];B[ce];W[di];B[hd] ;W[fd];B[kd];W[mc];B[cc];W[cb];B[bb];W[cd];B[bc];W[dd];B[bd] ;W[pg];B[rg];W[hf];B[kf];W[kh];B[pe];W[nf];B[ig];W[je];B[jd] ;W[jf];B[jg];W[he];B[ke];W[kg];B[gd];W[ff];B[lb];W[lc];B[kb] ;W[mg];B[fc];W[de];B[cf];W[fb];B[fe];W[hg];B[gb];W[jp];B[qi] ;W[df];B[cg];W[em];B[ii];W[gi];B[jk];W[pj];B[hk];W[fk];B[kn] ;W[km];B[hh];W[gh];B[jn];W[jm];B[in];W[hl];B[lm];W[il];B[ll] ;W[ln];B[mn];W[lo];B[mo];W[lp];B[mp];W[lq];B[mj];W[pi];B[mq] ;W[pn];B[hp];W[hq];B[gq];W[hr];B[ip];W[jq];B[pq];W[qq];B[qr] ;W[gp];B[gn];W[ik];B[gr];W[kr];B[eo];W[oq];B[mr];W[pr];B[om] ;W[ok];B[kp];W[ko];B[ir];W[iq];B[hs];W[ls];B[lr];W[ks];B[ms] ;W[is];B[js];W[ho];B[io];W[hn];B[hm];W[jr];B[gl];W[hj];B[jl] ;W[im];B[go];W[is];B[ij];W[gk];B[ki];W[li];B[kl];W[hk];B[lh] ;W[lg];B[lj];W[qj];B[pc];W[kj];B[ji];W[nl];B[nm];W[mh];B[mk] ;W[rf];B[qf];W[qg];B[re];W[rh];B[sf];W[bh];B[cm];W[bg];B[db] ;W[eb];B[ca];W[ec];B[ed];W[bl];B[cl];W[bm];B[bk];W[ck];B[dk] ;W[cj];B[bn];W[bj];B[nb];W[nc];B[ob];W[gs];B[fr];W[ga];B[ha] ;W[ae];B[dg];W[ef];B[ad];W[hb];B[fa];W[ea];B[da];W[ga];B[pm] ;W[mb];B[ma];W[ic];B[fa];W[ia];B[id];W[kc];B[jc];W[jb];B[hc] ;W[ga];B[ib];W[ba];B[aa];W[ic];B[od];W[me];B[ib];W[ab];B[ac] ;W[ic];B[ie];W[if];B[ib];W[kk];B[on];W[ic];B[gg];W[jh];B[ib] ;W[ml];B[mm];W[ic];B[md];W[nd];B[ib];W[no];B[oo];W[ic];B[ne] ;W[oe];B[ib];W[np];B[ja];W[qn];B[qm];W[rn];B[rm];W[rk];B[po] ;W[rp];B[qo];W[ro];B[os];W[nq];B[ps];W[rr];B[rs];W[qs];B[ih] )goban-1.1.orig/games/Hon-61-1.sgf0000644000175000017500000000254106243707622014067 0ustar alal( ; GM[1] SZ[19] DT[1961-] RO[1] FF[3] BR[9 dan] WR[9 dan] PB[Sakata Eio] PW[Takagawa Shukaku] RE[B+R] ID[16/1] ;B[pd];W[dc];B[pp];W[dq];B[de];W[ce];B[cf];W[cd];B[do] ;W[co];B[cn];W[cp];B[df];W[fc];B[dn];W[fq];B[dj];W[qj];B[qm] ;W[qg];B[qe];W[mc];B[oc];W[nq];B[pq];W[kp];B[jd];W[me];B[ge] ;W[fo];B[ld];W[md];B[pi];W[ql];B[pl];W[rm];B[rl];W[qk];B[rn] ;W[pm];B[qn];W[qh];B[og];W[mg];B[ol];W[rk];B[mi];W[kf];B[ho] ;W[fm];B[bn];W[mm];B[sm];W[pf];B[of];W[rd];B[re];W[pe];B[oe] ;W[qd];B[qc];W[rc];B[rb];W[qb];B[pc];W[sb];B[ra];W[qa];B[sd] ;W[sa];B[rb];W[ra];B[se];W[oj];B[ml];W[nh];B[nb];W[ll];B[mk] ;W[lm];B[pj];W[pk];B[ok];W[ph];B[oh];W[oi];B[ni];W[qi];B[ji] ;W[jb];B[gc];W[gb];B[fb];W[gd];B[hc];W[hb];B[ec];W[fd];B[dd] ;W[eb];B[cc];W[ed];B[cb];W[hi];B[jk];W[il];B[lq];W[kq];B[kr] ;W[lp];B[mq];W[mp];B[nr];W[jr];B[ep];W[fp];B[lr];W[kh];B[ki] ;W[jl];B[mb];W[lb];B[jf];W[ig];B[if];W[eg];B[dh];W[lh];B[mh] ;W[hg];B[lf];W[le];B[fe];W[dk];B[ek];W[ej];B[el];W[dg];B[cg] ;W[di];B[cj];W[ei];B[hd];W[ci];B[bk];W[em];B[dl];W[db];B[bq] ;W[bp];B[ap];W[ao];B[dr];W[er];B[js];W[ir];B[cr];W[eq];B[aq] ;W[bo];B[bs];W[bh];B[bc];W[rf];B[sc];W[np];B[lc];W[jc];B[kd] ;W[ng];B[on];W[nn];B[nm];W[oo];B[po];W[li];B[lj];W[nj];B[mj] ;W[nk];B[nl];W[ii];B[gk];W[or];B[oq];W[ns];B[mr];W[ks];B[pr] ;W[gl];B[eh];W[fk];B[fh];W[fl];B[ck];W[ij];B[kk];W[ds];B[ar] ;W[ag];B[bf];W[la];B[kg];W[lg];B[ke];W[jh];B[ma] ) goban-1.1.orig/games/Hon-88-4.mgt0000644000175000017500000000304606045540446014113 0ustar alal (;GM[1]PB[Otake Hideo]PW[Takemiya Masaki]SZ[19]FF[3]DT[1988-06-16,17]PC[Tokuyama]RE[B+6.5]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pq];W[dp];B[fc];W[od];B[oe];W[ne];B[pe] ;W[md];B[ic];W[ng];B[pg];W[dj];B[fq];W[dn];B[dr];W[qo];B[qm] ;W[hd];B[fe];W[hc];B[df];W[db];B[fg];W[id];B[po];W[pc];B[qn] ;W[qc];B[cq];W[dh];B[dg];W[ch];B[gb];W[ee];B[ec];W[dc];B[ff] ;W[hb];B[fi];W[fk];B[bo];W[bn];B[co];W[cn];B[ih];W[ph];B[qh] ;W[qi];B[oh];W[pi];B[og];W[qg];B[rj];W[qf];B[re];W[qk];B[rk] ;W[nj];B[rc];W[mi];B[qb];W[pb];B[qa];W[ij];B[ce];W[bd];B[if] ;W[kp];B[mq];W[op];B[pp];W[mp];B[lp];W[lo];B[lq];W[ko];B[kq] ;W[gp];B[fp];W[go];B[gj];W[hi];B[be];W[eb];B[ei];W[hl];B[di] ;W[ci];B[cj];W[ck];B[bj];W[dk];B[bg];W[bi];B[ii];W[hj];B[ki] ;W[jj];B[ke];W[pa];B[sb];W[kc];B[pd];W[nc];B[jd];W[jc];B[iq] ;W[gq];B[do];W[eo];B[fo];W[fn];B[ep];W[en];B[fr];W[ji];B[jh] ;W[kh];B[kg];W[lh];B[io];W[in];B[qj];W[pj];B[pk];W[ok];B[pl] ;W[ri];B[mm];W[bc];B[ll];W[mn];B[nm];W[hg];B[hf];W[ig];B[jg] ;W[hh];B[lg];W[mg];B[ah];W[eh];B[fh];W[bk];B[ed];W[np];B[nq] ;W[km];B[fb];W[le];B[cd];W[ba];B[ie];W[hr];B[ir];W[ao];B[bp] ;W[kd];B[je];W[lf];B[kf];W[is];B[js];W[hs];B[jq];W[lm];B[mk] ;W[ks];B[jr];W[kl];B[kk];W[jk];B[gk];W[gl];B[rf];W[kj];B[rg] ;W[rh];B[mj];W[ni];B[nn];W[ra];B[rb];W[ol];B[om];W[lj];B[jo] ;W[jn];B[ho];W[hn];B[ap];W[lk];B[an];W[am];B[ml];W[de];B[cc] ;W[cb];B[ae];W[gd];B[fd];W[ad];B[oq];W[cg];B[cf];W[sj];B[sk] ;W[oo];B[on];W[mo];B[bh];W[aj];B[ej];W[ek];B[hk];W[nh];B[ik] ;W[il];B[sg];W[gr];B[si];W[fs];B[es];W[sh];B[nf];W[mf];B[qe] ;W[ha];B[ea];W[da];B[fa];W[ao];B[gs];W[an];B[fs];W[sj];B[of] ;W[si])goban-1.1.orig/games/Hon-45-1.sgf0000644000175000017500000000364506243706676014107 0ustar alal( ; GM[1] SZ[19] DT[1945-07-23..25] RO[1] FF[3] BR[7 dan] WR[7 dan] KM[0] PB[Hashimoto Utaro] PW[Iwamoto Kaoru] RE[W+5] TM[12 hours each] PC[Hiroshima] ID[ 3/1] ;B[qd];W[pp];B[cd];W[ec];B[od];W[jc];B[eq];W[cq];B[do] ;W[er];B[fr];W[co];B[dp];W[cn];B[cp];W[bp];B[bo];W[bq];B[cm] ;W[dn];B[bn];W[dm];B[cl];W[dr];B[dl];W[fm];B[fl];W[gm];B[hp] ;W[de];B[ce];W[df];B[cg];W[kp];B[jo];W[gl];B[fk];W[gk];B[ko] ;W[lp];B[lo];W[mp];B[dg];W[fj];B[fg];W[ej];B[el];W[fo];B[di] ;W[iq];B[ip];W[gq];B[hq];W[gr];B[gp];W[fp];B[fq];W[fs];B[hc] ;W[gf];B[id];W[ld];B[jd];W[kd];B[jf];W[cb];B[mc];W[md];B[nc] ;W[lg];B[bb];W[gg];B[kh];W[lh];B[li];W[kg];B[jg];W[mi];B[ki] ;W[nh];B[qh];W[hi];B[hh];W[gh];B[fe];W[ff];B[ee];W[ef];B[dd] ;W[gd];B[ge];W[he];B[ed];W[gc];B[ic];W[db];B[bc];W[fb];B[qq] ;W[pq];B[qp];W[qo];B[ro];W[qn];B[rn];W[qm];B[kb];W[kl];B[hr] ;W[gs];B[kr];W[qf];B[mo];W[rd];B[rc];W[qe];B[pd];W[rm];B[pg] ;W[pr];B[qr];W[sn];B[ps];W[mr];B[sp];W[qs];B[rr];W[hb];B[ib] ;W[pf];B[of];W[og];B[oh];W[ng];B[pe];W[nf];B[oe];W[rh];B[ri] ;W[rf];B[oi];W[qc];B[sd];W[se];B[re];W[cf];B[bf];W[rd];B[es] ;W[ds];B[re];W[dj];B[cj];W[rd];B[hs];W[sc];B[es];W[nj];B[nl] ;W[pk];B[rb];W[sm];B[sq];W[os];B[rs];W[ih];B[sb];W[qg];B[sd] ;W[ci];B[bi];W[sc];B[ph];W[sg];B[sd];W[ck];B[bj];W[sc];B[pl] ;W[ql];B[sd];W[bg];B[be];W[sc];B[oo];W[po];B[sd];W[re];B[mk] ;W[mj];B[il];W[ik];B[kq];W[im];B[ha];W[gb];B[lk];W[jl];B[on] ;W[nk];B[fs];W[dk];B[bk];W[bm];B[bl];W[ei];B[ch];W[kc];B[jb] ;W[ml];B[qk];W[pj];B[ll];W[mm];B[lm];W[nm];B[np];W[nq];B[om] ;W[ol];B[lr];W[op];B[mn];W[bs];B[jp];W[no];B[nn];W[nl];B[np] ;W[mq];B[fh];W[eg];B[eh];W[fi];B[dh];W[ba];B[ca];W[da];B[hf] ;W[if];B[hd];W[fd];B[ie];W[ig];B[km];W[kf];B[kk];W[jk];B[hn] ;W[pm];B[go];W[in];B[fn];W[gn];B[en];W[em];B[eo];W[hm];B[ji] ;W[ij];B[ms];W[ns];B[ls];W[ga];B[ia];W[ao];B[am];W[dq];B[ep] ;W[lc];B[lb];W[so];B[rp];W[jn];B[ne];W[me];B[ke];W[le];B[je] ;W[ho];B[io];W[kn];B[ps];W[no];B[qs];W[ca];B[qb];W[hg];B[he] ;W[lj];B[kj];W[np];B[ab];B[sc] ) goban-1.1.orig/games/Hon-62-5.sgf0000644000175000017500000000344506243710012014063 0ustar alal( ; DT[1962-] EV[17th Honinbo] RO[5] KM[4.5] BR[9 dan] WR[Honinbo] PB[Handa Dogen] PW[Sakata Eio] RE[W+0.5] ;B[qd];W[dc];B[pq];W[cq];B[oc];W[qo];B[qk];W[pp];B[oq] ;W[qq];B[qr];W[rq];B[mp];W[ce];B[ic];W[kq];B[dp];W[dq];B[ep] ;W[bo];B[hp];W[op];B[mq];W[io];B[iq];W[lo];B[mo];W[jq];B[ln] ;W[ko];B[qm];W[on];B[rr];W[pl];B[ql];W[nl];B[nn];W[om];B[pi] ;W[nr];B[nq];W[mr];B[lm];W[or];B[pr];W[lk];B[kk];W[kj];B[kl] ;W[lj];B[ip];W[jp];B[jn];W[jo];B[jj];W[ji];B[ij];W[pg];B[oh] ;W[oe];B[kh];W[ki];B[hm];W[im];B[il];W[in];B[gl];W[go];B[eq] ;W[gp];B[gq];W[ir];B[dm];W[dn];B[cn];W[co];B[en];W[do];B[eo] ;W[md];B[mh];W[mf];B[jf];W[kd];B[ie];W[rd];B[re];W[pd];B[qc] ;W[pc];B[pb];W[qb];B[pe];W[od];B[rb];W[pf];B[qa];W[qe];B[rf] ;W[qh];B[ok];W[nk];B[qi];W[rg];B[cg];W[cm];B[cl];W[bm];B[bl] ;W[ch];B[cd];W[dd];B[am];W[bn];B[be];W[dg];B[cf];W[de];B[df] ;W[ef];B[bh];W[eg];B[ci];W[dh];B[bf];W[bd];B[fb];W[eb];B[hr] ;W[ho];B[hq];W[is];B[fc];W[fe];B[kb];W[qf];B[rc];W[bj];B[cj] ;W[bi];B[ad];W[bc];B[bk];W[dj];B[hs];W[kr];B[er];W[ds];B[rn] ;W[ro];B[ri];W[hd];B[id];W[kc];B[mb];W[nb];B[lc];W[ld];B[ob] ;W[nc];B[dr];W[cr];B[na];W[mc];B[lb];W[fm];B[em];W[fl];B[fk] ;W[gj];B[gk];W[hj];B[hk];W[ii];B[es];W[cs];B[hf];W[jm];B[jl] ;W[ll];B[km];W[di];B[ck];W[el];B[dl];W[ah];B[bg];W[ae];B[aj] ;W[oj];B[ek];W[fn];B[ge];W[gf];B[gd];W[hg];B[gh];W[ig];B[gg] ;W[ff];B[fi];W[hi];B[fj];W[if];B[he];W[je];B[pk];W[lg];B[lh] ;W[nh];B[ni];W[ng];B[mi];W[nj];B[oi];W[kg];B[og];W[pj];B[qj] ;W[qn];B[sm];W[fa];B[ga];W[ea];B[gb];W[so];B[rh];W[sg];B[sk] ;W[sr];B[ec];W[db];B[nf];W[mg];B[of];W[ne];B[jh];W[jg];B[os] ;W[sn];B[rm];W[jc];B[jb];W[ac];B[ns];W[lr];B[kn];W[lp];B[cp] ;W[bp];B[jd];W[ke];B[pm];W[mm];B[mn];W[ol];B[pn];W[po];B[sh] ;W[ps];B[qs];W[gm];B[fo];W[gn];B[dk];W[an];B[al];W[fp];B[fq] ;W[ms];B[ps];W[sf];B[sd];W[qg];B[se];W[mj];B[nm];W[ml] C[278 moves complete.] ) goban-1.1.orig/games/Hon-63-1.mgt0000644000175000017500000000355406045540370014101 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1963-04-22,23]PB[Takagawa Kaku]PW[Sakata Eio]RE[B+22.5]FF[3];B[pd];W[cq];B[pp];W[cd];B[ec];W[kc];B[pj];W[nq];B[pn] ;W[pr];B[qq];W[kq];B[hc];W[nc];B[oc];W[nd];B[pf];W[dc];B[ed] ;W[de];B[ck];W[ci];B[cn];W[ep];B[jp];W[jq];B[hp];W[en];B[ek] ;W[dl];B[cl];W[jo];B[hn];W[ip];B[gq];W[fr];B[im];W[km];B[nb] ;W[mb];B[ob];W[qh];B[qj];W[qe];B[qd];W[oh];B[nf];W[ke];B[np] ;W[mp];B[no];W[ni];B[oq];W[or];B[mq];W[nr];B[lp];W[mo];B[ln] ;W[mr];B[lq];W[lr];B[lo];W[go];B[iq];W[kp];B[ho];W[jk];B[hk] ;W[fk];B[el];W[fl];B[ej];W[hl];B[il];W[ik];B[hj];W[fj];B[gl] ;W[ei];B[fi];W[gi];B[fh];W[em];B[gh];W[hi];B[ij];W[gm];B[hm] ;W[hh];B[ff];W[eh];B[eg];W[dg];B[df];W[ee];B[cg];W[dh];B[ef] ;W[gg];B[fg];W[cf];B[fe];W[bg];B[bo];W[bp];B[dm];W[fb];B[eb] ;W[fd];B[gd];W[fc];B[hf];W[ea];B[hg];W[jh];B[jj];W[li];B[gn] ;W[fm];B[jf];W[kf];B[ih];W[jg];B[jd];W[kd];B[qf];W[dn];B[cm] ;W[re];B[pe];W[rf];B[rd];W[ri];B[rj];W[rg];B[qr];W[ir];B[hr] ;W[hq];B[gj];W[sd];B[sc];W[se];B[rb];W[co];B[do];W[cp];B[bj] ;W[ib];B[iq];W[js];B[bi];W[bh];B[qi];W[og];B[si];W[qg];B[ne] ;W[sh];B[rh];W[pq];B[sg];W[op];B[po];W[mn];B[lm];W[mm];B[ll] ;W[ml];B[mk];W[ji];B[ii];W[lk];B[lj];W[qp];B[rp];W[kk];B[nl] ;W[nk];B[mj];W[nm];B[ol];W[om];B[pm];W[oo];B[kj];W[kl];B[da] ;W[fa];B[gb];W[db];B[lb];W[kb];B[ma];W[id];B[je];W[mg];B[ki] ;W[dd];B[hb];W[hd];B[jc];W[ic];B[jb];W[ja];B[ka];W[la];B[on] ;W[nn];B[ka];W[oj];B[ok];W[la];B[np];W[no];B[ka];W[pl];B[nj] ;W[la];B[bf];W[ce];B[ka];W[pk];B[oi];W[la];B[lg];W[lh];B[ka] ;W[if];B[ia];W[ie];B[ja];W[ha];B[ga];W[ig];B[mh];W[ng];B[lf] ;W[kg];B[le];W[mc];B[la];W[gc];B[ha];W[ge];B[kh];W[gr];B[hq] ;W[hs];B[ps];W[bn];B[bm];W[ao];B[fo];W[eo];B[cj];W[fp];B[gf] ;W[fn];B[jn];W[kn];B[io];W[jm];B[fq];W[eq];B[am];W[os];B[qs] ;W[na];B[oa];W[od];B[an];W[oe];B[of];W[lc];B[na];W[ai];B[bo] ;W[gk];B[hl];W[bn];B[jp];W[in];B[bo];W[ap];B[aj];W[ah];B[gp] ;W[me];B[mf];W[md];B[dj];W[fo];B[ip];W[jn];B[bn])goban-1.1.orig/games/M-81-2.mgt0000644000175000017500000000322606252627042013550 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Cho Chikun]DT[1981-09-24,25]RE[B+3.5]ID[81/2]FF[3]BS[0]WS[0]WR[9 Dan];B[pd];W[dp];B[pq];W[dc];B[pk];W[ci];B[fq];W[dn];B[jp] ;W[nc];B[pf];W[jd];B[de];W[ce];B[cf];W[cd];B[eh];W[fd];B[fe] ;W[ge];B[dj];W[cj];B[dk];W[ck];B[dl];W[bm];B[ed];W[fc];B[ec] ;W[eb];B[fb];W[ff];B[ee];W[db];B[gf];W[he];B[gg];W[po];B[qp] ;W[qm];B[qo];W[om];B[lc];W[jb];B[qk];W[nl];B[pc];W[pg];B[og] ;W[qf];B[qg];W[ph];B[qh];W[qi];B[ri];W[pi];B[rj];W[pe];B[of] ;W[oe];B[qe];W[rf];B[rg];W[sg];B[rh];W[ne];B[re];W[nh];B[ie] ;W[hf];B[id];W[hg];B[gh];W[ic];B[nf];W[mf];B[me];W[ng];B[sf] ;W[qf];B[rf];W[oh];B[qf];W[lf];B[hh];W[md];B[gd];W[gc];B[hd] ;W[ig];B[hc];W[gb];B[hb];W[fa];B[ke];W[je];B[kc];W[jf];B[le] ;W[nd];B[jc];W[ib];B[kb];W[ha];B[mb];W[nb];B[na];W[dg];B[eg] ;W[hq];B[cq];W[dq];B[dr];W[er];B[cr];W[eq];B[bo];W[df];B[ef] ;W[ch];B[jq];W[ho];B[mp];W[ob];B[ka];W[bn];B[co];W[do];B[cp] ;W[fk];B[gk];W[fl];B[fj];W[gl];B[gj];W[qb];B[pb];W[pa];B[ma] ;W[oa];B[rc];W[kd];B[ld];W[kf];B[oc];W[jr];B[kr];W[ir];B[lq] ;W[qn];B[em];W[gn];B[en];W[dm];B[el];W[eo];B[fn];W[fo];B[es] ;W[fs];B[ds];W[iq];B[fr];W[gs];B[cl];W[bl];B[ll];W[rn];B[ro] ;W[pp];B[qq];W[np];B[nq];W[oq];B[or];W[op];B[mr];W[mo];B[lo] ;W[mn];B[ln];W[mm];B[hm];W[gm];B[ji];W[lm];B[kl];W[hl];B[ik] ;W[il];B[jk];W[ao];B[ap];W[an];B[ar];W[rl];B[li];W[rk];B[mk] ;W[ko];B[ip];W[kp];B[lp];W[kn];B[gr];W[hs];B[hp];W[gp];B[kq] ;W[km];B[js];W[gq];B[kh];W[nk];B[qj];W[ih];B[ii];W[qa];B[rb] ;W[lb];B[qc];W[mc];B[la];W[mj];B[mi];W[nj];B[lj];W[pl];B[dh] ;W[cg];B[jl];W[jm];B[jo];W[io];B[jn];W[in];B[sk];W[sl];B[sn] ;W[sj];B[ml];W[di];B[ei];W[hk];B[hj];W[sm];B[so];W[ql];B[ok] ;W[if];B[ra];W[ja];B[od];W[si];B[mh];W[mg])goban-1.1.orig/games/M-72-3.sgf0000644000175000017500000000277006252650740013545 0ustar alal( ; GM[1] TM[1800] DT[1972-] EV[11th Meijin 1972] RO[3] BR[9 dan] WR[Meijin] KM[5] PB[Fujisawa Shuko] PW[Rin Kaiho] RE[W+R] ;B[pd];W[dp];B[pq];W[dc];B[po];W[ce];B[qj];W[jq];B[ic] ;W[jd];B[id];W[jf];B[ie];W[je];B[kb];W[mq];B[ih];W[lh];B[ji] ;W[nh];B[kg];W[kh];B[jg];W[if];B[lg];W[gf];B[mh];W[mi];B[mg] ;W[ni];B[ef];W[fd];B[eh];W[hi];B[gg];W[hf];B[hh];W[gc];B[ld] ;W[qc];B[pc];W[qd];B[qe];W[re];B[qf];W[rf];B[qg];W[rg];B[rh] ;W[kj];B[qb];W[rb];B[pb];W[ra];B[jj];W[kl];B[ki];W[pk];B[lj] ;W[mk];B[lk];W[ll];B[ml];W[pj];B[mm];W[pn];B[qn];W[pm];B[qo] ;W[nn];B[mj];W[nk];B[mn];W[kn];B[mo];W[no];B[ol];W[pl];B[lp] ;W[jo];B[lq];W[oq];B[pr];W[nr];B[kr];W[jr];B[om];W[on];B[mr] ;W[op];B[jm];W[km];B[ip];W[jp];B[ok];W[ph];B[nj];W[qh];B[fp] ;W[dn];B[fn];W[hn];B[fr];W[dq];B[rl];W[pe];B[pf];W[rq];B[rp] ;W[rm];B[qm];W[fm];B[rj];W[ri];B[qi];W[sh];B[pi];W[oi];B[oj] ;W[pp];B[qp];W[rk];B[qk];W[ql];B[sk];W[rn];B[sj];W[sl];B[sm] ;W[sn];B[so];W[sl];B[em];W[en];B[gm];W[fo];B[fl];W[go];B[sm] ;W[ms];B[lr];W[sl];B[cc];W[rk];B[db];W[dd];B[rl];W[eb];B[sm] ;W[qq];B[rr];W[sl];B[bb];W[rk];B[fb];W[da];B[ca];W[cb];B[dr] ;W[ba];B[cq];W[er];B[eq];W[cr];B[es];W[cp];B[gp];W[hq];B[gq] ;W[si];B[eo];W[hp];B[ep];W[kk];B[li];W[il];B[bq];W[cm];B[bp] ;W[bo];B[bn];W[bm];B[ao];W[cn];B[co];W[do];B[br];W[bo];B[rc] ;W[rd];B[co];W[cj];B[bi];W[bo];B[hl];W[ik];B[bj];W[an];B[ck] ;W[hk];B[hm];W[im];B[gj];W[gk];B[fk];W[oe];B[of];W[ne];B[nf] ;W[le];B[md];W[me];B[nd];W[od];B[oc];W[jc];B[jb];W[hb];B[ib] ;W[cg];B[bf];W[cf];B[bg];W[ch];B[bh];W[ci] C[226 moves complete.] ) goban-1.1.orig/games/M-78-6.mgt0000644000175000017500000000255706252627042013570 0ustar alal(;PB[Otake Hideo]PW[Rin Kaiho]DT[1978-11-01,02]PC[Ito]RE[B+R]KM[5.5]ID[78/6]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[ld];W[qq];B[pc] ;W[eq];B[qr];W[qp];B[or];W[qk];B[od];W[dn];B[ep];W[dp];B[do] ;W[dq];B[co];W[eo];B[fp];W[cq];B[cn];W[en];B[cl];W[gr];B[np] ;W[el];B[cj];W[jc];B[qi];W[ko];B[fc];W[ec];B[fd];W[df];B[je] ;W[nd];B[nc];W[mc];B[ob];W[nb];B[ne];W[oc];B[qm];W[op];B[nq] ;W[pl];B[nc];W[ie];B[if];W[oc];B[cc];W[dc];B[id];W[me];B[md] ;W[nc];B[oe];W[pb];B[qb];W[oa];B[jn];W[ho];B[pm];W[om];B[ol] ;W[ok];B[on];W[nl];B[nm];W[ol];B[pn];W[nn];B[oo];W[mm];B[mf] ;W[ci];B[dj];W[di];B[ei];W[bj];B[bk];W[bi];B[fj];W[cd];B[kb] ;W[kc];B[jb];W[lb];B[ic];W[bp];B[bo];W[bq];B[qa];W[pa];B[ik] ;W[ff];B[kq];W[lc];B[fb];W[oi];B[iq];W[jp];B[ip];W[hp];B[io] ;W[rl];B[rm];W[rc];B[qc];W[rh];B[qh];W[qg];B[pg];W[qf];B[ri] ;W[ph];B[pf];W[rg];B[sf];W[sm];B[rn];W[le];B[qe];W[he];B[hf] ;W[ge];B[jd];W[kd];B[da];W[cb];B[eg];W[ef];B[gf];W[fe];B[fg] ;W[gd];B[gc];W[ji];B[jg];W[kf];B[jf];W[hn];B[jj];W[ki];B[ii] ;W[gk];B[fk];W[gl];B[gj];W[kj];B[fl];W[fm];B[mo];W[ln];B[kk] ;W[lk];B[kl];W[eb];B[ea];W[ca];B[ll];W[hr];B[ir];W[dg];B[mn] ;W[lm];B[pj];W[oj];B[lj];W[rj];B[pi];W[si];B[sh];W[sj];B[rf] ;W[sn];B[so];W[sl];B[ro];W[mk];B[li];W[lh];B[kh];W[mj];B[mi] ;W[ni];B[jh];W[kp];B[jq];W[lp];B[lq];W[hb];B[ib];W[ga];B[hc] ;W[fa];B[hq];W[gq];B[ng];W[db];B[ao])goban-1.1.orig/games/Hon-79-5.mgt0000644000175000017500000000244306045540410014103 0ustar alal (;GM[1]SZ[19]DT[1979-07-09,10]RE[B+R]FF[3]PB[Kato Masao]PW[Rin Kaiho]BS[0]WS[0]KM[5.5];B[qd];W[dc];B[pp];W[dp];B[oc];W[qj];B[qh];W[qn];B[nq] ;W[ci];B[ql];W[rl];B[rm];W[qm];B[rk];W[rn];B[rp];W[qk];B[sl] ;W[pl];B[rj];W[rl];B[de];W[fd];B[ql];W[qc];B[pd];W[rl];B[cc] ;W[cb];B[ql];W[rd];B[re];W[rl];B[fq];W[sm];B[cn];W[fp];B[gp] ;W[eq];B[fo];W[ep];B[fr];W[go];B[hp];W[fn];B[ho];W[eo];B[cq] ;W[bo];B[er];W[ei];B[bi];W[bh];B[db];W[cd];B[ec];W[bc];B[dd] ;W[cc];B[ed];W[fe];B[hc];W[jc];B[fb];W[cg];B[he];W[je];B[hg] ;W[fg];B[jg];W[mc];B[kd];W[hb];B[gc];W[jd];B[fh];W[eg];B[lb] ;W[kc];B[lc];W[ld];B[mb];W[me];B[lf];W[mf];B[lg];W[le];B[ib] ;W[jb];B[ha];W[nh];B[hi];W[nc];B[nb];W[pb];B[rb];W[rc];B[ob] ;W[dr];B[cr];W[lq];B[jq];W[jr];B[ir];W[rg];B[qf];W[rh];B[ri] ;W[rf];B[qi];W[se];B[qe];W[ra];B[sb];W[qb];B[mg];W[ng];B[of] ;W[sf];B[pa];W[sh];B[nf];W[ne];B[nd];W[oe];B[pe];W[pg];B[pf] ;W[qg];B[md];W[li];B[ki];W[kj];B[ji];W[fk];B[lj];W[lh];B[lk] ;W[kh];B[jf];W[jh];B[ii];W[nj];B[mp];W[qq];B[qp];W[rq];B[sp] ;W[or];B[nr];W[pq];B[oq];W[ps];B[rr];W[jp];B[iq];W[km];B[ko] ;W[kk];B[ll];W[kl];B[lm];W[oo];B[op];W[ln];B[mn];W[kn];B[nm] ;W[hn];B[in];W[im];B[hm];W[gm];B[gn];W[ih];B[hh];W[hn];B[ce] ;W[be];B[gn];W[gf];B[hf];W[hn];B[bp];W[cp];B[gn];W[gd];B[hd] ;W[hn];B[bq];W[bn];B[gn];W[ig];B[if];W[hn];B[co];W[bm];B[gn] ;W[sr];B[hn])goban-1.1.orig/games/M-81-4.mgt0000644000175000017500000000305606252627042013553 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Cho Chikun]DT[1981-10-14,15]RE[B+2.5]ID[81/4]FF[3]BS[0]WS[0]WR[9 Dan];B[pd];W[dp];B[qp];W[dd];B[oq];W[qj];B[fc];W[df];B[db] ;W[cc];B[ic];W[qm];B[cn];W[cl];B[cq];W[cp];B[dq];W[ep];B[bp] ;W[bo];B[bq];W[co];B[fq];W[qf];B[nd];W[qc];B[qd];W[rd];B[pc] ;W[rb];B[qb];W[rc];B[di];W[ld];B[og];W[lf];B[dk];W[dl];B[ck] ;W[el];B[cg];W[cf];B[dg];W[cb];B[bf];W[be];B[fp];W[fo];B[go] ;W[fn];B[jp];W[mg];B[lp];W[jb];B[ib];W[jc];B[id];W[pf];B[of] ;W[nc];B[me];W[mc];B[pi];W[qi];B[qh];W[rh];B[ph];W[rg];B[pj] ;W[pk];B[ok];W[pl];B[lj];W[jf];B[gn];W[mk];B[ni];W[oj];B[lh] ;W[nk];B[ii];W[gm];B[hm];W[gl];B[bn];W[bl];B[ao];W[dn];B[eo] ;W[do];B[hl];W[gk];B[hk];W[gi];B[hf];W[gg];B[bk];W[oc];B[od] ;W[pb];B[nm];W[om];B[oo];W[ro];B[qo];W[rn];B[rp];W[lm];B[lk] ;W[nn];B[mn];W[mm];B[no];W[on];B[km];W[kl];B[ll];W[kn];B[jm] ;W[mo];B[mp];W[eq];B[er];W[fr];B[gr];W[hj];B[lo];W[ln];B[jn] ;W[ij];B[ml];W[nl];B[ko];W[mo];B[jk];W[eb];B[fb];W[ec];B[gf] ;W[fd];B[gd];W[fe];B[hg];W[bg];B[bh];W[af];B[fm];W[en];B[fj] ;W[gj];B[fk];W[fl];B[eg];W[ff];B[gb];W[ik];B[il];W[fa];B[je] ;W[kf];B[jd];W[kd];B[jj];W[am];B[an];W[hh];B[if];W[bi];B[ah] ;W[ci];B[ch];W[eh];B[fh];W[fi];B[ei];W[ek];B[bj];W[ej];B[ai] ;W[fg];B[ak];W[sp];B[sq];W[so];B[rq];W[ja];B[qn];W[rm];B[nj] ;W[ap];B[fs];W[jh];B[mn];W[dj];B[cj];W[mo];B[qe];W[re];B[mn] ;W[ia];B[ha];W[mo];B[ga];W[ea];B[mn];W[ge];B[he];W[mo];B[ob] ;W[qa];B[mn];W[hc];B[hb];W[mo];B[pn];W[mn];B[ag];W[bf];B[ef] ;W[ee];B[ki];W[ih];B[ji];W[ol];B[mf];W[lg];B[ng];W[mh];B[kh] ;W[oi];B[nh];W[mi];B[mj];W[cm];B[aq];W[md];B[oe];W[gh];B[qg] )goban-1.1.orig/games/M-89-3.mgt0000644000175000017500000000337606252627042013567 0ustar alal(;GM[1]SZ[19]PW[Awaji Shuzo]PB[Kobayashi Koichi]DT[1989-10-04,05]RE[B+3.5]ID[89/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[cq];B[pq];W[cc];B[qo];W[kq];B[fq];W[do];B[iq] ;W[nq];B[nc];W[dj];B[qi];W[id];B[dd];W[cd];B[de];W[eb];B[ch] ;W[bf];B[cf];W[ce];B[df];W[bg];B[fc];W[ec];B[ge];W[if];B[ei] ;W[oo];B[kd];W[pm];B[nj];W[ih];B[on];W[pn];B[po];W[op];B[om] ;W[ol];B[nl];W[pk];B[mm];W[pi];B[ph];W[oi];B[qj];W[ok];B[mi] ;W[pp];B[qm];W[qh];B[pg];W[rk];B[qk];W[ql];B[rl];W[qn];B[pl] ;W[rn];B[ql];W[qp];B[kf];W[pf];B[qg];W[qc];B[pc];W[qd];B[re] ;W[qe];B[rf];W[le];B[ke];W[nd];B[mc];W[pb];B[ob];W[rb];B[rd] ;W[nf];B[lf];W[mg];B[lh];W[og];B[oe];W[of];B[ne];W[mh];B[oh] ;W[rc];B[pa];W[qa];B[qb];W[li];B[ki];W[pb];B[oa];W[lj];B[kj] ;W[mj];B[ni];W[nh];B[lk];W[mf];B[qb];W[qf];B[rg];W[pb];B[hc] ;W[gi];B[ej];W[ic];B[qb];W[ra];B[he];W[ie];B[hb];W[ij];B[gj] ;W[hj];B[gk];W[il];B[in];W[kc];B[jg];W[ig];B[gh];W[lg];B[kh] ;W[hm];B[hk];W[ik];B[hn];W[gm];B[en];W[gn];B[eo];W[ho];B[io] ;W[hp];B[go];W[ip];B[jp];W[jq];B[gp];W[hq];B[hr];W[ir];B[gq] ;W[iq];B[jm];W[fl];B[dl];W[fk];B[hi];W[dk];B[cl];W[dn];B[em] ;W[ek];B[bj];W[di];B[dh];W[bi];B[bh];W[bk];B[ci];W[bl];B[dp] ;W[cp];B[ck];W[cj];B[ai];W[jh];B[kg];W[dm];B[cm];W[cn];B[bn] ;W[co];B[bm];W[el];B[ep];W[er];B[fr];W[bo];B[ak];W[ds];B[gs] ;W[is];B[dr];W[dq];B[hs];W[fo];B[fn];W[im];B[kn];W[fs];B[es] ;W[an];B[al];W[fs];B[sc];W[gr];B[sb];W[lc];B[ld];W[mn];B[ln] ;W[gg];B[fg];W[gf];B[ff];W[ii];B[fi];W[lo];B[mo];W[nn];B[nm] ;W[no];B[ko];W[lp];B[fb];W[kk];B[ll];W[ib];B[dc];W[db];B[ed] ;W[mb];B[jk];W[jl];B[kl];W[nb];B[md];W[ia];B[gl];W[fm];B[ea] ;W[cb];B[ag];W[be];B[ma];W[la];B[na];W[lb];B[jd];W[jc];B[rm] ;W[ro];B[da];W[ca];B[fa];W[af];B[sn];W[so];B[sm];W[kp];B[jo] ;W[hd];B[gd];W[ha];B[hf];W[hg];B[ga];W[cg];B[dg];W[jj];B[kk] ;W[ah])goban-1.1.orig/games/Hon-64-2.mgt0000644000175000017500000000300106045540372014070 0ustar alal (;GM[1]BS[0]WS[0]SZ[19]DT[1964-05-01,02]FF[3]PB[Sakata Eio]PW[Takagawa Kaku]RE[B+R]BR[9 Dan]WR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[ec];W[oq];B[do];W[co];B[cn] ;W[cp];B[dn];W[ep];B[cg];W[de];B[cj];W[hc];B[ee];W[dg];B[dd] ;W[ce];B[ef];W[df];B[cc];W[bc];B[cb];W[kc];B[ch];W[di];B[ci] ;W[eg];B[gf];W[nc];B[gh];W[fi];B[hj];W[dk];B[dh];W[fh];B[ej] ;W[gi];B[hh];W[hi];B[ii];W[fk];B[ek];W[el];B[dl];W[ih];B[ig] ;W[jh];B[ij];W[fl];B[id];W[ic];B[kd];W[lc];B[fn];W[hl];B[kj] ;W[lh];B[lp];W[on];B[lm];W[im];B[mj];W[jo];B[hn];W[jk];B[ki] ;W[jg];B[bb];W[if];B[hf];W[hg];B[gg];W[ff];B[fe];W[fg];B[hd] ;W[jq];B[gp];W[dm];B[cl];W[km];B[mn];W[ll];B[ml];W[lk];B[mk] ;W[jd];B[je];W[ge];B[he];W[gd];B[jc];W[fc];B[gb];W[gc];B[jb] ;W[ed];B[lf];W[lg];B[mf];W[mi];B[lj];W[oi];B[od];W[ok];B[ol] ;W[of];B[nd];W[po];B[pj];W[oj];B[om];W[pk];B[ql];W[qk];B[rn] ;W[qe];B[pe];W[pf];B[qq];W[ln];B[mm];W[mq];B[qd];W[rl];B[qm] ;W[re];B[qf];W[qg];B[lq];W[lo];B[mp];W[mo];B[np];W[no];B[op] ;W[rd];B[rc];W[fo];B[dp];W[cq];B[go];W[bn];B[cm];W[ab];B[bd] ;W[ad];B[ac];W[md];B[ne];W[bc];B[mg];W[mh];B[ac];W[pb];B[mb] ;W[bc];B[rk];W[rj];B[ac];W[nb];B[oc];W[bc];B[fb];W[dc];B[ac] ;W[ob];B[lb];W[bc];B[hb];W[ib];B[ia];W[eb];B[ac];W[kb];B[ka] ;W[bc];B[er];W[eq];B[ac];W[mc];B[la];W[bc];B[fr];W[be];B[bm] ;W[an];B[bs];W[br];B[dr];W[cr];B[cs];W[ar];B[kr];W[rm];B[qn] ;W[jr];B[kl];W[gm];B[gn];W[hr];B[gr];W[hq];B[fp];W[kp];B[sd] ;W[oe];B[ng];W[kf];B[le];W[pp];B[pq];W[oo];B[lr];W[kk];B[og] ;W[pd];B[pc];W[ph];B[pg];W[rf];B[qh];W[oh];B[rg];W[qf];B[rh] ;W[ri];B[in];W[jn];B[ik];W[il];B[bf])goban-1.1.orig/games/M-75-4.mgt0000644000175000017500000000231206252721074013550 0ustar alal(;SZ[19]DT[15,16 October 1975]PB[Ishida]PW[Otake]KM[5]SO[Go Review Winter 1976]RE[W+R]EV[Meijin match game 4];B[qd];W[cc];B[dp];W[pq];B[qo];W[oc];B[md];W[ne];B[pf];W[me];B[pc];W[ld];B[mq];W[op];B[jq];W[ed];B[di];W[cn];B[co];W[dn];B[fp];W[ck];B[cd];W[dd];B[ce];W[bc];B[cj];W[dk];B[dg];W[ql];B[qi];W[pn];B[gc];W[fc];B[gd];W[cq];B[dq];W[bo];B[cp];W[ch];B[bi];W[bp];B[bq];W[bk];B[kc];W[kd];B[jc];W[lc];B[bn];W[bm];B[qq];W[qr];B[rr];W[rq];B[qp];W[rs];B[rm];W[or];B[qm];W[qh];B[pi];W[ph];B[rh];W[oi];B[qg];W[pm];B[rl];W[gp];B[gq];W[hq];B[hp];W[go];B[hr];W[fq];B[iq];W[gr];B[hq];W[ep];B[ap];W[an];B[fr];W[fo];B[er];W[oh];B[cg];W[ob];B[gb];W[fb];B[fa];W[ea];B[ga];W[eb];B[pb];W[ie];B[of];W[lb];B[he];W[id];B[hf];W[ef];B[eg];W[ff];B[ih];W[fg];B[gh];W[fh];B[bd];W[hi];B[hh];W[gi];B[ii];W[ij];B[ki];W[jj];B[lg];W[hd];B[ge];W[ib];B[ng];W[ad];B[ae];W[ac];B[bg];W[pa];B[qa];W[oa];B[qb];W[mi];B[li];W[in];B[ej];W[mh];B[mg];W[fk];B[qk];W[lk];B[od];W[nd];B[fj];W[gk];B[pl];W[nl];B[km];W[ri];B[rj];W[pj];B[qj];W[ln];B[mk];W[ll];B[jo];W[jl];B[mm];W[ml];B[lm];W[dj];B[ei];W[bj];B[ci];W[mo];B[lp];W[jf];B[kg];W[cr];B[br];W[ar];B[dr];W[ms];B[jm];W[im];B[ho];W[hn];B[lr];W[ok];B[pk];W[oj];B[ia];W[hb];B[ha];W[ja];B[rp];W[sr];B[nr];W[ns];B[np];W[mn])goban-1.1.orig/games/M-79-3.mgt0000644000175000017500000000221006252627042013550 0ustar alal(;GM[1]PB[Otake Hideo]PW[Sakata Eio]BR[9 Dan]WR[9 Dan]PC[Izu Nagaoka]DT[1979-10-03]RE[W+R]ID[79/3]SZ[19]FF[3]BS[0]WS[0];B[qd];W[cc];B[pq];W[oc];B[cp];W[qo];B[md];W[ne];B[pc] ;W[pe];B[qe];W[pf];B[qg];W[eq];B[gp];W[fo];B[do];W[go];B[op] ;W[hp];B[dq];W[er];B[fd];W[df];B[id];W[ck];B[dr];W[kq];B[qp] ;W[po];B[pl];W[nc];B[pg];W[kc];B[ng];W[ke];B[jc];W[kb];B[ff] ;W[dh];B[lq];W[lr];B[kr];W[mr];B[oo];W[or];B[qm];W[qr];B[pr] ;W[qf];B[rf];W[rg];B[rh];W[rq];B[rp];W[ps];B[pd];W[nf];B[mg] ;W[pb];B[qb];W[ob];B[es];W[kp];B[lo];W[lp];B[mp];W[qq];B[pp] ;W[ko];B[ln];W[kn];B[lm];W[cn];B[dn];W[bo];B[fr];W[ep];B[bp] ;W[gr];B[ci];W[ch];B[cl];W[bl];B[dl];W[bm];B[bh];W[dk];B[el] ;W[cf];B[dc];W[dd];B[di];W[bj];B[ec];W[cb];B[ek];W[ge];B[fe] ;W[hc];B[fh];W[ei];B[ej];W[eh];B[fi];W[hd];B[if];W[he];B[kf] ;W[kd];B[jl];W[lf];B[kg];W[ik];B[ie];W[ic];B[il];W[gg];B[fg] ;W[ig];B[ih];W[hh];B[jg];W[hg];B[ii];W[hi];B[hj];W[hk];B[gj] ;W[hl];B[hm];W[gm];B[jk];W[ij];B[jj];W[lg];B[lh];W[kh];B[jh] ;W[mf];B[ki];W[hn];B[gs];W[fq];B[fs];W[hs];B[ds];W[hq];B[dj] ;W[bi];B[od];W[nd];B[qa];W[fb];B[gb];W[gc];B[fc];W[hb];B[nq] ;W[br];B[bq];W[ap];B[gl];W[im];B[gk];W[hm];B[aq];W[em])goban-1.1.orig/games/Hon-74-4.sgf0000644000175000017500000000156306243714414014076 0ustar alal(;B[pd]PB[Takemia]BR[7d]PW[Ishida]WR[Honinbo]SO[Kido yearbook]RE[W+R (130 moves)]EV[Honinbo match 74 game 4];W[dc];B[dp];W[qq];B[ce];W[ed];B[ci];W[jc];B[pp];W[qp];B[po];W[or];B[qo];W[np];B[qk];W[qf];B[lp];W[fq];B[no];W[cq];B[dq];W[cp];B[do];W[dr];B[er];W[cr];B[eq];W[cn];B[fp];W[nd];B[pf];W[pg];B[of];W[qe];B[od];W[rc];B[ef];W[cd];B[nh];W[qi];B[je];W[ld];B[lf];W[hd];B[hf];W[cm];B[em];W[pk];B[nk];W[gp];B[ip];W[hq];B[go];W[fo];B[fn];W[dj];B[dl];W[ck];B[ei];W[mp];B[mo];W[lq];B[kq];W[ho];B[eo];W[kp];B[lo];W[jq];B[jo];W[kr];B[hp];W[be];B[bf];W[de];B[df];W[ql];B[ph];W[qh];B[og];W[qj];B[gd];W[gc];B[id];W[ic];B[he];W[hc];B[gq];W[nl];B[ml];W[ol];B[mk];W[ej];B[fj];W[di];B[dh];W[cj];B[ek];W[eh];B[fi];W[ch];B[dg];W[iq];B[nm];W[nb];B[ro];W[rq];B[oq];W[pq];B[op];W[nr];B[ob];W[cf];B[cg];W[bh];B[ce];W[bd];B[fd];W[fc];B[ee];W[ko];B[kn];W[jp];B[io];W[qb];B[dd];W[ec];B[rm];W[rl];B[bg];W[bi])goban-1.1.orig/games/M-91-4.mgt0000644000175000017500000000311206252627042013545 0ustar alal(;GM[1]VW[]FF[3]DT[1991-10-16,17]SZ[19]PB[Kobayashi Koichi]PW[Rin Kaiho]KM[5.5]PC[Kyoto]RE[B+5.5]ID[91/4]BS[0]WS[0];B[pd];W[dd];B[pq];W[cp];B[eq];W[qo];B[pl];W[kp];B[mq] ;W[hp];B[gp];W[go];B[fp];W[ho];B[en];W[cm];B[cq];W[bq];B[cr] ;W[em];B[fm];W[el];B[fo];W[fl];B[gm];W[np];B[nq];W[qq];B[qr] ;W[pp];B[oq];W[rq];B[pn];W[op];B[lo];W[jm];B[rr];W[nn];B[mo] ;W[rl];B[ql];W[rm];B[rk];W[lm];B[mm];W[ml];B[nm];W[qj];B[qk] ;W[mn];B[no];W[on];B[oo];W[po];B[qn];W[rn];B[nl];W[ln];B[ko] ;W[jo];B[kn];W[rp];B[mk];W[ll];B[nj];W[qf];B[jk];W[jl];B[kj] ;W[lq];B[mp];W[mr];B[nr];W[lr];B[jq];W[jp];B[sr];W[hr];B[re] ;W[ng];B[oe];W[mi];B[mj];W[pg];B[rf];W[rj];B[qh];W[me];B[mf] ;W[nf];B[ne];W[lf];B[md];W[mg];B[ld];W[id];B[je];W[pi];B[kg] ;W[ji];B[ki];W[jh];B[kh];W[sk];B[cf];W[be];B[di];W[ef];B[fi] ;W[eh];B[ei];W[cj];B[ci];W[bi];B[bh];W[bj];B[pj];W[qi];B[gc] ;W[gg];B[ge];W[fd];B[gd];W[hi];B[gi];W[hk];B[hh];W[hg];B[hj] ;W[ij];B[ii];W[ik];B[ee];W[df];B[ce];W[de];B[cd];W[cc];B[bd] ;W[ie];B[if];W[ig];B[jf];W[hf];B[ib];W[ch];B[dh];W[cg];B[dg] ;W[bg];B[bf];W[ah];B[ff];W[db];B[fg];W[jj];B[bc];W[bb];B[ec] ;W[dc];B[ed];W[ab];B[ae];W[ac];B[eb];W[da];B[he];W[dp];B[gq] ;W[hq];B[br];W[dq];B[dr];W[fr];B[gr];W[gs];B[es];W[fs];B[er] ;W[bp];B[cn];W[bn];B[dm];W[dl];B[dn];W[cl];B[ar];W[rg];B[rh] ;W[qg];B[sg];W[qe];B[qd];W[ph];B[rd];W[pm];B[qm];W[om];B[ol] ;W[ni];B[oj];W[ke];B[kf];W[le];B[kd];W[eg];B[fh];W[kk];B[li] ;W[gn];B[fn];W[hm];B[lg];W[mf];B[ea];W[ca];B[of];W[gl];B[ms] ;W[ls];B[ns];W[lp];B[jn];W[in];B[aq];W[ap];B[sq];W[dj];B[sp] ;W[so];B[fj];W[fk];B[km];W[kl];B[ej];W[lk];B[lj];W[ek];B[gf] ;W[ih];B[hi])goban-1.1.orig/games/M-75-5.mgt0000644000175000017500000000176506252721120013554 0ustar alal(;SZ[19]PB[Otake]PW[Ishida]KM[5]SO[Go review winter 1976]RE[W+R (152 moves)]EV[Meijin 1975, round 5];B[qd];W[dd];B[cp];W[pp];B[eq];W[oc];B[ld];W[of];B[qg];W[ph];B[qh];W[pi];B[qi];W[pj];B[qk];W[pe];B[qe];W[jd];B[cf];W[fd];B[dj];W[jf];B[ef];W[ce];B[bf];W[jp];B[ql];W[ol];B[hp];W[bp];B[co];W[bo];B[bq];W[cn];B[cl];W[in];B[gn];W[hl];B[fl];W[go];B[ho];W[hn];B[gm];W[fk];B[fo];W[di];B[ei];W[ej];B[dk];W[gl];B[ek];W[fm];B[el];W[gi];B[eh];W[gf];B[ec];W[ed];B[ge];W[fe];B[nc];W[nd];B[jc];W[ic];B[gg];W[hg];B[id];W[jb];B[kc];W[ib];B[hf];W[ff];B[je];W[hd];B[ie];W[ke];B[ig];W[if];B[hh];W[he];B[fg];W[ji];B[nq];W[mp];B[np];W[no];B[oo];W[nn];B[op];W[qo];B[pr];W[mq];B[mr];W[lr];B[nr];W[qq];B[kq];W[kp];B[lq];W[lp];B[kr];W[be];B[ae];W[ad];B[af];W[bd];B[om];W[nm];B[ob];W[pc];B[ok];W[pk];B[pl];W[nl];B[rr];W[qc];B[jq];W[rm];B[po];W[qn];B[pg];W[og];B[oh];W[oj];B[nh];W[kh];B[ne];W[od];B[jj];W[ii];B[lh];W[mi];B[kg];W[jg];B[ki];W[jh];B[nk];W[nj];B[mc];W[pb];B[na];W[md];B[rl];W[qr];B[qs];W[rq];B[pq];W[rs];B[ss];W[sq];B[ps];W[sm])goban-1.1.orig/games/T-01-3.mgt0000644000175000017500000000235506261067052013551 0ustar alal(;SZ[19]DT[1975-12-25]PB[Ohira Shuzo]BR[9f]PW[Fujisawa Shuko]WR[9d]KM[5.5]RE[B+R]SO[Kido yearbook]EV[1st Tengen match, game 3];B[pd];W[dp];B[pq];W[po];B[cd];W[qq];B[qr];W[qp];B[or];W[qk];B[ec];W[ci];B[fq];W[dn];B[dr];W[cq];B[hp];W[jq];B[iq];W[jo];B[ck];W[fp];B[gp];W[dj];B[el];W[dl];B[dk];W[ek];B[dm];W[em];B[cl];W[fl];B[cn];W[dl];B[cm];W[co];B[bo];W[bp];B[en];W[do];B[ej];W[fk];B[bi];W[bh];B[bj];W[ch];B[ei];W[ce];B[fm];W[el];B[an];W[fn];B[dd];W[eg];B[gj];W[gg];B[gm];W[gl];B[hl];W[hm];B[gn];W[eo];B[im];W[fj];B[hn];W[gi];B[mp];W[lq];B[kp];W[lp];B[lo];W[ko];B[mq];W[kq];B[mr];W[ln];B[mo];W[jm];B[qi];W[pl];B[pf];W[qc];B[pc];W[rd];B[qd];W[rb];B[qb];W[rc];B[pb];W[rf];B[rg];W[qf];B[qg];W[ra];B[kd];W[ic];B[kc];W[fb];B[gc];W[gb];B[hc];W[fc];B[fd];W[hb];B[ie];W[eb];B[db];W[jb];B[kb];W[ea];B[ga];W[gd];B[hd];W[ge];B[fe];W[id];B[he];W[gf];B[jd];W[cb];B[da];W[bd];B[bb];W[ca];B[dc];W[bc];B[cc];W[de];B[ba];W[gr];B[hr];W[er];B[eq];W[fr];B[gq];W[dq];B[jc];W[jr];B[jl];W[km];B[kl];W[ll];B[kj];W[lk];B[mi];W[kh];B[lg];W[kg];B[lf];W[ni];B[mj];W[oj];B[ng];W[nh];B[og];W[jj];B[ki];W[ji];B[hk];W[ab];B[ib];W[rr];B[rs];W[sq];B[oo];W[ss];B[sr];W[kk];B[gs];W[ss];B[qs];W[cr];B[ip];W[jp];B[ir];W[op];B[sr];W[jk];B[il];W[ss];B[oq];W[on];B[sr];W[rq];B[rj];W[rk];B[ig];W[jf];B[hi])goban-1.1.orig/games/Hon-61-2.mgt0000644000175000017500000000337506045540370014101 0ustar alal (;GM[1]SZ[19]DT[1961-05-14,15]KM[4.5]RO[2]PC[Ise Kashikojima, Mie Pref.]PB[Takagawa Kaku]PW[Sakata Eio]RE[W+1.5]FF[3]TM[10h]BS[0]WS[0];B[pd];W[cq];B[pp];W[ec];B[cd];W[cg];B[de];W[gd];B[dc] ;W[ed];B[db];W[kc];B[pj];W[nq];B[pn];W[pr];B[qq];W[kq];B[cj] ;W[cl];B[dh];W[dg];B[eg];W[bi];B[ef];W[di];B[dj];W[bj];B[ei] ;W[qf];B[mc];W[ob];B[oc];W[qc];B[qd];W[rd];B[re];W[rc];B[qe] ;W[nb];B[nc];W[mb];B[lc];W[kd];B[lb];W[kb];B[la];W[rf];B[se] ;W[pc];B[pf];W[pg];B[of];W[qi];B[qj];W[pi];B[oj];W[oi];B[lf] ;W[mg];B[nj];W[ni];B[mi];W[og];B[me];W[mh];B[kg];W[li];B[ic] ;W[hc];B[ib];W[id];B[he];W[hd];B[ka];W[jf];B[jg];W[if];B[hh] ;W[hb];B[mj];W[nf];B[ne];W[oe];B[pe];W[rh];B[cn];W[ch];B[ci] ;W[be];B[dl];W[ck];B[ep];W[dk];B[ek];W[fh];B[eh];W[dm];B[cp] ;W[dq];B[el];W[cm];B[dp];W[fr];B[fq];W[gq];B[bq];W[br];B[er] ;W[gr];B[eq];W[bp];B[em];W[dn];B[bo];W[aq];B[fo];W[hg];B[jq] ;W[jp];B[kp];W[ko];B[ip];W[lp];B[jo];W[kp];B[ir];W[io];B[hp] ;W[jn];B[dr];W[cr];B[kr];W[lr];B[qr];W[bd];B[bc];W[ks];B[ho] ;W[jr];B[iq];W[fj];B[fi];W[ej];B[di];W[gj];B[gl];W[hl];B[hm] ;W[ih];B[hi];W[ig];B[ki];W[hk];B[im];W[ce];B[dd];W[ii];B[gg] ;W[gf];B[rj];W[pq];B[op];W[bn];B[co];W[ao];B[fb];W[en];B[fn] ;W[eb];B[ea];W[qp];B[qo];W[ld];B[lj];W[lh];B[ji];W[jk];B[kk] ;W[oq];B[ma];W[ra];B[is];W[gm];B[mo];W[rp];B[rq];W[sq];B[rs] ;W[mn];B[nn];W[kf];B[md];W[mm];B[nm];W[ac];B[ab];W[ad];B[bb] ;W[fl];B[fm];W[gk];B[gn];W[ml];B[jl];W[nl];B[km];W[jm];B[kl] ;W[no];B[np];W[mp];B[oo];W[kn];B[ol];W[gi];B[gh];W[ps];B[ro] ;W[ee];B[df];W[ff];B[fg];W[ij];B[il];W[fc];B[fa];W[jj];B[od] ;W[kj];B[lg];W[in];B[gl];W[sp];B[sr];W[gm];B[cf];W[bf];B[gl] ;W[fk];B[ri];W[mf];B[le];W[ke];B[gb];W[ha];B[ja];W[jc];B[cs] ;W[bs];B[ds];W[nk];B[ok];W[pb];B[js];W[kr];B[ll];W[ln];B[mk] ;W[na];B[sd];W[sc];B[qs];W[hn];B[eo];W[si];B[sj];W[sh];B[sf] ;W[rg];B[gm])goban-1.1.orig/games/M-69-6.mgt0000644000175000017500000000334206252627042013561 0ustar alal(;GM[1]SZ[19]PB[Takagawa Kaku]PW[Rin Kaiho]KM[5]DT[1969-10-13,14]RE[W+2]ID[69/6]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[qd];W[dc];B[pq];W[dp];B[oc];W[po];B[qo];W[pp];B[qp] ;W[oq];B[qn];W[pn];B[pm];W[qq];B[pr];W[rq];B[qr];W[qm];B[ql] ;W[rr];B[or];W[rm];B[rn];W[rl];B[rp];W[qk];B[om];W[no];B[nq] ;W[nn];B[ok];W[qh];B[ml];W[kp];B[ln];W[lo];B[kn];W[ip];B[ce] ;W[mr];B[mq];W[lq];B[ck];W[fd];B[fq];W[eq];B[fp];W[dn];B[gn] ;W[in];B[gl];W[il];B[bn];W[cp];B[hq];W[kl];B[ll];W[nr];B[op] ;W[kk];B[oh];W[qf];B[kr];W[qs];B[sq];W[lr];B[sr];W[iq];B[ir] ;W[hp];B[gr];W[er];B[mp];W[mo];B[lp];W[ko];B[kq];W[ci];B[em] ;W[ei];B[cg];W[cd];B[bi];W[mj];B[ni];W[lh];B[of];W[pe];B[mf] ;W[mh];B[qg];W[pg];B[og];W[rg];B[nd];W[jc];B[kf];W[le];B[lf] ;W[hd];B[bd];W[pc];B[pd];W[oe];B[ne];W[od];B[pb];W[nc];B[ob] ;W[mc];B[jh];W[pi];B[nj];W[mk];B[qj];W[rj];B[pj];W[if];B[kd] ;W[kc];B[ld];W[qi];B[nk];W[pl];B[nm];W[mn];B[lk];W[lj];B[ie] ;W[jd];B[he];W[je];B[jf];W[gf];B[kj];W[jj];B[ki];W[ig];B[hi] ;W[de];B[bf];W[bc];B[km];W[hj];B[ij];W[ii];B[jk];W[ik];B[jl] ;W[gi];B[im];W[hn];B[hm];W[go];B[fo];W[fn];B[gm];W[jq];B[jr] ;W[jo];B[df];W[ad];B[ee];W[be];B[dd];W[bj];B[cj];W[bh];B[di] ;W[ai];B[dh];W[bk];B[cl];W[bl];B[cm];W[ch];B[ap];W[bq];B[ff] ;W[fe];B[fg];W[eh];B[ej];W[eg];B[dg];W[gh];B[ef];W[re];B[rd] ;W[sd];B[sc];W[se];B[rb];W[gg];B[ji];W[en];B[fr];W[gp];B[ij] ;W[hh];B[ed];W[ec];B[bg];W[ke];B[md];W[lc];B[la];W[ma];B[mb] ;W[nb];B[na];W[lb];B[pk];W[ma];B[oa];W[ka];B[dm];W[jj];B[sm] ;W[sl];B[sn];W[fj];B[fk];W[gk];B[fl];W[ij];B[af];W[ah];B[ae] ;W[bd];B[ol];W[jg];B[kg];W[rk];B[bp];W[bo];B[ao];W[co];B[cr] ;W[aq];B[an];W[cq];B[es];W[ds];B[fs];W[dr];B[hl];W[fh];B[hk] ;W[gj];B[pf];W[qe];B[ph];W[qg];B[jn];W[gq];B[hr];W[ep];B[eo] ;W[me];B[nf];W[oi];B[mm];W[al];B[ql];W[eb])goban-1.1.orig/games/Hon-76-2.sgf0000644000175000017500000000351706243711376014103 0ustar alal( ; DT[1976-] EV[31st Honinbo 1976] RO[2] KM[5.5] BR[Honinbo] WR[8 dan] PB[Ishida Yoshio] PW[Takemiya Masaki] RE[W+6.5] TM[9 hours] ;B[qd];W[dd];B[cp];W[pp];B[oc];W[eq];B[do];W[ck];B[qj] ;W[df];B[jd];W[iq];B[fc];W[cn];B[dn];W[cm];B[dq];W[ep];B[dr] ;W[np];B[oj];W[oe];B[nd];W[oh];B[qn];W[pd];B[pc];W[qe];B[rd] ;W[qh];B[qq];W[qp];B[rp];W[ro];B[rq];W[qo];B[or];W[pn];B[mq] ;W[mi];B[pm];W[qm];B[ql];W[rn];B[mk];W[mf];B[cc];W[dc];B[db] ;W[cd];B[bb];W[bc];B[cb];W[er];B[fn];W[di];B[re];W[id];B[je] ;W[jc];B[ic];W[hc];B[ib];W[hb];B[jb];W[kc];B[kb];W[ie];B[lc] ;W[jf];B[if];W[ge];B[bd];W[be];B[ac];W[kf];B[le];W[kj];B[om] ;W[rl];B[kl];W[ll];B[lk];W[kk];B[km];W[mm];B[lm];W[gk];B[fe] ;W[gd];B[fd];W[ff];B[ef];W[fg];B[lf];W[lg];B[ig];W[jg];B[eg] ;W[ee];B[eh];W[fh];B[ei];W[fj];B[ch];W[cg];B[dj];W[bi];B[bh] ;W[ci];B[ej];W[dh];B[fi];W[gi];B[dl];W[mn];B[ml];W[il];B[mg] ;W[ng];B[jh];W[ih];B[ii];W[hh];B[ke];W[kg];B[li];W[lh];B[jl] ;W[dm];B[fk];W[fl];B[gj];W[hk];B[ij];W[hj];B[hi];W[gh];B[ik] ;W[fj];B[ki];W[em];B[fo];W[gq];B[es];W[lr];B[mr];W[fs];B[ds] ;W[gr];B[bf];W[bg];B[jr];W[jq];B[kr];W[bp];B[bq];W[bo];B[co] ;W[ir];B[qf];W[pl];B[ol];W[qk];B[pk];W[lq];B[mp];W[mo];B[ls] ;W[im];B[hn];W[in];B[ho];W[gm];B[hm];W[hl];B[gn];W[gp];B[aq] ;W[dp];B[cq];W[fb];B[eb];W[gb];B[ec];W[ae];B[ad];W[cf];B[kq] ;W[lp];B[kp];W[lo];B[pg];W[ne];B[ph];W[rj];B[ql];W[rk];B[qi] ;W[rh];B[ri];W[si];B[oi];W[me];B[md];W[pe];B[rg];W[mj];B[lj] ;W[sp];B[sq];W[pq];B[pr];W[nq];B[nr];W[ko];B[jp];W[ms];B[ks] ;W[io];B[nh];W[og];B[ni];W[mh];B[pf];W[of];B[sg];W[sh];B[hp] ;W[ip];B[so];W[nm];B[on];W[oo];B[nl];W[fm];B[fp];W[jo];B[ns] ;W[hq];B[nj];W[hf] (;B[ap] (;W[bn];B[ed];W[de];B[ao];W[an];B[fq];W[fr];B[bs];W[hg];B[kh] ;W[oq];B[gc];W[ea];B[da];W[fa];B[ha];W[is];B[nn];W[sn];B[pl] ;W[sp];B[rr];W[so] C[266 moves complete.] BL[8hr 59m] WL[8hr 55m] ) (;W[an];B[ao];W[bn])) (;B[ao];W[bn];B[ed];W[de];B[ap];W[an])) goban-1.1.orig/games/M-90-2.mgt0000644000175000017500000000266506252627042013556 0ustar alal(;GM[1]FF[3]DT[1990-09-26,27]SZ[19]PB[Kobayashi Koichi]PW[Otake Hideo]KM[5.5]RE[W+2.5]ID[90/2]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[pq];W[co];B[dq];W[po];B[qo];W[qn];B[qp] ;W[pn];B[op];W[pj];B[de];W[dh];B[gd];W[ee];B[ef];W[fe];B[dd] ;W[fc];B[ff];W[ge];B[cc];W[ec];B[bd];W[fp];B[do];W[dp];B[ep] ;W[cp];B[eo];W[eq];B[fq];W[er];B[cn];W[dr];B[dm];W[gp];B[dj] ;W[gf];B[fh];W[ei];B[eh];W[di];B[cj];W[ej];B[gi];W[ek];B[dl] ;W[gj];B[hj];W[hk];B[gk];W[gl];B[fj];W[fk];B[jd];W[gj];B[hc] ;W[if];B[jf];W[jg];B[kf];W[fi];B[hh];W[ih];B[hg];W[ig];B[ij] ;W[ie];B[kd];W[lh];B[oc];W[en];B[bo];W[bp];B[bi];W[cg];B[cf] ;W[qf];B[pi];W[qj];B[of];W[kj];B[lq];W[jq];B[re];W[dn];B[bn] ;W[rf];B[oh];W[qi];B[ik];W[il];B[jl];W[im];B[kq];W[pp];B[nq] ;W[qq];B[rq];W[qr];B[rr];W[rn];B[sp];W[jp];B[em];W[fn];B[qe] ;W[bf];B[bh];W[bg];B[be];W[db];B[ca];W[gb];B[hb];W[cb];B[bb] ;W[jr];B[kr];W[mp];B[lo];W[ms];B[mr];W[ks];B[ls];W[lr];B[ns] ;W[lp];B[kp];W[ko];B[ls];W[ln];B[js];W[jk];B[oj];W[ok];B[nj] ;W[ir];B[nk];W[ol];B[lk];W[kl];B[lg];W[ph];B[oi];W[se];B[sd] ;W[sf];B[rd];W[pg];B[pf];W[gg];B[gh];W[jj];B[og];W[qh];B[ap] ;W[aq];B[ao];W[bq];B[fm];W[gm];B[mm];W[mo];B[li];W[kh];B[mh] ;W[lj];B[mj];W[dk];B[ck];W[ha];B[ia];W[ga];B[ic];W[gc];B[lm] ;W[km];B[so];W[sn];B[is];W[hs];B[ks];W[nl];B[hr];W[gs];B[ml] ;W[hd];B[id];W[oo];B[nm];W[om];B[nn];W[ki];B[mi];W[ii];B[hi] ;W[je];B[ke];W[da];B[ba];W[ro];B[rp];W[hf];B[fg];W[dg];B[df] ;W[fd];B[ah];W[no];B[ci];W[ae];B[ad];W[af])goban-1.1.orig/games/Nih-74-3.mgt0000644000175000017500000000171506377113330014074 0ustar alal(;SZ[19]EV[22nd Nihon-Ki-in Championship]RO[3]PB[Cho]PW[Sakata]RE[W+R]DT[1975-01-16];B[pd];W[cq];B[pp];W[ec];B[cd];W[dg];B[de];W[gd];B[dc];W[ed];B[db];W[kc];B[pj];W[nq];B[pn];W[jp];B[dp];W[cp];B[do];W[er];B[go];W[bn];B[dl];W[re];B[qd];W[qh];B[qj];W[rd];B[rc];W[oc];B[od];W[nc];B[pc];W[pf];B[nd];W[mc];B[ld];W[ri];B[rj];W[nf];B[md];W[lc];B[kd];W[jd];B[je];W[ie];B[jf];W[oi];B[id];W[jc];B[he];W[ic];B[pr];W[no];B[if];W[or];B[cj];W[qr];B[ee];W[ej];B[dj];W[ei];B[ek];W[gj];B[fk];W[ff];B[fe];W[ii];B[ki];W[gk];B[io];W[jk];B[jo];W[pq];B[hh];W[lk];B[mj];W[oh];B[mk];W[ll];B[hi];W[hj];B[qq];W[ps];B[op];W[np];B[ml];W[gi];B[lm];W[km];B[kn];W[jm];B[il];W[hl];B[ik];W[im];B[ij];W[ih];B[jj];W[hg];B[hm];W[ln];B[gf];W[di];B[lo];W[mm];B[mn];W[nm];B[lm];W[lj];B[li];W[ln];B[eg];W[ci];B[bj];W[cg];B[lm];W[mi];B[nn];W[ln];B[bf];W[gg];B[lm];W[hn];B[gm];W[ln];B[fg];W[bg];B[lm];W[gn];B[fm];W[ln];B[be];W[bl];B[lm];W[fn];B[co];W[bo];B[ln];W[em];B[fl];W[in];B[fp];W[en];B[dm];W[mh];B[oj];W[jh])goban-1.1.orig/games/M-63-4.mgt0000644000175000017500000000356306252627042013556 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-09-02,03]ID[63/4]PB[Fujisawa Shuko]PW[Sakata Eio]RE[B+12]FF[3]WR[9 Dan];B[qd];W[dc];B[pq];W[cq];B[od];W[po];B[qo];W[qn];B[qp] ;W[pm];B[pj];W[oq];B[pp];W[op];B[oo];W[pn];B[or];W[nr];B[pr] ;W[mp];B[no];W[nm];B[mo];W[lp];B[lo];W[kp];B[lm];W[nk];B[lk] ;W[ni];B[ph];W[hp];B[de];W[cg];B[cc];W[cd];B[dd];W[ce];B[cf] ;W[df];B[bf];W[bc];B[cb];W[be];B[bg];W[ec];B[fd];W[bb];B[ch] ;W[dg];B[dh];W[fg];B[ae];W[bd];B[ed];W[eh];B[fc];W[db];B[eb] ;W[ca];B[dj];W[ei];B[dl];W[id];B[he];W[hd];B[ge];W[mc];B[ie] ;W[jd];B[hi];W[fk];B[hk];W[cn];B[fm];W[gl];B[hn];W[gm];B[gn] ;W[fn];B[el];W[ij];B[do];W[fo];B[gp];W[go];B[ho];W[gq];B[ip] ;W[fp];B[hq];W[hr];B[gp];W[di];B[ci];W[hp];B[ol];W[iq];B[im] ;W[il];B[gh];W[kl];B[ll];W[ej];B[bl];W[hj];B[gj];W[em];B[pk] ;W[rk];B[rj];W[ro];B[rp];W[rm];B[mb];W[nc];B[nb];W[oc];B[lc] ;W[ld];B[kc];W[kd];B[ib];W[me];B[hb];W[sp];B[sq];W[so];B[rr] ;W[pl];B[fl];W[gk];B[ki];W[ii];B[ih];W[gi];B[fi];W[fj];B[jh] ;W[gi];B[nf];W[pd];B[pe];W[pc];B[gj];W[cl];B[ck];W[gi];B[qe] ;W[qc];B[gj];W[bj];B[cj];W[gi];B[ob];W[ne];B[oe];W[nd];B[gj] ;W[cm];B[bi];W[gi];B[kf];W[lf];B[gj];W[dk];B[ek];W[gi];B[ke] ;W[ng];B[gj];W[dm];B[dk];W[gi];B[of];W[lh];B[gj];W[kk];B[km] ;W[gi];B[mg];W[lg];B[gj];W[kj];B[lj];W[li];B[ji];W[gi];B[nl] ;W[mh];B[gj];W[bk];B[aj];W[gi];B[mf];W[le];B[gj];W[bm];B[ak] ;W[gi];B[mj];W[pb];B[gj];W[io];B[in];W[gi];B[rd];W[rc];B[gj] ;W[rq];B[qq];W[gi];B[pa];W[ra];B[gj];W[sr];B[gi];W[rq];B[np] ;W[nq];B[sq];W[jb];B[jc];W[rq];B[mq];W[mr];B[sq];W[lb];B[ic] ;W[rq];B[lq];W[lr];B[sq];W[qi];B[ss];W[qj];B[qh];W[rh];B[rg] ;W[ri];B[nj];W[jo];B[pi];W[je];B[jf];W[if];B[hf];W[fb];B[gb] ;W[ea];B[ko];W[jn];B[jm];W[jg];B[ig];W[qk];B[kq];W[jp];B[kr] ;W[jr];B[ns];W[ks];B[kg];W[om];B[sg];W[oa];B[na];W[og];B[pg] ;W[oi];B[ok];W[mm];B[ml];W[am];B[sc];W[sb];B[sd];W[ad];B[af] ;W[al];B[bk];W[ga];B[sh];W[ha];B[kb];W[si];B[ia];W[fa];B[la] ;W[qa];B[oa])goban-1.1.orig/games/T-17-1.mgt0000644000175000017500000000170106252627522013554 0ustar alal(;PB[Rin Kaiho]BR[Tengen]PW[Kato Masao]WR[9 dan]RE[B+R]KM[5.5]GM[1]SZ[19]ID[17/1]FF[3];B[pd];W[dp];B[pp];W[dc];B[de];W[ce];B[cf];W[cd];B[df] ;W[fc];B[dj];W[cl];B[pj];W[jp];B[el];W[cn];B[lq];W[ko];B[nc] ;W[qn];B[qp];W[nq];B[np];W[mp];B[mq];W[op];B[no];W[oo];B[oq] ;W[nr];B[or];W[nn];B[mo];W[mn];B[lo];W[ln];B[lp];W[jm];B[ck] ;W[dl];B[ek];W[qh];B[oi];W[qf];B[qe];W[pf];B[qi];W[ph];B[pm] ;W[pn];B[om];W[on];B[mi];W[mf];B[re];W[lc];B[ge];W[hd];B[ed] ;W[ec];B[ld];W[kc];B[mc];W[kd];B[le];W[nh];B[ni];W[kg];B[ke] ;W[mh];B[je];W[ic];B[ki];W[od];B[oc];W[jh];B[ij];W[hh];B[er] ;W[dr];B[dq];W[eq];B[cq];W[cr];B[ep];W[fq];B[cp];W[do];B[fr] ;W[br];B[gq];W[fp];B[go];W[fo];B[fn];W[ql];B[gp];W[eo];B[ro] ;W[qm];B[kk];W[ok];B[pk];W[pl];B[nk];W[ol];B[ri];W[pe];B[qd] ;W[ji];B[jj];W[li];B[lj];W[lh];B[km];W[kn];B[jq];W[fh];B[in] ;W[iq];B[ip];W[io];B[hp];W[hn];B[im];W[gn];B[hr];W[ho];B[gi] ;W[gh];B[fm];W[jn];B[kl];W[kq];B[jr];W[kr];B[ir];W[kp];B[lr] ;W[rk];B[oj])goban-1.1.orig/games/M-82-5.mgt0000644000175000017500000000234406252627042013554 0ustar alal(;PB[Cho Chikun]PW[Otake Hideo]KM[5.5]ID[82/5]GM[1]SZ[19]FF[3]BS[0]WS[0]PC[ ]DT[1982-]WR[9 Dan]BR[9 Dan]RE[B+R]KI[11];B[pd];W[dp];B[pq];W[dd];B[pk];W[jq];B[fc];W[df];B[jd] ;W[qf];B[re];W[qi];B[qj];W[pi];B[nk];W[rf];B[qe];W[pf];B[nd] ;W[mh];B[lp];W[po];B[qp];W[ql];B[rj];W[qo];B[np];W[no];B[op] ;W[nm];B[pm];W[oo];B[qm];W[lm];B[cn];W[cp];B[dj];W[ch];B[hq] ;W[jo];B[kq];W[kr];B[lr];W[kp];B[lq];W[lo];B[kn];W[jm];B[eq] ;W[ep];B[fp];W[fo];B[gp];W[dq];B[er];W[rn];B[rm];W[rp];B[nl] ;W[ir];B[ks];W[jr];B[rq];W[en];B[go];W[fm];B[gr];W[bj];B[gj] ;W[mp];B[mq];W[pp];B[mo];W[ln];B[qq];W[om];B[ol];W[dr];B[ip] ;W[jp];B[io];W[in];B[hn];W[hm];B[gl];W[gm];B[kl];W[gn];B[ho] ;W[km];B[cc];W[dc];B[db];W[eb];B[cb];W[ec];B[be];W[fd];B[ck] ;W[ld];B[lg];W[me];B[jf];W[pb];B[mc];W[lc];B[ne];W[mf];B[qc] ;W[ie];B[if];W[hi];B[il];W[ik];B[mn];W[jl];B[mm];W[gi];B[mg] ;W[nf];B[ng];W[og];B[nh];W[bf];B[ce];W[cf];B[oe];W[of];B[he] ;W[gf];B[jb];W[lb];B[mb];W[ri];B[oh];W[ph];B[sf];W[sg];B[se] ;W[fq];B[fs];W[jh];B[ge];W[ae];B[ad];W[cd];B[bd];W[ab];B[bb] ;W[af];B[ac];W[kg];B[kf];W[lf];B[hc];W[ma];B[na];W[ka];B[la] ;W[lh];B[ni];W[ma];B[nb];W[ja];B[hb];W[id];B[ic];W[ia];B[fb] ;W[fa];B[ga];W[ea];B[ff];W[kd];B[ke];W[fg];B[gg];W[gc];B[fh] ;W[eg];B[gh];W[fe];B[fi])goban-1.1.orig/games/Hon-57-4.mgt0000644000175000017500000000256106045540250014101 0ustar alal (;GM[1]SZ[19]DT[1957-08-02,03]PW[Takagawa Kaku]RE[W+R]PB[Fujisawa Hosai]FF[3]KM[4.5]RO[4]PC[Nagoya City, Aichi Pref.]TM[10h]BS[0]WS[0];B[pd];W[dc];B[pp];W[dq];B[de];W[ce];B[dd];W[cd];B[ec] ;W[cf];B[db];W[cc];B[fd];W[nc];B[jc];W[qc];B[pc];W[qd];B[pe] ;W[pb];B[ob];W[qb];B[oc];W[qf];B[co];W[ne];B[pf];W[qg];B[pg] ;W[qh];B[ph];W[pi];B[oi];W[oj];B[pj];W[qi];B[ni];W[ke];B[kd] ;W[je];B[le];W[ic];B[jd];W[id];B[ie];W[ld];B[lc];W[md];B[if] ;W[jb];B[kc];W[jg];B[jf];W[kf];B[kg];W[lf];B[lg];W[mf];B[mb] ;W[jh];B[mg];W[ng];B[mh];W[fb];B[gc];W[gb];B[ib];W[hb];B[ia] ;W[ge];B[gf];W[fe];B[ff];W[hd];B[he];W[gd];B[ee];W[hc];B[eg] ;W[ha];B[lj];W[dh];B[fi];W[ok];B[gq];W[do];B[cp];W[dp];B[dn] ;W[cq];B[cm];W[fo];B[fm];W[hp];B[jp];W[hq];B[qm];W[km];B[im] ;W[kk];B[kj];W[il];B[hm];W[jj];B[lk];W[jm];B[jk];W[ij];B[kl] ;W[jl];B[io];W[mm];B[nl];W[mo];B[mq];W[ko];B[hr];W[gp];B[ir] ;W[gr];B[kp];W[nm];B[ol];W[lq];B[lp];W[nq];B[oo];W[mp];B[mr] ;W[pq];B[np];W[oq];B[nr];W[qp];B[po];W[qo];B[qq];W[qr];B[om] ;W[jo];B[rq];W[rr];B[jn];W[ip];B[kn];W[lo];B[kr];W[ln];B[hk] ;W[nh];B[oh];W[ik];B[in];W[gj];B[gk];W[fj];B[ei];W[gi];B[di] ;W[fk];B[el];W[fl];B[gm];W[dk];B[dl];W[dj];B[ci];W[bk];B[hh] ;W[hg];B[hf];W[bj];B[bi];W[bn];B[bm];W[en];B[em];W[cn];B[an] ;W[dm];B[ll];W[lm];B[dn];W[mi];B[li];W[dm];B[hj];W[hi];B[dn] ;W[kh];B[lh];W[dm];B[ih];W[ii];B[dn];W[fh];B[gh];W[dm];B[eb] ;W[dn];B[bg];W[fc];B[ed];W[cb];B[ae];W[ad])goban-1.1.orig/games/Hon-86-4.mgt0000644000175000017500000000317206045540444014107 0ustar alal (;GM[1]SZ[19]PW[Yamashiro Hiroshi]PB[Takemiya Masaki]DT[1986-06-18,19]RE[B+R]FF[3]PC[Hiroshima]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[fq];B[cf];W[ch];B[cc];W[dc];B[cd];W[de];B[cb];W[df];B[bf] ;W[nq];B[oq];W[np];B[pn];W[lp];B[jn];W[mm];B[km];W[mk];B[kk] ;W[mi];B[ki];W[mg];B[om];W[qq];B[or];W[qo];B[po];W[rn];B[rm] ;W[qm];B[qn];W[rl];B[qp];W[ph];B[nj];W[lk];B[jj];W[li];B[qk] ;W[rh];B[nd];W[md];B[mc];W[ob];B[ne];W[mb];B[oh];W[pg];B[og] ;W[qf];B[le];W[lf];B[nf];W[lc];B[qe];W[rf];B[qi];W[rd];B[re] ;W[se];B[qc];W[rc];B[sd];W[sc];B[qb];W[rb];B[ra];W[qd];B[pe] ;W[pc];B[sb];W[sa];B[kf];W[kh];B[sb];W[ro];B[rp];W[sa];B[jh] ;W[kg];B[sb];W[jl];B[sd];W[kl];B[il];W[ik];B[jk];W[im];B[hl] ;W[jm];B[hm];W[hn];B[in];W[ll];B[hk];W[gn];B[el];W[fi];B[hi] ;W[lr];B[cp];W[cq];B[do];W[eo];B[co];W[dq];B[en];W[fn];B[dm] ;W[cj];B[fo];W[ep];B[eb];W[cl];B[cm];W[fl];B[fk];W[fm];B[ek] ;W[bl];B[ei];W[eh];B[di];W[dh];B[fh];W[ci];B[fg];W[ej];B[fj] ;W[dj];B[ei];W[db];B[da];W[fb];B[ec];W[fc];B[fd];W[ed];B[ea] ;W[fe];B[gd];W[hc];B[hd];W[gc];B[ff];W[id];B[he];W[bh];B[if] ;W[ag];B[af];W[ie];B[hf];W[fa];B[ca];W[rk];B[ql];W[rj];B[ri] ;W[sm];B[so];W[ol];B[pl];W[ok];B[oj];W[ni];B[oi];W[ce];B[be] ;W[nr];B[bm];W[bg];B[bq];W[br];B[ap];W[ad];B[ac];W[bc];B[bb] ;W[ab];B[bd];W[cg];B[aa];W[ar];B[mf];W[lg];B[nn];W[gi];B[gh] ;W[gj];B[gk];W[di];B[mo];W[lo];B[al];W[ak];B[am];W[ck];B[ai] ;W[bj];B[aj];W[bi];B[ac];W[ah];B[gp];W[em];B[dn];W[go];B[ic] ;W[jc];B[ib];W[hb];B[jb];W[kb];B[kd];W[kc];B[jg];W[dl];B[bn] ;W[os];B[ps];W[ns];B[pr];W[hj];B[ij];W[ei];B[mp];W[mq];B[ln] ;W[mn];B[no];W[ip];B[kq];W[lq];B[iq];W[io];B[jo];W[hq];B[hr] ;W[gq];B[jr];W[kn];B[is])goban-1.1.orig/games/Hon-83-7.mgt0000644000175000017500000000273206045540440014104 0ustar alal (;GM[1]SZ[19]DT[1983-07-27,28]PC[Yokohama]RE[B+R]PW[Cho Chikun]PB[Rin Kaiho]FF[3]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[dp];W[pq];B[qo];W[oc];B[kd];W[pl];B[no] ;W[mq];B[pi];W[po];B[pn];W[qp];B[rn];W[ph];B[oi];W[qi];B[qj] ;W[qh];B[od];W[pd];B[pc];W[pe];B[qc];W[pj];B[pk];W[oj];B[ok] ;W[nj];B[qk];W[nc];B[nd];W[md];B[of];W[nf];B[oe];W[og];B[pf] ;W[me];B[gc];W[ic];B[mg];W[ni];B[lc];W[mc];B[hd];W[jc];B[kc] ;W[ie];B[id];W[jd];B[je];W[ke];B[jf];W[ld];B[kf];W[le];B[cf] ;W[df];B[dg];W[ef];B[ce];W[cd];B[ec];W[ed];B[gf];W[di];B[dh] ;W[gg];B[fg];W[ff];B[hf];W[eg];B[ci];W[cj];B[bi];W[ei];B[ck] ;W[ch];B[bh];W[ro];B[qn];W[eh];B[cg];W[cq];B[dq];W[cp];B[co] ;W[bo];B[bn];W[dr];B[er];W[eq];B[do];W[fr];B[cr];W[es];B[br] ;W[eo];B[op];W[oq];B[lp];W[lq];B[kp];W[jq];B[en];W[ep];B[fn] ;W[dk];B[dl];W[rf];B[re];W[jp];B[ek];W[dj];B[bk];W[dc];B[hb] ;W[jb];B[eb];W[db];B[go];W[hp];B[gp];W[gq];B[rp];W[rq];B[so] ;W[pp];B[ml];W[oo];B[on];W[mo];B[nn];W[qf];B[qe];W[ig];B[if] ;W[bj];B[aj];W[hg];B[da];W[ca];B[ea];W[bb];B[gk];W[hj];B[hk] ;W[pb];B[qb];W[ge];B[hc];W[ij];B[ob];W[nb];B[pa];W[mp];B[in] ;W[ik];B[kh];W[il];B[kn];W[hm];B[ln];W[fk];B[fj];W[fl];B[el] ;W[gl];B[ej];W[gj];B[kq];W[kr];B[np];W[nq];B[ri];W[rh];B[rj] ;W[fi];B[sq];W[sr];B[sp];W[rr];B[bd];W[bc];B[ib];W[lb];B[ja] ;W[kb];B[be];W[jh];B[ki];W[kg];B[lf];W[lg];B[mf];W[mh];B[lj] ;W[kl];B[mk];W[hn];B[io];W[ho];B[mn];W[fm];B[ji];W[gn];B[fo] ;W[jg];B[he];W[ii];B[ng];W[pg];B[kk];W[km];B[ip];W[iq];B[jm] ;W[jl];B[em];W[lm];B[nk];W[ka];B[ia];W[fc];B[fb];W[fd];B[cs] )goban-1.1.orig/games/M-63-7.mgt0000644000175000017500000000226406252627042013556 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1963-09-29,30]ID[63/7]PB[Fujisawa Shuko]PW[Sakata Eio]RE[W+R]FF[3]WR[9 Dan];B[qd];W[dc];B[qq];W[dq];B[oc];W[do];B[de];W[ce];B[cf] ;W[cd];B[df];W[fc];B[cj];W[cl];B[qk];W[np];B[po];W[jq];B[cq] ;W[cp];B[dr];W[cr];B[eq];W[bq];B[hq];W[io];B[ho];W[hn];B[jr] ;W[kr];B[kq];W[kp];B[lq];W[ir];B[jp];W[iq];B[ip];W[jo];B[hp] ;W[lp];B[hr];W[js];B[gn];W[hm];B[gm];W[hl];B[gl];W[hk];B[gk] ;W[hj];B[ko];W[mp];B[kn];W[jm];B[km];W[jl];B[lk];W[fo];B[go] ;W[rd];B[qe];W[nm];B[mn];W[nn];B[pm];W[re];B[rc];W[qf];B[qh] ;W[ph];B[pg];W[pf];B[oh];W[of];B[pi];W[od];B[pc];W[md];B[rg] ;W[nc];B[rf];W[ch];B[dh];W[kk];B[nr];W[mq];B[ck];W[dl];B[ep] ;W[id];B[dp];W[cq];B[eo];W[bl];B[dn];W[co];B[dd];W[cc];B[ke] ;W[kc];B[ne];W[nd];B[hd];W[ic];B[kj];W[lj];B[kl];W[jk];B[mk] ;W[mj];B[nk];W[ki];B[fd];W[oq];B[or];W[bh];B[mr];W[lr];B[di] ;W[ge];B[gd];W[he];B[bf];W[ak];B[gh];W[fe];B[ec];W[eb];B[ed] ;W[gb];B[gg];W[ig];B[mg];W[fi];B[gi];W[gj];B[fj];W[ff];B[fg] ;W[fk];B[ej];W[ek];B[ei];W[em];B[dk];W[en];B[fn];W[er];B[fr] ;W[ds];B[fs];W[pq];B[pr];W[mm];B[lm];W[nj];B[oj];W[ol];B[ok] ;W[pl];B[ql];W[qp];B[pp];W[qn];B[pn];W[rq];B[qr];W[qo];B[qm] ;W[rr];B[rn];W[so];B[ro];W[rp];B[rm];W[rs];B[sr];W[ms])goban-1.1.orig/games/M-86-3.mgt0000644000175000017500000000354606252627042013563 0ustar alal(;GM[1]SZ[19]PW[Kobayashi Koichi]PB[Kato Masao]DT[1986-10-01,02]KM[5.5]RE[B+4.5]ID[86/3]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[qp];W[op];B[dp];W[qq];B[rq];W[pq];B[ro] ;W[lq];B[fc];W[cf];B[db];W[cc];B[ic];W[qf];B[qh];W[qc];B[qd] ;W[pc];B[od];W[rd];B[re];W[rc];B[qe];W[nc];B[oo];W[no];B[on] ;W[pp];B[po];W[qn];B[qo];W[pi];B[qi];W[pj];B[ph];W[ni];B[oh] ;W[mk];B[jq];W[gp];B[jo];W[ip];B[jp];W[lo];B[gn];W[eo];B[do] ;W[hn];B[ho];W[go];B[io];W[dn];B[ep];W[en];B[hm];W[fp];B[fn] ;W[fo];B[bn];W[bm];B[bo];W[cm];B[dg];W[fd];B[gd];W[fe];B[cg] ;W[ec];B[fb];W[bf];B[dj];W[ek];B[fi];W[gk];B[jl];W[hj];B[fl] ;W[fk];B[fg];W[eb];B[ea];W[hd];B[gc];W[ge];B[hh];W[jj];B[ik] ;W[ij];B[cb];W[bc];B[lc];W[hf];B[bj];W[ck];B[bg];W[cj];B[ci] ;W[bk];B[df];W[gh];B[gg];W[gi];B[ce];W[be];B[de];W[cd];B[ee] ;W[ed];B[bi];W[qj];B[nb];W[oc];B[mb];W[jc];B[ib];W[id];B[kc] ;W[ob];B[fr];W[gr];B[er];W[ej];B[ff];W[pf];B[of];W[rf];B[se] ;W[og];B[nf];W[ng];B[pg];W[nh];B[mf];W[rj];B[rh];W[nd];B[ne] ;W[sf];B[sg];W[lm];B[nn];W[mo];B[kr];W[ir];B[hq];W[gq];B[hr] ;W[hs];B[lr];W[mr];B[gl];W[rn];B[rr];W[qr];B[rs];W[lf];B[mg] ;W[oe];B[pe];W[sd];B[oe];W[lg];B[mh];W[lh];B[mi];W[mj];B[li] ;W[ki];B[lj];W[lk];B[oi];W[nj];B[rg];W[hg];B[qm];W[rm];B[pl] ;W[pm];B[ql];W[rl];B[nl];W[qk];B[ok];W[eh];B[fh];W[ei];B[eg] ;W[fm];B[gm];W[nr];B[oj];W[sk];B[jd];W[je];B[kd];W[jm];B[im] ;W[jn];B[in];W[ke];B[bb];W[ab];B[el];W[cn];B[co];W[cq];B[cr] ;W[dq];B[eq];W[dr];B[br];W[bq];B[ar];W[cs];B[aq];W[bs];B[bp] ;W[mc];B[em];W[di];B[dl];W[dk];B[kl];W[na];B[lb];W[pk];B[ol] ;W[ko];B[ll];W[mm];B[ml];W[kk];B[km];W[kn];B[mn];W[ln];B[qs] ;W[ps];B[le];W[kj];B[qg];W[ag];B[ah];W[af];B[mq];W[lp];B[jr] ;W[aj];B[dh];W[an];B[or];W[os];B[hc];W[md];B[ma];W[oa];B[fj] ;W[hk];B[gj];W[hi];B[ms];W[nq];B[ao];W[am];B[sn];W[sm];B[so] ;W[hp];B[iq];W[is];B[cl];W[pn];B[bl];W[al];B[ri];W[si];B[da] ;W[ba];B[ls];W[ns];B[js];W[gs];B[es];W[ac])goban-1.1.orig/games/Hon-50-4.mgt0000644000175000017500000000253106260606436014077 0ustar alal(;SZ[19]EV[Honinbo match game 4] DT[1950 April 26, 27, 28] PB[Hashimoto Utaro]BR[8d]PW[Iwamoto Kaoru]WR[8d] KM[4.5]RE[B+R] SO[100Y of go, vol3, game b023] ;B[qd];W[dp];B[od];W[pq];B[cd];W[ec];B[qo];W[jc];B[qj];W[op] ;B[jq];W[dh];B[df];W[cc];B[bc];W[dd];B[ce];W[kq];B[kp];W[lq] ;B[jp];W[pn];B[fq];W[ql];B[cn];W[fp];B[gp];W[eq];B[fo];W[ep] ;B[gq];W[dn];B[dm];W[en];B[dk];W[co];B[lc];W[fi];B[fk];W[ef] ;B[cb];W[ee];B[jd];W[ic];B[id];W[kd];B[kc];W[ke];B[hc];W[hb] ;B[hd];W[gb];B[kb];W[ia];B[ig];W[kg];B[hi];W[ge];B[md];W[ph] ;B[rm];W[rl];B[qq];W[qr];B[rr];W[qp];B[rq];W[po];B[pr];W[or] ;B[qs];W[qe];B[pe];W[qf];B[rd];W[nh];B[jb];W[ib];B[gi];W[fh] ;B[bn];W[bo];B[ji];W[li];B[ll];W[gn];B[dc];W[db];B[ol];W[pl] ;B[qh];W[pf];B[pi];W[oe];B[pd];W[ij];B[mf];W[og];B[ni];W[mg] ;B[mi];W[lh];B[nf];W[lf];B[hf];W[gj];B[hj];W[gk];B[hk];W[gl] ;B[ci];W[kj];B[jl];W[kk];B[hl];W[rh];B[mm];W[ch];B[bh];W[bg] ;B[bi];W[cg];B[cc];W[eb];B[bf];W[hm];B[in];W[rp];B[jk];W[qg] ;B[lk];W[fr];B[oi];W[of];B[gr];W[ok];B[om];W[rj];B[nq];W[oq] ;B[pk];W[qk];B[pj];W[af];B[ae];W[ag];B[ao];W[ap];B[an];W[bq] ;B[em];W[be];B[bd];W[cf];B[be];W[de];B[fj];W[fn];B[fl];W[lp] ;B[lo];W[mo];B[mn];W[ko];B[ln];W[im];B[no];W[np];B[mp];W[mq] ;B[jm];W[io];B[kr];W[lr];B[ho];W[hn];B[jn];W[go];B[hp];W[jr] ;B[ir];W[lj];B[mj];W[re];B[gf];W[gd];B[qi];W[sd];B[sc];W[sf] ;B[se];W[ld];B[mc];W[sd];B[rc])goban-1.1.orig/games/Hon-82-2.mgt0000644000175000017500000000331406045540436014100 0ustar alal (;GM[1]PW[Cho Chikun]PB[Kobayashi Koichi]SZ[19]FF[3]DT[1982-06-03,04]PC[Tsukushino]RE[W+3.5]BS[0]WS[0]KM[5.5];B[pd];W[pq];B[cd];W[co];B[dq];W[ec];B[hd];W[cf];B[ed] ;W[fd];B[ee];W[dc];B[ce];W[cc];B[ck];W[fe];B[eg];W[ff];B[dg] ;W[cl];B[bl];W[bk];B[cm];W[dl];B[bm];W[bj];B[dm];W[el];B[dj] ;W[di];B[ci];W[ch];B[dh];W[ei];B[cj];W[bi];B[cg];W[bh];B[ej] ;W[fi];B[fj];W[gj];B[fk];W[bg];B[bf];W[em];B[ag];W[dn];B[bo] ;W[bp];B[bn];W[gi];B[gk];W[hk];B[gm];W[hl];B[gl];W[eq];B[cp] ;W[ep];B[dr];W[ho];B[lc];W[pn];B[jp];W[hm];B[gn];W[hn];B[hq] ;W[gq];B[hp];W[go];B[mq];W[nc];B[nd];W[od];B[oe];W[oc];B[md] ;W[pc];B[qd];W[qc];B[rc];W[rb];B[rd];W[mb];B[nf];W[qj];B[qh] ;W[nr];B[mr];W[nq];B[mp];W[rh];B[qo];W[po];B[qq];W[qr];B[qp] ;W[rr];B[qm];W[rl];B[pp];W[op];B[qn];W[no];B[ql];W[rk];B[ok] ;W[qg];B[ph];W[rf];B[pf];W[oj];B[pk];W[pj];B[mk];W[nk];B[nl] ;W[nj];B[pm];W[jc];B[jd];W[ic];B[id];W[hc];B[kc];W[ml];B[nm] ;W[mo];B[lo];W[lg];B[gc];W[gb];B[jb];W[hb];B[sb];W[ra];B[kf] ;W[ln];B[ko];W[kg];B[jf];W[mf];B[me];W[mm];B[nn];W[mn];B[mh] ;W[rq];B[rp];W[rm];B[rn];W[li];B[mi];W[mj];B[lh];W[kh];B[ki] ;W[lj];B[jh];W[ji];B[jg];W[fn];B[ak];W[kj];B[lf];W[gr];B[hr] ;W[er];B[ds];W[lb];B[kb];W[ms];B[ls];W[ns];B[kr];W[dp];B[cq] ;W[be];B[df];W[bd];B[bc];W[bb];B[mg];W[ki];B[ii];W[ij];B[io] ;W[jn];B[in];W[im];B[kn];W[km];B[gd];W[fg];B[dd];W[hs];B[is] ;W[gs];B[hi];W[hg];B[gh];W[fc];B[hh];W[ir];B[js];W[jr];B[ks] ;W[kq];B[lr];W[jq];B[kp];W[hf];B[pr];W[oq];B[sr];W[sq];B[sp] ;W[ss];B[re];W[gp];B[lq];W[pg];B[og];W[bq];B[br];W[qi];B[oh] ;W[qf];B[sf];W[ie];B[je];W[sn];B[so];W[sm];B[pa];W[oa];B[na] ;W[pb];B[ob];W[nb];B[sc];W[ma];B[se];W[rg];B[sg];W[ri];B[cn] ;W[do];B[ae];W[ac];B[sh];W[qe];B[pe];W[si];B[es];W[oo];B[om] ;W[ni];B[nh];W[fs];B[ib];W[ha];B[ia];W[fb];B[ka])goban-1.1.orig/games/M-79-4.mgt0000644000175000017500000000220406252627042013554 0ustar alal(;GM[1]PB[Sakata Eio]PW[Otake Hideo]BR[9 Dan]WR[9 Dan]PC[Sapporo]DT[1979-10-17]RE[W+R]ID[79/4]SZ[19]FF[3]BS[0]WS[0];B[qc];W[dc];B[qp];W[cq];B[oq];W[qj];B[ce];W[dh];B[ee] ;W[fd];B[cc];W[cb];B[bc];W[jc];B[ec];W[ed];B[dd];W[db];B[co] ;W[eq];B[dk];W[cm];B[bk];W[em];B[fk];W[bl];B[cl];W[bm];B[fp] ;W[eo];B[ep];W[dp];B[fq];W[do];B[er];W[cj];B[dj];W[fe];B[ff] ;W[ef];B[de];W[df];B[cf];W[cg];B[eh];W[bg];B[fg];W[dg];B[bb] ;W[fc];B[bf];W[bj];B[ql];W[ip];B[ir];W[gh];B[di];W[ei];B[fh] ;W[af];B[ci];W[be];B[cd];W[bi];B[ca];W[fi];B[gi];W[gj];B[hi] ;W[fj];B[hg];W[ek];B[el];W[gk];B[ej];W[gl];B[eb];W[fb];B[da] ;W[fm];B[lc];W[je];B[he];W[hc];B[pf];W[od];B[pe];W[pc];B[qb] ;W[md];B[ld];W[le];B[mc];W[me];B[ob];W[ih];B[ig];W[jg];B[jh] ;W[ii];B[jf];W[kg];B[kf];W[lf];B[bh];W[ch];B[ke];W[if];B[kd] ;W[ie];B[lg];W[kh];B[lh];W[ki];B[li];W[qg];B[pg];W[ph];B[oh] ;W[pi];B[rf];W[qf];B[re];W[qe];B[qd];W[rg];B[ri];W[qk];B[kj] ;W[ji];B[sg];W[pl];B[qm];W[pm];B[pn];W[on];B[po];W[qh];B[om] ;W[ol];B[nm];W[nh];B[ng];W[oi];B[mj];W[og];B[nf];W[mk];B[ll] ;W[lk];B[nk];W[mg];B[ne];W[kk];B[jk];W[nd];B[kl];W[pd];B[ho] ;W[ik];B[jj];W[in];B[hm];W[hn];B[dm];W[hh];B[gn];W[im])goban-1.1.orig/games/Hon-95-4.sgf0000644000175000017500000000200206243541446014071 0ustar alal( ; FF[1] GM[1] VW[] PB[Cho Chikun] BR[9 dan] PW[Kato Masao] WR[9 dan] DT[19,20 June 1995] PC[Japan] EV[50th Honinbo title] RE[B+R] SZ[19] B[pd];W[dp];B[pp];W[dd];B[pj];W[dj];B[fc];W[df];B[jd];W[jp]; B[lq];W[ko];B[qp];W[he];B[if];W[fd];B[ec];W[dc];B[hc];W[ji]; B[kh];W[qc];B[pc];W[qd];B[qf];W[rf];B[cn];W[bo];B[cl];W[cj]; B[en];W[fp];B[ek];W[qg];B[pf];W[rh];B[pg];W[ph];B[oh];W[pb]; B[ob];W[qb];B[nc];W[fi];B[pi];W[qh];B[gn];W[gk];B[iq];W[jq]; B[hr];W[jr];B[eq];W[ep];B[dq];W[cq];B[gq];W[fm];B[fn];W[gp]; B[cr];W[dm];B[em];W[dl];B[dn];W[bq];B[br];W[hp];B[in];W[hm]; B[hn];W[hq];B[gr];W[jn];B[im];W[jl];B[ir];W[ip];B[hk];W[gj]; B[gl];W[dk];B[bn];W[bk];B[hj];W[hi];B[jj];W[kj];B[ii];W[ih]; B[ij];W[jk];B[gm];W[ki];B[jh];W[mp];B[nq];W[hh];B[ll];W[kl]; B[lk];W[kk];B[ln];W[km];B[aq];W[lh];B[lg];W[lm];B[mh];W[li]; B[mm];W[mn];B[nn];W[mo];B[jg];W[nm];B[om];W[ml];B[rj];W[qe]; B[pe];W[ol];B[pm];W[pl];B[qm];W[ni];B[nh];W[ql];B[rl];W[rm]; B[rn];W[gd];B[gc];W[db];B[hf];W[gf];B[eb];W[nr];B[or];W[mr]; B[nk];W[oq];B[pr];W[rk];B[sm] ) goban-1.1.orig/games/Hon-74-6.sgf0000644000175000017500000000270206243711046014072 0ustar alal( ; GM[1] FF[3] DT[1974-07-10,11] SZ[19] PB[Takemiya Masaki] PW[Ishida Yoshio] KM[4.5] ID[29/6] PC[Hakone] RE[B+5.5] ;B[pd];W[dp];B[pp];W[cc];B[fq];W[dn];B[jp];W[de];B[ic] ;W[qj];B[cj];W[ch];B[cl];W[eq];B[fp];W[cn];B[ql];W[qq];B[pq] ;W[qp];B[po];W[rn];B[pm];W[pr];B[or];W[qr];B[md];W[nr];B[pi] ;W[nq];B[pj];W[qc];B[qd];W[pc];B[oc];W[ob];B[nc];W[nb];B[mb] ;W[rd];B[re];W[rc];B[qf];W[eh];B[ih];W[fk];B[el];W[he];B[if] ;W[fm];B[di];W[dh];B[fl];W[gl];B[em];W[en];B[gk];W[gm];B[gj] ;W[go];B[hp];W[ie];B[je];W[hf];B[jf];W[gc];B[oq];W[os];B[fr] ;W[dr];B[hn];W[gn];B[il];W[no];B[mn];W[im];B[jm];W[nn];B[nm] ;W[mm];B[lm];W[ml];B[mp];W[np];B[nl];W[jl];B[kl];W[jk];B[ik] ;W[ij];B[hk];W[jn];B[km];W[ln];B[mo];W[lp];B[mk];W[hi];B[fi] ;W[hg];B[ji];W[hh];B[jj];W[mq];B[ll];W[gp];B[hq];W[gq];B[gr] ;W[jr];B[kq];W[kr];B[lq];W[lr];B[jq];W[ir];B[hr];W[in];B[ho] ;W[hm];B[kn];W[hb];B[rm];W[qn];B[pn];W[jb];B[jc];W[ib];B[bi] ;W[bh];B[bm];W[bn];B[kb];W[bk];B[ck];W[dl];B[ek];W[dk];B[ej] ;W[dm];B[dj];W[ig];B[jg];W[ii];B[an];W[ao];B[am];W[bp];B[ah] ;W[jh];B[kh];W[jd];B[kd];W[id];B[kk];W[hc];B[kc];W[ag];B[ai] ;W[bg];B[fh];W[fg];B[na];W[pb];B[qo];W[ro];B[er];W[jo];B[ko] ;W[es];B[sd];W[rb];B[fs];W[ds];B[ep];W[dq];B[hs];W[qm];B[rl] ;W[rp];B[ja];W[sc];B[se];W[oa];B[ma];W[ia];B[ka];W[cm];B[bl] ;W[ci];B[bj];W[sm];B[sl];W[sn];B[gh];W[gg];B[is];W[js];B[eo] ;W[do];B[iq];W[io];B[ih];W[pl];B[pk];W[jh];B[qa];W[ra];B[ih] ;W[on];B[om];W[jh];B[ns];W[ms];B[ih];W[gi];B[ei];W[jh];B[ps] ;W[qs];B[ih];B[jh]) goban-1.1.orig/games/M-92-1.mgt0000644000175000017500000000216106252640030013536 0ustar alal(;GM[1]PB[Kobayashi Koichi]PW[Otake Hideo]DT[1992-09-09,10]PC[Amsterdam Okura Hotel]RE[B+R]SZ[19]ID[92/1]BS[0]WS[0]FF[3]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pq];W[cq];B[qo];W[kq];B[fq];W[do];B[iq] ;W[nq];B[cf];W[fd];B[bd];W[ch];B[cc];W[ce];B[be];W[df];B[dg] ;W[cg];B[bf];W[eg];B[kp];W[lp];B[jp];W[dh];B[lo];W[mp];B[kr] ;W[nn];B[op];W[lr];B[jq];W[ln];B[mo];W[no];B[mn];W[mm];B[ko] ;W[np];B[pn];W[om];B[pl];W[db];B[cb];W[qf];B[qh];W[nd];B[pf] ;W[pg];B[qg];W[pc];B[qe];W[qc];B[lc];W[mc];B[ld];W[fo];B[cm] ;W[cn];B[fl];W[hl];B[dm];W[hp];B[hq];W[jc];B[jd];W[id];B[je] ;W[lb];B[kb];W[mb];B[kc];W[ic];B[me];W[lq];B[er];W[or];B[pr] ;W[dr];B[ck];W[jr];B[ir];W[ks];B[dq];W[dp];B[eq];W[cr];B[of] ;W[rd];B[nk];W[mj];B[nj];W[mi];B[lm];W[ni];B[pj];W[ll];B[km] ;W[kl];B[jm];W[pi];B[qi];W[jg];B[ie];W[ne];B[he];W[gd];B[kg] ;W[nf];B[kh];W[fk];B[ih];W[el];B[bn];W[bo];B[dn];W[co];B[fn] ;W[ig];B[hg];W[hh];B[hi];W[gh];B[jh];W[hf];B[gn];W[gi];B[mg] ;W[ng];B[re];W[lh];B[lg];W[mf];B[lf];W[md];B[le];W[hn];B[go] ;W[gg];B[jf];W[gl];B[im];W[ea];B[dc];W[ec];B[ca];W[oo];B[pm] ;W[hj];B[kj];W[jk];B[jj];W[ge];B[bm];W[hm];B[ao];W[ap];B[an] ;W[bp];B[cj])goban-1.1.orig/games/T-18-1.mgt0000644000175000017500000000154006252627522013556 0ustar alal(;PB[Rin Kaiho]BR[Tengen]PW[Yamashiro Hiroshi]RO[1]RE[B+R]KM[5.5]GM[1]SZ[19]ID[18/1]FF[3];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[jd];B[jp] ;W[dj];B[fp];W[dn];B[pn];W[jj];B[dq];W[cq];B[eq];W[cc];B[cr] ;W[jg];B[gj];W[gi];B[hi];W[hj];B[fi];W[gh];B[hk];W[ij];B[fk] ;W[eg];B[fh];W[fg];B[dk];W[ej];B[ek];W[fj];B[gk];W[br];B[bq] ;W[cp];B[bs];W[fo];B[go];W[gp];B[hp];W[fn];B[hh];W[gg];B[cj] ;W[eh];B[cm];W[hm];B[gq];W[il];B[ik];W[jk];B[jl];W[fm];B[kl] ;W[bp];B[ar];W[bm];B[bl];W[bn];B[bg];W[jm];B[km];W[dm];B[cl] ;W[am];B[ch];W[al];B[bk];W[bi];B[bj];W[lj];B[me];W[ld];B[pq] ;W[ml];B[dl];W[ep];B[nj];W[kn];B[ln];W[jn];B[lo];W[lm];B[mm] ;W[ll];B[nl];W[nm];B[mn];W[qh];B[qj];W[nk];B[ol];W[qe];B[pe] ;W[qd];B[qf];W[rf];B[rg];W[re];B[qg];W[pb];B[pc];W[qb];B[mh] ;W[lg];B[mg];W[sg];B[qc];W[rc];B[sf];W[se];B[rh];W[mj];B[ok] ;W[lf];B[mk];W[lk];B[bd];W[bc];B[df])goban-1.1.orig/games/Hon-88-2.mgt0000644000175000017500000000160106045540446014104 0ustar alal (;GM[1]PB[Otake Hideo]PW[Takemiya Masaki]SZ[19]FF[3]DT[1988-05-26,27]PC[Gero]RE[W+R]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[cd];W[qp];B[op];W[oq];B[nq];W[pq];B[np] ;W[qn];B[jp];W[ed];B[hd];W[ef];B[cf];W[eh];B[ch];W[cc];B[bc] ;W[jc];B[ie];W[oc];B[ih];W[ej];B[cj];W[pe];B[qe];W[pf];B[qg] ;W[ke];B[pc];W[ob];B[pg];W[og];B[oh];W[ng];B[fg];W[dd];B[cb] ;W[dc];B[ce];W[eg];B[ic];W[jb];B[fq];W[db];B[cn];W[dn];B[dm] ;W[co];B[en];W[do];B[cm];W[dr];B[gp];W[nh];B[gi];W[bb];B[ab] ;W[ba];B[om];W[nr];B[mr];W[or];B[lq];W[jf];B[if];W[kh];B[qf] ;W[pb];B[kj];W[ji];B[jj];W[ii];B[fi];W[ij];B[ei];W[il];B[qm] ;W[rm];B[rn];W[ro];B[rl];W[sn];B[gl];W[gg];B[ff];W[fe];B[gf] ;W[jk];B[oi];W[mj];B[ql];W[ll];B[bo];W[bp];B[an];W[er];B[jg] ;W[kg];B[be];W[ge];B[fh];W[hb];B[lm];W[ml];B[fr];W[ap];B[pd] ;W[od];B[qb];W[gj];B[fj];W[gd];B[in];W[hm];B[kl];W[kk];B[jm] ;W[pk];B[mm];W[qk];B[rk];W[qj];B[ol];W[nj];B[nl];W[oj];B[jl] ;W[ik])goban-1.1.orig/games/M-87-4.mgt0000644000175000017500000000322206252627042013554 0ustar alal(;GM[1]SZ[19]PB[Rin Kaiho]PW[Kato Masao]DT[1987-10-21,22]RE[W+3.5]ID[87/4]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[dq];W[qp];B[ce];W[do];B[ed];W[ec];B[fd] ;W[gc];B[dl];W[gp];B[fo];W[ep];B[fp];W[eq];B[fq];W[fr];B[dr] ;W[er];B[gq];W[cq];B[op];W[pn];B[gd];W[hc];B[hd];W[ic];B[id] ;W[jc];B[bn];W[cp];B[em];W[ci];B[ei];W[cg];B[dh];W[be];B[cd] ;W[bd];B[cc];W[cf];B[bj];W[ef];B[eg];W[ff];B[de];W[df];B[hg] ;W[bi];B[gh];W[dj];B[qq];W[rq];B[pq];W[ro];B[on];W[om];B[nn] ;W[hr];B[pm];W[pl];B[qm];W[ol];B[rk];W[ql];B[qn];W[rl];B[po] ;W[rn];B[ck];W[ej];B[gk];W[gj];B[hj];W[fj];B[lc];W[fh];B[qf] ;W[fg];B[ke];W[qh];B[pi];W[ph];B[pj];W[pf];B[ri];W[qe];B[pe] ;W[rf];B[qd];W[qg];B[re];W[nj];B[ni];W[oi];B[oj];W[oh];B[nk] ;W[mj];B[ok];W[mk];B[nl];W[nm];B[ml];W[mm];B[ll];W[mh];B[rr] ;W[sr];B[qr];W[lm];B[lo];W[km];B[lj];W[mi];B[jo];W[qo];B[kl] ;W[rm];B[pn];W[sl];B[ng];W[nh];B[kb];W[cb];B[of];W[mf];B[qf] ;W[nf];B[ha];W[hb];B[bb];W[db];B[bc];W[jb];B[ja];W[ia];B[ib] ;W[ga];B[gr];W[gs];B[hq];W[ir];B[kr];W[jm];B[oe];W[kh];B[ik] ;W[md];B[nc];W[nd];B[oc];W[bo];B[gi];W[fi];B[og];W[kf];B[jf] ;W[le];B[kg];W[lf];B[jh];W[ki];B[pg];W[cm];B[bm];W[cn];B[cl] ;W[kc];B[lb];W[iq];B[ip];W[kq];B[lq];W[kp];B[ko];W[lr];B[mr] ;W[lp];B[ls];W[jq];B[mp];W[hl];B[il];W[fl];B[fm];W[gl];B[hk] ;W[el];B[dm];W[hn];B[dn];W[eo];B[co];W[cn];B[go];W[kj];B[jl] ;W[hf];B[if];W[gg];B[ih];W[jj];B[ij];W[he];B[je];W[lk];B[lg] ;W[mg];B[ka];W[ia];B[ba];W[gn];B[an];W[al];B[ak];W[fn];B[bl] ;W[cj];B[am];W[ai];B[aj];W[mn];B[mo];W[ho];B[hp];W[ao];B[rg] ;W[rh];B[sf];W[sh];B[bf];W[bg];B[ad];W[af];B[fc];W[fb];B[ca] ;W[da];B[rj];W[mc];B[mb];W[pp];B[oq];W[sg];B[rf];W[lh];B[jg] ;W[js];B[jr];W[ne];B[rs];W[fs])goban-1.1.orig/games/Hon-69-1.mgt0000644000175000017500000000250106045540400014070 0ustar alal (;GM[1]SZ[19]PW[Rin Kaiho]PB[Kato Masao]KM[4.5]RE[W+R]DT[1969-04-22,23]FF[3]BS[0]WS[0];B[qd];W[cd];B[ec];W[pp];B[eq];W[hd];B[ef];W[ee];B[fe] ;W[de];B[gc];W[ff];B[ge];W[eg];B[gf];W[fg];B[nc];W[cp];B[cm] ;W[cn];B[dn];W[do];B[bn];W[co];B[dm];W[fp];B[ci];W[fq];B[pj] ;W[qm];B[cg];W[bh];B[bg];W[dg];B[ch];W[db];B[gg];W[ne];B[ld] ;W[oc];B[od];W[nd];B[pc];W[mc];B[ob];W[nb];B[oc];W[md];B[le] ;W[kc];B[jd];W[jc];B[mb];W[lb];B[na];W[lc];B[hc];W[ng];B[lg] ;W[ni];B[nf];W[of];B[mf];W[oe];B[og];W[pg];B[oh];W[qf];B[oi] ;W[kd];B[ke];W[rj];B[fr];W[gr];B[dr];W[hq];B[bq];W[ep];B[pq] ;W[qq];B[oq];W[qp];B[lq];W[op];B[np];W[mp];B[nq];W[no];B[mo] ;W[lp];B[nn];W[oo];B[kq];W[mn];B[nj];W[re];B[ip];W[lo];B[iq] ;W[fs];B[es];W[er];B[qh];W[rh];B[fr];W[ir];B[jr];W[er];B[bd] ;W[bc];B[fr];W[mq];B[gs];W[lr];B[is];W[dq];B[cq];W[er];B[bb] ;W[cc];B[eq];W[en];B[em];W[er];B[be];W[ab];B[eq];W[fm];B[fn] ;W[er];B[gn];W[fs];B[eb];W[ei];B[fr];W[ho];B[eq];W[io];B[hr] ;W[gh];B[gq];W[hp];B[hh];W[gi];B[ij];W[er];B[cr];W[dj];B[ck] ;W[kk];B[mr];W[nr];B[lk];W[lj];B[kl];W[mk];B[ll];W[mj];B[jo] ;W[jn];B[kn];W[ko];B[jp];W[im];B[jm];W[in];B[il];W[hm];B[hl] ;W[gm];B[fk];W[eo];B[eq];W[gk];B[gl];W[er];B[cf];W[df];B[eq] ;W[fl];B[ek];W[er];B[rg];W[qi];B[eq];W[ii];B[gj];W[er];B[qg] ;W[ph];B[eq];W[hk];B[hj];W[er];B[pf];W[pe];B[eq];W[ml];B[jl] ;W[er];B[pi];W[pf];B[eq];W[dk];B[el];W[er])goban-1.1.orig/games/Hon-77-5.mgt0000644000175000017500000000254006045540406014104 0ustar alal (;SZ[19]PW[Takemiya Masaki]PB[Kato Masao]DT[1977-06-29,30]KM[5.5]GM[1]FF[3]RE[B+R]BS[0]WS[0];B[pd];W[dd];B[pq];W[cp];B[pk];W[fq];B[jd];W[dj];B[fc] ;W[lp];B[po];W[qf];B[qe];W[pf];B[nd];W[pi];B[cf];W[fd];B[gd] ;W[fe];B[cc];W[cd]TR[dj];B[dc];W[ec];B[eb];W[ed];B[gc];W[fb];B[db] ;W[ge];B[he];W[hf];B[ie];W[if];B[gg];W[gf];B[bj];W[ci];B[bi] ;W[ch];B[bh];W[ck];B[bk];W[cl];B[bl];W[cm];B[io];W[ko];B[im] ;W[km];B[ik];W[kk];B[qk];W[ke];B[iq];W[kd];B[re];W[hp];B[ip] ;W[om];B[pn];W[op];B[pp];W[hl];B[jm];W[kq];B[jk];W[kj];B[gp] ;W[hq];B[ho];W[gq];B[hm];W[gn];B[gm];W[fn];B[ji];W[gj];B[gi] ;W[hj];B[hi];W[fj];B[ki];W[li];B[lh];W[ih];B[kl];W[ll];B[lm] ;W[kn];B[jl];W[ml];B[ii];W[kh];B[jh];W[kg];B[lj];W[mi];B[jg] ;W[kf];B[cg];W[gb];B[hb];W[dg];B[fi];W[ic];B[hc];W[ei];B[eg] ;W[eh];B[fh];W[ef];B[fg];W[df];B[hh];W[mj];B[jr];W[hr];B[nr] ;W[kr];B[gl];W[hk];B[ig];W[oc];B[pc];W[ob];B[od];W[mc];B[pb] ;W[rj];B[rk];W[bm];B[jc];W[nf];B[go];W[em];B[no];W[nn];B[kc] ;W[lc];B[kb];W[pm];B[qm];W[bd];B[af];W[bb];B[me];W[md];B[ne] ;W[mf];B[on];W[nm];B[mo];W[ir];B[qi];W[qh];B[ri];W[rh];B[pj] ;W[si];B[qj];W[oi];B[jq];W[js];B[fm];W[en];B[am];W[an];B[al] ;W[bn];B[mq];W[rf];B[nc];W[nb];B[oa];W[lb];B[na];W[mb];B[la] ;W[ld];B[ma];W[se];B[sd];W[sf];B[rd];W[sj];B[sk];W[sh];B[nk] ;W[nj];B[el];W[ms];B[ns];W[ka];B[ja];W[pl];B[ql];W[bc];B[mn] ;W[cb];B[ga];W[ce];B[bf];W[mm];B[ok];W[ln];B[mp];W[da];B[fa] )goban-1.1.orig/games/Nih-73-3.mgt0000644000175000017500000000207206377113212014067 0ustar alal(;SZ[19]RO[3]PB[Sakata]RE[B+R]SO[Kido Yearbook]EV[21st Nihon Kiin Ch. ship]PW[Kato]DT[1974];B[pd];W[dp];B[qp];W[dd];B[fq];W[dn];B[kq];W[nc];B[pf];W[jd];B[ci];W[iq];B[ko];W[cg];B[cl];W[gp];B[cq];W[dq];B[dr];W[cp];B[br];W[bq];B[cr];W[gq];B[fr];W[gn];B[ei];W[np];B[pn];W[lp];B[kp];W[nn];B[oq];W[nq];B[or];W[pl];B[ol];W[ok];B[om];W[nk];B[mm];W[ln];B[ml];W[kn];B[mr];W[kl];B[pk];W[pj];B[qk];W[qj];B[rl];W[rk];B[ql];W[rf];B[rd];W[qh];B[oc];W[ob];B[nd];W[nb];B[md];W[lc];B[pb];W[ec];B[eg];W[ce];B[he];W[qb];B[qa];W[oe];B[od];W[dh];B[fj];W[gi];B[eh];W[gf];B[gh];W[hf];B[mc];W[qc];B[mb];W[qd];B[rb];W[rc];B[jb];W[kb];B[qe];W[re];B[pc];W[sd];B[jc];W[kc];B[id];W[je];B[ie];W[le];B[jf];W[ld];B[ke];W[kd];B[if];W[hc];B[ic];W[lg];B[mf];W[kg];B[og];W[hh];B[ih];W[hi];B[ki];W[ii];B[jh];W[li];B[lj];W[mi];B[fe];W[ge];B[gd];W[fd];B[ff];W[gg];B[gc];W[hk];B[fl];W[ek];B[fk];W[bk];B[hl];W[il];B[hm];W[kj];B[im];W[jk];B[hb];W[jn];B[dm];W[ck];B[en];W[di];B[ej];W[dk];B[cn];W[el];B[fm];W[fp];B[dj];W[bo];B[eq];W[do];B[bl];W[bi];B[em];W[ar];B[es];W[nr];B[ho];W[io];B[hp];W[hq];B[hn];W[fo];B[ip];W[bn];B[lo])goban-1.1.orig/games/Hon-41-3.mgt0000644000175000017500000000276406045540234014100 0ustar alal (;SZ[19]PW[Sekiyama Riichi]PB[Kato Shin]KM[0]TM[13h]RE[B+1]GM[1]FF[3]DT[1941-]BS[0]WS[0];B[pd];W[ec];B[pp];W[dq];B[cd];W[nc];B[pf];W[cg];B[de] ;W[gd];B[dc];W[ed];B[ef];W[dd];B[cc];W[eg];B[fg];W[dg];B[ff] ;W[id];B[be];W[fh];B[gh];W[fi];B[cn];W[dl];B[cl];W[ck];B[dk] ;W[el];B[bk];W[cj];B[bm];W[bj];B[dm];W[gq];B[qj];W[mp];B[pn] ;W[pb];B[me];W[mm];B[mc];W[qc];B[qd];W[nb];B[pl];W[fn];B[do] ;W[nq];B[or];W[mj];B[rc];W[rb];B[pc];W[qb];B[jc];W[ic];B[gb] ;W[db];B[ib];W[gc];B[fo];W[go];B[gn];W[fp];B[fm];W[eo];B[em] ;W[cb];B[bb];W[ba];B[hg];W[hn];B[hj];W[ik];B[kk];W[om];B[pm] ;W[hk];B[ki];W[ll];B[oq];W[nr];B[ns];W[ms];B[os];W[mr];B[fb] ;W[eb];B[kb];W[bc];B[rd];W[lc];B[mb];W[sb];B[ij];W[lb];B[ld] ;W[ma];B[md];W[gi];B[hi];W[ih];B[hh];W[li];B[kh];W[bq];B[cp] ;W[bp];B[aj];W[ai];B[ak];W[bh];B[cq];W[cr];B[dp];W[eq];B[bo] ;W[oi];B[pi];W[oh];B[oj];W[ok];B[pj];W[lh];B[jk];W[jm];B[no] ;W[mo];B[fk];W[bf];B[dj];W[di];B[gm];W[hm];B[ce];W[ig];B[kg] ;W[if];B[kc];W[la];B[mg];W[mh];B[ng];W[oo];B[on];W[lk];B[ci] ;W[bi];B[ei];W[dh];B[ka];W[na];B[ej];W[fj];B[gk];W[nn];B[ol] ;W[nd];B[ne];W[sc];B[sd];W[eh];B[ek];W[hb];B[ha];W[hc];B[jd] ;W[nk];B[je];W[hf];B[jl];W[il];B[nl];W[gf];B[gg];W[en];B[nh] ;W[ni];B[nj];W[np];B[po];W[ee];B[df];W[nm];B[kl];W[km];B[pk] ;W[jf];B[kf];W[mk];B[br];W[ar];B[bs];W[cs];B[ap];W[as];B[ao] ;W[aq];B[af];W[ag];B[ae];W[fe];B[ep];W[fc];B[ga];W[lg];B[lf] ;W[og];B[of];W[cf];B[pg];W[od];B[ac];W[ab];B[bd];W[bb];B[ph] ;W[mi];B[ie];W[he];B[gl];W[hl];B[dn];W[fo];B[oc];W[ob];B[oe] ;W[ji];B[kj];W[op];B[ml];W[ea];B[ad])goban-1.1.orig/games/M-66-1.mgt0000644000175000017500000000347306260330244013550 0ustar alal(;SZ[19]EV[5th Meijin match game 1]DT[1966, August 5,6]PC[Tokyo]PB[Sakata]PW[Rin]KM[5.5]RE[W+jigo];B[qd];W[cd];B[ec];W[od];B[mc];W[qc];B[pc];W[pd];B[oc];W[nc];B[nd];W[nb];B[qb];W[rc];B[ob];W[qe];B[mb];W[ne];B[md];W[de];B[ee];W[ef];B[fe];W[dc];B[eb];W[ff];B[ge];W[gf];B[he];W[cp];B[eq];W[dk];B[hf];W[oq];B[qq];W[qn];B[qo];W[pn];B[op];W[mq];B[np];W[nq];B[on];W[jq];B[hq];W[po];B[pp];W[ro];B[rp];W[dq];B[ep];W[dn];B[om];W[pl];B[pi];W[of];B[ol];W[pk];B[ok];W[ri];B[rk];W[oj];B[pm];W[pj];B[qm];W[qp];B[rr];W[di];B[df];W[dg];B[cf];W[cg];B[nj];W[oi];B[ni];W[lf];B[oh];W[ph];B[ng];W[me];B[qi];W[qh];B[qj];W[db];B[rb];W[rd];B[da];W[ca];B[ea];W[bb];B[el];W[dl];B[do];W[co];B[en];W[em];B[fm];W[dm];B[kr];W[jr];B[kq];W[kp];B[jp];W[lq];B[ko];W[lp];B[iq];W[ir];B[hr];W[jo];B[ip];W[lr];B[pr];W[or];B[er];W[pq];B[cr];W[kn];B[bq];W[ps];B[qo];W[fn];B[an];W[qp];B[rs];W[je];B[jd];W[kd];B[jc];W[rj];B[qk];W[ap];B[bp];W[bo];B[ao];W[am];B[aq];W[bn];B[gn];W[eo];B[fo];W[en];B[gm];W[og];B[nh];W[rm];B[rh];W[rg];B[sj];W[sh];B[qo];W[dr];B[ds];W[qp];B[so];W[lo];B[in];W[sn];B[qo];W[cq];B[br];W[qp];B[sq];W[kc];B[kb];W[jb];B[ke];W[ed];B[fc];W[kf];B[lc];W[le];B[ie];W[qr];B[qo];W[fd];B[gd];W[dd];B[hc];W[gj];B[fh];W[gg];B[ap];W[bm];B[fj];W[fk];B[gi];W[ej];B[fi];W[hg];B[ii];W[im];B[ig];W[go];B[fp];W[eh];B[sc];W[mn];B[nn];W[ik];B[hj];W[gk];B[hh];W[io];B[ho];W[jn];B[hn];W[jg];B[jh];W[lk];B[gh];W[eg];B[jj];W[kh];B[ki];W[lh];B[is];W[ks];B[jk];W[jl];B[kk];W[hk];B[fl];W[if];B[jf];W[qp];B[rq];W[if];B[ih];W[kl];B[jf];W[qs];B[oo];W[if];B[mm];W[li];B[jf];W[sp];B[qo];W[if];B[ij];W[lj];B[jf];W[qp];B[so];W[if];B[kj];W[ml];B[lm];W[sd];B[sb];W[mg];B[jf];W[sp];B[qo];W[if];B[ld];W[ke];B[jf];W[qp];B[so];W[if];B[dp];W[hm];B[gl];W[hl];B[km];W[ln];B[jf];W[sp];B[qo];W[if];B[sk];W[si];B[gp];W[jm];B[ek];W[ei];B[jf];W[qp];B[so];W[if];B[nf];W[nk];B[jf];W[sp];B[qo];W[if];B[pg];W[qg];B[pf];W[oe])goban-1.1.orig/games/Hon-94-1.mgt0000644000175000017500000000324206045540456014104 0ustar alal (;RE[B+2.5]PW[Cho Chikun]NW[0]PB[Kataoka Satoshi]NB[0]DT[1994-05-09,10]SZ[19]TM[0]KM[5.5]FF[3]GM[1]BS[0]WS[0];B[qd];W[dd];B[pq];W[cp];B[ep];W[oc];B[mc];W[qn];B[pk] ;W[qq];B[qp];W[pp];B[rq];W[qr];B[po];W[op];B[qo];W[rr];B[mp] ;W[no];B[pn];W[mo];B[kp];W[md];B[ld];W[nd];B[kc];W[pg];B[nr] ;W[lp];B[lq];W[lo];B[jq];W[or];B[fc];W[qb];B[cf];W[fd];B[gd] ;W[ec];B[fe];W[ed];B[fb];W[df];B[dg];W[ef];B[cc];W[cd];B[bd] ;W[be];B[bc];W[ce];B[eb];W[qi];B[rk];W[le];B[ke];W[kf];B[lf] ;W[me];B[je];W[lg];B[cq];W[ge];B[gf];W[he];B[hd];W[rj];B[qk] ;W[hf];B[qf];W[rh];B[rb];W[qc];B[rc];W[re];B[dp];W[nb];B[cl] ;W[jf];B[dj];W[ip];B[iq];W[hp];B[ko];W[hm];B[fm];W[hq];B[jm] ;W[fq];B[fp];W[dr];B[cr];W[ir];B[jr];W[gr];B[er];W[kn];B[jn] ;W[jo];B[is];W[jp];B[kq];W[gm];B[hk];W[hr];B[mq];W[oq];B[ln] ;W[km];B[lr];W[eq];B[dq];W[fr];B[ds];W[gk];B[hj];W[jl];B[kl] ;W[lm];B[il];W[im];B[jk];W[in];B[jl];W[fl];B[em];W[fi];B[oi] ;W[ml];B[hg];W[id];B[fj];W[gj];B[gi];W[ej];B[fh];W[ei];B[ff] ;W[ic];B[ek];W[gc];B[ho];W[go];B[gp];W[fk];B[eg];W[di];B[jg] ;W[ks];B[if];W[ie];B[kg];W[js];B[gb];W[hb];B[rf];W[rd];B[pf] ;W[og];B[sd];W[ra];B[sb];W[cj];B[qe];W[mf];B[ch];W[jb];B[mb] ;W[bg];B[nc];W[od];B[qg];W[ph];B[pi];W[lh];B[qh];W[cg];B[ob] ;W[ni];B[nj];W[oj];B[mi];W[nh];B[ok];W[mj];B[nk];W[li];B[mk] ;W[lj];B[nm];W[nl];B[mm];W[ll];B[lk];W[mn];B[ol];W[ln];B[gn] ;W[bk];B[bl];W[dh];B[fo];W[hn];B[of];W[nf];B[hl];W[gl];B[kj] ;W[rp];B[ro];W[sq];B[on];W[ad];B[db];W[ac];B[ab];W[ae];B[bb] ;W[dl];B[dm];W[ck];B[el];W[dk];B[cm];W[kb];B[lb];W[jd];B[kd] ;W[nn];B[om];W[kf];B[ki];W[ga];B[fa];W[ha];B[oo];W[np];B[so] ;W[oh];B[pj];W[kh];B[jh];W[ee];B[gh];W[eh];B[fg];W[al];B[am] ;W[ak];B[ka];W[ja];B[la];W[fs];B[sp];W[rq];B[es];W[oe];B[na] ;W[pc])goban-1.1.orig/games/M-67-5.sgf0000644000175000017500000000303306252650260013541 0ustar alal( ; GM[1] EV[6th Meijin Title Match] RO[5] PB[Rin Kaiho] BR[Meijin] PW[Sakata Eio] WR[Honinbo] DT[Sept 21/22, 1967] PC[Kagojima] RE[B+R] KM[5] SZ[19] ;B[qd];W[dc];B[pq];W[oc];B[cp];W[po];B[qo];W[qn];B[qp];W[pm] ;B[on];W[pn];B[op];W[pg];B[pe];W[md];B[pc];W[od];B[pb];W[ep] ;B[eq];W[fq];B[dq];W[ce];B[fp];W[gq];B[fo];W[jq];B[cj];W[mq] ;B[hd];W[fc];B[pj];W[or];B[pr];W[oo];B[np];W[mn];B[nj];W[ng] ;B[ml];W[nr];B[kp];W[kq];B[hp];W[iq];B[km];W[lo];B[rn];W[rm] ;B[ro];W[pp];B[ql];W[pl];B[pk];W[rl];B[qk];W[qm];B[kc];W[oq] ;B[rr];W[lg];B[gc];W[fd];B[ke];W[le];B[ek];W[kf];B[je];W[ch] ;B[in];W[lc];B[kb];W[fl];B[el];W[fm];B[hk];W[hl];B[il];W[ho] ;B[em];W[fn];B[en];W[hm];B[im];W[gp];B[eo];W[go];B[qg];W[qh] ;B[rg];W[rh];B[ph];W[pi];B[oh];W[oi];B[nh];W[ni];B[mh];W[mi] ;B[lh];W[qi];B[mk];W[rk];B[og];W[of];B[oe];W[jf];B[kh];W[if] ;B[lb];W[mb];B[gb];W[nf];B[pf];W[bi];B[bj];W[aj];B[ak];W[ai] ;B[bk];W[he];B[da];W[fa];B[fb];W[eb];B[ea];W[ca];B[ga];W[db] ;B[gd];W[ge];B[dh];W[dg];B[eg];W[eh];B[di];W[df];B[fh];W[kj] ;B[li];W[ij];B[lj];W[ef];B[fg];W[id];B[ic];W[jd];B[kd];W[ie] ;B[jc];W[ik];B[hj];W[ii];B[hh];W[ih];B[kk];W[hg];B[fr];W[gr] ;B[er];W[gi];B[fk];W[ob];B[ne];W[ld];B[nd];W[sg];B[sf];W[sh] ;B[nc];W[mc];B[rb];W[fi];B[ei];W[hi];B[nb];W[na];B[la];W[ma] ;B[fa];W[cb];B[fj];W[ko];B[ff];W[gh];B[io];W[ip];B[gs];W[hs] ;B[fs];W[hr];B[jo];W[kn];B[lm];W[nm];B[jp];W[lp];B[jk];W[rf] ;B[se];W[re];B[sd];W[ol];B[oj];W[qj];B[fe];W[ee];B[gf];W[jg] ;B[jj];W[ps];B[qs];W[os];B[sn];W[rd];B[sc];W[ji];B[ci];W[bh] ;B[ki];W[rc];B[sb];W[jn];B[jm] ) goban-1.1.orig/games/M-92-6.mgt0000644000175000017500000000342106252640030013543 0ustar alal(;PB[Otake Hideo]PW[Kobayashi Koichi]DT[1992-11-04,05]RE[B+3.5]KM[5.5]ID[92/6]BS[0]WS[0]GM[1]SZ[19]FF[3]BR[9 Dan]WR[9 Dan];B[qd];W[dp];B[cd];W[qp];B[op];W[oq];B[nq];W[pq];B[nm] ;W[qm];B[gp];W[dm];B[np];W[od];B[ld];W[pg];B[qf];W[pf];B[qg] ;W[ph];B[qh];W[qc];B[rc];W[pd];B[qe];W[jc];B[qb];W[lc];B[ck] ;W[ed];B[df];W[cc];B[bc];W[dc];B[bb];W[dh];B[ff];W[fe];B[ge] ;W[gd];B[gf];W[kd];B[hd];W[hc];B[dj];W[fh];B[eg];W[ce];B[de] ;W[dd];B[bd];W[di];B[fj];W[cf];B[gc];W[fd];B[cg];W[dg];B[bf] ;W[ef];B[be];W[ee];B[fg];W[fi];B[ie];W[id];B[he];W[gb];B[gj] ;W[hh];B[hi];W[ii];B[ke];W[jh];B[md];W[lf];B[je];W[kg];B[jd] ;W[ic];B[kc];W[kb];B[mc];W[kd];B[nf];W[ng];B[ne];W[hj];B[gi] ;W[gh];B[kc];W[hk];B[lb];W[jp];B[ci];W[eq];B[mj];W[jn];B[jr] ;W[kq];B[kr];W[lq];B[lr];W[iq];B[jl];W[kk];B[jm];W[lm];B[kn] ;W[ln];B[in];W[ko];B[qo];W[ro];B[pp];W[qq];B[qn];W[rn];B[pm] ;W[pn];B[po];W[gl];B[jo];W[mo];B[ip];W[jq];B[hq];W[ir];B[hr] ;W[mr];B[mq];W[hs];B[lp];W[lo];B[gs];W[is];B[nr];W[ho];B[gn] ;W[gr];B[fr];W[fs];B[gq];W[gs];B[eo];W[fo];B[go];W[fn];B[er] ;W[fm];B[ll];W[kl];B[km];W[on];B[fq];W[dr];B[hn];W[om];B[ms] ;W[bl];B[ik];W[il];B[im];W[ch];B[bh];W[bi];B[cj];W[ah];B[bg] ;W[pl];B[pi];W[oi];B[cl];W[cm];B[pj];W[of];B[ni];W[nh];B[oj] ;W[mi];B[oh];W[li];B[es];W[bk];B[bj];W[ds];B[ep];W[dq];B[fp] ;W[do];B[ig];W[ih];B[qk];W[nk];B[lk];W[jk];B[nj];W[rl];B[nn] ;W[no];B[nl];W[oo];B[hl];W[gk];B[ek];W[pc];B[pb];W[or];B[jj] ;W[ij];B[kj];W[jb];B[cb];W[ob];B[eb];W[db];B[da];W[fb];B[mg] ;W[mh];B[mf];W[rk];B[rj];W[ok];B[ml];W[sj];B[si];W[sk];B[ri] ;W[lg];B[en];W[nb];B[mb];W[hg];B[le];W[dl];B[mp];W[kp];B[pk] ;W[ol];B[gm];W[el];B[ak];W[bm];B[dn];W[cn];B[em];W[fl];B[ki] ;W[if];B[ql];W[fa];B[ea];W[os];B[ns];W[pa];B[rb];W[js];B[ks] ;W[al];B[aj];W[jf];B[kh];W[lh];B[qa];W[oa];B[ka];W[ja];B[nd] ;W[la];B[ma];W[og])goban-1.1.orig/games/M-88-2.mgt0000644000175000017500000000225506252627042013560 0ustar alal(;GM[1]SZ[19]PW[Kato Masao]PB[Kobayashi Koichi]DT[1988-09-20,21]RE[B+R]ID[88/2]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dp];B[pq];W[dc];B[de];W[ee];B[cc];W[dd];B[cd] ;W[ef];B[cf];W[cg];B[bg];W[ch];B[df];W[dg];B[be];W[eg];B[po] ;W[nc];B[jd];W[qf];B[pf];W[pg];B[of];W[qe];B[oc];W[nd];B[pe] ;W[ke];B[je];W[kf];B[jf];W[kg];B[qd];W[jg];B[gc];W[qh];B[lc] ;W[me];B[hf];W[hh];B[jq];W[io];B[hp];W[ho];B[gp];W[go];B[fp] ;W[fo];B[ep];W[eo];B[dq];W[cq];B[dr];W[cp];B[bi];W[kp];B[kq] ;W[qm];B[pm];W[pl];B[om];W[qn];B[qo];W[bh];B[ah];W[cj];B[ql] ;W[qk];B[rl];W[rk];B[ol];W[pk];B[bj];W[ob];B[pb];W[mb];B[oa] ;W[na];B[nb];W[af];B[ag];W[ob];B[pa];W[ck];B[kl];W[ic];B[jc] ;W[ib];B[hd];W[eb];B[fb];W[fc];B[gb];W[la];B[lb];W[od];B[nb] ;W[ip];B[iq];W[ob];B[pc];W[ma];B[jb];W[ja];B[ed];W[gd];B[fd] ;W[ge];B[hc];W[fe];B[db];W[ec];B[ea];W[km];B[lk];W[lm];B[og] ;W[he];B[id];W[kj];B[ph];W[qg];B[kk];W[ml];B[ig];W[ih];B[mk] ;W[nk];B[mi];W[nh];B[ni];W[nj];B[li];W[mh];B[oi];W[oh];B[ok] ;W[oj];B[pi];W[qi];B[lh];W[mg];B[jm];W[jn];B[jh];W[kh];B[ji] ;W[ki];B[jj];W[ik];B[jk];W[lg];B[hi];W[gi];B[mf];W[le];B[hj] ;W[gj];B[gk];W[fk];B[il];W[hm];B[hk];W[im];B[ne];W[md];B[fl] ;W[ek];B[gl];W[mc];B[el];W[dl];B[kd])goban-1.1.orig/games/M-67-4.sgf0000644000175000017500000000333406252650246013550 0ustar alal( ; GM[1] EV[6th Meijin Title Match] RO[4] PB[Sakata Eio] BR[Honinbo] PW[Rin Kaiho] WR[Meijin] DT[Sept 10/11, 1967] PC[Hiroshima] RE[B+7] KM[5] SZ[19] ;B[qd];W[qp];B[dq];W[cd];B[ec];W[od];B[de];W[ce];B[df];W[cg] ;B[mc];W[qc];B[pc];W[pd];B[oc];W[nc];B[nd];W[nb];B[qb];W[rc] ;B[ob];W[qe];B[mb];W[ne];B[md];W[oq];B[co];W[ip];B[qk];W[qi] ;B[qn];W[fq];B[kq];W[oo];B[ir];W[cc];B[gd];W[hq];B[mq];W[lp] ;B[kp];W[ok];B[pm];W[ro];B[pk];W[ol];B[pi];W[ph];B[oj];W[oh] ;B[nj];W[om];B[po];W[nq];B[mp];W[lo];B[mo];W[no];B[ln];W[ko] ;B[nn];W[on];B[jo];W[kn];B[lm];W[km];B[kl];W[ll];B[jl];W[lk] ;B[ri];W[rh];B[lj];W[kj];B[li];W[jn];B[in];W[io];B[jp];W[im] ;B[hn];W[jm];B[lq];W[il];B[fn];W[fo];B[eo];W[ep];B[do];W[dr] ;B[er];W[eq];B[cr];W[dp];B[cq];W[go];B[gn];W[cp];B[bp];W[bo] ;B[fr];W[bq];B[gq];W[ap];B[gp];W[br];B[ds];W[ki];B[qj];W[qh] ;B[rn];W[fp];B[ho];W[bp];B[bn];W[bm];B[an];W[bs];B[hp];W[cs] ;B[dr];W[ar];B[je];W[he];B[hd];W[ie];B[id];W[rj];B[rk];W[si] ;B[lh];W[jf];B[ke];W[dm];B[cn];W[dg];B[cm];W[ck];B[ff];W[db] ;B[eg];W[kh];B[lg];W[eh];B[fh];W[ei];B[rb];W[rd];B[eb];W[hh] ;B[bk];W[bj];B[bl];W[dl];B[em];W[ci];B[ik];W[hl];B[hk];W[gl] ;B[gi];W[jk];B[so];W[sp];B[pp];W[pq];B[rq];W[qq];B[rp];W[sn] ;B[qo];W[rr];B[so];W[gr];B[gs];W[ro];B[cf];W[bf];B[so];W[ea] ;B[fa];W[da];B[fb];W[ro];B[ej];W[gk];B[hi];W[ng];B[so];W[gg] ;B[fg];W[ro];B[ii];W[sq];B[kg];W[jh];B[ih];W[jg];B[dh];W[ch] ;B[dj];W[di];B[cj];W[bi];B[fk];W[mf];B[le];W[hg];B[fl];W[rm] ;B[qm];W[ge];B[fe];W[nr];B[mr];W[sb];B[gf];W[hf];B[ig];W[if] ;B[gj];W[ra];B[pa];W[fi];B[fj];W[dd];B[ed];W[ms];B[ls];W[ns] ;B[sk];W[sm];B[nk];W[ml];B[gm];W[kk];B[dc];W[cb];B[aj];W[ai] ;B[ak];W[ni];B[mi];W[sj];B[ij];W[sc];B[mg];W[me];B[qa];W[sa] ;B[pl];W[rl];B[mn];W[nl];B[gh];W[nh] ) goban-1.1.orig/games/Hon-88-6.mgt0000644000175000017500000000211606045540446014112 0ustar alal (;GM[1]PB[Otake Hideo]PW[Takemiya Masaki]SZ[19]FF[3]DT[1988-07-06,07]PC[Hachioji]RE[B+R]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pq];W[dd];B[fq];W[dn];B[ip];W[pn];B[np] ;W[qj];B[fc];W[df];B[db];W[nc];B[ic];W[pf];B[qf];W[qg];B[qe] ;W[pg];B[pc];W[dj];B[nd];W[qp];B[qq];W[md];B[ne];W[me];B[nf] ;W[kc];B[ql];W[pl];B[pm];W[qm];B[om];W[rl];B[qn];W[qk];B[rm] ;W[ql];B[po];W[go];B[gp];W[ho];B[hp];W[io];B[jo];W[jn];B[ch] ;W[fd];B[bj];W[gc];B[gb];W[fb];B[ec];W[hb];B[gd];W[hc];B[ed] ;W[dh];B[hd];W[ib];B[fe];W[cg];B[co];W[cn];B[fo];W[fn];B[eo] ;W[en];B[do];W[bo];B[bp];W[bn];B[hm];W[cp];B[bq];W[cr];B[cq] ;W[dq];B[br];W[kn];B[jp];W[dr];B[bs];W[eq];B[fp];W[fr];B[hr] ;W[gr];B[gs];W[cc];B[gh];W[gf];B[eg];W[fg];B[jc];W[jb];B[eh] ;W[ef];B[ff];W[fh];B[fi];W[gg];B[di];W[ig];B[dg];W[cf];B[jf] ;W[gi];B[if];W[fj];B[ei];W[ej];B[cj];W[hh];B[bh];W[cb];B[kd] ;W[ke];B[lc];W[jd];B[kb];W[id];B[kc];W[he];B[ie];W[je];B[kf] ;W[le];B[mc];W[ge];B[fd];W[eb];B[gj];W[hj];B[gk];W[el];B[ij] ;W[hq];B[ir];W[fs];B[hs];W[ii];B[hk];W[ji];B[hi];W[gh];B[kl] ;W[lm];B[mf];W[dc];B[lf];W[ee];B[kj];W[nm];B[gn];W[in];B[ki] ;W[gm];B[lo];W[mo];B[mp])goban-1.1.orig/games/T-05-2.mgt0000644000175000017500000000307506262551634013561 0ustar alal(;SZ[19]EV[5th Tengen match]RO[Game 2]PB[Kataoka Satoshi]BR[5d]PW[Kato Masao]WR[9d and Tengen]KM[5.5]RE[W+R]SO[Kido Yearbook 1980]DT[1979-11-28];B[qd];W[dc];B[dq];W[co];B[pp];W[ep];B[eq];W[gp];B[fp];W[fo];B[fq];W[go];B[cp];W[bo];B[hq];W[di];B[oc];W[jd];B[de];W[cd];B[ge];W[ed];B[ff];W[gc];B[fi];W[dg];B[ie];W[id];B[je];W[kd];B[ke];W[ld];B[ip];W[fg];B[gg];W[fh];B[gh];W[gi];B[fj];W[hi];B[dj];W[cj];B[ci];W[ch];B[ei];W[dh];B[ck];W[bi];B[el];W[hg];B[hh];W[ih];B[gf];W[ii];B[hd];W[hc];B[hk];W[lg];B[kg];W[kh];B[lf];W[mf];B[mg];W[lh];B[me];W[nf];B[le];W[fm];B[fl];W[io];B[bj];W[jo];B[ci];W[qn];B[ng];W[of];B[ni];W[qe];B[pd];W[ph];B[mi];W[pj];B[jk];W[kj];B[mk];W[kk];B[kl];W[ll];B[km];W[lk];B[ok];W[oj];B[nk];W[ql];B[nm];W[lm];B[kn];W[mn];B[oo];W[mp];B[ko];W[oq];B[pq];W[no];B[pn];W[jp];B[kp];W[jq];B[kq];W[op];B[pm];W[pl];B[mm];W[ln];B[qm];W[pr];B[qr];W[on];B[po];W[nd];B[ne];W[oe];B[od];W[qf];B[rj];W[qk];B[nn];W[md];B[ce];W[cj];B[pg];W[qg];B[ci];W[il];B[ik];W[cj];B[qh];W[rh];B[ci];W[ol];B[om];W[cj];B[qi];W[ri];B[ci];W[gl];B[hl];W[cj];B[ee];W[dk];B[ci];W[im];B[cj];W[jl];B[jr];W[ir];B[lr];W[hr];B[gq];W[js];B[ks];W[kr];B[hm];W[hn];B[jr];W[iq];B[nr];W[or];B[mq];W[kr];B[in];W[jn];B[jr];W[gk];B[gj];W[kr];B[jm];W[in];B[jr];W[gm];B[is];W[hj];B[bd];W[bc];B[dd];W[cc];B[do];W[dn];B[en];W[em];B[cn];W[dm];B[cm];W[be];B[bf];W[ad];B[bg];W[nb];B[nc];W[mb];B[ob];W[rd];B[rc];W[re];B[mc];W[lc];B[qb];W[qs];B[rr];W[cr];B[dr];W[es];B[ds];W[bp];B[cq];W[bq];B[br];W[ar];B[bs];W[eo];B[dp];W[hs];B[rs];W[bm];B[cl];W[bn];B[bl];W[am];B[ao];W[ap];B[fs];W[bh];B[df];W[aj];B[al];W[ek];B[ej];W[fk];B[ah];W[ai];B[eg];W[eh])goban-1.1.orig/games/T-19-3.sgf0000644000175000017500000000316506445676346013572 0ustar alal( ; EV[19th Tengen title] RO[3] PB[Kataoka Satoshi] BR[9 dan] PW[Rin Kaiho] WR[Tengen] KM[5.5] DT[1993-12-02] PC[Mie, Japan] RE[W+1.5] SO[1994 WeiQi Yearbook (China)] ;B[pd];W[dd];B[pq];W[cp];B[fp];W[eq];B[fq];W[ep];B[fo] ;W[qo];B[pl];W[mq];B[po];W[jq];B[qp];W[nc];B[jd];W[qf];B[nd] ;W[md];B[oc];W[ne];B[od];W[mg];B[pf];W[pg];B[of];W[re];B[rd] ;W[qj];B[fc];W[qd];B[qc];W[qe];B[cf];W[fd];B[gd];W[ec];B[fe] ;W[ed];B[fb];W[ge];B[hd];W[ff];B[ci];W[mb];B[lc];W[mc];B[og] ;W[ph];B[oh];W[lf];B[oj];W[jb];B[kb];W[jc];B[kc];W[hb];B[ke] ;W[gc];B[he];W[ee];B[kg];W[mi];B[ki];W[lh];B[kh];W[mk];B[kk] ;W[nl];B[nj];W[mj];B[qi];W[ri];B[pj];W[rk];B[mp];W[pn];B[qk] ;W[rj];B[om];W[kl];B[lq];W[jk];B[nq];W[oo];B[pp];W[ql];B[jo] ;W[kj];B[hf];W[gb];B[jj];W[lk];B[ij];W[rc];B[rb];W[sd];B[pb] ;W[lo];B[mo];W[mn];B[nn];W[pk];B[ln];W[sb];B[oa];W[ra];B[qb] ;W[ni];B[oi];W[mm];B[qa];W[fr];B[gr];W[er];B[hq];W[be];B[cn] ;W[kn];B[ko];W[bf];B[qn];W[qm];B[rn];W[dk];B[ei];W[cj];B[bi] ;W[fj];B[fi];W[en];B[cl];W[dl];B[bk];W[gj];B[eo];W[gi];B[hh] ;W[on];B[fl];W[gl];B[ej];W[fm];B[ek];W[hm];B[do];W[bo];B[bn] ;W[bq];B[dp];W[dq];B[el];W[rm];B[ro];W[lm];B[in];W[em];B[gn] ;W[gm];B[dm];W[hn];B[ho];W[hi];B[ih];W[no];B[lp];W[bg];B[cg] ;W[eg];B[qh];W[qg];B[pi];W[rh];B[ok];W[ch];B[dh];W[bh];B[dg] ;W[ai];B[aj];W[ah];B[bj];W[ol];B[ce];W[cd];B[ja];W[ia];B[ka] ;W[pm];B[ic];W[ib];B[hc];W[eb];B[le];W[me];B[li];W[op];B[oq] ;W[ld];B[kd];W[nb];B[ob];W[an];B[am];W[ao];B[fs];W[es];B[gs] ;W[gh];B[gg];W[gf];B[co];W[cr];B[kf];W[mh];B[im];W[il];B[jm] ;W[ii];B[ji];W[dn];B[cm];W[hk];B[fk];W[gk];B[ln];W[km];B[sm] ;W[sl];B[sn];W[fn];B[go];W[jn];B[lj];W[kk];B[io];W[ik];B[sa] ;W[sc];B[ra];W[fh];B[lo] ) goban-1.1.orig/games/Hon-58-2.mgt0000644000175000017500000000152006045540250014072 0ustar alal (;GM[1]SZ[19]DT[1958-07-19,20]KM[4.5]RO[2]PC[Beppu City, Oita Pref.]PB[Takagawa Kaku]PW[Sugiuchi Masao]RE[B+R]FF[3]TM[10h]BS[0]WS[0];B[qd];W[dd];B[pq];W[oc];B[cp];W[po];B[ld];W[me];B[pc] ;W[od];B[qf];W[jd];B[fc];W[le];B[cf];W[df];B[dg];W[ef];B[cc] ;W[ce];B[cg];W[dc];B[db];W[eb];B[cb];W[ec];B[be];W[eg];B[eh] ;W[fh];B[fi];W[ei];B[dh];W[gh];B[fj];W[eq];B[do];W[jc];B[nq] ;W[hj];B[fl];W[qq];B[qr];W[qp];B[rr];W[pl];B[hq];W[cr];B[br] ;W[eo];B[en];W[fo];B[fn];W[cq];B[bq];W[ho];B[jp];W[gn];B[dp] ;W[gq];B[gr];W[gk];B[fk];W[ph];B[fq];W[gp];B[er];W[jo];B[no] ;W[rg];B[rf];W[kp];B[ip];W[kn];B[mm];W[ll];B[lo];W[ko];B[lm] ;W[km];B[nk];W[mj];B[nj];W[pj];B[mi];W[ob];B[rh];W[qg];B[sg] ;W[qb];B[qi];W[pi];B[qk];W[qj];B[rj];W[ql];B[rl];W[pk];B[rk] ;W[op];B[np];W[qh];B[ri];W[rc];B[rn];W[qn];B[ro];W[oq];B[or] ;W[pp];B[pr];W[lp];B[ml];W[mr];B[nr];W[ki];B[lk])goban-1.1.orig/games/Hon-57-1.mgt0000644000175000017500000000311706045540246014101 0ustar alal (;GM[1]SZ[19]DT[1957-06-28,29]PW[Fujisawa Hosai]RE[W+4.5]PB[Takagawa Kaku]FF[3]KM[4.5]RO[1]PC[Hongo, Tokyo]TM[10h]BS[0]WS[0];B[qd];W[cp];B[pq];W[dc];B[eq];W[oc];B[dn];W[ep];B[dp] ;W[do];B[dq];W[co];B[eo];W[fp];B[cq];W[cn];B[en];W[cl];B[gr] ;W[pf];B[od];W[pd];B[pe];W[pc];B[oe];W[qe];B[qf];W[re];B[pg] ;W[rf];B[of];W[qh];B[nc];W[nb];B[mc];W[mb];B[kc];W[hp];B[el] ;W[dj];B[hm];W[jp];B[rd];W[lb];B[rg];W[qg];B[lc];W[pf];B[qb] ;W[jb];B[ph];W[qi];B[kb];W[ka];B[qc];W[pb];B[qf];W[jc];B[se] ;W[pf];B[la];W[ma];B[qf];W[pp];B[pa];W[oq];B[qq];W[qp];B[or] ;W[nq];B[nr];W[mq];B[rp];W[ro];B[rq];W[je];B[de];W[ce];B[cf] ;W[cd];B[ff];W[eg];B[fg];W[ef];B[eh];W[ee];B[ej];W[dk];B[fi] ;W[ob];B[sf];W[dh];B[gd];W[ed];B[qo];W[hf];B[hg];W[fe];B[if] ;W[ge];B[ie];W[id];B[jf];W[ke];B[po];W[ql];B[op];W[hr];B[gq] ;W[mr];B[ol];W[pi];B[oj];W[oi];B[nj];W[ni];B[mi];W[mh];B[li] ;W[om];B[nm];W[og];B[kf];W[pl];B[rm];W[lh];B[kh];W[qm];B[rl] ;W[nl];B[ok];W[rk];B[qn];W[rn];B[so];W[sl];B[sn];W[nn];B[mm] ;W[on];B[mn];W[no];B[np];W[mo];B[mp];W[lo];B[lp];W[ko];B[km] ;W[jm];B[jl];W[lm];B[ll];W[ml];B[mk];W[ln];B[bp];W[bo];B[bq] ;W[kr];B[kq];W[jr];B[le];W[hd];B[lr];W[ls];B[lq];W[dm];B[em] ;W[ek];B[fk];W[di];B[kd];W[ei];B[fj];W[fh];B[gh];W[jd];B[oa] ;W[ms];B[he];W[gc];B[gp];W[im];B[il];W[hn];B[in];W[jn];B[gn] ;W[ho];B[go];W[gf];B[gg];W[gs];B[fs];W[hs];B[fr];W[pr];B[qr] ;W[mf];B[lf];W[hl];B[gm];W[lk];B[kl];W[ki];B[kj];W[oh];B[lg] ;W[mg];B[hq];W[ir];B[ao];W[an];B[ap];W[cm];B[me];W[nk];B[mj] ;W[rh];B[iq];W[jq];B[sj];W[rj];B[nf];W[pj];B[ng];W[nh];B[pk] ;W[qk];B[ji];W[sh];B[pf];W[sg];B[rf];W[qa];B[ra];W[ns];B[ps] ;W[ks];B[os];W[pn];B[oo];W[eh])goban-1.1.orig/games/T-21-3.mgt0000644000175000017500000000323006252627524013552 0ustar alal(;RO[3]PB[Ryu Shikun]BR[Tengen]PW[Kobayashi Koichi]WR[9 dan]DT[1995-11-30]PC[Japan]RE[W+4.5]FF[3]GM[1]VW[]SZ[19]B[pd]ID[21/3];W[dd];B[pp];W[dp];B[fq];W[cn];B[dr];W[cq];B[iq];W[qn] ;B[np];W[qk];B[qo];W[ro];B[rp];W[qh];B[nc];W[fc];B[ci];W[cg] ;B[cl];W[fp];B[gp];W[fo];B[hp];W[dk];B[ck];W[di];B[dj];W[ej] ;B[cj];W[dh];B[ek];W[fj];B[el];W[dm];B[dl];W[jd];B[rn];W[rm] ;B[so];W[jp];B[jq];W[mp];B[mo];W[lp];B[nq];W[kn];B[be];W[ce] ;B[cc];W[bf];B[eb];W[dc];B[db];W[bc];B[ec];W[gc];B[ed];W[cb] ;B[de];W[cd];B[ge];W[hd];B[hf];W[ig];B[hg];W[ih];B[if];W[jf] ;B[gi];W[ff];B[gd];W[ic];B[hh];W[ii];B[gj];W[gk];B[fk];W[fh] ;B[hk];W[gl];B[hl];W[gm];B[hj];W[in];B[kk];W[bm];B[bl];W[ki] ;B[jm];W[im];B[jl];W[jn];B[ml];W[qd];B[qc];W[qe];B[rc];W[od] ;B[pc];W[pe];B[gn];W[fm];B[pk];W[pl];B[ok];W[qj];B[cr];W[kq] ;B[bq];W[bp];B[dq];W[cp];B[fn];W[em];B[en];W[hm];B[lc];W[md] ;B[mc];W[mj];B[ol];W[mn];B[mk];W[nj];B[pi];W[oi];B[ql];W[rl] ;B[me];W[le];B[nd];W[mf];B[ld];W[ee];B[fd];W[lf];B[ph];W[qg] ;B[br];W[jj];B[jk];W[bh];B[bi];W[no];B[oo];W[nn];B[pm];W[pj] ;B[nf];W[ng];B[fi];W[ei];B[oe];W[of];B[ne];W[pf];B[sf];W[mr] ;B[nr];W[ns];B[os];W[ms];B[or];W[jr];B[sh];W[qm];B[on];W[kb] ;B[lb];W[ir];B[hr];W[kr];B[sj];W[ri];B[si];W[sk];B[kd];W[je] ;B[jb];W[ib];B[ka];W[hs];B[gs];W[is];B[gr];W[nm];B[gb];W[fb] ;B[fa];W[hc];B[pn];W[pl];B[om];W[rj];B[se];W[jc];B[kc];W[am] ;B[ai];W[gf];B[he];W[ah];B[lj];W[li];B[lm];W[ln];B[kj];W[ip] ;B[hq];W[rd];B[sd];W[sm];B[mq];W[lq];B[km];W[aq];B[ar];W[ap] ;B[ij];W[ji];B[ke];W[kf];B[oj];W[ni];B[ca];W[ba];B[al];W[il] ;B[ik];W[sn];B[ro];W[ia];B[ea];W[gh];B[hi];W[do];B[ho];W[cm] ;B[io];W[jo];B[gg];W[fg];B[rf];W[rh];B[sg];W[ja];B[kb];W[ie] ;B[eq];W[ql];B[da])goban-1.1.orig/games/M-78-5.mgt0000644000175000017500000000165206252627042013562 0ustar alal(;PB[Rin Kaiho]PW[Otake Hideo]DT[1978-10-23,24]PC[Yugawara]RE[B+R]KM[5.5]ID[78/5]GM[1]SZ[19]FF[3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dc];B[dq];W[qp];B[ce];W[do];B[gd];W[ed];B[dg] ;W[cd];B[de];W[bd];B[cm];W[en];B[gq];W[dl];B[cp];W[ge];B[he] ;W[gf];B[hd];W[di];B[fg];W[hf];B[if];W[ig];B[jf];W[jd];B[kc] ;W[gi];B[fi];W[fj];B[gh];W[ei];B[fe];W[ff];B[hg];W[ef];B[ee] ;W[hh];B[hi];W[gg];B[gj];W[eg];B[fd];W[fh];B[jg];W[qf];B[qd] ;W[of];B[pg];W[pf];B[pi];W[nh];B[ne];W[nf];B[me];W[pl];B[ok] ;W[pk];B[oj];W[li];B[ji];W[lf];B[le];W[lk];B[ol];W[pm];B[om] ;W[no];B[ll];W[kk];B[kl];W[jl];B[ln];W[jm];B[kn];W[mq];B[on] ;W[po];B[qq];W[rp];B[kq];W[re];B[rd];W[co];B[nq];W[np];B[oq] ;W[kp];B[pp];W[op];B[pq];W[lq];B[pn];W[qn];B[oo];W[qo];B[lp] ;W[jp];B[lo];W[mp];B[jq];W[nr];B[or];W[rq];B[qr];W[ps];B[nn] ;W[lr];B[ip];W[os];B[eb];W[db];B[rl];W[rm];B[rh];W[ik];B[jj] ;W[jk];B[bo];W[bn];B[bp];W[cn];B[fb];W[be];B[ch];W[ci];B[gi] ;W[gk];B[ih])goban-1.1.orig/games/Hon-81-4.mgt0000644000175000017500000000272706045540434014106 0ustar alal (;GM[1]SZ[19]DT[1981-06-23,24]FF[3]PC[Wakura]RE[W+R]PB[Cho Chikun]PW[Takemiya Masaki]BS[0]WS[0]KM[5.5];B[qd];W[dd];B[pq];W[oc];B[cp];W[eq];B[ld];W[of];B[qg] ;W[id];B[lf];W[ph];B[pg];W[og];B[oh];W[qe];B[pd];W[qf];B[pf] ;W[pe];B[oe];W[od];B[ne];W[rd];B[rg];W[qc];B[ng];W[qn];B[qp] ;W[qk];B[gq];W[do];B[co];W[dn];B[cm];W[dm];B[cl];W[dl];B[dk] ;W[ek];B[dj];W[cn];B[bn];W[bo];B[bp];W[iq];B[hp];W[ip];B[hn] ;W[io];B[ho];W[fl];B[dh];W[mq];B[hl];W[fi];B[cf];W[ej];B[di] ;W[ce];B[bf];W[jm];B[hj];W[gh];B[jk];W[df];B[be];W[cc];B[gc] ;W[hc];B[gd];W[he];B[ec];W[dg];B[cg];W[ed];B[ge];W[hf];B[gf] ;W[gg];B[db];W[fb];B[gb];W[fc];B[ib];W[jc];B[fd];W[eb];B[ff] ;W[ch];B[eg];W[bm];B[ao];W[eh];B[fa];W[dc];B[ea];W[bh];B[bi] ;W[bd];B[ci];W[ec];B[ef];W[de];B[jb];W[kc];B[kb];W[lc];B[lb] ;W[hb];B[ha];W[mc];B[ei];W[fh];B[hd];W[ic];B[ee];W[mb];B[la] ;W[ii];B[nr];W[mr];B[nq];W[mp];B[rl];W[ql];B[rk];W[ro];B[qj] ;W[pj];B[qi];W[rq];B[rp];W[sp];B[on];W[qq];B[pp];W[pr];B[np] ;W[mn];B[ol];W[rm];B[pk];W[sl];B[rj];W[ij];B[ik];W[im];B[hm] ;W[gk];B[hk];W[lk];B[mm];W[lm];B[ml];W[ll];B[kj];W[nn];B[pn] ;W[nj];B[ih];W[jh];B[hi];W[hh];B[ig];W[jg];B[ji];W[if];B[jj] ;W[ii];B[pl];W[qm];B[mk];W[lj];B[mj];W[li];B[er];W[dr];B[dp] ;W[ep];B[fr];W[dq];B[fo];W[eo];B[hr];W[ir];B[gs];W[br];B[fn] ;W[bl];B[ck];W[aq];B[ap];W[hq];B[fq];W[is];B[hs];W[ae];B[ah] ;W[af];B[bg];W[cb];B[sn];W[so];B[sm];W[rn];B[sm];W[ps];B[ms] ;W[ls];B[ns];W[rs];B[lr];W[ks];B[mo];W[lo];B[no];W[lp];B[nm] ;W[ln];B[ma];W[nb];B[bq];W[ar];B[bk];W[me];B[mf];W[mh])goban-1.1.orig/games/T-22-1.mgt0000644000175000017500000000410306424551542013546 0ustar alal( ; EV[22nd Tengen sen] RO[1] PB[Ryu Shikun] BR[Tengen] PW[Rin Kaiho] WR[9 dan] KM[5.5] DT[1996-11-08] PC[Gifu, Japan] RE[B+6.5] TM[5 hours] ;B[pd];W[dd];B[pp];W[dp];B[fq];W[ip];B[cn];W[fp];B[gp] ;W[fo];B[eq];W[dq];B[go];W[co];B[dn];W[ep];B[gn];W[gq];B[hq] ;W[gr];B[hr];W[er];B[gs];W[fr];B[fn];W[nq];B[jq];W[pn];B[oq] ;W[np];B[oo];W[op];B[po];W[pq];B[qq];W[or];B[pr];W[pj];B[qh] ;W[cg];B[jc];W[jp];B[kp];W[ko];B[kq];W[lo];B[no];W[mo];B[jn] ;W[in];B[jo];W[jm];B[kn];W[io];B[km];W[mm];B[jl];W[im];B[kk] ;W[hl];B[oq];W[mr];B[hp];W[hj];B[ek];W[ki];B[ji];W[kh];B[kj] ;W[mi];B[jh];W[jg];B[hi];W[gi];B[hh];W[fk];B[mj];W[nj];B[mk] ;W[nn];B[qn];W[pm];B[qm];W[ql];B[ej];W[gh];B[gg];W[fg];B[ni] ;W[ph];B[nh];W[pg];B[rl];W[qk];B[of];W[fl];B[cj];W[el];B[dl] ;W[di];B[dj];W[jd];B[id];W[ie];B[je];W[kd];B[he];W[if];B[hf] ;W[ic];B[hd];W[kc];B[ff];W[eg];B[ef];W[dg];B[ei];W[eh];B[ce] ;W[de];B[cd];W[dc];B[cc];W[cb];B[bb];W[db];B[bf];W[df];B[hc] ;W[jb];B[bh];W[bg];B[ag];W[ll];B[kl];W[ig];B[hg];W[lg];B[ij] ;W[gj];B[fb];W[ci];B[bi];W[ba];B[bc];W[gm];B[oj];W[hb];B[fd] ;W[gb];B[qi];W[pi];B[rk];W[pq];B[lq];W[mq];B[oq];W[nl];B[nk] ;W[ok];B[gc];W[ch];B[mc];W[pq];B[me];W[ng];B[oq];W[iq];B[ir] ;W[pq];B[lf];W[le];B[mf];W[kf];B[qg];W[qc];B[qd];W[pb];B[rc] ;W[rb];B[rd];W[nb];B[mb];W[sb];B[oq];W[cf];B[ae];W[pq];B[pc] ;W[qb];B[oq];W[ah];B[ai];W[pq];B[ra];W[na];B[ob];W[oc];B[nc] ;W[oa];B[od];W[ma];B[oq];W[ih];B[ii];W[pq];B[lb];W[la];B[oq] ;W[bn];B[bm];W[pq];B[ld];W[ke];B[oq];W[rm];B[rn];W[pq];B[fi] ;W[fh];B[oq];W[qj];B[rj];W[pq];B[ob];W[kb];B[oq];W[bo];B[ol] ;W[pq];B[ka];W[pa];B[oq];W[pl];B[em];W[pq];B[ik];W[hk];B[oq] ;W[am];B[bl];W[pq];B[qr];W[pf];B[pk];W[qo];B[oq];W[ok];B[qf] ;W[pq];B[qp];W[om];B[lr];W[ls];B[ks];W[ms];B[os];W[mg];B[oq] ;W[bj];B[bk];W[pq];B[fa];W[ga];B[oq];W[jr];B[js];W[pq];B[pe] ;W[nf];B[ne];W[ns];B[ps];W[oq];B[ln];W[mn];B[mh];W[li];B[al] ;W[an];B[ee];W[fs];B[hs];W[sc];B[sd];W[lp];B[kr];W[lc];B[md] ;W[og];B[lh];W[ab];B[ac];W[oe];B[oc];W[of];B[aa];W[oi];B[nj] ;W[ab];B[lj];W[kg];B[aa];W[be];B[bd];W[ab];B[ia];W[ib];B[aa] ;W[ro];B[sm];W[ab];B[ml];W[lm];B[aa];W[aj];B[ak];W[ab];B[do] ;W[eo];B[aa];W[ca];B[ab] ) goban-1.1.orig/games/Hon-96-5.sgf0000644000175000017500000000336406243540662014106 0ustar alal( ; EV[51st Honinbo title] RO[5] PW[Ryu Shikun] WR[7 dan] PB[Cho Chikun] BR[9 dan] KM[5.5] DT[1996-July-02,03] PC[Japan] RE[W+2.5] ; B[qd];W[dd];B[fc];W[df];B[pp]; W[dq];B[kc];W[cn];B[pj];W[jp];B[lq];W[oe];B[pf];W[ke];B[id];W[lc]; B[lb];W[kb];B[jb];W[kd];B[ka];W[jc];B[ic];W[kb];B[mc];W[qc];B[pd]; W[pc];B[od];W[oc];B[kc];W[nd];B[nc];W[kb];B[rd];W[pe];B[rf];W[md]; B[kc];W[qe];B[re];W[kb];B[mb];W[qf];B[qg];W[pg];B[qh];W[kc];B[hb]; W[nf];B[ch];W[cj];B[eh];W[ob];B[cc];W[dc];B[db];W[bf];B[bb];W[bh]; B[qp];W[lo];B[ej];W[oq];B[np];W[mq];B[mp];W[lp];B[kq];W[nq];B[op]; W[jq];B[mr];W[nr];B[lr];W[qr];B[jr];W[ir];B[hr];W[iq];B[is];W[ks]; B[js];W[gq];B[gr];W[fq];B[pq];W[pr];B[ns];W[or];B[rq];W[hq];B[rr]; W[cl];B[cg];W[bg];B[og];W[ng];B[ci];W[bi];B[dj];W[dk];B[mm];W[gk]; B[gi];W[mn];B[nm];W[kl];B[nh];W[mh];B[mi];W[li];B[lh];W[mg];B[ek]; W[el];B[ik];W[ki];B[fl];W[fk];B[gl];W[hk];B[hl];W[hj];B[jl];W[kk]; B[km];W[lm];B[ll];W[jm];B[jj];W[ji];B[kj];W[lj];B[ij];W[hi];B[em]; W[dl];B[ii];W[hh];B[ih];W[hg];B[ln];W[kn];B[lm];W[im];B[il];W[fg]; B[lk];W[ni];B[ef];W[eg];B[dg];W[ff];B[oh];W[of];B[oj];W[ph];B[oi]; W[mj];B[ee];W[fe];B[de];W[ed];B[ce];W[cf];B[rb];W[rc];B[sc];W[qb]; B[sb];W[la];B[ma];W[na];B[ja];W[nb];B[la];W[pa];B[be];W[fd];B[bj]; W[ck];B[ec];W[hs];B[gs];W[fr];B[os];W[ps];B[ms];W[nk];B[ok];W[kp]; B[fo];W[fs];B[qq];W[hs];B[do];W[co];B[ig];W[gc];B[gb];W[jf];B[di]; W[fi];B[hf];W[gf];B[af];W[mo];B[he];W[kr];B[qs];W[no];B[oo];W[nn]; B[on];W[nl];B[ol];W[gn];B[fn];W[in];B[nj];W[mk];B[jg];W[kg];B[mi]; W[jh];B[ag];W[bk];B[ah];W[aj];B[fh];W[fj];B[gd];W[ra];B[dp];W[cp]; B[go];W[gm];B[fm];W[sd];B[se];W[ho];B[hm];W[hn];B[ep];W[eq];B[cd]; W[ei];B[dn];W[gp];B[pi];W[pf];B[dm];W[cm];B[je];W[jd];B[if];W[ie]; B[ko];W[jo];B[je];W[kf];B[ni];W[dh];B[ge];W[ie] C[White connects the ko] ) goban-1.1.orig/games/T-02-1.mgt0000644000175000017500000000303406261074642013546 0ustar alal(;SZ[19]EV[2nd Tengen match]BR[9d]PW[Kobayashi Koichi]WR[7d]KM[5.5]SO[Kido yearbook]RO[Game 1]DT[1976-11-29]RE[B+4.5]PB[Suguichi Masao];B[pd];W[dp];B[pq];W[dc];B[qk];W[nc];B[pf];W[jd];B[de];W[dh];B[ge];W[gc];B[fq];W[dn];B[jp];W[po];B[np];W[ok];B[qm];W[on];B[om];W[nm];B[nl];W[qq];B[qr];W[ol];B[pm];W[mm];B[nk];W[oj];B[lk];W[qj];B[rj];W[qh];B[qi];W[pi];B[pj];W[ri];B[qj];W[oh];B[nn];W[pr];B[or];W[oq];B[ps];W[pp];B[mn];W[lm];B[nq];W[pr];B[mi];W[ng];B[pq];W[oe];B[op];W[jl];B[jk];W[mk];B[nj];W[ik];B[kl];W[jj];B[kk];W[km];B[ij];W[il];B[hj];W[ji];B[jm];W[hm];B[jn];W[ml];B[ki];W[mj];B[jh];W[ni];B[ii];W[pb];B[dk];W[rh];B[cc];W[rn];B[rm];W[rp];B[qo];W[qn];B[sn];W[fp];B[gp];W[fo];B[eq];W[dq];B[dd];W[ec];B[ck];W[gq];B[hq];W[gr];B[hr];W[fj];B[fk];W[gk];B[gj];W[ek];B[fl];W[ej];B[el];W[dl];B[di];W[dj];B[ci];W[cj];B[cl];W[bi];B[dm];W[ei];B[go];W[cn];B[fn];W[cf];B[mc];W[nb];B[qb];W[pc];B[qc];W[re];B[me];W[ne];B[dr];W[cr];B[df];W[ce];B[cd];W[fe];B[cg];W[bg];B[dg];W[ch];B[gf];W[ff];B[gg];W[fg];B[bd];W[db];B[bb];W[bf];B[ac];W[ke];B[pg];W[ph];B[ic];W[lj];B[kj];W[hd];B[pe];W[rd];B[nf];W[mf];B[lf];W[of];B[le];W[ro];B[rq];W[qp];B[sq];W[lb];B[kf];W[je];B[ln];W[oo];B[sm];W[ql];B[pl];W[sj];B[sk];W[kn];B[ko];W[en];B[fm];W[ep];B[er];W[ds];B[gs];W[es];B[fr];W[bm];B[si];W[lo];B[no];W[jf];B[li];W[ld];B[md];W[lc];B[sh];W[sg];B[sj];W[rg];B[bl];W[gh];B[ig];W[mh];B[lh];W[pk];B[rl];W[cm];B[hh];W[gi];B[mb];W[ma];B[fd];W[ed];B[gd];W[fc];B[he];W[ie];B[if];W[ee];B[nd];W[od];B[lg];W[mg];B[am];W[an];B[al];W[cb];B[ca];W[da];B[ba];W[ae];B[be];W[af];B[ad];W[aj];B[eg];W[eh];B[jg];W[bk])goban-1.1.orig/games/Hon-79-2.mgt0000644000175000017500000000116506045540410014100 0ustar alal (;GM[1]SZ[19]DT[1979-06-05]PB[Rin Kaiho]PW[Kato Masao]RE[B+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[qp];W[dc];B[fq];W[dn];B[kq];W[ci];B[pj] ;W[nc];B[lc];W[qc];B[qd];W[pc];B[od];W[rc];B[nd];W[nb];B[op] ;W[md];B[mc];W[me];B[jd];W[of];B[qg];W[hd];B[jf];W[lg];B[rd] ;W[ke];B[je];W[kd];B[kc];W[ic];B[jc];W[hf];B[jh];W[oh];B[pi] ;W[li];B[de];W[jj];B[hg];W[gf];B[mb];W[ra];B[hh];W[fh];B[cc] ;W[cb];B[cd];W[bb];B[cg];W[ef];B[ee];W[fc];B[di];W[dh];B[ch] ;W[ii];B[dj];W[kg];B[jg];W[gj];B[ma];W[qf];B[sb];W[sc];B[pb] ;W[oc];B[na];W[re];B[sd];W[qe];B[ob];W[qb];B[pa];W[cj];B[ck] ;W[bk];B[cl];W[bh];B[bl];W[bg];B[dg];W[bj];B[eh];W[dk];B[ec] )goban-1.1.orig/games/M-64-4.mgt0000644000175000017500000000230506252627042013550 0ustar alal(;GM[1]BS[0]WS[0]SZ[19]DT[1964-08-27,28]ID[64/4]PB[Sakata Eio]PW[Fujisawa Shuko]RE[B+R]FF[3]BR[9 Dan]WR[9 Dan];B[qc];W[cd];B[qp];W[dq];B[oq];W[ec];B[do];W[co];B[cn] ;W[cp];B[dm];W[fq];B[ci];W[qj];B[cf];W[pf];B[oc];W[qm];B[qh] ;W[ph];B[qg];W[pg];B[qi];W[pi];B[re];W[pj];B[ee];W[gc];B[go] ;W[hq];B[dc];W[dd];B[ed];W[db];B[fc];W[eb];B[gd];W[fb];B[hc] ;W[fd];B[fe];W[hj];B[fc];W[gb];B[fj];W[mq];B[pn];W[qq];B[pq] ;W[rp];B[rq];W[qo];B[qr];W[po];B[oo];W[gl];B[fm];W[di];B[bd] ;W[bc];B[dj];W[jp];B[ii];W[hi];B[hh];W[ih];B[ji];W[ig];B[ik] ;W[ch];B[ei];W[dh];B[bi];W[gh];B[hg];W[df];B[de];W[ce];B[bg] ;W[gf];B[hf];W[he];B[if];W[ge];B[ie];W[hd];B[be];W[cc];B[gg] ;W[fg];B[eg];W[fh];B[eh];W[id];B[jd];W[ef];B[dg];W[ff];B[gi] ;W[jc];B[ke];W[kd];B[je];W[lc];B[jn];W[nb];B[nc];W[mb];B[ld] ;W[kc];B[kq];W[kp];B[lq];W[lp];B[mr];W[mp];B[nq];W[jq];B[ep] ;W[fp];B[fo];W[bo];B[jr];W[ir];B[eq];W[er];B[fr];W[gr];B[bn] ;W[dp];B[eo];W[fs];B[km];W[pb];B[qb];W[qd];B[rd];W[qf];B[rf] ;W[ri];B[rh];W[sh];B[rg];W[ob];B[rj];W[rk];B[si];W[kk];B[lj] ;W[lk];B[jk];W[lg];B[kg];W[kf];B[lf];W[kh];B[jf];W[jh];B[mg] ;W[li];B[mj];W[mh];B[lh];W[mi];B[ki];W[lg];B[fi];W[fd];B[lh] ;W[bf];B[af];W[lg];B[ng];W[ni];B[lh];W[cg];B[jg];W[bf];B[qk] )goban-1.1.orig/games/Hon-86-5.mgt0000644000175000017500000000250206045540444014104 0ustar alal (;GM[1]SZ[19]PW[Takemiya Masaki]PB[Yamashiro Hiroshi]DT[1986-06-25,26]RE[W+R]FF[3]PC[Fukuroda]BS[0]WS[0]KM[5.5];B[qd];W[dp];B[dc];W[pp];B[cf];W[od];B[oc];W[nc];B[pc] ;W[nd];B[qf];W[jd];B[hc];W[jp];B[cn];W[cl];B[dl];W[ck];B[dm] ;W[ej];B[fp];W[fo];B[cq];W[cp];B[ep];W[dq];B[eo];W[ch];B[ef] ;W[en];B[fn];W[fm];B[go];W[do];B[dn];W[em];B[cr];W[bo];B[gm] ;W[ek];B[dr];W[eq];B[fr];W[er];B[es];W[fq];B[gq];W[gr];B[fs] ;W[hq];B[gp];W[bq];B[hr];W[br];B[nq];W[hn];B[gn];W[jn];B[pn] ;W[np];B[mp];W[no];B[oq];W[po];B[qr];W[mo];B[lp];W[lo];B[pj] ;W[ir];B[gs];W[lr];B[mr];W[jc];B[rn];W[fc];B[ed];W[fd];B[fe] ;W[gd];B[le];W[lc];B[eb];W[fb];B[jl];W[ll];B[kj];W[ge];B[bg] ;W[gk];B[mj];W[ng];B[nk];W[pm];B[qn];W[nm];B[rp];W[bh];B[km] ;W[ip];B[im];W[in];B[lm];W[on];B[ah];W[kh];B[gl];W[fk];B[ij] ;W[kp];B[ig];W[ff];B[ee];W[ik];B[jk];W[ih];B[fg];W[gf];B[eh] ;W[hh];B[lh];W[lg];B[kg];W[kf];B[mg];W[lf];B[mh];W[nf];B[mf] ;W[me];B[jh];W[jg];B[ji];W[hg];B[aj];W[bk];B[bs];W[bn];B[ql] ;W[qg];B[pg];W[pf];B[pe];W[ph];B[of];W[og];B[pf];W[oh];B[qh] ;W[qi];B[rg];W[rh];B[cg];W[ml];B[pi];W[qg];B[jf];W[if];B[qh] ;W[hk];B[il];W[qg];B[ke];W[je];B[qh];W[pl];B[qk];W[qg];B[bp] ;W[ap];B[qh];W[ni];B[ol];W[qg];B[fl];W[el];B[qh];W[qq];B[op] ;W[oo];B[pq];W[qg];B[jr];W[is];B[qh];W[qp];B[rq];W[qg];B[hp] ;W[qh];B[iq];W[jq];B[kr];W[kq];B[mq];W[ks];B[om];W[kl];B[jm] ;W[mm];B[ob];W[mi])goban-1.1.orig/games/Hon-89-4.mgt0000644000175000017500000000223406045540450014105 0ustar alal (;GM[1]SZ[19]PW[Cho Chikun]PB[Takemiya Masaki]DT[1989-06-15,16]RE[W+R]FF[3]BS[0]WS[0]KM[5.5];B[pd];W[dp];B[pp];W[dd];B[pj];W[nc];B[pf];W[pb];B[jp] ;W[hq];B[ho];W[fq];B[np];W[ne];B[ng];W[qc];B[cf];W[fd];B[bd] ;W[cc];B[ci];W[qh];B[ph];W[qg];B[pg];W[rj];B[qk];W[rk];B[qm] ;W[re];B[iq];W[hp];B[io];W[qq];B[pq];W[qp];B[qo];W[ro];B[rn] ;W[po];B[qn];W[pr];B[or];W[rr];B[ps];W[qs];B[qr];W[dh];B[ch] ;W[pr];B[rf];W[qf];B[qr];W[df];B[ce];W[pr];B[qe];W[qd];B[qr] ;W[ir];B[jr];W[pr];B[pe];W[rg];B[qr];W[mg];B[rs];W[mh];B[md] ;W[nd];B[id];W[hc];B[ic];W[hb];B[mc];W[me];B[kd];W[mj];B[le] ;W[lf];B[kf];W[ok];B[rl];W[kg];B[jf];W[pl];B[ql];W[co];B[cm] ;W[hr];B[lm];W[jg];B[ig];W[ih];B[hh];W[if];B[hg];W[kc];B[jc] ;W[mb];B[hf];W[lc];B[de];W[ee];B[ef];W[ff];B[eg];W[ld];B[fg] ;W[em];B[el];W[fl];B[ek];W[dm];B[cl];W[go];B[bc];W[bb];B[hd] ;W[oj];B[pi];W[ip];B[jq];W[jo];B[jn];W[ko];B[im];W[mo];B[nm] ;W[lq];B[lr];W[mr];B[lp];W[hn];B[in];W[mp];B[kq];W[mq];B[lo] ;W[js];B[ln];W[ls];B[ec];W[ed];B[gc];W[fc];B[gb];W[fb];B[gd] ;W[cn];B[ab];W[ba];B[fa];W[ea];B[ga];W[db];B[fk];W[ii];B[bn] ;W[bo];B[bm];W[kr];B[kp];W[jj];B[ao];W[ap];B[an];W[bp];B[hj] ;W[gl];B[ri];W[qi];B[qj];W[si];B[ke];W[jb];B[ib];W[lk])goban-1.1.orig/games/M-62-l02.sgf0000644000175000017500000000253106252641420013765 0ustar alal( ; GM[1] VW[] US[Converted by sgf2misc-2.5] GN[meijin/1962/game-b] EV[1st Meijin Tournament] PB[Fujisawa Shuko] BR[8 dan] PW[Sakata Eio] WR[9 dan] DT[1962/02/21,22] RE[B+R] SO[Go World 21 (1980), has commentary by Fujisawa Shuko] BL[1800.0]WL[1800.0];B[qd];W[dc];B[pq];W[cq];B[oc];W[po];B[qo];W[pp];B[qp];W[oq] ;B[qn];W[pr];B[qq];W[jq];B[ce];W[dh];B[df];W[fd];B[bc];W[jc] ;B[dp];W[dq];B[ep];W[bo];B[em];W[fr];B[lc];W[dn];B[en];W[fo] ;B[fp];W[dm];B[go];W[el];B[fl];W[ek];B[fk];W[fj];B[gj];W[cg] ;B[nq];W[op];B[nr];W[or];B[lq];W[om];B[lo];W[pl];B[rl];W[lm] ;B[jp];W[qk];B[rk];W[nd];B[pn];W[on];B[no];W[oo];B[ok];W[qj] ;B[pi];W[mk];B[mi];W[qi];B[ph];W[qh];B[pg];W[oj];B[pj];W[pk] ;B[nj];W[nk];B[jd];W[ic];B[kd];W[qf];B[pf];W[qe];B[pe];W[rd] ;B[rc];W[qc];B[pd];W[rb];B[qg];W[kj];B[id];W[hd];B[he];W[gd] ;B[ei];W[ej];B[di];W[ci];B[dj];W[cj];B[eh];W[ck];B[gi];W[ip] ;B[jo];W[gq];B[co];W[bn];B[jl];W[kl];B[jk];W[jm];B[io];W[li] ;B[rg];W[pb];B[oi];W[kk];B[hk];W[mj];B[ki];W[mh];B[ni];W[kh] ;B[ji];W[lf];B[kg];W[jh];B[lg];W[lh];B[kf];W[jj];B[ii];W[ij] ;B[hl];W[mg];B[ig];W[rj];B[rh];W[ih];B[hi];W[hg];B[if];W[nf] ;B[me];W[hh];B[ge];W[fe];B[fg];W[ne];B[nc];W[ff];B[gg];W[gf] ;B[hf];W[gh];B[fi];W[md];B[le];W[eg];B[fh];W[mc];B[mb];W[nb] ;B[lb];W[mf];B[ld];W[qr];B[rr];W[rq];B[sr];W[lr];B[mo];W[rm] ;B[qm];W[nn];B[lj];W[ho];B[hn];W[hp];B[im];W[ql];B[sm];W[os] ;B[qs];W[kq];B[ns]) goban-1.1.orig/games/Hon-41-4.mgt0000644000175000017500000000146106045540234014072 0ustar alal (;SZ[19]PW[Kato Shin]PB[Sekiyama Riichi]KM[0]TM[13h]RE[B+R]GM[1]FF[3]DT[1941-]BS[0]WS[0];B[qd];W[nd];B[pq];W[dd];B[cp];W[eq];B[po];W[jq];B[oc] ;W[nc];B[od];W[ne];B[ic];W[gc];B[ie];W[ge];B[ng];W[jd];B[je] ;W[id];B[kd];W[kc];B[lc];W[ld];B[ke];W[jc];B[lb];W[le];B[nb] ;W[lg];B[hd];W[hc];B[he];W[ib];B[gf];W[oe];B[pe];W[og];B[pf] ;W[of];B[do];W[qm];B[lq];W[pg];B[hq];W[eo];B[en];W[fo];B[dq] ;W[ho];B[om];W[er];B[pk];W[ck];B[qk];W[fg];B[de];W[ee];B[cd] ;W[ce];B[df];W[cf];B[dg];W[ed];B[cj];W[cg];B[dk];W[dh];B[jh] ;W[cl];B[dl];W[bj];B[ip];W[cm];B[dm];W[cn];B[dn];W[cr];B[hm] ;W[gr];B[hr];W[im];B[hl];W[in];B[jp];W[rj];B[rk];W[qf];B[kn] ;W[qp];B[qq];W[ol];B[nl];W[ok];B[pl];W[pm];B[on];W[oj];B[ri] ;W[km];B[lm];W[kl];B[ll];W[kj];B[hi];W[qj];B[pj];W[qi];B[oi] ;W[nj];B[qh];W[rh];B[pi];W[si];B[ni];W[mj];B[sk];W[ph];B[lh] )goban-1.1.orig/games/M-94-3.mgt0000644000175000017500000000261406252627044013557 0ustar alal(;GM[1]SZ[19]DT[1994-10-05,06]KM[5.5]RO[3]PC[Atami Sekitei, Atami, Shizuoka]PB[Rin Kaiho]PW[Kobayashi Koichi]RE[W+R]TM[8 hours each]FF[3]ID[94/3]BS[0]WS[0]BR[9 Dan]WR[9 Dan];B[pd];W[dd];B[pp];W[dp];B[pj];W[nc];B[jp];W[qf];B[oe] ;W[qc];B[qd];W[pc];B[md];W[od];B[pe];W[ne];B[nd];W[oc];B[pg] ;W[nf];B[rc];W[rd];B[re];W[ld];B[mc];W[lc];B[me];W[mb];B[le] ;W[mg];B[sd];W[kb];B[kf];W[kh];B[if];W[ni];B[hg];W[dg];B[hi] ;W[ih];B[hh];W[je];B[jf];W[jj];B[hk];W[nk];B[cc];W[cd];B[dc] ;W[ec];B[eb];W[fb];B[fc];W[ed];B[gb];W[db];B[fa];W[cb];B[cn] ;W[fq];B[cq];W[cp];B[bp];W[bo];B[bq];W[co];B[dq];W[eq];B[bn] ;W[ao];B[dn];W[eo];B[dr];W[er];B[bs];W[jr];B[ci];W[fm];B[il] ;W[pi];B[qi];W[ph];B[qh];W[qj];B[pk];W[qk];B[ql];W[ri];B[rh] ;W[rj];B[qg];W[pl];B[ol];W[pm];B[ok];W[qm];B[om];W[on];B[nn] ;W[oo];B[pn];W[po];B[qn];W[rm];B[rn];W[rl];B[qp];W[no];B[mm] ;W[ml];B[lm];W[oj];B[nm];W[oq];B[mj];W[nj];B[kk];W[og];B[mq] ;W[nq];B[pr];W[or];B[pq];W[kq];B[hq];W[kp];B[ir];W[ip];B[hp] ;W[io];B[ho];W[in];B[hn];W[ck];B[el];W[hm];B[im];W[gn];B[iq] ;W[ko];B[jq];W[kn];B[ll];W[kr];B[oh];W[dj];B[fl];W[kj];B[oi] ;W[mk];B[gr];W[hs];B[bc];W[bb];B[di];W[nh];B[cf];W[df];B[bf] ;W[bd];B[em];W[go];B[en];W[gp];B[jc];W[jb];B[ic];W[sn];B[rq] ;W[sp];B[sq];W[ps];B[qs];W[os];B[qr];W[ib];B[qb];W[pb];B[rb] ;W[hc];B[hd];W[hb];B[gd];W[an];B[bl];W[bh];B[bi];W[bm];B[mo] ;W[mr];B[cm];W[am];B[al]TR[bl];W[cl];B[aj];W[bj];B[ak];W[ah];B[ai] ;W[cg])goban-1.1.orig/games/Hon-73-4.sgf0000644000175000017500000000233506243710576014100 0ustar alal( ; EV[28th Honinbo] RO[4] DT[1973-06-11,12] PB[Ishida Yoshio] PW[Rin Kaiho] PC[Hiroshima, Japan] RE[B+7.5] ;B[pd];W[dp];B[qp];W[cd];B[ec];W[oq];B[lp];W[hd];B[op] ;W[ed];B[pq];W[dc];B[pj];W[dj];B[fp];W[nd];B[ne];W[me];B[nf] ;W[qc];B[od];W[re];B[dn];W[eo];B[cq];W[cp];B[dq];W[en];B[ep] ;W[do];B[gn];W[in];B[hm];W[jq];B[hq];W[hp];B[gp];W[np];B[nq] ;W[mq];B[or];W[nr];B[no];W[oq];B[qd];W[rd];B[nq];W[hr];B[iq] ;W[oq];B[de];W[dd];B[nq];W[ip];B[jr];W[ir];B[gq];W[kq];B[mp] ;W[el];B[ch];W[ci];B[kr];W[lr];B[jp];W[js];B[kp];W[ks];B[rg] ;W[ij];B[fm];W[em];B[ei];W[gk];B[bi];W[bj];B[di];W[cj];B[ee] ;W[fe];B[ff];W[ge];B[hh];W[pf];B[nc];W[qh];B[qg];W[pg];B[qi] ;W[md];B[qb];W[rc];B[pc];W[mf];B[ng];W[mg];B[nh];W[dg];B[eg] ;W[cf];B[mh];W[rb];B[jh];W[gi];B[gh];W[fi];B[fh];W[lc];B[lb] ;W[kb];B[mb];W[pb];B[ob];W[qa];B[kc];W[jb];B[ld];W[ig];B[hi] ;W[mc];B[fk];W[fl];B[gl];W[fj];B[hk];W[ph];B[rh];W[oe];B[pi] ;W[ek];B[hj];W[qe];B[lg];W[kd];B[le];W[jc];B[lf];W[kc];B[dh] ;W[ih];B[ii];W[jg];B[kh];W[bq];B[br];W[bp];B[gr];W[ar];B[bs] ;W[ri];B[rj];W[ce];B[cg];W[df];B[ef];W[bf];B[hf];W[ie];B[hs] ;W[ns];B[bh];W[aj];B[hg];W[ke];B[if];W[jf];B[he];W[je];B[lq] ;W[mr];B[oh];W[fn];B[gm];W[fo];B[go];W[os];B[ps];W[rf];B[of] ;W[pe];B[sf];W[se];B[sg];W[gf];B[gg];W[kg]) goban-1.1.orig/games/Hon-52-1.mgt0000644000175000017500000000252606045540240014071 0ustar alal (;GM[1]SZ[19]DT[1952-06-25,26]RE[W+R]PW[Hashimoto Utaro]PB[Takagawa Kaku]FF[3]BS[0]WS[0]KM[4.5];B[pd];W[dc];B[pp];W[dq];B[de];W[cn];B[cc];W[cb];B[cd] ;W[eb];B[ci];W[qn];B[np];W[qh];B[pk];W[nc];B[pf];W[og];B[nd] ;W[md];B[ne];W[me];B[mf];W[pc];B[oc];W[ob];B[od];W[mb];B[qc] ;W[pb];B[ng];W[nh];B[lf];W[ke];B[gd];W[ee];B[ed];W[dd];B[ce] ;W[ef];B[ec];W[db];B[gc];W[bc];B[bd];W[ac];B[gf];W[cg];B[bg] ;W[bf];B[dg];W[ch];B[bh];W[cf];B[df];W[dh];B[eg];W[ad];B[cl] ;W[fg];B[eh];W[di];B[cj];W[bl];B[fh];W[nk];B[pm];W[qq];B[qp] ;W[rp];B[pq];W[rr];B[qr];W[rq];B[iq];W[pn];B[nl];W[nn];B[mk] ;W[nj];B[nm];W[no];B[lp];W[rf];B[pi];W[ph];B[oi];W[oh];B[qe] ;W[mj];B[mh];W[qi];B[ok];W[ni];B[lk];W[re];B[rd];W[kj];B[lm] ;W[lh];B[kh];W[cm];B[ej];W[ki];B[jh];W[rk];B[rl];W[ql];B[rm] ;W[qm];B[rj];W[qk];B[qj];W[sk];B[jk];W[ij];B[ik];W[lg];B[le] ;W[ld];B[mg];W[jd];B[kf];W[jf];B[kg];W[of];B[nf];W[ml];B[ll] ;W[li];B[pj];W[ii];B[ih];W[gj];B[ae];W[ba];B[ei];W[gi];B[hh] ;W[gl];B[fq];W[mp];B[mq];W[lo];B[ko];W[nq];B[mo];W[mn];B[mm] ;W[mp];B[ab];W[bb];B[mo];W[on];B[ol];W[mp];B[lj];W[mi];B[mo] ;W[gh];B[gg];W[mp];B[gm];W[fl];B[mo];W[if];B[hg];W[mp];B[hk] ;W[gk];B[mo];W[ln];B[kn];W[op];B[dl];W[fm];B[en];W[hm];B[cp] ;W[jm];B[km];W[cq];B[co];W[do];B[dp];W[ep];B[eo];W[bp];B[bo] ;W[ao];B[bn];W[bm];B[dn];W[an];B[gn];W[fn];B[go];W[fo];B[fp] ;W[eq];B[dm];W[gp];B[gq];W[hp];B[hq];W[ho];B[do];W[br])goban-1.1.orig/games/Nih-74-4.mgt0000644000175000017500000000223206377113352014074 0ustar alal(;SZ[19]EV[22nd Nihon Ki-in Championship]RO[4]PB[Sakata]PW[Cho Chikun]RE[B+R]DT[1975-01-27];B[pd];W[dc];B[pp];W[cp];B[ep];W[eq];B[fq];W[dq];B[fp];W[cn];B[jp];W[qn];B[ql];W[qq];B[pq];W[qp];B[po];W[qr];B[pn];W[rn];B[pr];W[nc];B[ce];W[de];B[df];W[ee];B[cd];W[cc];B[jd];W[qc];B[pc];W[qd];B[pe];W[pb];B[ob];W[qb];B[oc];W[qf];B[pg];W[qg];B[ph];W[pm];B[qm];W[pl];B[pk];W[nm];B[qj];W[ok];B[nn];W[oj];B[mm];W[pf];B[of];W[og];B[qh];W[rh];B[nf];W[oh];B[ri];W[nl];B[rg];W[rf];B[sh];W[pi];B[qi];W[rm];B[rl];W[mh];B[lm];W[nd];B[ne];W[nb];B[sf];W[qe];B[oa];W[lf];B[nh];W[ng];B[mg];W[ni];B[le];W[lg];B[me];W[se];B[ic];W[hb];B[ib];W[ch];B[ef];W[ge];B[eh];W[pj];B[sj];W[sg];B[rh];W[ho];B[ip];W[dj];B[el];W[fj];B[gh];W[qk];B[rk];W[bg];B[bf];W[cg];B[dd];W[ed];B[cf];W[bd];B[gc];W[ie];B[je];W[gd];B[gb];W[ig];B[ih];W[hj];B[jh];W[jf];B[jj];W[jk];B[ij];W[hi];B[hh];W[ik];B[kk];W[kl];B[lk];W[hm];B[fm];W[en];B[fn];W[gl];B[ll];W[on];B[no];W[jn];B[dh];W[ko];B[kp];W[lo];B[lp];W[gq];B[gr];W[go];B[cj];W[ck];B[ci];W[hq];B[hr];W[iq];B[jr];W[ir];B[is];W[jq];B[kr];W[di];B[bk];W[bi];B[bj];W[cl];B[bl];W[bm];B[ag];W[er];B[fr];W[fo];B[qs];W[rs];B[ps];W[rq];B[dp];W[cq];B[dm];W[cm];B[eb];W[ec];B[dn];W[eo];B[do])goban-1.1.orig/games/Hon-59-6.mgt0000644000175000017500000000270306045540252014105 0ustar alal (;SZ[19]PB[Takagawa Kaku]PW[Kitani Minoru]KM[4.5]GM[1]FF[3]RE[B+R]DT[1959-08-]BS[0]WS[0];B[pd];W[dc];B[dq];W[qp];B[ce];W[co];B[ck];W[dp];B[eq] ;W[cq];B[cr];W[bq];B[hq];W[oq];B[gc];W[ed];B[jc];W[cd];B[de] ;W[bd];B[dh];W[qf];B[nd];W[rd];B[qc];W[qi];B[mq];W[ip];B[iq] ;W[ep];B[fp];W[fo];B[gp];W[mp];B[lp];W[mo];B[nq];W[op];B[pj] ;W[qj];B[pk];W[pi];B[nj];W[oi];B[ml];W[lq];B[lr];W[kq];B[kr] ;W[be];B[pf];W[lc];B[qe];W[re];B[qg];W[rf];B[kd];W[nc];B[oc] ;W[md];B[nb];W[mb];B[mc];W[nk];B[mk];W[nc];B[on];W[ne];B[mc] ;W[ci];B[nc];W[di];B[or];W[oo];B[og];W[rg];B[pr];W[pn];B[ni] ;W[id];B[ge];W[ic];B[jb];W[if];B[ib];W[ek];B[gg];W[ke];B[je] ;W[jf];B[jd];W[ih];B[fm];W[em];B[en];W[el];B[ei];W[ej];B[ch] ;W[bh];B[fi];W[fn];B[ij];W[jj];B[jk];W[kj];B[ii];W[ji];B[kg] ;W[kk];B[ik];W[kl];B[kf];W[lh];B[mg];W[nh];B[mh];W[oh];B[gn] ;W[gm];B[ln];W[go];B[jm];W[gj];B[hi];W[gi];B[hh];W[ng];B[mf] ;W[nf];B[me];W[lo];B[lm];W[br];B[bg];W[bi];B[ee];W[gh];B[in] ;W[fg];B[ff];W[jo];B[kn];W[hg];B[gf];W[fb];B[fc];W[gb];B[hb] ;W[ec];B[qk];W[rc];B[rq];W[qq];B[rr];W[dr];B[er];W[cs];B[rp] ;W[jq];B[jr];W[ko];B[qb];W[eh];B[eg];W[fh];B[cg];W[hn];B[im] ;W[om];B[nl];W[fd];B[gd];W[gr];B[fq];W[es];B[fs];W[fr];B[ds] ;W[nr];B[mr];W[es];B[hr];W[gs];B[hs];W[rb];B[ra];W[bf];B[cf] ;W[ro];B[rn];W[so];B[qn];W[qo];B[rk];W[rj];B[nn];W[pm];B[ql] ;W[hp];B[gq];W[hl];B[hk];W[gk];B[ga];W[eb];B[af];W[ae];B[ag] ;W[qr];B[qs];W[ok];B[oj];W[ol];B[sn];W[mn];B[nm];W[mm];B[ll] ;W[jn];B[km];W[il];B[jl];W[fa];B[sj];W[si];B[sk])goban-1.1.orig/games/hon-50-2.mgt0000644000175000017500000000333406333001302014115 0ustar alal(;EV[5th Honinbo Title Match]RO[2]TM[13h]PB[Hashimoto Utaro]BR[8 dan]PW[Iwamoto Kaoru]WR[Honinbo Kunwa]KM[4.5]DT[1950-04-07/08/09]PC[Nihon Kiin. Takanawa, Tokyo, Japan]RE[B+2.5]SO[Mainichi Shimbun, 1950 Apr 9 - 19]US[Yasunori Suzuki]GN[5.2]BS[0]WS[0]GM[1]SZ[19]KI[9]FF[3];B[qd];W[dc];B[od];W[oq ];B[co];W[dq];B[ce];W[dh];B[cc] ;W[cb];B[dd];W[ec];B[bc];W[gd];B[qp];W[cm];B[dm];W[cl];B[lq] ;W[lp];B[mq];W[oo];B[pn];W[kp];B[kq];W[jp];B[iq];W[cp];B[ip] ;W[mp];B[lc];W[ql];B[pq];W[jq];B[jr];W[nq];B[gq];W[ph];B[do] ;W[ep];B[bo];W[ir];B[kr];W[gp];B[io];W[fq];B[gr];W[en];B[dn] ;W[bp];B[em];W[fn];B[fm];W[hr];B[fr];W[er];B[hs];W[cg];B[bb] ;W[in];B[jo];W[hn];B[ej];W[cj];B[dk];W[ck];B[fh];W[jc];B[on] ;W[nn];B[nm];W[mn];B[qj];W[pk];B[pi];W[pc];B[oi];W[pd];B[pe] ;W[qc];B[qe];W[oe];B[oc];W[ob];B[nb];W[pb];B[ne];W[of];B[nf] ;W[po];B[qo];W[og];B[ng];W[oh];B[qh];W[nh];B[qg];W[mh];B[rd] ;W[le];B[nc];W[fk];B[jn];W[nk];B[mm];W[lm];B[ll];W[km];B[ol] ;W[jm];B[mj];W[ml];B[ok];W[nj];B[ni];W[lk];B[mi];W[lh];B[fj] ;W[gk];B[ki];W[nl];B[om];W[oj];B[qm];W[md];B[kd];W[jf];B[kf] ;W[ke];B[jd];W[ic];B[je];W[kg];B[he];W[dl];B[ld];W[lf];B[hd] ;W[hc];B[kb];W[ig];B[ge];W[ed];B[ee];W[fe];B[ff];W[fd];B[hj] ;W[hk];B[jh];W[mg];B[me];W[jg];B[pj];W[ef];B[db];W[eb];B[ca] ;W[gf];B[hf];W[fg];B[hg];W[kl];B[bf];W[gj];B[hi];W[ih];B[hh] ;W[fi];B[ai];W[mr];B[fs];W[bh];B[ah];W[aj];B[gi];W[ei];B[or] ;W[nr];B[pr];W[bg];B[eh];W[di];B[jb];W[ib];B[de];W[ag];B[op] ;W[no];B[pp];W[np];B[jk];W[ik];B[jj];W[eg];B[ia];W[ha];B[ja] ;W[gh];B[gb];W[hb];B[gg];W[ff];B[es];W[ds];B[is];W[pf];B[qf] ;W[af];B[ae];W[cf];B[be];W[fh];B[ko];W[lo];B[kn];W[ln];B[ho] ;W[go];B[jl];W[il];B[kc];W[ea];B[da];W[os];B[ps];W[ns];B[ls] ;W[lr];B[hq];W[gc];B[df]C[Black wins by 2.5 points.]) goban-1.1.orig/games/Hon-53-5.mgt0000644000175000017500000000301506045540242014072 0ustar alal (;SZ[19]PB[Kitani Minoru]PW[Takagawa Kaku]KM[4.5]GM[1]FF[3]RE[B+2.5]DT[1953-06-26,27]BS[0]WS[0];B[pq];W[pd];B[cp];W[qo];B[dc];W[ce];B[ci];W[eq];B[do] ;W[cc];B[cb];W[dd];B[bc];W[ec];B[cd];W[db];B[cc];W[ee];B[qk] ;W[no];B[mq];W[qg];B[kc];W[hq];B[nc];W[pb];B[dq];W[ep];B[jq] ;W[ic];B[dl];W[lc];B[ld];W[mc];B[md];W[kb];B[kd];W[jc];B[nd] ;W[qm];B[qi];W[og];B[lg];W[rh];B[ok];W[qq];B[qr];W[rq];B[pp] ;W[po];B[rr];W[mh];B[mk];W[lh];B[kg];W[kh];B[jg];W[kk];B[ll] ;W[kl];B[ln];W[lo];B[km];W[lq];B[mp];W[mo];B[lp];W[ko];B[jm] ;W[mm];B[lm];W[io];B[kp];W[ii];B[hm];W[fm];B[dn];W[ie];B[hg] ;W[ei];B[oe];W[pe];B[of];W[mg];B[pf];W[qf];B[pg];W[ph];B[oh] ;W[oi];B[ng];W[nh];B[pi];W[og];B[pc];W[qc];B[oh];W[qh];B[oj] ;W[og];B[jd];W[id];B[oh];W[or];B[ni];W[pr];B[nr];W[oq];B[gi] ;W[il];B[op];W[np];B[nq];W[oo];B[im];W[gj];B[fj];W[gk];B[fk] ;W[fi];B[gh];W[gl];B[dj];W[fn];B[hp];W[gq];B[eb];W[fb];B[da] ;W[fc];B[eg];W[er];B[dr];W[ds];B[cs];W[es];B[cr];W[ir];B[jr] ;W[qp];B[iq];W[hr];B[mf];W[bf];B[df];W[de];B[cf];W[be];B[bg] ;W[fa];B[ea];W[lj];B[oc];W[qb];B[nb];W[la];B[ff];W[ef];B[dg] ;W[gf];B[fg];W[fe];B[jl];W[jk];B[hl];W[ik];B[ho];W[rl];B[hf] ;W[he];B[mb];W[lb];B[jo];W[jn];B[jp];W[kn];B[in];W[ri];B[hj] ;W[hk];B[hi];W[ij];B[jb];W[ib];B[is];W[hs];B[js];W[rk];B[fl] ;W[gm];B[fo];W[eo];B[fp];W[en];B[em];W[ag];B[ah];W[af];B[bh] ;W[je];B[om];W[nm];B[pm];W[ql];B[jh];W[ji];B[ke];W[mj];B[nj] ;W[ns];B[ms];W[os];B[rj];W[sj];B[qj];W[pl];B[ol];W[pk];B[mi] ;W[li];B[pn];W[qn];B[fq];W[fr];B[gn];W[gp];B[go];W[nl];B[nk] ;W[pj];B[oi];W[jf];B[kf];W[ih];B[ad];W[oa];B[bd];W[ob])goban-1.1.orig/games/T-15-3.mgt0000644000175000017500000000163506424743114013557 0ustar alal(;SZ[19]EV[15th Tengen match]RO[Game 3]DT[1989]PB[Rin Kaiho]PW[Cho Chikun]KM[5.5]RE[W+R]US[JBvR]SO[Go 27/1]GC[134 moves];B[pd];W[dp];B[pq];W[dd];B[qo];W[jq];B[cn];W[cl];B[cq];W[dq];B[cp];W[do];B[cr];W[dn];B[bn];W[jd];B[cf];W[ce];B[df];W[fd];B[cj];W[ek];B[ej];W[fj];B[ei];W[nc];B[fk];W[el];B[gk];W[qf];B[nd];W[od];B[oe];W[oc];B[qe];W[ne];B[of];W[md];B[pc];W[fh];B[fi];W[gj];B[hk];W[hj];B[gh];W[ij];B[ik];W[jj];B[jk];W[kk];B[kl];W[ll];B[km];W[lk];B[lm];W[im];B[in];W[hn];B[io];W[gm];B[jm];W[hp];B[pj];W[nl];B[kq];W[jp];B[kp];W[mm];B[ip];W[iq];B[jo];W[ho];B[lo];W[ph];B[nh];W[re];B[rd];W[rf];B[ob];W[og];B[ng];W[nf];B[nb];W[mb];B[lc];W[mc];B[mf];W[me];B[oi];W[pf];B[ki];W[kj];B[ih];W[ql];B[li];W[pe];B[hq];W[hr];B[pl];W[pm];B[ol];W[om];B[qm];W[qn];B[rm];W[rn];B[rl];W[po];B[nn];W[nm];B[qp];W[qk];B[rk];W[pp];B[qq];W[nk];B[qj];W[mn];B[gq];W[gr];B[no];W[np];B[op];W[ln];B[kn];W[oq];B[oo];W[mo];B[pn];W[lp];B[ko];W[mr];B[lr];W[lq])goban-1.1.orig/compile0000644000175000017500000000000010270575420012515 0ustar alalgoban-1.1.orig/install-sh0000755000175000017500000001124306013244122013151 0ustar alal#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" tranformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 goban-1.1.orig/goban.xml0000644000175000017500000000217410271273642012772 0ustar alal
<_description>Replays historic games of go (aka wei-chi and baduk). Your own directory of SGF and MGT format files will be used if you set the "Game Directory". By Scott Draves, see http://draves.org/goban/. Based on cgoban by Bill Shubert, see http://www.igoweb.org/~wms/comp/cgoban/.
goban-1.1.orig/configure.h.in0000644000175000017500000000122110271264575013716 0ustar alal/* configure.h.in. Generated from configure.in by autoheader. */ /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Version number of package */ #undef VERSION /* Define to 1 if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING goban-1.1.orig/aclocal.m40000644000175000017500000007546210271264565013040 0ustar alal# generated automatically by aclocal 1.9.5 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.5])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR goban-1.1.orig/configure0000755000175000017500000101041410271264570013066 0ustar alal#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GNOME_DATADIR LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd $ac_popdir done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers configure.h" am__api_version="1.9" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 test "$program_prefix" != NONE && program_transform_name="s,^,$program_prefix,;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$,$program_suffix,;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$AWK" && break done echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=goban VERSION=1.1 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # Don't try gcc -ansi; that turns off useful extensions and # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 # HP-UX 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" fi; if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking for X" >&5 echo $ECHO_N "checking for X... $ECHO_C" >&6 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then withval="$with_x" fi; # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then # Both variables are already set. have_x=yes else if test "${ac_cv_have_x+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -fr conftest.dir if mkdir conftest.dir; then cd conftest.dir # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat >Imakefile <<'_ACEOF' acfindx: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' _ACEOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && test -f $ac_im_libdir/libX11.$ac_extension; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -fr conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # We can compile using X headers with no special include directory. ac_x_includes= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lXt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { XtMalloc (0) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LIBS=$ac_save_LIBS for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do if test -r $ac_dir/libXt.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then # Didn't find X anywhere. Cache the known absence of X. ac_cv_have_x="have_x=no" else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi fi fi eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then echo "$as_me:$LINENO: result: $have_x" >&5 echo "${ECHO_T}$have_x" >&6 no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >>confdefs.h <<\_ACEOF #define X_DISPLAY_MISSING 1 _ACEOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . case `(uname -sr) 2>/dev/null` in "SunOS 5"*) echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_R_nospace=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_R_nospace=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $ac_R_nospace = yes; then echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_R_space=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_R_space=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $ac_R_space = yes; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 X_LIBS="$X_LIBS -R $x_libraries" else echo "$as_me:$LINENO: result: neither works" >&5 echo "${ECHO_T}neither works" >&6 fi fi LIBS=$ac_xsave_LIBS esac fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char XOpenDisplay (); int main () { XOpenDisplay (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa (); int main () { dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dnet_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_dnet_ntoa=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dnet_ntoa (); int main () { dnet_ntoa (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_dnet_stub_dnet_ntoa=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. echo "$as_me:$LINENO: checking for gethostbyname" >&5 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 if test "${ac_cv_func_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define gethostbyname to an innocuous variant, in case declares gethostbyname. For example, HP-UX 11i declares gettimeofday. */ #define gethostbyname innocuous_gethostbyname /* System header to define __stub macros and hopefully few prototypes, which can conflict with char gethostbyname (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef gethostbyname /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else char (*f) () = gethostbyname; #endif #ifdef __cplusplus } #endif int main () { return f != gethostbyname; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_gethostbyname=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 if test $ac_cv_func_gethostbyname = no; then echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_nsl_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_nsl_gethostbyname=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 if test $ac_cv_lib_nsl_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname (); int main () { gethostbyname (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_bsd_gethostbyname=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bsd_gethostbyname=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 if test $ac_cv_lib_bsd_gethostbyname = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. echo "$as_me:$LINENO: checking for connect" >&5 echo $ECHO_N "checking for connect... $ECHO_C" >&6 if test "${ac_cv_func_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define connect to an innocuous variant, in case declares connect. For example, HP-UX 11i declares gettimeofday. */ #define connect innocuous_connect /* System header to define __stub macros and hopefully few prototypes, which can conflict with char connect (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef connect /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_connect) || defined (__stub___connect) choke me #else char (*f) () = connect; #endif #ifdef __cplusplus } #endif int main () { return f != connect; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_connect=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 echo "${ECHO_T}$ac_cv_func_connect" >&6 if test $ac_cv_func_connect = no; then echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 if test "${ac_cv_lib_socket_connect+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect (); int main () { connect (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_socket_connect=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_socket_connect=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 if test $ac_cv_lib_socket_connect = yes; then X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. echo "$as_me:$LINENO: checking for remove" >&5 echo $ECHO_N "checking for remove... $ECHO_C" >&6 if test "${ac_cv_func_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define remove to an innocuous variant, in case declares remove. For example, HP-UX 11i declares gettimeofday. */ #define remove innocuous_remove /* System header to define __stub macros and hopefully few prototypes, which can conflict with char remove (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef remove /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_remove) || defined (__stub___remove) choke me #else char (*f) () = remove; #endif #ifdef __cplusplus } #endif int main () { return f != remove; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_remove=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 echo "${ECHO_T}$ac_cv_func_remove" >&6 if test $ac_cv_func_remove = no; then echo "$as_me:$LINENO: checking for remove in -lposix" >&5 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 if test "${ac_cv_lib_posix_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); int main () { remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_posix_remove=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_posix_remove=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 if test $ac_cv_lib_posix_remove = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo "$as_me:$LINENO: checking for shmat" >&5 echo $ECHO_N "checking for shmat... $ECHO_C" >&6 if test "${ac_cv_func_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shmat to an innocuous variant, in case declares shmat. For example, HP-UX 11i declares gettimeofday. */ #define shmat innocuous_shmat /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shmat (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shmat /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shmat) || defined (__stub___shmat) choke me #else char (*f) () = shmat; #endif #ifdef __cplusplus } #endif int main () { return f != shmat; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shmat=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 echo "${ECHO_T}$ac_cv_func_shmat" >&6 if test $ac_cv_func_shmat = no; then echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 if test "${ac_cv_lib_ipc_shmat+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat (); int main () { shmat (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_ipc_shmat=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ipc_shmat=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 if test $ac_cv_lib_ipc_shmat = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char IceConnectionNumber (); int main () { IceConnectionNumber (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_ICE_IceConnectionNumber=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi GNOME_DATADIR=`pkg-config --variable=prefix gtk+-2.0` GNOME_DATADIR="$GNOME_DATADIR/share" ac_config_files="$ac_config_files src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@CPP@,$CPP,;t t s,@X_CFLAGS@,$X_CFLAGS,;t t s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t s,@X_LIBS@,$X_LIBS,;t t s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi ac_config_files="$ac_config_files goban.spec" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "goban.spec" ) CONFIG_FILES="$CONFIG_FILES goban.spec" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@CPP@,$CPP,;t t s,@X_CFLAGS@,$X_CFLAGS,;t t s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t s,@X_LIBS@,$X_LIBS,;t t s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by $as_me, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "goban.spec" ) CONFIG_FILES="$CONFIG_FILES goban.spec" ;; "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@CPP@,$CPP,;t t s,@X_CFLAGS@,$X_CFLAGS,;t t s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t s,@X_LIBS@,$X_LIBS,;t t s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi goban-1.1.orig/TODO0000644000175000017500000000407706436131006011651 0ustar alalTODO list for Cgoban 1.9.2 Right now I've got way too many things to plan on when I'll be doing which of them; my head hurts just thinking about all of them. But I am slowly making progress. Bugs to fix: GMP can't play handicap games on a server. When continuing a game, the number of moves left in your byo-yomi period is wrong at first. Laurent Demailly has this weird bug where it crashes during gettimeofday(). Scrolling rapidly will sometimes mess up the text windows. Running "cgoban -edit buggy.sgf" doesn't pop up an error dialogue. Features to add: Print games you are editing. Make little logos for open, closed, looking. Make game list window keep up with moves in games your are observing or playing in. Watch for the output of "who " and update game list. Add sound effects. Score boxes should reflect final score when a server game ends. Make it automatically resume adjourned games in the same window when they resume. Add windows for each conversation that you are in. Add a way to add/see the "FG" and "DI" SGF codes. Add "-view", like "-edit" but read-only. Allow users to sort the games list. Support the chatter command. Add the equivalent of "Notify". Make it not scroll the text when you're looking at something older. Add tabs to pretty up results output Grey out users so "who 5k-1d o" works well Beep when time running low Warn when your kibitzes are lost because game ended Let users type as you are logging in Let GMP use more than the first two servers Let player change rules of an SGF file Make arrow act same in edit window and edit tool window Add edit tool stuff for inserting nodes When you start a game on one server, automatically become closed to games on the others. Click on a "P 8" in the player list to observe that game. Allow people to save and edit "Look" files. Automatically reconnect when you are logged out. Easier saving games from server windows. Configuration options to add: Better beep control. Number of lines to keep in the log Allow users to set up function keys to bind to common commands goban-1.1.orig/configure.in0000644000175000017500000000064610271264327013475 0ustar alaldnl $Id: configure.in,v 1.35 2005/07/20 07:24:39 spotspot Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT AM_CONFIG_HEADER(configure.h) AM_INIT_AUTOMAKE(goban, 1.1) AC_PROG_CC AC_PROG_INSTALL AC_PATH_XTRA GNOME_DATADIR=`pkg-config --variable=prefix gtk+-2.0` GNOME_DATADIR="$GNOME_DATADIR/share" AC_SUBST(GNOME_DATADIR) AC_OUTPUT(src/Makefile) AC_OUTPUT(goban.spec) AC_OUTPUT(Makefile)