#!/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" -scp "$GCHESS xboard"
else
        echo " "
        echo "$GCHESS missing. Please install the gnuchess module!"
        exit 0
fi
exit 0
