CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
having problem with a script.. i need help =)



Dec 3, 2000, 6:26 PM

Post #1 of 2 (2374 views)
having problem with a script.. i need help =) Can't Post

Here is my problem: im making a gaming ladder.
(gaming ladder: a place where online gamers signup and compete, when they lose a match/game they report theyre loss)

The style of this ladder is this:
winner of match moves up half the rank of the player/team they beat, if the player/team
they beat is less rank than them they do not move up any rank.
Losses and wins are recorded.

I have everything done, but i dont know how to store the data so when a user reports that player moves up.

example: rank 4 plays rank 17 and rank 17 wins. rank 4 reports the lose and rank 17 is now rank 10. now rank 10+ moves back 1 rank because rank 17 took rank 10.

thanks for reading, if you can help please reply.



Dec 4, 2000, 5:29 AM

Post #2 of 2 (2374 views)
Re: having problem with a script.. i need help =) [In reply to] Can't Post

I was totally lost in your rank calculations but anyway, for your needs a flat file will be just enough.
You don't need to actually "move" a player up, just increase his rank and then sort numerically...

You may explore DBM files (perldoc -f dbmopen) as well...



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives