Page 1 of 1

Using WB for FRC

PostPosted: 22 Aug 2006, 03:51
by jshriver
Anyone know how to run xboard with FRC enabled engines?
Last time I tried there seemed to be two forked projects that implemented FRC, but other than using -lpf frcposition.fen I dont know how to tell the engines to switch to frc mode.

Is this something I have to tell each engine, or is there a way to tell xboard to be in FRC mode?

-Josh

Re: Using WB for FRC

PostPosted: 22 Aug 2006, 07:29
by Volker Pittlik
jshriver wrote:...
Is this something I have to tell each engine, or is there a way to tell xboard to be in FRC mode?

-Josh


Isn't Winboard_X the thing you want? (See link the at the top of the page). Possibly you find useful information in this thread: Tinkering with Winboard (sorry very long).

There is also a FRC-enabled version on Milix' website (see memberlist). In Linux I use an alias to start it:

Code: Select all
alias xb960='nice /home/volker/schach/xboard-960/xboard-960 -fcp [...big snip...]  -lpf /home/volker/schach/xboard-960/frc-fens -lpi 518 -variant fischerandom '


Replace 518 with the desired position.

Volker

Re: Using WB for FRC

PostPosted: 23 Aug 2006, 04:45
by jshriver
Thanks for the link, but I haven't been able to compile it.

I tried the following:

* gcc -O3 *.c -o xboardx which gave a lot of errors, and there's no configure or Makefile

* unziping the files in the same place as the files in winboard_x.zip and tried compiling, more errors

* Extracting the files in a clean 4.2.7 source tree and running ./configure and make.

Nothing seems to work.
I was reading the site and it seems some features aren't available under Unix, but as long as FRC and the regular xboard functions work I'm not as concerned about the other bells and whistles.

Any pointers are greatly appreciated.

-Josh

Re: Using WB for FRC

PostPosted: 23 Aug 2006, 22:57
by milix
Hi.
Please note that the current winboard-x has problems with FRC support. I modified winboard-x and used it in Mainz with full success. If you are interest in my modifications please let me know.

Some files of the winboard_x.zip must go to the first level og xboard source, others in the winboard folder. This is how the winboard folder of mine looks like:

Code: Select all
 Directory of C:\devel\apps\winboard-x\winboard

[.]               [..]              bcc32.cfg         [bitmaps]
borland.mak       config.h          [CVS]             cygwin.mak
defaults.h        msvc.mak          READ_ME.txt       resource.h
[sounds]          wclipbrd.c        wclipbrd.h        wedittags.c
wedittags.h       wengineoutput.c   wevalgraph.c      wgamelist.c
wgamelist.h       whistory.c        winboard.aps      winboard.c
winboard.dsp      winboard.dsw      winboard.h        winboard.hlp
winboard.hpj      winboard.rc       winboard.rtf      wlayout.c
woptions.c        woptions.h        wplugin.c         wplugin.h
wsnap.c           wsnap.h           wsockerr.c        wsockerr.h


and this is the modified cygwin.mak I used to compile winboard-x:

Code: Select all
#
# Makefile for WinBoard, using the GNU Cygwin toolset
#

# Uncomment both lines to turn on debugging symbols #######
#cdebug= -g
#linkdebug= -g
#######################################################

proj=winboard
allobj=  winboard.o backend.o parser.o moves.o lists.o \
    gamelist.o pgntags.o wedittags.o wgamelist.o zippy.o \
         wsockerr.o wbres.o wclipbrd.o woptions.o uci.o \
       wengineoutput.o wevalgraph.o whistory.o wlayout.o \
       wplugin.o wsnap.o

dotc=   winboard.c backend.c parser.c moves.c lists.c \
    gamelist.c pgntags.c wedittags.c wgamelist.c zippy.c \
         wsockerr.c winboard.rc wclipbrd.c woptions.c uci.c \
       wengineoutput.c wevalgraph.c whistory.c wlayout.c \
       wplugin.c wsnap.c

# Currently WinBoard will build either with or without -mno-cygwin
# however, a Cygwin bug in forming the command line to WinMain() is
# exposed if -mno-cygwin is not used.
cygwin= -mno-cygwin -O2

VPATH= .:..
CFLAGS= $(cdebug)
INCLUDES= -I. -I..
CVARS= $(INCLUDES) $(cygwin)
CC = gcc $(CVARS)
WCC = $(CC) -mwindows $(linkdebug)
HC="/c/program files/help workshop/hcrtf.exe" -xn

all: $(proj).exe

depend: $(dotc)
   makedepend -Y -f cygwin.mak $(INCLUDES) $^

clean:
   rm -f *.obj *~ $(proj).exe $(proj).err $(proj).rbj \
      $(proj).RES $(proj).res $(proj).ini *.sbr *.bsc *.o \
      *.plg *.opt *.ncb *.debug *.bak *.gid *.GID

maintainer-clean: clean
   rm -f parser.c *.hlp *.HLP

# Update the help file if necessary
$(proj).hlp : $(proj).rtf
   $(HC) $(proj).hpj
   cat $(proj).err

# Update the resource if necessary
wbres.o: $(proj).rc $(proj).h resource.h
   windres --use-temp-file --include-dir .. $< -O coff -o $@

# Update the object files if necessary

parser.c: parser.l
   flex -oparser.c -L $<

$(proj).exe: $(allobj) $(proj).hlp $(proj).rc
   $(WCC) $(guiflags) $(allobj) \
   -lwsock32 -lwinmm \
   -o $(proj).exe

# DO NOT DELETE

winboard.o: config.h ../common.h winboard.h resource.h ../frontend.h
winboard.o: ../backend.h ../lists.h ../moves.h wclipbrd.h wgamelist.h
winboard.o: wedittags.h woptions.h wsockerr.h defaults.h
backend.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
backend.o: ../parser.h ../moves.h ../zippy.h ../backendz.h
parser.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
parser.o: ../parser.h ../moves.h
moves.o: config.h ../common.h ../backend.h ../lists.h ../frontend.h
moves.o: ../moves.h ../parser.h
lists.o: config.h ../common.h ../lists.h
gamelist.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
gamelist.o: ../parser.h
pgntags.o: config.h ../common.h ../frontend.h ../backend.h ../lists.h
pgntags.o: ../parser.h
wedittags.o: config.h ../common.h winboard.h resource.h ../frontend.h
wedittags.o: ../backend.h ../lists.h
wgamelist.o: config.h ../common.h winboard.h resource.h ../frontend.h
wgamelist.o: ../backend.h ../lists.h
zippy.o: config.h ../common.h ../zippy.h ../frontend.h ../backend.h
zippy.o: ../lists.h ../backendz.h
wsockerr.o: wsockerr.h
winboard.o: resource.h
wclipbrd.o: config.h ../common.h winboard.h resource.h ../frontend.h
wclipbrd.o: ../backend.h ../lists.h wclipbrd.h
woptions.o: config.h ../common.h winboard.h resource.h ../backend.h
woptions.o: ../lists.h ../frontend.h woptions.h defaults.h wedittags.h
wengineoutput.o: config.h ../common.h winboard.h resource.h ../frontend.h
wevalgraph.o: config.h ../common.h winboard.h resource.h ../frontend.h
whistory.o: config.h ../common.h winboard.h resource.h ../frontend.h
wlayout.o: config.h ../common.h winboard.h resource.h ../frontend.h
wplugin.o: config.h ../common.h winboard.h resource.h ../frontend.h
wsnap.o: config.h ../common.h winboard.h resource.h ../frontend.h
wsnap.o: wsnap.h