Rolling with Virtual Dice
So tonight I started working on my little project from last night. I decided to add a few more features. You can setup the modifier to add, subtract, multiply or divide the sum of the dice. Also, you can set it up to drop a few of the best and/or worst rolls.
Behind the sceens, I seperated the business logic of the dice into its own class. The user interface interacts with the class in a nice and friendly manner. I think I might start working on a test harness with NUnit. I need to start immersing myself into test-driven development. Of course, I’ll be going at it backwards.
Possible development from here …
I could set up a small utility to parse the expression. That way I could serialize the parameters as just a simple string in the registry. Rite now I save each parameter as individual keys. I can’t see too much benefit in doing so other then to say that I did it.
There is one big thing that is on my mind. That is to setup multiple sets of dice to roll at once. Something like a 20 sided die and two 8 sided dice at once (1d20 + 2d8).
I am also thinking about saving particular sets to load up on the fly later on and give each one a name. Something like “Create Character Attributes” with a roll of 3d6.
I am a little interested in statistics. I don’t know where to begin though. Something like, “average rolls will fall within 9 and 12″. I’ll just keep dreaming with that one.
Tags: Dice, Die, Game, RPG, Gaming, DM, D&D, AD&D, TSR, Role Playing, Games, Dungeon Master, Utilities, Software, C#, Best, Worst, Virtual, Roll, Rolling, Ideas, TDD, Test Driven Development, Test-Driven, Test Driven, Test-Driven Development
