ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

good macintosh guy for UCI engine development
Goto page 1, 2, 3, 4  Next
 
Post new topic       TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Threaded
View previous topic :: View next topic  
Author Message
Sam Hamilton



Joined: 23 Jun 2006
Posts: 1095

PostPosted: Wed Jan 25, 2012 2:57 pm    Post subject: good macintosh guy for UCI engine development Reply to topic Reply with quote

Hi,

With windows Arena was great for debugging, since I could see all the input and output. I have started a new project, my first one on a macintosh, and find it awkward to debug things like doing moves, undoing moves, move generation, etc. without my Arena crutch. Does anyone know of something similar I could use? I have tried xboard, stockfish, and the shredder demo and none seem to provide the same convenience.

-Sam
Back to top
View user's profile Send private message
Evert Glebbeek



Joined: 21 Jan 2011
Posts: 893
Location: NL

PostPosted: Wed Jan 25, 2012 3:04 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

There's Sigma Chess, but I switched to using XBoard myself. I never used any of the other options you mention.
Back to top
View user's profile Send private message Visit poster's website
H.G.Muller



Joined: 10 Mar 2006
Posts: 12912
Location: Amsterdam

PostPosted: Wed Jan 25, 2012 3:09 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

Could you elaborate on what exactly it is that Arena does? Is it that you can see the engine-GUI traffic real time? Wit XBoard you can do that, by setting the debug file to stderr. Then all debug output, which includes all time-stamped engine traffic, appears in the xterm from which you started it.

Of course you could pipe stderr to some filter, to pass only lines that contain 'first' or 'second', to be somewhat more selective.

If you want to see what the UCI traffic, you could can use UCIWB as adapter in stead of Polyglot, as it relays all the raw engine input to the GUI as debug statements, so they appear in the XBoard debug file.
Back to top
View user's profile Send private message Visit poster's website
Sam Hamilton



Joined: 23 Jun 2006
Posts: 1095

PostPosted: Wed Jan 25, 2012 5:00 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

Evert wrote:
There's Sigma Chess, but I switched to using XBoard myself. I never used any of the other options you mention.


As far as I can tell, Sigma chess does not work on the most recent mac os since it does not support powerpc applications. I am not sure you get to see all the UCI traffic either.

-Sam
Back to top
View user's profile Send private message
Sam Hamilton



Joined: 23 Jun 2006
Posts: 1095

PostPosted: Wed Jan 25, 2012 5:17 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

hgm wrote:
Could you elaborate on what exactly it is that Arena does? Is it that you can see the engine-GUI traffic real time? Wit XBoard you can do that, by setting the debug file to stderr. Then all debug output, which includes all time-stamped engine traffic, appears in the xterm from which you started it.

Of course you could pipe stderr to some filter, to pass only lines that contain 'first' or 'second', to be somewhat more selective.

If you want to see what the UCI traffic, you could can use UCIWB as adapter in stead of Polyglot, as it relays all the raw engine input to the GUI as debug statements, so they appear in the XBoard debug file.


I want to see all the UCI traffic. I did download XBoard and managed to get it running via command line (for some reason changing the config files to get rid of fairymax references did not work, so double clicking the XBoard app would always just generate a no-fairymax error). I have not used unix since grad school (aka for a LONG time) so all the fiddling I was doing trying to get it working was a bit discouraging. I never tried polyglot since after spending an hour getting board installed and working with Arasan I was getting a little depressed about the process. It sounds like UCIWB would be an ideal solution, is there a mac/unix version? Are there easy to follow instructions for a dumb manager type (as opposed to a super-star unix programmer)?

-Sam
Back to top
View user's profile Send private message
Miguel A. Ballicora



Joined: 09 Mar 2006
Posts: 4484
Location: Chicago, Illinois, USA

PostPosted: Wed Jan 25, 2012 5:27 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

BubbaTough wrote:
hgm wrote:
Could you elaborate on what exactly it is that Arena does? Is it that you can see the engine-GUI traffic real time? Wit XBoard you can do that, by setting the debug file to stderr. Then all debug output, which includes all time-stamped engine traffic, appears in the xterm from which you started it.

Of course you could pipe stderr to some filter, to pass only lines that contain 'first' or 'second', to be somewhat more selective.

If you want to see what the UCI traffic, you could can use UCIWB as adapter in stead of Polyglot, as it relays all the raw engine input to the GUI as debug statements, so they appear in the XBoard debug file.


