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
    That would involve a flattext file, as per my post. I was trying to stay away from that. Thanks though,
    -I
      why? flat text is just another database. If it can be stored in flat text, it can be stored in DB.

      .02

      cLive ;-)