Author: Will Singleton
Date: 11:34:37 11/11/02
Go up one level in this thread
On November 11, 2002 at 11:07:35, Gerd Isenberg wrote: >On November 11, 2002 at 10:13:52, Robert Hyatt wrote: > >>On November 11, 2002 at 06:11:27, Gerd Isenberg wrote: >> >>>As a kind of illiterate in internet chess protocols, sockets and WinBoard, i am >>>looking for some help to implement automatic playing for ICC in IsiChess without >>>using WinBoard. Using MSC++ i guess to use a CSocket or CAsyncSocket class. >>> >>>Are there any descriptions or code samples how to do it? >>> >>>Thanks in advance, >>>Gerd >> >> >>In the unix world, it is trivial. >> >>The steps are: >> >>look up the hostname (chessclub.com) using gethostbyname(). Copy the >>ip address into a sockaddr structure. >> >>You need to fill in the port number, which for ICC is 5000. (I will attach >>a simple example at the end of this). >> >> >>create a socket. >> >>Do a connect using the above socket and sockaddr structure and you will get an >>open full-duplex socket that you can use to read/write data from/to the chess >>server. All you have to figure out is how to handle the data you get, parse >>the style-12 chessboard description which will give you the current position >>and move (you can use either or both). > > >Thanks Bob, that should help. > >> >>The obvious question is "why not use xboard/winboard?" That gives you already- >>working code, with a nice GUI to watch the games on, zippy to parse/accept >>match requests automatically, etc... > >I really don't know, what's the best way for me. > >I made my own Windows-GUI with some kind of Multiple Document Interface, and a >lot of debug/statistic windows. >Documents are associated with one "SearchTree"-Objects. It is possible to open >several game-documents, for eg. playing simultaniously, but even i can open >several chess-windows on the same chess-document eg. to analyze several >positions from one game with a shared transposition table etc. > >I have simply no experience with WinBoard at all. > >I had no problems a few years ago with my DOS-Program to implement Donningers >auto232 "protocol" with low level USART (8055?) programming. > UART programming is fun. You shouldn't have any trouble with style12 and the rest of the server spec. With my Mac program, I found writing my own server interface a bit of a pain to get right, dealing with various little issues. Most of these were related to pondering, handling match requests, and housekeeping stuff. But it's doable. Winboard, otoh, takes care of all the funny stuff, so that code was much easier for me to write. If a non-console program can communicate without problems to winboard, and you want to get it done quickly, the winboard interface might be better. You can get by with a small subset of protocol 1 commands. However, writing your own interface is much more fun. Will
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.