Author Topic: !balance cmd  (Read 1551 times)

Offline tmp2

  • Junior Member
  • *
  • Topic Author
  • Posts: 26
  • Karma: +0/-0
    • View Profile
    • Awards
!balance cmd
« on: September 22, 2012, 22:07 »
Hello everybody , i would like to know how the !balance command works?
i mean , how does it calculates the avarage psrs?
does anyone know what the algorith that the bot uses for this command?

Offline donjacrtasamir

  • WickedSick Member
  • *
  • Posts: 1119
  • Karma: +75/-176
    • View Profile
    • Awards
Re: !balance cmd
« Reply #1 on: September 22, 2012, 23:11 »
Hello everybody , i would like to know how the !balance command works?
i mean , how does it calculates the avarage psrs?
does anyone know what the algorith that the bot uses for this command?

nobody knows
If your frightened of dying, and your holding on. You'll see devils tearing your life away but if you've made your peace, then the devils are really angels,... Freeing you from the earth

Offline GREED

  • greedisgood
  • Retired Moderator
  • WickedSick Member
  • *
  • Posts: 2308
  • Country: ie
  • Karma: +233/-56
  • Awards Winner of 1 Signature of the Week Contest [COMMON] Winner of 1 Photoshop Challenge Contest [COMMON] Tours staff member [RARE] Uther Party Tournament Winner [COMMON]
    • View Profile
    • you bored?
    • Awards
Re: !balance cmd
« Reply #2 on: September 22, 2012, 23:11 »
zgcsm_Mqth1_J7_OJM62_Jp_Ecgo6c_YSIh_VTn_LZv_PIf_Aet_Yqq_MDjt_FQs_Ow_Bm_Kf_AWtig_XM_large_2" border="0

Spoiler for Dota SUTMoH Top 10 Vol 3  :

Offline tmp2

  • Junior Member
  • *
  • Topic Author
  • Posts: 26
  • Karma: +0/-0
    • View Profile
    • Awards
Re: !balance cmd
« Reply #3 on: September 22, 2012, 23:30 »
http://lagabuse.com/forum/index.php/topic,72842.msg238088.html#msg238088

use search button just like ANGeL said
you did not answer my question.
i didnt ask for PSR explanation, i know how it works.

I just dont know how !balance cmd works.

When i type !balance in chat , what does it do?  it makes team to be balanced. but how?
for example , what i think it does , it puts the player with the highest psr in one team, and then second player with highest psr in the opposite team. and so on...  But thats only what i  think , is it correct?

Offline donjacrtasamir

  • WickedSick Member
  • *
  • Posts: 1119
  • Karma: +75/-176
    • View Profile
    • Awards
Re: !balance cmd
« Reply #4 on: September 22, 2012, 23:39 »
http://lagabuse.com/forum/index.php/topic,72842.msg238088.html#msg238088

use search button just like ANGeL said
you did not answer my question.
i didnt ask for PSR explanation, i know how it works.

I just dont know how !balance cmd works.

When i type !balance in chat , what does it do?  it makes team to be balanced. but how?
for example , what i think it does , it puts the player with the highest psr in one team, and then second player with highest psr in the opposite team. and so on...  But thats only what i  think , is it correct?

yes you are right , but this is only one part of the equation. but they won't tell you how they made it...
If your frightened of dying, and your holding on. You'll see devils tearing your life away but if you've made your peace, then the devils are really angels,... Freeing you from the earth

Offline kingW3

  • Partimanijak
  • Retired Moderator
  • MonsterKill Member
  • *
  • Posts: 2773
  • Country: cs
  • Karma: +219/-196
  • Awards GFX staff member [RARE]
    • View Profile
    • Awards
Re: !balance cmd
« Reply #5 on: September 23, 2012, 00:19 »
What i think is that it makes random teams and compare what 2 ways will make it balanced something like this
As first it counts how many players are in game if there are 10 it goes like this
if
x1+x2+x3+x4+x5 >= x6+x7+x8+x9+x10
then
y = x1+x2+x3+x4+x5-x6-x7-x8-x9-x10
else
y = x6+x7+x8+x9+x10-x1-x2-x3-x4-x5
if
x1+x3+x4+x5+x6 >= x2+x7+x8+x9+x10
then
t = x1+x3+x4+x5+x6 - x2-x7-x8-x9-x10
else
t = x2+x7+x8+x9+x10 - x1+x3+x4+x5+x6
and so on
at the end
if y > t just with more variables
then
t = true(which will be x1,x3,x4,x5,x6 and other team x2,x7,x8,x9,x10
else
y = true(which will be x1,x2,x3,x4,x5 and other team x6,x7,x8,x9,x10)
Still this seems kinda complex though(i mean too much useless code)
And the closest result to 0 or 0(which would mean if it's 1800 - 1795 would be 5 and 1800-1800 would be 0 and is the best solution).Anyway i kinda doubt it's that the upper solution seems more reasonable

Offline donjacrtasamir

  • WickedSick Member
  • *
  • Posts: 1119
  • Karma: +75/-176
    • View Profile
    • Awards
Re: !balance cmd
« Reply #6 on: September 23, 2012, 00:28 »
What i think is that it makes random teams and compare what 2 ways will make it balanced something like this
As first it counts how many players are in game if there are 10 it goes like this
if
x1+x2+x3+x4+x5 >= x6+x7+x8+x9+x10
then
y = x1+x2+x3+x4+x5-x6-x7-x8-x9-x10
else
y = x6+x7+x8+x9+x10-x1-x2-x3-x4-x5
if
x1+x3+x4+x5+x6 >= x2+x7+x8+x9+x10
then
t = x1+x3+x4+x5+x6 - x2-x7-x8-x9-x10
else
t = x2+x7+x8+x9+x10 - x1+x3+x4+x5+x6
and so on
at the end
if y > t just with more variables
then
t = true(which will be x1,x3,x4,x5,x6 and other team x2,x7,x8,x9,x10
else
y = true(which will be x1,x2,x3,x4,x5 and other team x6,x7,x8,x9,x10)
Still this seems kinda complex though(i mean too much useless code)
And the closest result to 0 or 0(which would mean if it's 1800 - 1795 would be 5 and 1800-1800 would be 0 and is the best solution).Anyway i kinda doubt it's that the upper solution seems more reasonable

nah too much writing and too stupid. but you got a point... and still there is !lock comand
If your frightened of dying, and your holding on. You'll see devils tearing your life away but if you've made your peace, then the devils are really angels,... Freeing you from the earth

Offline End

  • Outlander
  • Honored member
  • HolyShit Member
  • *
  • Posts: 5585
  • Country: hr
  • Karma: +543/-282
  • From above
  • Awards Forum staff member [RARE]
    • View Profile
    • Awards
Re: !balance cmd
« Reply #7 on: September 23, 2012, 00:41 »
I guess only MUN knows how it works, we can try to answer based on some logic, but we can't know for sure.

Since I really doubt MUN will tell anything, it's pointless to go any forward with this topic.

F    R    O    M         A    B    O    V    E

Offline Astaroth

  • Satan Admin
  • Honored member
  • GodLike Member
  • *
  • Posts: 13282
  • Country: is
  • Karma: +926/-303
  • Blood for the Blood God!
  • Awards Forum staff member [RARE]
    • View Profile
    • Awards
Re: !balance cmd
« Reply #8 on: September 23, 2012, 15:23 »
I think it works similar as you said. Highest psr to team 1, second highest to team 2 and so on.

Nobody except ppl who access to code knows but why do you ask? I see no point...

Signature by Rocka