Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 1998 08:46:02 +0300 (MSK)
From:      Andrey Zakhvatov <andy@icc.surw.chel.su>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/5998: New port: xchain-1.0.2
Message-ID:  <199803140546.IAA28880@icc.surw.chel.su>

next in thread | raw e-mail | index | archive | help

>Number:         5998
>Category:       ports
>Synopsis:       New port: xchain-1.0.2
>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:   Fri Mar 13 21:50:01 PST 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 Chain Reaction - strategy game for 2-4 players.

   Chain Reaction is played on an 8 by 8 board. Players take turns to move.
On each move, the player  may  select an empty  square, or one they already
own. Squares  belonging  to other  players may not be chosen. If the square
was unowned, it becomes the property of the player, and is given a value of
1. If the square was owned by the player, the value is incremented.

   If  the  value of a square  ever  exceeds  the maximum permitted of that
square, it explodes. Squares  in  the  corner  have a maximum of 1, squares
touching an edge, but not on a  corner  have a maximum of 2, and squares in 
the interior have a maximum of 3.

   When a square explodes, it becomes unowned, and it's value  is  reset to
0. The 4 squares  touching  it become  owned by the owner of the  exploding 
square, and  their  values are incremented. If any of these are above their
maximum, they explode, giving rise to the chain reaction.

   If, at the  end  of a move, any of the players have no squares, they are
dead, and get no  more  turns. When there is only one person left, they are
the winner.


# 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:
#
#	xchain-1.0.2
#	xchain-1.0.2/Makefile
#	xchain-1.0.2/files
#	xchain-1.0.2/files/md5
#	xchain-1.0.2/patches
#	xchain-1.0.2/patches/patch-aa
#	xchain-1.0.2/pkg
#	xchain-1.0.2/pkg/PLIST
#	xchain-1.0.2/pkg/DESCR
#	xchain-1.0.2/pkg/COMMENT
#
echo c - xchain-1.0.2
mkdir -p xchain-1.0.2 > /dev/null 2>&1
echo x - xchain-1.0.2/Makefile
sed 's/^X//' >xchain-1.0.2/Makefile << 'END-of-xchain-1.0.2/Makefile'
X# New ports collection makefile for:	xchain
X# Version required:			1.0.2
X# Date created:				13 March 1998
X# Whom:					Andrey Zakhvatov
X#
X# $Id$
X#
X
XDISTNAME=	xchain_1.0-2
XPKGNAME=	xchain-1.0.2
XCATEGORIES=	games x11
XMASTER_SITES=	http://thor.cam.ac.uk/~ac212/xchain/
X
XMAINTAINER=	andy@icc.surw.chel.su
X
XRUN_DEPENDS=	wish8.0:${PORTSDIR}/x11/tk
X
XUSE_X11=	yes
XWRKSRC=		${WRKDIR}/xchain-1.0
X
XMAN6=		xchain.6
X
Xdo-install:
X	@ ${INSTALL_PROGRAM} ${WRKSRC}/xchain ${PREFIX}/bin
X	@ ${INSTALL_MAN} ${WRKSRC}/xchain.6 ${PREFIX}/man/man6
X	@ ${MKDIR} ${PREFIX}/share/doc/xchain
X	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xchain
X	@ ${INSTALL_DATA} ${WRKSRC}/copyright ${PREFIX}/share/doc/xchain
X
X.include <bsd.port.mk>
END-of-xchain-1.0.2/Makefile
echo c - xchain-1.0.2/files
mkdir -p xchain-1.0.2/files > /dev/null 2>&1
echo x - xchain-1.0.2/files/md5
sed 's/^X//' >xchain-1.0.2/files/md5 << 'END-of-xchain-1.0.2/files/md5'
XMD5 (xchain_1.0-2.tar.gz) = d212b847d05e3be5b7b0ed713a07ee64
END-of-xchain-1.0.2/files/md5
echo c - xchain-1.0.2/patches
mkdir -p xchain-1.0.2/patches > /dev/null 2>&1
echo x - xchain-1.0.2/patches/patch-aa
sed 's/^X//' >xchain-1.0.2/patches/patch-aa << 'END-of-xchain-1.0.2/patches/patch-aa'
X--- xchain.c	Wed Feb 25 15:10:15 1998
X+++ /home/andy/tmp/wrk/xchain.c	Fri Mar 13 21:53:20 1998
X@@ -29,7 +29,7 @@
X #include <stdlib.h>
X #include <time.h>
X 
X-#define DEF_WISH_PATH "/usr/bin/wish"
X+#define DEF_WISH_PATH "/usr/local/bin/wish8.0"
X 
X void wprintf(char *, ...);
X void draw_screen(void);
END-of-xchain-1.0.2/patches/patch-aa
echo c - xchain-1.0.2/pkg
mkdir -p xchain-1.0.2/pkg > /dev/null 2>&1
echo x - xchain-1.0.2/pkg/PLIST
sed 's/^X//' >xchain-1.0.2/pkg/PLIST << 'END-of-xchain-1.0.2/pkg/PLIST'
Xbin/xchain
Xman/man6/xchain.6.gz
Xshare/doc/xchain/README
Xshare/doc/xchain/copyright
X@dirrm share/doc/xchain
END-of-xchain-1.0.2/pkg/PLIST
echo x - xchain-1.0.2/pkg/DESCR
sed 's/^X//' >xchain-1.0.2/pkg/DESCR << 'END-of-xchain-1.0.2/pkg/DESCR'
X   Chain Reaction is played on an 8 by 8 board. Players take turns to move.
XOn each move, the player  may  select an empty  square, or one they already
Xown. Squares  belonging  to other  players may not be chosen. If the square
Xwas unowned, it becomes the property of the player, and is given a value of
X1. If the square was owned by the player, the value is incremented.
X
X   If  the  value of a square  ever  exceeds  the maximum permitted of that
Xsquare, it explodes. Squares  in  the  corner  have a maximum of 1, squares
Xtouching an edge, but not on a  corner  have a maximum of 2, and squares in 
Xthe interior have a maximum of 3.
X
X   When a square explodes, it becomes unowned, and it's value  is  reset to
X0. The 4 squares  touching  it become  owned by the owner of the  exploding 
Xsquare, and  their  values are incremented. If any of these are above their
Xmaximum, they explode, giving rise to the chain reaction.
X
X   If, at the  end  of a move, any of the players have no squares, they are
Xdead, and get no  more  turns. When there is only one person left, they are
Xthe winner.
END-of-xchain-1.0.2/pkg/DESCR
echo x - xchain-1.0.2/pkg/COMMENT
sed 's/^X//' >xchain-1.0.2/pkg/COMMENT << 'END-of-xchain-1.0.2/pkg/COMMENT'
XChain Reaction - strategy game for 2-4 players.
END-of-xchain-1.0.2/pkg/COMMENT
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803140546.IAA28880>