Thread: Ranking System Code?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    2

    Question Ranking System Code?

    I am trying to figure out a short line of code, but is stumping me a bit. It is a win/loss/tie ranking system. I know how to get the win loss percentage. but if a person has 100 wins and 12 losses, that person is lower than a person with 1 win 0 losses and even a person with 10 wins and 2 lossses. I want people to me compensated for matches also, but I don't want a guy with 1 win and 1000 losses to be higher that a 10 and 9.

    Any help will be greatly appreaciated.
    Thanks

  2. #2
    Unregistered
    Guest
    ranking=(win/total games)*(win-loss)

    the higher ranking, the better the team. (I think that was what u were looking for)

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    2

    Thanks

    This looks pretty good, thank you. (Brain at ease)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Operating system construction
    By AdamLAN in forum Tech Board
    Replies: 7
    Last Post: 03-05-2005, 01:31 PM
  2. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 05:39 PM
  3. System shutdown code?
    By biosninja in forum C++ Programming
    Replies: 5
    Last Post: 11-13-2002, 09:47 AM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. Azbia - a simple RPG game code
    By Unregistered in forum Game Programming
    Replies: 11
    Last Post: 05-03-2002, 06:59 PM