#!/bin/sh
#
# chess: this is the proper command string required to execute
#        xboard with gnuchess.
#
# related modules: xboard, gnuchess

GCHESS=`which gnuchess`
XBORD=`which xboard`

if [ -e "$GCHESS" ]; then
	$XBORD -fcp "$GCHESS" -fd "/usr/games" -scp "$GCHESS xboard" -sd "/usr/games"
else
        echo " "
	echo "$GCHESS missing. Please install the gnuchess module!"
	exit 0
fi
exit 0
