Dec 072017
 
This is the game GO, with C source.
File GNUGO.ZIP from The Programmer’s Corner in
Category Games and Entertainment
This is the game GO, with C source.
File Name File Size Zip Size Zip Type
COPYING 10219 3858 deflated
COUNT.C 2658 1009 deflated
COUNTLIB.C 1705 853 deflated
DOCUMENT 11575 4309 deflated
ENDGAME.C 3636 1397 deflated
EVAL.C 1754 871 deflated
EXAMBORD.C 2661 1137 deflated
FINDCOLR.C 2622 1058 deflated
FINDNEXT.C 4365 1305 deflated
FINDOPEN.C 3312 1128 deflated
FINDPATN.C 4522 1426 deflated
FINDSAVE.C 2269 1042 deflated
FINDWINR.C 3301 1262 deflated
FIOE.C 2710 991 deflated
GENMOVE.C 3872 1441 deflated
GETIJ.C 2011 931 deflated
GETMOVE.C 2901 1266 deflated
GNUGO.COM 29900 14568 deflated
INITMARK.C 1560 792 deflated
MAIN.C 4504 1676 deflated
MATCHPAT.C 6581 1877 deflated
OPENING.C 2550 1132 deflated
OPENREGN.C 2015 966 deflated
PATTERNS.C 7787 1680 deflated
RANDOM.C 1544 775 deflated
README 4015 1778 deflated
SEED.C 1897 901 deflated
SETHAND.C 3377 1019 deflated
SHOWBORD.C 7188 1414 deflated
SHOWINST.C 4168 1429 deflated
SUICIDE.C 2376 1129 deflated

Download File GNUGO.ZIP Here

Contents of the README file


GNU GO - the game of Go (Wei-Chi)
Version 1.1 last revised 3-1-89
Copyright (C) Free Software Foundation, Inc.
written by Man L. Li
modified by Wayne Iba
documented by Bob Webber

This program is the updated version of Hugo (Version 1.0). It is an
attempt to start a free program to play Go. The idea is based on the
article "Programming the Game of Go. Byte, Vol.6 No.4" by J. K. Millen.

Currently, this program only understands basic Go rules and play skills.
It counts the number of liberty for each board piece. Computer move is
generated by choosing among several possible moves to attack the opponent,
defense own pieces and match playing patterns. If no good move is found
then random move will be generated. It doesn't have the concept of eye
although it will try to form one.

The program is written in C running on Sun and IBM PC. The only difference
is the function to get system time as the seed for the random number
generator. It can easily ported to other systems by changing this function.
Computer Innovation C86 compiler is used for the PC version. To use other
C compilers, simple change is required.

You are encouraged to send in enhencement, suggestion, bug/fix for this
program. Future release can be obtained from Free Software Foundation and
usenet rec.games.go newsgroup.

This package contains the following files:

README - you are reading it.

COPYING - GNU general public license

Documentation - description of each function

Makefile - file to compile gnugo program on Sun

make.bat - file to compile gnugo program on IBM PC with C86 compiler

objs - linking list used by make.bat

count.c - count liberty of one piece

countlib.c - count liberty of pieces

endgame.c - bookkeeping at end of game

eval.c - evaluate liberty

exambord.c - update game board

findcolr.c - find connected pieces of the same color

findnext.c - find move to defense against attack and function to evaluate move

findopen.c - find opponent liberty and choose move to attack

findpatn.c - match play patterns for next move

findsavr.c - check own weakness to defense

findwinr.c - find opponent weakness to attack

fioe.c - check if fill in its own eye

genmove.c - main function to generate computer move

getij.c - convert move string to board position

getmove.c - read move or command from human player

initmark.c - initialize marking array

main.c - gnugo main program

matchpat.c - match play pattern

opening.c - generate game opening moves

openregn.c - check open region

patterns.c - playing patterns

random.c - random number generator

seed.c - start random number generator seed

sethand.c - setup handicap pieces

showbord.c - show GO board and stone positions

showinst.c - show instruction on game playing

suicide.c - check illegal move if suicide

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 - version 1.

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 in file COPYING 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.

Please report any bug/fix, modification, suggestion to

mail address: Man L. Li
Dept. of Computer Science
University of Houston
4800 Calhoun Road
Houston, TX 77004

e-mail address: [email protected] (Internet)
[email protected] (BITNET)
70070,404 (CompuServe)





 December 7, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)