Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

crafty: resurrected

  • Loading branch information...
commit 963eb0d131a193dc2cfadbbd9f54932e0123e871 1 parent 0b650b0
@v4hn v4hn authored
View
12 games/crafty/BUILD
@@ -0,0 +1,12 @@
+(
+
+ make target=LINUX CFLAGS="$CFLAGS" \
+ CXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS -lstdc++" \
+ opt=' -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \
+ asm=X86-elf.o crafty-make &&
+ prepare_install &&
+ install -m755 crafty /usr/games &&
+ install -m755 $SCRIPT_DIRECTORY/craftyx /usr/games
+
+) > $C_FIFO 2>&1
View
1  games/crafty/DEPENDS
@@ -0,0 +1 @@
+optional_depends "xboard" "" "" "for an X11 based interface"
View
22 games/crafty/DETAILS
@@ -0,0 +1,22 @@
+ MODULE=crafty
+ VERSION=23.4
+ SOURCE=$MODULE-$VERSION.zip
+ SOURCE_URL[0]=http://www.craftychess.com
+ SOURCE_URL[1]=ftp://ftp.cis.uab.edu/pub/hyatt/source
+ SOURCE_VFY=sha1:383079c0f99f133faa541d1949f6be4f67101f3f
+ WEB_SITE=http://www.craftychess.com
+ ENTERED=20020501
+ UPDATED=20110522
+ SHORT="A text based chess program"
+
+cat << EOF
+Crafty is a chess program written by Bob Hyatt (hyatt@cis.uab.edu).
+It is modeled after Cray Blitz (also written by Bob).
+
+Crafty has the following features:
+- written in C
+- can be compiled with the GNU C compiler on various platforms
+- has a customizable opening book
+- supports tablebases (Steven Edward's endgame database)
+- text interface
+EOF
View
3  games/crafty/POST_INSTALL
@@ -0,0 +1,3 @@
+echo " "
+echo "Execute /usr/games/craftyx to use with xboard."
+echo " "
View
12 games/crafty/craftyx
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# craftyx: this command will launch crafty using xboard for display
+#
+
+XBOARD=`which xboard`
+
+if [ -e "$XBOARD" ]; then
+ xboard -fcp crafty
+else
+ echo "Xboard is missing. Please install the xboard module"
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.