Main
Date: 20 Sep 2006 14:00:34
From: Folkert van Heusden
Subject: castling on freechess
Hi,

I'm using icsDrone to interface my chess-program (POS) to FreeChess.
Now some problems occur:
- sometimes I receive o for short castling and oo for long castling
- then sometimes I receive o- for long castling (not sure what I'll get
then for short)
and maybe other variants as well.
Can someone please tell me which variants are possible? Or is there a
document on the web somewhere (that I did not find using google) describing
the possible move-formats?





 
Date: 20 Sep 2006 13:36:54
From: David Richerby
Subject: Re: castling on freechess
Folkert van Heusden <[email protected] > wrote:
> I'm using icsDrone to interface my chess-program (POS) to FreeChess.
> Now some problems occur:
> - sometimes I receive o for short castling and oo for long castling
> - then sometimes I receive o- for long castling (not sure what I'll get
> then for short)
> and maybe other variants as well.
> Can someone please tell me which variants are possible? Or is there
> a document on the web somewhere (that I did not find using google)
> describing the possible move-formats?

I'd have thought that asking the FICS admins directly would be more
likely to work. Do post the answers here, though, if you find them!


Dave.

--
David Richerby Homicidal Vomit (TM): it's like a pile
www.chiark.greenend.org.uk/~davidr/ of puke but it wants to kill you!


  
Date: 21 Sep 2006 17:32:29
From: Folkert van Heusden
Subject: Re: castling on freechess
>> I'm using icsDrone to interface my chess-program (POS) to FreeChess.
>> Now some problems occur:
>> - sometimes I receive o for short castling and oo for long castling
>> - then sometimes I receive o- for long castling (not sure what I'll get
>> then for short)
>> and maybe other variants as well.
>> Can someone please tell me which variants are possible? Or is there
>> a document on the web somewhere (that I did not find using google)
>> describing the possible move-formats?
> I'd have thought that asking the FICS admins directly would be more
> likely to work. Do post the answers here, though, if you find them!

Found the problem: there's a small bug in icsDrone v1.5.0 which corrupts
castling moves when you use it in 'long move notation' mode.
This patch fixes it (hopefully - at least the castling):

diff -uNrBbd icsDrone/utils.c icsDrone-new/utils.c
--- icsDrone/utils.c 2001-10-09 20:27:41.000000000 +0200
+++ icsDrone-new/utils.c 2006-09-21 16:38:41.000000000 +0200
@@ -103,6 +103,8 @@
/* Converts move from ICS SPECIAL to COMPUTER LAN */
void ConvIcsSpecialToComp(char *move)
{
+ if (strcasecmp(move, "o-o") != 0 && strcasecmp(move, "o-o-o") != 0)
+ {
/* P/fr-fr=P -- > frfr=p */
move[0] = move[2];
move[1] = move[3];
@@ -115,6 +117,7 @@
} else {
move[4] = '\0';
}
+ }
}

static FILE* logfile = NULL;