Sillysoft
Steam users, please help Greenlight Lux Delux!
Sillysoft Forums
Forums Of Universal Domination 
Games
About - FAQ
Download - Buy
Lux Delux
Maps - Rankings
Download - Buy
Castle Vox
Maps - Rankings
Download - Buy
Forums
Join the Forums
Log in - Memberlist
  RSS feeds  
Art - Wiki
News - Search
Running the numbers

 
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House
View previous topic :: View next topic  
Author Message
varoadstter
Lux Newbie


Joined: 23 Jan 2008
Posts: 67
Location: Raleigh, NC

PostPosted: Mon Jan 28, 2008 9:40 pm    Post subject: Running the numbers Reply with quote

I suppose this already exists somewhere out there but I am working on a bot and have built a simulator class which allows me to run attacks with various numbers of starting and defending armies. Here's what I get when I run the numbers:

Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1500 armies each attack

Monte Carlo attack simulations
Started at: Mon Jan 28 21:30:06 EST 2008
Ended at: Mon Jan 28 21:30:36 EST 2008
Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 15000000 armies
Attack was successful 0% of the time
Attack failed 100% of the time
Average attacker losses: 999
Average defender losses: 1171
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1250 armies each attack

Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 12500000 armies
Attack was successful 8% of the time
Attack failed 92% of the time
Average attacker losses: 997
Average defender losses: 1168
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1200 armies each attack

Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 12000000 armies
Attack was successful 30% of the time
Attack failed 70% of the time
Average attacker losses: 989
Average defender losses: 1159
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1150 armies each attack

Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 11500000 armies
Attack was successful 63% of the time
Attack failed 37% of the time
Average attacker losses: 969
Average defender losses: 1136
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1100 armies each attack

Monte Carlo attack simulations
Started at: Mon Jan 28 21:36:06 EST 2008
Ended at: Mon Jan 28 21:36:34 EST 2008
Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 11000000 armies
Attack was successful 88% of the time
Attack failed 12% of the time
Average attacker losses: 935
Average defender losses: 1097
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1050 armies each attack

Monte Carlo attack simulations
Started at: Mon Jan 28 21:37:31 EST 2008
Ended at: Mon Jan 28 21:37:59 EST 2008
Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 10500000 armies
Attack was successful 98% of the time
Attack failed 2% of the time
Average attacker losses: 895
Average defender losses: 1049
----------------------------------------------


Code:
Attacker fixed at 1000 armies each attack
Defender fixed at 1000 armies each attack

Monte Carlo attack simulations
Started at: Mon Jan 28 21:38:55 EST 2008
Ended at: Mon Jan 28 21:39:22 EST 2008
Ran 10000 simulations
Attacker used a total of 10000000 armies
Defender used a total of 10000000 armies
Attack was successful 99% of the time
Attack failed 1% of the time
Average attacker losses: 852
Average defender losses: 999
----------------------------------------------
Back to top
View user's profile Send private message View varoadstter's ranking
guest
Lux Newbie


Joined: 17 Dec 2004
Posts: 189
Location: Southern NH

PostPosted: Mon Jan 28, 2008 11:31 pm    Post subject: Reply with quote

Attack failed 100% of the time

This seems fishy to me. No matter how bad the odds are they aren't zero like this makes it appear. Sure you wouldn't make an attack against a force 1.5 times larger but it should succeed occasionally. Especially since the later tests show the tipping point is around 1000 vs 1175.
Back to top
View user's profile Send private message AIM Address View guest's ranking
varoadstter
Lux Newbie


Joined: 23 Jan 2008
Posts: 67
Location: Raleigh, NC

PostPosted: Tue Jan 29, 2008 12:13 am    Post subject: Reply with quote

guest wrote:
Attack failed 100% of the time

This seems fishy to me. No matter how bad the odds are they aren't zero like this makes it appear. Sure you wouldn't make an attack against a force 1.5 times larger but it should succeed occasionally. Especially since the later tests show the tipping point is around 1000 vs 1175.


It may have succeeded somewhat less than 1% of the time. My output is rounding off to the nearest %. I picked a relatively large number of starting armies to alleviate some of the problems with using too small a sample size. If I had used 100 attackers, then even more of the attacks may have failed percentagewise.


Last edited by varoadstter on Tue Jan 29, 2008 12:15 am; edited 1 time in total
Back to top
View user's profile Send private message View varoadstter's ranking
3DA
Lux Moderator
Lux Moderator


Joined: 08 Sep 2007
Posts: 1937
Location: Big Chicago

PostPosted: Tue Jan 29, 2008 11:05 am    Post subject: Reply with quote

Fascinating. Hey, Varo - remember we were having that discussion about marathons, and how there are strategies to avoid them? These numbers illustrate one of them. There is a point, when the army counts get high enough, that the attacker has a significant advantage. This is the key to ending/winning marathons.

I'd be interested to see the numbers on successful attacks if you took a zero off each starting # of armies: start with 100 for the attacker and 150 for the defender and see what happens. My bet is that the success-failure tipping point moves significantly in favor of the defender.
Back to top
View user's profile Send private message Visit poster's website View 3DA's ranking
varoadstter
Lux Newbie


Joined: 23 Jan 2008
Posts: 67
Location: Raleigh, NC

PostPosted: Tue Jan 29, 2008 1:21 pm    Post subject: Reply with quote

3DA wrote:
Fascinating. Hey, Varo - remember we were having that discussion about marathons, and how there are strategies to avoid them? These numbers illustrate one of them. There is a point, when the army counts get high enough, that the attacker has a significant advantage. This is the key to ending/winning marathons.

I'd be interested to see the numbers on successful attacks if you took a zero off each starting # of armies: start with 100 for the attacker and 150 for the defender and see what happens. My bet is that the success-failure tipping point moves significantly in favor of the defender.


I'll run it when I get home this evening unless someone else has it handy and can post it (using their own dice simulations).
Back to top
View user's profile Send private message View varoadstter's ranking
Display posts from previous:   
Post new topic   Reply to topic    Sillysoft Games Forum Index -> Robot House All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum

Meowzers Action Cats is our newest feline fun mobile game. Romp with cute cats on your phone and tablet.

Castle Vox is a simultaneous-turns team strategy boardgame. Diplomacy meets Axis & Allies game.

Lux Delux is an advanced Risk world domination game with over 800 maps, hard AI, and online multi-player.

American History Lux takes you through the wars of USA history. — Ancient Empires Lux spans Babylon to the Roman Empire.

Lux Touch, Lux USA and Lux DLX let you conquer the world on your iPhone, iPod, and iPad.

Sillysoft makes games for Mac OS X, Windows XP/Vista/7 and Linux. Also mobile games for iPhones, iPads, and iPod Touch.

Macintosh users may be interested to see our favorite Mac OS X games. For the full Sillysoft empire check out the sitemap.

Because taking over the world is fun.
                                 - Lux