The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Need an algeorhythm
.....Or however you spell it...
Imagine you have a wins and losses field in the user column. Now instead of adding a rating field and say adding 10 to the rating field for a win and minusing 5 for a loss i thought i'd make myself a little system to work it out. Basically i don't want people to have a minus rating but remember people who have a loss have participated in some kind of battle so they must have some kind of rating. Basically i need a cool system that will keep my uses happy... Any ideas? - miSt |
#2
|
||||
|
||||
hmm if you don't want an negativ rating, you can for example use an exponential rating.
so whenever the losses are higher than the wins, the rating will go towards 0, but never be negativ |
#3
|
||||
|
||||
What i mean was can i have some sample code?
|
#4
|
||||
|
||||
How do this look:
PHP Code:
|
#5
|
||||
|
||||
it will give you negative ratings if someone has x losses and 0 wins...
use this: PHP Code:
|
#6
|
||||
|
||||
So i'd use this:
PHP Code:
PHP Code:
- miSt |
#7
|
||||
|
||||
no, use exactly the code i posted
the more wins someone has the greater the value will be, there is no need to do the *100 |
#8
|
||||
|
||||
Ahhh works pretty cool but can you explain to me how it works as the description on php.net was a bit confusing to me. Its basically so i can tell the users how we work out their rating ?
Thanks - miSt |
#9
|
||||
|
||||
exp(x) is the normal exponentialfunction you should have learned in maths:
e^x maybe you have toad a faktor smaller than 1 before, if you are awaiting high ammounts of wins exp(100) would be more than 10^43 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|