Author: Uri Blass
Date: 02:15:15 01/14/03
Go up one level in this thread
On January 14, 2003 at 04:39:18, Sune Fischer wrote:
>On January 14, 2003 at 03:59:18, Uri Blass wrote:
>
>>On January 14, 2003 at 03:49:50, Uri Blass wrote:
>>
>>>On January 14, 2003 at 03:37:03, Uri Blass wrote:
>>>
>>>>On January 14, 2003 at 03:32:34, Sune Fischer wrote:
>>>>
>>>>>On January 14, 2003 at 03:22:20, Uri Blass wrote:
>>>>>
>>>>>>I now see that I cannot play games under winboard
>>>>>>
>>>>>>Winboard always give me a box in automatic comp-comp games under winboard(games
>>>>>>on one computer).
>>>>>>
>>>>>>I thought that winboard ignore tellall information when I play under winboard
>>>>>>but it does not do it.
>>>>>>
>>>>>>I guess that I need to implement something that tell me if I play under winboard
>>>>>>or not
>>>>>
>>>>>You mean if you are connected to a chess server or not?
>>>>>
>>>>>There is an ICS command in winboard, from the protocol:
>>>>>
>>>>>"ics HOSTNAME
>>>>>If HOSTNAME is "-", the engine is playing against a local opponent; otherwise,
>>>>>the engine is playing on an Internet Chess Server (ICS) with the given hostname.
>>>>>This command is new in protocol version 2 and is not sent unless the engine has
>>>>>enabled it with the "feature" command. Example: "ics freechess.org" "
>>>>>
>>>>>-S.
>>>>
>>>>Do you say that the only way to play as an automatic player with kibitching and
>>>>also to support winboard so that Movei can play games automatically under
>>>>winboard is to support that command?
>
>No that command is just so you know when you are connected to a chess server.
>I don't kibitz when not connected, I thought that might be your problem.
>
>>>>Uri
>>>
>>>OI can add that I will do it but the point was that I believed that implementing
>>>kibitz command is easy under winboard and I even read that it is only 3 minutes
>>>if I am a slow typer.
>>>
>>>It is clearly more than it.
>
>Well, not really.
>
>I basicly do something like this:
>
>sprintf(pv_buffer,"%s",Pv_to_sting(the-pv-array));
>sprintf(depth_buffer,"%d",depth);
>sprintf(node_buffer,"%.0f",nodes);
>sprintf(score_buffer,"%.3f",(float)score/1000.);
>and so on.
>
>then you have things ready and you can print to winboard or kibitz or whatever:
>
>if (OnChessServer)
> printf("tellics kibitz score=%s pv=%s
>depth=%s...\n",score_buffer,pv_buffer....);
>
>
>
>
>>>Uri
>>
>>I can add also that for me finding the right places to change is also time
>>For example
>>I now changed a line by adding ics=1
>>finding the line took me a minute.
>>
>>Here is the new line
>>
>>printf("feature setboard=1 draw=0 analyze=1 ping=1 ics=1 done=1\n");
>>
>>Now I need to add ics code and I am not sure about it
>>
>>if (!strcmp(command, "ics"))
>>{
>>}
>
>yes:
>
>
>if (!strcmp(command, ics")) {
> if (command[0]=='a') {
> break;
> } else if (command[4]=='-') {
> OnChessServer=false;
> } else {
> OnChessServer=true;
> }
>break;
>}
I do not understand how is it possible that command[0]='a'?
I already deleted what I did about ics because I understood from other people
that it is not needed if the only thing that I want is that my program will
kibitz on ICC and not under winboard.
Uri
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.