Create a Character

I wanted to be able to create characters using various Dungeons and Dragons rule sets. Each rule set will be used as development requirements, some of rules are subject to my interpretation of them. I'm going to start with Holmes.

Dungeons & Dragons - Basic Set #2001 publication 1977

Eric Holmes

CREATING CHARACTERS

pg. 5

There are six basic abilities for each character: strength, intelligence, wisdom, constitution, dexterity and charisma. Each player starts with a character by rolling three 6-sided dice for each characteristic.

Psuedocode

The program will mimic the roll of three 6-sided dice, and total them for each ability as they appear in order: strength, intelligence, wisdom, constitution, dexterity, and charisma. Each result should be displayed to the user, along with its accumulative total.

  1. Add an event listener to a button to trigger the roll of the dice.
  2. Generate a random number from 1-6 three times.
  3. Display each result next to each ability.
  4. Sum the numbers and display the Total for each ability.

STRENGTH

INTELLIGENCE

WISDOM

CONSTITUTION

DEXTERITY

CHARISMA