Dice rolling program

By AgentJ, in Descent: Journeys in the Dark

I was wondering if anyone wrote a program that could roll the dice this game uses.

I was also wondering if someone that knows programming could point me in the right direction so I could write a dice rolling program. I figure the best way to learn to program is to have a goal in mind.

I have always wanted to learn to program but never knew where to start. I think a dice rolling would be a great place to start. Of course I would make the roller free and available to everyone when it is finished.

Thanks,

J

BGG thread on this topic. I think it's more fun to just roll the dice, but to each his own.

Edited by Zaltyre

I did this for work on a personal board game I'm designing.

You're best option would be Python or similar language. Python is very high level and my dice simulator (for personal specific use) is only about 20-30 lines long.

Full disclosure: I'm a Compsci major and Software Engineer by trade:) But Python is a very very good language if you just want to stay at a high level, but still want to do a bit of programming.

Heres 2 lines that will roll a die for you (a D5 in this case)

die = [ 'a' , 'b' , 'c' , 'd' , 'e' ]
print ( random . choice (die ))

Just make abcde whatever you intend your rolls to be. If its Descent you could do somethign like 3h1s (3 hearts 1 surge) or whatever you feel is appropriate.

Good luck!

Edit: "High level" in this case means simpler and more broad, opposed to something like low level C++ or lower assembly which gives very high control but is extremely complicated. High level is where you want to start if learning to program solo, and Python is a great choice.

Edited by Carbini

I wrote a matlab script that calculates probabilities for given dice rolls- but that's not a simulator, just a statistical analysis. A simpler thing would be to have images of each of the faces of each die involved, and select a random face image to display for each die..

There is "Descent Dice" in the Googleplay store, if you want an android dice roller. But I did not program it.