PlasticBishop.com Blog

The inner programming thoughts of the creator of www.plasticbishop.com

Monday, February 13, 2006

Even More Tournament Updates

Yesterday I had another good day and implemented some more tournament features to make them a little easier to manage.

Backing Out
Before a tournament starts, players now have the opportunity to withdraw from it. I'll be honest, I was prompted to write this code because I was an idiot and accidentally joined a tournament I didn't want to, not to mention the fact that Ruthie had been nagging for such a feature for quite some time. It makes sense and I think will be used quite a lot, so the result will be tournaments being populated by people who really want to be in them, not those who enthusiastically joined but then regretted it.

Disqualified Myself
I had an error. When trying to disqualify a non moving player, the code actually disqualified me from the tournanment instead! I quickly found the coding error
and fixed it, but that didn't help my current situation. I ended up sifting through the previous day's backup for all records that linked my games to that tournament and then reinserting them. It took ages, but that's what I get for being stupid :(

Games Lobby Open Tournaments
I made a couple of changes to the Games Lobby tables, the first of which was in the list of available tournaments. You can now see how many seats are still available in that tournament, and also you will get a Javascript confirmation box when you attempt to join the tournament. This was another measure to prevent me from accidentally joining other tournaments again, and I'm sure other people will find it useful too.



Current Tournaments
The Games Lobby list of a player's current tournaments now shows the percent complete for each tournament in the form of a little graph. It looks great and lets you get a quick glimpse of the state of each tournament.



Invited Games
The Invited Games list in the Games Lobby used to just say "Tournament" in the cancel option, but didn't give any indication as to which tournament the game was for. Now that text is actually a hyperlink to the tournament, making it simple to tell.

Tournament Grid
The tournament league grid which displays the status and result of all of a tournament's games got a bit of a makeover with the new icon for a disqualified player. However, I didn't want to stop there, so Ruthie made a few more little icons to make the different bits of information stand out more. Here's a screenshot of it, I hope you agree that it's certainly very eye catching.



I've got more stuff like this planned, but the challenge is getting it all to fit in. Next weekend is a four day weekend for me, so maybe there'll be a lot more to report on. Here's hoping!

0 Comments:

Post a Comment

<< Home