I want to see all the UCI traffic. I did download XBoard and managed to get it running via command line (for some reason changing the config files to get rid of fairymax references did not work, so double clicking the XBoard app would always just generate a no-fairymax error). I have not used unix since grad school (aka for a LONG time) so all the fiddling I was doing trying to get it working was a bit discouraging. I never tried polyglot since after spending an hour getting board installed and working with Arasan I was getting a little depressed about the process. It sounds like UCIWB would be an ideal solution, is there a mac/unix version? Are there easy to follow instructions for a dumb manager type (as opposed to a super-star unix programmer)?

-Sam


I have a program I wrote for Linux ("Gestor") that keeps record of all traffic (inspired on an adapter HGM wrote for Micromax). I guess it should compile for Mac. If you find it useful, I can send it to you or better yet, release it. I will look it up tonight at home.

Miguel
_________________
http://sites.google.com/site/gaviotachessengine/
Back to top
View user's profile Send private message Visit poster's website
H.G.Muller



Joined: 10 Mar 2006
Posts: 12912
Location: Amsterdam

PostPosted: Wed Jan 25, 2012 5:51 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

UCI2WB is open source, ( http://hgm.nubati.net/cgi-bin/gitweb.cgi ), and compiles on Windows as well as Linux. I suppose you should haev no difficulty compiling it for Mac.

The easiest way to get rid of the fairymax error message is to actually install fairymax. I am not sure things like "apt-get install" work on a Mac-Intosh, but the XBoard binary package for Mac that is available from WinBoard forum should come with Fairy-Max pre-installed. (And probably also Mac binaries for Polyglot and UCI2WB).

Another way would be to edit the master settings file (on Linux /etc/xboard.conf) and change the -firstChessProgram setting from fairymax to another engine, or define -ncp mode to start without engine.

To run a UCI engine with UCI2WB from the command line, you could use

xboard -fcp "UCI2WB ENGINECOMMAND ENGINEFOLDER"

where ENGINEFOLDER is optional. (On Linux engines typically know where to find their own files.) Note that UCI2WB should be in your path, i.e. you should be able to type it from the command line. (If you put it in the current directory, you would have to give the command ./UCI2WB to run it.)

Normally XBoard is configured to automatically invoke Polyglot (for the first engine) when you use the argument -fUCI, or tick UCI in the Load Engine dialog. To configure it for using UCI2WB in stead, you would have to run it one time with the option

xboard -adapterCommand "UCI2WB %fcp %fd"

After that, use of -fUCI on an engine would automatically invoke UCI2WB. So you should be able to run, say, Fruit by

xboard -fcp fruit -fUCI

You could also just startup XBoard, select Engine->Load Engine, type "fruit" for engine command, tick UCI, and click OK to load Fruit (and next time you could then select it in that same dialog from the combobox).



To get the debug output you should start XBoard from a terminal window, by typing

xboard -debug -debugfile stderr

The debug output should then appear in the terminal window.
Back to top
View user's profile Send private message Visit poster's website
Evert Glebbeek



Joined: 21 Jan 2011
Posts: 893
Location: NL

PostPosted: Wed Jan 25, 2012 8:38 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

BubbaTough wrote:
As far as I can tell, Sigma chess does not work on the most recent mac os since it does not support powerpc applications.

Probably true.

Quote:
I am not sure you get to see all the UCI traffic either.

I write my own log file with all incoming and outgoing commands. Does the job.
Back to top
View user's profile Send private message Visit poster's website
H.G.Muller



Joined: 10 Mar 2006
Posts: 12912
Location: Amsterdam

PostPosted: Wed Jan 25, 2012 10:19 pm    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

We hope to have a native Mac version of XBoard (tentative name 'OSXBoard') soon. I have just seen a screenshot, and it already displays the board and clocks!
Back to top
View user's profile Send private message Visit poster's website
Robert Purves



Joined: 15 Feb 2010
Posts: 155
Location: New Zealand

PostPosted: Thu Jan 26, 2012 12:58 am    Post subject: Re: good macintosh guy for UCI engine development Reply to topic Reply with quote

hgm wrote:
We hope to have a native Mac version of XBoard (tentative name 'OSXBoard') soon. I have just seen a screenshot, and it already displays the board and clocks!

I look forward to that.
The old Xboard for Mac installer had so many problems... Here's another that I just noticed. The timestamp utility won't run on MacOS X 10.7:
Code:
/Applications/Xboard/timestamp ; exit;
Launch of "timestamp" failed: the PowerPC architecture is no longer supported.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic       TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions All times are GMT
Goto page 1, 2, 3, 4  Next
Threaded
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads