Re: Sketched Card Game RPC: Whist
Andrew Plotkin <erkyrath <at> eblong.com>
2006-05-02 01:55:36 GMT
On Sun, 30 Apr 2006, Phil Bordelon wrote:
> This is an attempt to sketch out the sort of RPCs that I was thinking of
> in terms of a potential framework. They are used here to implement
> Whist, but (as was implied by my previous messages) are intended to be
> fairly generic in terms of what sorts of card games they can service.
> Indeed, some of the stuff (especially the way cards are represented) is
> intended to be generic across /many/ card games.
Okay, having finally had a chance to look at this...
The object format makes sense, and I intend to use something like it in
the card-deck ruleset. (Although with hyphens instead of "|" signs,
because "3-club" is easier to type.)
The RPC set still strikes me as a clever thing which does not solve a
problem that we have. A ruleset, in a certain pragmatic sense, is what you
have before you've started to do any work.
Now, if you can write a UI which *generically* implements all of your RPCs
-- and can therefore be used for any of those games -- you have solved a
very impressive problem indeed. A slightly lesser (but still valuable)
solution would be an ECMAScript library which implemented those
capabilities, which could be used (in a customized form) to create those
games.
However, in both cases the RPCs are going to be the tail on the dog. If
you want to offer the RPCs *on their own* to game authors, you're going to
need to explain what it buys them to learn and follow them, and I don't
see the answer to that.
(Continue reading)