Hello,

On Wed, Jan 31, 2007 at 09:17:38AM +0000, Denis Guillaume wrote:
> So, the only solution (or correct way to do it ?) is to let
> a bot handle the game mechanics ?

There are always many ways how to do it.

> I mean, when a user perform a game action, the client should
> send the server a <message...> to the game bot JID, which
> I have to program in a script language ? In that case, the bot may
> process the game state, store it in a database, send messages to
> the other players, etc... ?

Well, you can write it in assembler, but if you need rule handling, you
need some bot (internal or external to server) to do it.

> In fact, I've seen a JEP example here (about chess) :
> http://www.xmpp.org/extensions/inbox/chess.html
> and I thought that the server was directly handling
> <chess:rules> or <chess:piece> tags. If this is possible,
> is it the right way to do it, and how do we program
> a Jabber server ?

That's not an example. That was my attempt to write chess specs. It
started as a thing completely without server support and after long
discussion and Holy Wars about how it should be done, I tried writing a
general game layer, which I guess I failed to do.

The last version of the attempt is not even in the inbox, it is
http://vorner.pretel.cz/game-session.html (it is even before transform
to XEP). The chess protocol is not yet rewritten for this.

If you like you want to use it to something (remember, it was not
accepted), continue with it, feel free to do so.

With regards

-- 
This email was generated by a biological random generator.
If you want more random text, just respond to this email.

Michal "vorner" Vaner

Attachment: pgpRDKkgKDt0A.pgp
Description: PGP signature

Reply via email to