From owner-freebsd-ports Thu May 14 00:23:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA25889 for freebsd-ports-outgoing; Thu, 14 May 1998 00:23:46 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA25878 for ; Thu, 14 May 1998 00:23:44 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA05811; Thu, 14 May 1998 00:20:01 -0700 (PDT) Received: from rich.chel.su (root@mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA25169 for ; Thu, 14 May 1998 00:18:14 -0700 (PDT) (envelope-from andy@icc.surw.chel.su) Received: from icc.surw.chel.su (surw.chel.su [195.54.2.162]) by rich.chel.su (8.7.2/Murphy) with ESMTP id NAA23060 for ; Thu, 14 May 1998 13:18:32 +0600 (UDT) Received: (from andy@localhost) by icc.surw.chel.su (8.8.5/8.8.4) id LAA19716; Thu, 14 May 1998 11:21:47 +0400 (MSD) Message-Id: <199805140721.LAA19716@icc.surw.chel.su> Date: Thu, 14 May 1998 11:21:47 +0400 (MSD) From: Andrey Zakhvatov Reply-To: andy@icc.surw.chel.su To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/6631: New port: KnightCap-3.5 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6631 >Category: ports >Synopsis: New port: KnightCap-3.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 14 00:20:01 PDT 1998 >Last-Modified: >Originator: Andrey Zakhvatov >Organization: South Ural Railway ICC >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: >Description: This is a port of KnightCap - a chess program. The principal differences between KnightCap and other chess programs are: - KnightCap has an optional fully rendered 3D interface, giving a feel much more like an "over the board" game. - KnightCap was developed to run on a parallel distributed memory machine, although it also runs on normal unix boxes. - KnightCap does not have an opening book---instead it keeps a file (brain.dat) of losing moves and inserts them in the hash table at the start of each search. At present it has about 1500 entries, and this makes it a pretty competitive opening player. - KnightCap learns the parameters of its evaluation function as it plays. The most dramatic example of how this helps is an experiment we conducted on FICS in which KnightCap learnt from a 1650 player to a 2100 player in just 300 games. See http://keating.anu.edu.au/~jon/papers/knigtcap.ps.gz for more info on its learning algorithm. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # KnightCap-3.5 # KnightCap-3.5/Makefile # KnightCap-3.5/files # KnightCap-3.5/files/md5 # KnightCap-3.5/patches # KnightCap-3.5/patches/patch-ab # KnightCap-3.5/patches/patch-aa # KnightCap-3.5/pkg # KnightCap-3.5/pkg/PLIST # KnightCap-3.5/pkg/COMMENT # KnightCap-3.5/pkg/DESCR # echo c - KnightCap-3.5 mkdir -p KnightCap-3.5 > /dev/null 2>&1 echo x - KnightCap-3.5/Makefile sed 's/^X//' >KnightCap-3.5/Makefile << 'END-of-KnightCap-3.5/Makefile' X# New ports collection makefile for: KnightCap X# Version required: 3.5 X# Date created: 10 May 1998 X# Whom: Andrey Zakhvatov X# X# $Id$ X# X XDISTNAME= KnightCap-3.5 XCATEGORIES= games x11 XMASTER_SITES= ftp://samba.anu.edu.au/pub/KnightCap/ X XMAINTAINER= andy@icc.surw.chel.su X XLIB_DEPENDS= MesaGL\\.13\\.:${PORTSDIR}/graphics/Mesa \ X MesaGLU\\.13\\.:${PORTSDIR}/graphics/Mesa \ X glut\\.3\\.:${PORTSDIR}/graphics/Mesa X XALL_TARGET= KnightCap XUSE_X11= yes XWRKSRC= ${WRKDIR}/Export X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/KnightCap ${PREFIX}/bin X.if !defined(NOPORTDOCS) X @ ${MKDIR} ${PREFIX}/share/doc/KnightCap X @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/KnightCap X.endif X X.include END-of-KnightCap-3.5/Makefile echo c - KnightCap-3.5/files mkdir -p KnightCap-3.5/files > /dev/null 2>&1 echo x - KnightCap-3.5/files/md5 sed 's/^X//' >KnightCap-3.5/files/md5 << 'END-of-KnightCap-3.5/files/md5' XMD5 (KnightCap-3.5.tar.gz) = 4c188f4a8e0e153ca7d6e84257cb1ae1 END-of-KnightCap-3.5/files/md5 echo c - KnightCap-3.5/patches mkdir -p KnightCap-3.5/patches > /dev/null 2>&1 echo x - KnightCap-3.5/patches/patch-ab sed 's/^X//' >KnightCap-3.5/patches/patch-ab << 'END-of-KnightCap-3.5/patches/patch-ab' X--- knightcap.c Wed Mar 11 21:51:58 1998 X+++ /home/andy/tmp/wrk/knightcap.c Sun May 10 09:54:22 1998 X@@ -934,7 +934,11 @@ X reset_board(); X init_movements(); X X+#ifdef __FreeBSD__ X+ signal(SIGCHLD, SIG_IGN); X+#else X signal(SIGCLD, SIG_IGN); X+#endif X X pid1 = getpid(); X END-of-KnightCap-3.5/patches/patch-ab echo x - KnightCap-3.5/patches/patch-aa sed 's/^X//' >KnightCap-3.5/patches/patch-aa << 'END-of-KnightCap-3.5/patches/patch-aa' X--- Makefile Wed Mar 11 21:51:57 1998 X+++ /home/andy/tmp/wrk/Makefile Sun May 10 09:54:13 1998 X@@ -2,11 +2,11 @@ X X # what C compiler? It better be Ansi-C. Use gcc if you have it. X # you may find that KnightCap is very slow if you don't use gcc X-CC = gcc X+#CC = gcc X X # What compiler switches do you want? These ones work well with gcc X #OPT = -O2 -fshort-enums -Wall X-OPT = -g -fshort-enums -Wall X+OPT = -O2 -fshort-enums -Wall -DPI=M_PI X X # If you don't have gcc then perhaps try this instead. You only need X # the null definition for inline if your C compiler doesn't know about X@@ -21,13 +21,10 @@ X # display (or you don't have OpenGL and Glut libraries) X # If you do have these libs then make sure the first three X # lines point at the right places X-MESA = /usr/local/Mesa-2.1 X-GLUT = /usr/local/Mesa-2.1/glut-3.2 X-X11 = /usr/X11R6 X-GLUT_LIBS = -L$(GLUT)/lib/glut -lglut X-MESA_LIBS = -L$(MESA)/lib -lMesaGLU -lMesaGL -lm X-XLIBS = -L$(X11)/lib -lXmu -lXt -lXext -lX11 -lXi X-DISPLAYFLAGS = -I$(MESA)/include -I$(GLUT) -DRENDERED_DISPLAY=1 X+GLUT_LIBS = -L$(X11BASE)/lib -lglut X+MESA_LIBS = -L$(X11BASE)/lib -lMesaGLU -lMesaGL -lm X+XLIBS = -L$(X11BASE)/lib -lXmu -lXt -lXext -lX11 -lXi X+DISPLAYFLAGS = -I$(X11BASE)/include -DRENDERED_DISPLAY=1 X X # comment out the following line if you don't want KnightCap's X # evaluation function learning turned on. END-of-KnightCap-3.5/patches/patch-aa echo c - KnightCap-3.5/pkg mkdir -p KnightCap-3.5/pkg > /dev/null 2>&1 echo x - KnightCap-3.5/pkg/PLIST sed 's/^X//' >KnightCap-3.5/pkg/PLIST << 'END-of-KnightCap-3.5/pkg/PLIST' Xbin/KnightCap Xshare/doc/KnightCap/README X@dirrm share/doc/KnightCap END-of-KnightCap-3.5/pkg/PLIST echo x - KnightCap-3.5/pkg/COMMENT sed 's/^X//' >KnightCap-3.5/pkg/COMMENT << 'END-of-KnightCap-3.5/pkg/COMMENT' XChess program with 3D interface for X Window System. END-of-KnightCap-3.5/pkg/COMMENT echo x - KnightCap-3.5/pkg/DESCR sed 's/^X//' >KnightCap-3.5/pkg/DESCR << 'END-of-KnightCap-3.5/pkg/DESCR' XKnightCap is a chess program. X XThe principal differences between KnightCap and other chess programs Xare: X X - KnightCap has an optional fully rendered 3D interface, giving a feel much X more like an "over the board" game. X X - KnightCap was developed to run on a parallel distributed memory X machine, although it also runs on normal unix boxes. X X - KnightCap does not have an opening book---instead it keeps a file X (brain.dat) of losing moves and inserts them in the hash table at the X start of each search. At present it has about 1500 entries, and X this makes it a pretty competitive opening player. X X - KnightCap learns the parameters of its evaluation function as it X plays. The most dramatic example of how this helps is an experiment X we conducted on FICS in which KnightCap learnt from a 1650 player X to a 2100 player in just 300 games. See X http://keating.anu.edu.au/~jon/papers/knigtcap.ps.gz for more info on X its learning algorithm. END-of-KnightCap-3.5/pkg/DESCR exit >How-To-Repeat: >Fix: Please, check and commit this port. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message