# |
Jul 18th 2018, 12:51 |
flavius |
don't you also loose points in tennis if you fail to win? |
# |
Jul 18th 2018, 12:50 |
turkles |
in your system they now have 70 points, and tie for rank 3, and you have no idea of the madness that would ensure if rank 3 lost there rank based on alphabetical order or whatever is next :P |
# |
Jul 18th 2018, 12:50 |
turkles |
sorry tired.. rank 5 (50) beats 4 (60) |
# |
Jul 18th 2018, 12:49 |
flavius |
you mean rank 4 beats 3? |
# |
Jul 18th 2018, 12:48 |
turkles |
and yes.. lets fix my mistake, rank 3 = 70, rank 4 = 60, rank 3 = 50. rank 3 beats rank 4 |
# |
Jul 18th 2018, 12:48 |
turkles |
yes but you havent solved the issue |
# |
Jul 18th 2018, 12:48 |
flavius |
but internally save as points :P |
# |
Jul 18th 2018, 12:48 |
flavius |
you can show them the ranks |
# |
Jul 18th 2018, 12:47 |
flavius |
you dont have to show them any points mah dud |
# |
Jul 18th 2018, 12:47 |
turkles |
but they don't use a points system |
# |
Jul 18th 2018, 12:47 |
flavius |
switch to the point system then and avoid this madness |
# |
Jul 18th 2018, 12:47 |
flavius |
because saving ranks is very very costly in the db, having to recalculate all the time and all that |
# |
Jul 18th 2018, 12:47 |
turkles |
I am writing it now.. there is no code |
# |
Jul 18th 2018, 12:46 |
flavius |
i mean did you write the code for it to begin with? |
# |
Jul 18th 2018, 12:46 |
turkles |
I haven't designed the system, it's been there since 1914 or something |
# |
Jul 18th 2018, 12:45 |
flavius |
did you design this from the ground up? |
# |
Jul 18th 2018, 12:45 |
turkles |
I think during the loop I will create new array, then merge after loop |
# |
Jul 18th 2018, 12:45 |
flavius |
/s :P |
# |
Jul 18th 2018, 12:44 |
turkles |
that is an extreme example, but, yes it is fun |
# |
Jul 18th 2018, 12:43 |
flavius |
yeah, fun game seems like :P |
# |
Jul 18th 2018, 12:43 |
tim |
It strikes me as odd when a number 1 player has an off day, a rank 90 player will get to rank 1 if they win from them |
# |
Jul 18th 2018, 12:42 |
flavius |
why does rank 3 have less points than 4? |
# |
Jul 18th 2018, 12:41 |
turkles |
then if I have rank 3 = 50, 4= 60, 5 = 70, and 5 beats 4, who is rank 3? |
# |
Jul 18th 2018, 12:40 |
flavius |
HA |
# |
Jul 18th 2018, 12:40 |
flavius |
get it? cuz it's a POINT system |
# |
Jul 18th 2018, 12:40 |
flavius |
you get the point :P |
# |
Jul 18th 2018, 12:40 |
flavius |
rank 1 = 1000 points, rank 50 = 500 points... 1000-500 = 500 + 10..... rank 50 is now rank 1 with 1010 points, rank 1 is now rank 2 with 1000 points |
# |
Jul 18th 2018, 12:39 |
flavius |
you just need to get the difference in points between the looser and the winner and add an arbitrary number like 10 for a won match |
# |
Jul 18th 2018, 12:37 |
flavius |
and if players leave you don't have to re-rank them |
# |
Jul 18th 2018, 12:37 |
flavius |
that would make it so much easier |
# |
Jul 18th 2018, 12:37 |
flavius |
tbh, i still feel like a point system would be way better... so if level 90 beats level 1 he gets so many points that he's now in front of level 1 |
# |
Jul 18th 2018, 12:36 |
flavius |
i hate it when that happens, especially if they are my car keys :P |
# |
Jul 18th 2018, 12:35 |
turkles |
I thought Collections may have something handy to help, but then I lose my keys |
# |
Jul 18th 2018, 12:34 |
flavius |
oh god :slightly_smiling_face: |
# |
Jul 18th 2018, 12:33 |
turkles |
I thought... this will be easy. But. No. |
# |
Jul 18th 2018, 12:33 |
turkles |
Then save back again |
# |
Jul 18th 2018, 12:33 |
turkles |
Then I need to go through and re-rank on matches that I have results for |
# |
Jul 18th 2018, 12:33 |
turkles |
it will go into a database, but the players being ranked will change (as they join or leave clans...) and I only have to rank within a specific clan. So those who just joined have null rank, and those who left have left half the ranks empty. So first thing I do is re-rank based on current values and give a rank to those who joined |
# |
Jul 18th 2018, 12:30 |
flavius |
yeah, @tim has the right idea |
# |
Jul 18th 2018, 12:29 |
flavius |
don't you have this saved in a database? |
# |
Jul 18th 2018, 12:28 |
turkles |
I know what I need to do, but I can't figure out how. I was going to just loop the array and do -- where between old and new, but it seems as I edit the array it puts the entry to the back, and loops again, so anything between the two ranks gets reduced not by 1, but to the lowest rank |