Conquer Club

Dice Roll Simulator

Talk about all things related to Conquer Club

Moderator: Community Team

Forum rules
Please read the community guidelines before posting.

Dice Roll Simulator

Postby WidowMakers on Fri Dec 08, 2006 12:38 pm

I was playing a game yesterday and was wondering how many armies it would take to get a specific territory. I did not want to just try and fail. I needed to see what the chances were I would win. I looked on google for a program that would simulate d6 dice rolls (3 attacker against 2 defender) until one of them loses. I could not find any. So, I made one.

The link below is an excel file at allows you to simulate attacking and defending with any number of armies. I uses a few macros. Not overly complex. Just thought I would share this with anyone who wanted it. Feel free to give input on possible improvements to it.

http://jmhooton.iweb.bsu.edu/joel/diceroller.xls
Major WidowMakers
 
Posts: 2774
Joined: Mon Nov 20, 2006 9:25 am
Location: Detroit, MI

Postby tals on Fri Dec 08, 2006 1:46 pm

I use excel 2003 - when I run it I get undefined variable ?name appearing in all the spots. Any thoughts?

Otherwise - nice idea!
Sergeant tals
 
Posts: 359
Joined: Tue Sep 12, 2006 12:46 pm
Location: UK

Postby WidowMakers on Fri Dec 08, 2006 9:06 pm

I just downloaded the 2003 trial. You need to install the analysis toolpack in the Tools> Add-ins section. That enables some of the functions that I used. Let me know if this works. Also I noticed that Microsoft had an update for excel 2003 related to the randbetween function i used.

http://www.microsoft.com/downloads/deta ... laylang=en

Excel 2003 Update: KB834691

Let me know if that works
Major WidowMakers
 
Posts: 2774
Joined: Mon Nov 20, 2006 9:25 am
Location: Detroit, MI

i have problems

Postby cricket on Fri Dec 08, 2006 9:10 pm

i have excel 2000. dont know if that works. i opened the thing and when i set the number of armies and pressed roll dice, i got #NAME in all the cells.

Any ideas why?
I am cricket, the cricket playing cricketer. The Master Blaster is the best in the world.

Highest Score - 1888
Highest Place - 292
Current Rank - Lieutenant
Current Score - 1630
User avatar
Sergeant 1st Class cricket
 
Posts: 230
Joined: Tue Oct 10, 2006 5:31 pm

Postby qeee1 on Fri Dec 08, 2006 9:15 pm

This : http://bartell.org/cgi-bin/risk.cgi provides a similar function.
Frigidus wrote:but now that it's become relatively popular it's suffered the usual downturn in coolness.
User avatar
Colonel qeee1
 
Posts: 2904
Joined: Sun Feb 05, 2006 12:43 pm
Location: Ireland

Postby Evil Semp on Fri Dec 08, 2006 9:23 pm

Where do you get your dice rolls from? Wouldn't you have to get them from the same place CC does to get accurate results?
User avatar
Sergeant 1st Class Evil Semp
Multi Hunter
Multi Hunter
 
Posts: 8447
Joined: Sun Jul 02, 2006 8:50 pm

Postby WidowMakers on Fri Dec 08, 2006 9:33 pm

1 (Error) If it does not work you need to make sure the Analysis Toolpack is installed. Under Tools>Add-ins.

2 (Random #'s) I just used the randbetween function in Excel. I don't know how to get the rand info from the site that CC uses.

3 (Why) Again I was bored and had an hour to kill. I just wanted to see if I could make it. If anyone wants it then here you go.
Major WidowMakers
 
Posts: 2774
Joined: Mon Nov 20, 2006 9:25 am
Location: Detroit, MI

Postby Evil Semp on Fri Dec 08, 2006 9:34 pm

The reason I asked is it seems that the defensive dice at times are real strong.
User avatar
Sergeant 1st Class Evil Semp
Multi Hunter
Multi Hunter
 
Posts: 8447
Joined: Sun Jul 02, 2006 8:50 pm

Postby JTKALLTHEWAY on Mon Dec 11, 2006 7:38 am

wow, you guys are nerds, lol
Lieutenant JTKALLTHEWAY
 
Posts: 20
Joined: Fri Nov 24, 2006 9:58 pm
Location: San Antonio, TX

Postby Nikolai on Mon Dec 11, 2006 9:09 am

It's not supposed to tell you whether you'll win or lose - it just tells you what the odds are. And it can, and probably will, be wrong a fair amount of the time - odds, after all, deal with chance.
Sergeant 1st Class Nikolai
 
Posts: 423
Joined: Wed Jun 28, 2006 9:11 pm

Dice Simulator using Random.org data

Postby WidowMakers on Mon Dec 11, 2006 9:36 pm

I added the Random.org data to the excel program. The file takes requests data from random.org for 3 attacking dice and 2 defending. Then it determines the number of dice each player can roll. It the sorts tem highest to lowest and determines the winner.

There are two versions because excel apparently changed the way they sort data between the two versions.

Excel 2000
http://jmhooton.iweb.bsu.edu/joel/dicer ... 202000.xls
Excel 2003
http://jmhooton.iweb.bsu.edu/joel/dicer ... 202003.xls

Make sure your Tool>Add-Ons>Analysis Pack is checked on
Major WidowMakers
 
Posts: 2774
Joined: Mon Nov 20, 2006 9:25 am
Location: Detroit, MI


Return to Conquer Club Discussion

Who is online

Users browsing this forum: No registered users