[Standards-JIG] Chess Game protocol
Robert B Quattlebaum, Jr.
darco at deepdarc.com
Wed Aug 23 14:22:50 CDT 2006
I just wanted to add to this thread a back-of-the-napkin chess
protocol I was going to standardize but ran out of time:
> A quick doodle of a chess protocol:
>
> -----------8<------------
>
> <!-- Sending player initiates a standard chess game.
> "iam" attribute is set to either (w)hite or (b)lack. -->
> <x xmlns="jabber:x:game:chess">
> <propose iam='w'/>
> </x>
>
> <!-- Sending player accepts terms.
> Board is populated, game is in play.
> White goes first. -->
> <x xmlns="jabber:x:game:chess">
> <accept/>
> </x>
>
> <!-- Sending player rejects terms -->
> <x xmlns="jabber:x:game:chess">
> <reject/>
> </x>
>
> <!-- Sending player moves piece -->
> <x xmlns="jabber:x:game:chess">
> <move from='a7' to='b2'/>
> </x>
>
> <!-- Sending player executes a "castle" -->
> <x xmlns="jabber:x:game:chess">
> <move from='e1' to='g1'/>
> <move from='h1' to='f1'/>
> <castle/>
> </x>
>
> <!-- Sending player promotes his pawn -->
> <x xmlns="jabber:x:game:chess">
> <move from='b7' to='b8'/>
> <promote to='queen'/>
> </x>
>
> <!-- Sending player just gave up.
> Game is over. -->
> <x xmlns="jabber:x:game:chess">
> <yield/>
> </x>
>
On Aug 23, 2006, at 7:52 AM, Kevin Smith wrote:
> On 23 Aug 2006, at 15:30, Michal vorner Vaner wrote:
>> I wrote a chess game client. It works OK (well, not yet fully
>> finished,
>> but these are just details). So I would like to ask, if it makes
>> sense
>> to describe the protocol in some JEP and try to standardize it.
>
> Yes, I think it does. I don't think there's much point implementing
> any protocols and not documenting them really; I was considering
> writing a decent protocol/JEP for the chess plugin I wrote for Psi
> (I used something hacky at the time as I was in a hurry and it was
> a proof-of-concept). If someone else comes up with a nice protocol,
> I could implement that in the Psi plugin instead (although, as I
> note jChess is written in Qt4 too, it might be easier for me to
> just rewrite the plugin using jChess :))
>
> /K
>
> --
> Kevin Smith
> Psi Jabber client developer/project leader (http://psi-im.org/)
> Postgraduate Research Student, Computer Science, University Of Exeter
>
>
__________________
Robert Quattlebaum
Jabber: darco at deepdarc.com
eMail: darco at deepdarc.com
www: http://www.deepdarc.com/
More information about the Standards-JIG
mailing list