It is currently Fri Nov 15, 2024 8:35 pm

All times are UTC - 5 hours





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 5:05 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
The score is computed based on the difference of the cost of units in both armies which survived the battle. So when you reduce the total cost of one army, then even if it performs better, the score will be lower... So i guess i have to change the scoring system based on the damages done...

EDIT: Okey, this should work (pseudo):
Code:
if a wins:
   a_cost / a_orig_cost
else:
   - b_cost / b_orig_cost

where cost is the value of the army after the battle and orig_cost the value before the battle...

Good point on that... So, the [22, 4.4] does not seem to catch [20, 10] even at 500%, although the difference is minimal... Guess i should try every build with the same cost instead... Anyways, here is the code: http://pastebin.com/LutgLRLH

The score is now in range of -1 to 1, where -1 is loss without dealing a single point of damage, 0 is a tie and 1 is flawless victory.


Last edited by Dolkar on Sun Oct 30, 2011 6:03 am, edited 1 time in total.

Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 5:53 am 
Second Lieutenant
Second Lieutenant
User avatar
 Profile

Joined: Thu Oct 13, 2011 1:58 am
Posts: 309
Location: Mmhm...
Wait what? I don't see a problem. Score is calced using survivors of the battle...don't see how initial army affects that.

_________________
Image

Liam wrote:
Rise my minions, VOTE FERR3T #1 FOR HEAD MOD!!

Simmen wrote:
How are you not a admin Hal?..


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 6:14 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
Take a look at these two battles:
30A vs 5A with score of 28.75
100A vs 5A with score of 98.75

Do you see the problem? the 100 man army does not perform THAT much better than a 30 man army. Both lose 10 points of hp... So with the new scoring system (i updated the last post), the scores would be:

30A vs 5A with score of 0.958333333333
100A vs 5A with score of 0.9875

EDIT: By the way, if you take the damage build with cost of 45 and balance it the same way to 60, you will get 13A;27D;0R, which wins against the pro build with score of 0.5131396957123099 (i like precision :))


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 8:04 am 
Second Lieutenant
Second Lieutenant
User avatar
 Profile

Joined: Thu Oct 13, 2011 1:58 am
Posts: 309
Location: Mmhm...
this is beautiful.

Dolkar wrote:
So, the [22, 4.4] does not seem to catch [20, 10] even at 500%,


:S

ugh python looks so simple. :) Nicely done Dolkar, so I think the conclusion is probuild is the best? I think it would be fun to render a graph putting outnumber v score for the top few builds...but oh well. Thanks again. :)

_________________
Image

Liam wrote:
Rise my minions, VOTE FERR3T #1 FOR HEAD MOD!!

Simmen wrote:
How are you not a admin Hal?..


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 8:28 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
Good idea.. I'll take a look at it later... You gave me reason to finally learn matplotlib.. another awesome python feature.


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Sun Oct 30, 2011 11:45 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
Did you mean something like... this?
Image


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Mon Oct 31, 2011 3:40 am 
Second Lieutenant
Second Lieutenant
User avatar
 Profile

Joined: Thu Oct 13, 2011 1:58 am
Posts: 309
Location: Mmhm...
noooooo i can't see anything lol. meh. screw china...i'll take a look when i can.

_________________
Image

Liam wrote:
Rise my minions, VOTE FERR3T #1 FOR HEAD MOD!!

Simmen wrote:
How are you not a admin Hal?..


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Mon Oct 31, 2011 8:55 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
Should i upload it somewhere else?


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Mon Oct 31, 2011 8:56 am 
Lieutenant Major
Lieutenant Major
User avatar
 Profile

Joined: Thu Nov 19, 2009 9:22 pm
Posts: 2288
Location: Stalker!
Tinypic and photoshack(is that the right one lol?) usually work

_________________
你是千堆雪 我是长街
怕日出一到 彼此瓦解

Image


Top
 

 Post subject: Re: The Big Unit Build Comparison
PostPosted: Mon Oct 31, 2011 9:44 am 
Sergeant
Sergeant
User avatar
 Profile

Joined: Mon Nov 22, 2010 2:18 pm
Posts: 80
1783298 wrote:
Tinypic and photoshack(is that the right one lol?) usually work

You mean imageshack? That's where I uploaded it... Tinypic does not allow thumbnails - the image is pretty big. But I have no problems viewing it there...


Top
 

Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Copyright Tacticsoft Ltd. 2008   
Updated By phpBBservice.nl