Current Games thing

Suggestions will be moved here once processed.

Moderator: Oversight Staff

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Current Games thing

Postby stromae » Sat Oct 20, 2012 11:55 pm

Change it so it's easier to see who is on what team? Possibly be able to click on someone's name to see their stats page?

Would also be nice to see teams' average Elo, and possibly difference?

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 1:23 am

I made the server crash when doing this :(

Check out "beta" at games/games.php
dWFrZi5i -- 'cause I'm cool like Agreements

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Re: Current Games thing

Postby stromae » Sun Oct 21, 2012 2:56 am

Nice, looks good! Only other thing (to make it look better) might be to to have +/- Elo thing next to team's average, instead of next to everyone's Elo. Also, instead of:

avg_elo=1000)

Maybe:

Average Elo: 1000 | +17.5 / -14.5

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 3:20 am

Yeah, actually just changed it :P
I had it the other way before because when someone's ELO is over 2000 it changes differently (different K value for them for some reason). But since there's not too many it doesn't matter much.

Edit: ok, I'll change the text to Average elo and stuff
Edit2: nevermind, that'll take up too much space
dWFrZi5i -- 'cause I'm cool like Agreements

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Re: Current Games thing

Postby stromae » Sun Oct 21, 2012 3:58 am

Looks good now.

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 4:02 am

Cool; replaced old gamelist (Games tab now shows new one).
dWFrZi5i -- 'cause I'm cool like Agreements

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Re: Current Games thing

Postby stromae » Sun Oct 21, 2012 4:18 am

Out of curiosity, how is the average calculated when there are less than 5 players on the team? Does it average the 4 players' Elo (add up 4 Elo's and divide by 4), or does it add in an extra 1k (add up 4 Elo's, add 1000, divide by 5) ? Just curious.



edit: Hmm....what's the K value for Elo? The win loss between 0-30 and not 0-32?

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 4:30 am

Average: just average of the four players. (edit: actually you're right, I guess it's average of five because of how I implemented it :P)

K value: using the same as GHost's (update_dota_elo):

Code: Select all

   /* Calculate new ratings for all players. */
   for (i = 0; i < num_players; i++) {
      int team = num_teams > 0 ? player_teams[i] : i;
      float K, diff;

      /* FIXME: this is the chess distribution; games should be
         able to set their own. */
      if (player_ratings[i] < 2000)
         K = 30.0;
      else if (player_ratings[i] > 2400)
         K = 10.0;
      else
         K = 130.0 - player_ratings[i] / 20.0;

      diff = K * (team_winners[team] - team_probs[team]);
      player_ratings[i] += diff;
      /* dbg_msg(GGZ_DBG_STATS,
         "Player %d has new rating %f (slope %f).", i,
         player_ratings[i], K); */
   }
dWFrZi5i -- 'cause I'm cool like Agreements

User avatar
adventureclub
Treant Protector
Posts: 930
Joined: Fri Apr 20, 2012 10:53 am

Re: Current Games thing

Postby adventureclub » Sun Oct 21, 2012 6:03 am

didnt know its written in java lol

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 1:48 pm

Um. That is C++, Java and C++ are both C-based languages in terms of syntax.
dWFrZi5i -- 'cause I'm cool like Agreements

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 3:07 pm

The average ELO is now simple average of players in the current game.
dWFrZi5i -- 'cause I'm cool like Agreements

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Re: Current Games thing

Postby stromae » Sun Oct 21, 2012 6:28 pm

^ So it does or doesn't fill open slots with "1000 Elo's" ?

And ya, GHost++ was written in C++

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 6:37 pm

It did earlier, now it just does average of however many players are in game so not anymore.
dWFrZi5i -- 'cause I'm cool like Agreements

stromae
Aura Tree
Posts: 29
Joined: Sat Oct 20, 2012 6:33 am

Re: Current Games thing

Postby stromae » Sun Oct 21, 2012 6:52 pm

Notice: Undefined offset: 5 in /var/www/ent/forum/slots_fast.php on line 176 Notice: Undefined offset: 5 in /var/www/ent/forum/slots_fast.php on line 176

uakf.b
Staff Department
Posts: 7829
Joined: Sun Apr 08, 2012 10:37 pm
Has thanked: 8 times
Been thanked: 125 times

Re: Current Games thing

Postby uakf.b » Sun Oct 21, 2012 7:11 pm

Hm, should be fixed.
Edit: just kidding
Edit2: alright should be fixed now, thanks for reporting :P
dWFrZi5i -- 'cause I'm cool like Agreements


Return to “Suggestion Archive”

Who is online

Users browsing this forum: No registered users and 20 guests