in reply to Implementation of a Ladder System
I would suggest you read this and this to get you started.
cLive ;-)
Update: of course, it depends on how you run it. If users 'play each other' and highest swops down if they lose, then a hash would be easiest, eg:
# (snippet) my %player = ( joe => 1, jay => 2, jak => 3, jim => 4); # Say jim beat jak, then you just need to reassign $winner = 'jim'; $loser = 'jak'; if ($player{$winner} < $player{$loser}) { ($player{$winner},$player{$loser}) = ($player{$loser},$player{$winne +r}); } # then rewrite your hash to db
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Implementation of a Ladder System
by Anonymous Monk on May 11, 2001 at 23:57 UTC | |
by cLive ;-) (Prior) on May 12, 2001 at 00:06 UTC |