PHP Tournament Management

General Stuff about Armagetron, That doesn't belong anywhere else...
Post Reply
Pink Tomatoes
Average Program
Posts: 61
Joined: Fri Jul 25, 2008 11:24 am

PHP Tournament Management

Post by Pink Tomatoes »

http://dessert.ath.cx/mcp/ << Current Source Code. (It's a little messy, but should be easier to read than other stuff I have done :). It's my first proper attempt at OOP as well.)

I've attempted to create an automated tournament manager in PHP.
It's running at the moment on {PinkTomato} PHPTourneyServer.

It currently supports Fortress and CTF game modes.

The team management, is... hit & miss. Though if you are in the wrong team, it attempts to sort you out before the match begins. I'm after suggestions on how a proper team join could work, it just doesn't feel natural.

It's hard-coded to a limit of 2 teams :(, although it is on the TODO to put it in an array :).

TODO:
[*] Small todo, might be a small bug with declareWinner, *whoops*.
[*] Catch more errors!
[*] The first aim is to get this to output the previous games onto a website.
[*] Use MOVE_TO when a match is done.
[*] 4 Teams as well as 2 for TST, FFF, etc.
[*] Route 1: If possible, to use a PHP client to connect to many servers at once, and co-ordinate a tournament with the input possibly of an XML? file.
[*] Route 2: Forget PHP, and integrate it directly into Armagetronad, possibly by use of future module integration :).
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Re: PHP Tournament Management

Post by DDMJ »

Brilliant. I tested it out (by myself) and it looks really nice!
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Re: PHP Tournament Management

Post by hoop »

nice Pink, I can't check your code atm, but you started doing what many people had in mind lately
On my own, I'm developing a signup web-based system for tournaments... perhaps we could synchronize our works ;)

nice start
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Re: PHP Tournament Management

Post by Infa(mous) »

Umm.... Is there supposed to be an sql.class.php?
/me is all confuzzled :(
-Infamous
Pink Tomatoes
Average Program
Posts: 61
Joined: Fri Jul 25, 2008 11:24 am

Re: PHP Tournament Management

Post by Pink Tomatoes »

F! Infamous wrote:Umm.... Is there supposed to be an sql.class.php?
/me is all confuzzled :(
Oops, that's a mistake :). Doesn't need it yet, will use SQL in future though to record matches.
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Re: PHP Tournament Management

Post by Infa(mous) »

Oh. Ok. :P
-Infamous
Post Reply