[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pbmserv-dev] tournaments



Goodness, I read these emails after I made my announmcement about Unlur!  I certainly would not want to further encumber game.cpp.  Let me think about it but my instincts would be to add a tournament class which we could subclass to make new kinds of tournaments and make sure that game includes just those new interfaces needed to make this possible rather than extending it with all the new code.
 
 Cheers,
 
 Lyman
 
 PS As an irrelevant aside I have obtained permission to code Santorini 
 
 http://www.boardgamegeek.com/game/9963
 http://www.boardgamegeek.com/game/12032
 
 for the server!  Of ocurse if my friends witha  graphical bent wanted to figure out how it would best be displayed :-)...

----- Original Message ----
From: Paul van Wamelen <wamelen@math.lsu.edu>
To: pbmserv-dev@gamerz.net
Sent: Saturday, January 14, 2006 18:18:56
Subject: Re: [pbmserv-dev] tournaments

All,

On second thought should the tournament stuff go in game.cpp?
Wouldn't it be better to have one tournament command (taking the game
as an argument) instead of a tournament argument for every game
command. That way game.cpp doesn't get even bigger. The tournament
"start" command needs to issue challenges and record the corresponding
game numbers. This is easy to do (I think!) from within game.cpp but I
don't quite see how to do it elegantly from a "tournament" command.

Maybe it would be better to modify Richard's tournament code? The main
problem with it is the game numbering. For two tournaments you will
probably have two games called a12 and this makes a mess of archiving
(which I really want). Also, what happens if later we have multiple
tournaments in a single game at the same time? Where is Richard's
tournament script?

Paul


To unsubscribe, send a message to esquire@gamerz.net with
    unsubscribe pbmserv-dev@gamerz.net
as the BODY of the message.  The SUBJECT is ignored.