[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] tournaments
- To: pbmserv-dev@gamerz.net
- Subject: Re: [pbmserv-dev] tournaments
- From: Lyman Hurd <lhurd@yahoo.com>
- Date: Sat, 14 Jan 2006 15:58:32 -0800 (PST)
- Authentication-results: play.gamerz.net header.From=lhurd@yahoo.com; domainkeys=pass
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ss5bbm/xhxzzfSw+I6/HKgRhaqdCtbMEiAg9WoSbgydv5U9LFp879p0HAr6xT0bQBBi+7kTH9sRSivkhDeFw5hmYJKOh+/UGn9zgWwbgC5dwpwBDO6dwG8fcNh1J+rv7n1+QjgobEZC7dDLAGZnk3GHksTcHa6BZ8JpLtKyaPKk= ;
- In-reply-to: <Pine.LNX.4.58.0601141716280.5658@julia.math.lsu.edu>
- Reply-to: pbmserv-dev@gamerz.net
- Sender: owner-pbmserv-dev@gamerz.net
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.