Reply
 
LinkBack Thread Tools Display Modes
  #1   Report Post  
Old September 19th 06, 09:28 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Aug 2006
Posts: 58
Default xboard protocol ambiguities

Hi,

I saw that crafty (and others e.g. gnuchess(!)) start moving when received a
move after a 'force'. It also seems that icsDrone depends on this
behaviour?
Now just the get all ambiguities out of the way:
- xboard / protover 2 / force / edit / . / e2e4 (or whatever move) does NOT
start the clock
- xboard / protover 2 / force / white / e2e4 *DOES* start the clock
am I right?
So 'edit' is a special force-mode?

Example GNUChess:
[email protected]:/usr/local/games/pos/src/icsDrone$ gnuchess
GNU Chess 5.07
Adjusting HashSize to 1024 slots
Transposition table: Entries=1K Size=40K
Pawn hash table: Entries=0K Size=28K
White (1) : xboard
White (1) : protover 2
feature setboard=1 analyze=1 ping=1 draw=0 sigint=0 variants="normal"
myname="GNU Chess 5.07" done=1
White (1) : force
White (1) : white
White (1) : e2e4
1. e2e4
1. ... b8c6

Example Crafty:
[email protected]:~/pos$ crafty
hash table memory = 12M bytes.
pawn hash table memory = 3M bytes.
show book statistics
EGTB access enabled
using tbpath=/var/lib/crafty/TB
0 piece tablebase files found
parallel threads disabled.


Crafty v20.0 (1 cpus)

White(1): xboard

tellicsnoalias set 1 Crafty v20.0 (1 cpus)
tellicsnoalias kibitz Hello from Crafty v20.0! (1 cpus)
protover 2
feature ping=1 setboard=1 san=1 time=1 draw=1
feature sigint=0 sigterm=0 reuse=1 analyze=1
feature myname="Crafty-20.0" name=1
feature playother=1 colors=0
feature variants="normal,nocastle"
feature done=1
force
white
e2e4
move c6

Example icsDrone session with freechess.org:
Tue Sep 19 19:17:47 GMT+01:00 2006 Pos in xboard mode started
Tue Sep 19 19:17:47 GMT+01:00 2006 In: xboard
Tue Sep 19 19:17:47 GMT+01:00 2006 In: protover 2
Tue Sep 19 19:17:47 GMT+01:00 2006 In: ics freechess.org
Tue Sep 19 19:17:47 GMT+01:00 2006 Opponent is on host: freechess.org
Tue Sep 19 19:34:20 GMT+01:00 2006 In: level 0 10 7
Tue Sep 19 19:34:20 GMT+01:00 2006 In: time 66800
Tue Sep 19 19:34:20 GMT+01:00 2006 In: otim 54800
Tue Sep 19 19:34:20 GMT+01:00 2006 In: force
Tue Sep 19 19:34:20 GMT+01:00 2006 In: d2d4
Tue Sep 19 19:34:20 GMT+01:00 2006 pos will move: from: D2, to: D4,
movetype: REGULAR
Tue Sep 19 19:34:20 GMT+01:00 2006 (pos) move g8f6, value: 1.7
('in:' is what I receive from icsDrone)


Could someone enlighten me?


Folkert van Heusden
  #2   Report Post  
Old September 20th 06, 05:09 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Sep 2006
Posts: 14
Default xboard protocol ambiguities

White (1) : force
White (1) : white
White (1) : e2e4
1. e2e4
1. ... b8c6



force
white
e2e4
move c6


force works exactly how the documentation says it does.

Your examples send "white" which changes who is to play.

The use of "white" and "black" are obsolete, and also cause problems for
recent versions of GNU Chess when pondering (I'm working on it, but I don't
use "white"/"black" at all myself, so it isn't a priority).

white
(This command is obsolete as of protocol version 2, but is still sent
in some situations to accommodate older engines unless you disable it
with the feature command.) Set White on move. Set the engine to play
Black. Stop clocks.
  #3   Report Post  
Old September 20th 06, 12:57 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Aug 2006
Posts: 58
Default xboard protocol ambiguities

White (1) : force
White (1) : white
White (1) : e2e4
1. e2e4
1. ... b8c6


force
white
e2e4
move c6


force works exactly how the documentation says it does.
Your examples send "white" which changes who is to play.


Yes. But the documentation says: force - stop clocks, white - stop clocks,
then a move comes in: the documentation does not say that the clocks should
then be started?

The use of "white" and "black" are obsolete, and also cause problems for
recent versions of GNU Chess when pondering (I'm working on it, but I
don't use "white"/"black" at all myself, so it isn't a priority).

white
(This command is obsolete as of protocol version 2, but is still sent
in some situations to accommodate older engines unless you disable it
with the feature command.) Set White on move. Set the engine to play
Black. Stop clocks.


  #4   Report Post  
Old September 21st 06, 01:56 AM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Sep 2006
Posts: 14
Default xboard protocol ambiguities

Yes. But the documentation says: force - stop clocks, white - stop clocks,
then a move comes in: the documentation does not say that the clocks should
then be started?


It is implied because force "sets the engine to play neither colour"

But "White" makes "the engine black", thus ending force mode.

The move then starts blacks clock, because it is no longer in force mode.

It could be written better, but that is the expected behaviour.

You shouldn't be writing code that depends on "white" and "black", if you
can avoid it (and you probably can).
  #5   Report Post  
Old September 21st 06, 05:42 PM posted to rec.games.chess.computer
external usenet poster
 
First recorded activity by ChessBanter: Aug 2006
Posts: 58
Default xboard protocol ambiguities

Hi,

Thanks for the reply!

Yes. But the documentation says: force - stop clocks, white - stop
clocks, then a move comes in: the documentation does not say that the
clocks should then be started?

It is implied because force "sets the engine to play neither colour"
But "White" makes "the engine black", thus ending force mode.
The move then starts blacks clock, because it is no longer in force mode.
It could be written better, but that is the expected behaviour.
You shouldn't be writing code that depends on "white" and "black", if you
can avoid it (and you probably can).


Probably but I tried to stick so close as possible to the xboard specs as
possible to prevent compatibility problems.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ICS/ICC protocol reference? Thomas T. Veldhouse rec.games.chess.computer (Computer Chess) 3 August 26th 06 08:13 PM


All times are GMT +1. The time now is 07:34 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ChessBanter.
The comments are property of their posters.
 

About Us

"It's about Chess"

 

Copyright © 2017