Use tables and formulas also from workshop file to complete


Use tables and formulas also from workshop file to complete assignment. Design and Implement a character generator for Dungeons and Dragons. It is to have the following specifications:

• The program should ask for a Level.

• The program should offer a selection of Races, to choose from and accept a choice o Races should be read in from a file (races.chr) and stored in a linked list.

• The program should offer a selection of Classes to choose from and accept a choice.

o The Classes should be read in from a file (classes.chr) and stored in a linked list.

o New Classes should be able to be added by adding the information to the file only.

o Every Class should have an attribute that is considered Primary

• The program should then offer a variety of methods of generating the attributes

o The attributes should be: Str, Dex, Con, Int, Wis, and Cha

o The program should offer a selection of methods of generation such as:

? Entering the attributes directly

? Roll 4d6 and discard the lowest value.

? Roll 4d6 and discard the lowest value and if the attribute is 16 or higher, add the value of an additional 1d6.

? Roll Method IX:

• Each class should weight each attribute from most to least important. In Method IX, the most important attribute rolls 9d6 and keeps the highest

3. The second most important rolls 8d6, keeping the highest 3. This follows in this pattern of 7d6, then 6d6, then 5d6 and finally 4d6 for the least important.

• This information is part of the Class information and is used to generate the attributes in the Character structure.

• ie: A Fighter would probably rate Str highest, then Con and so on until you get to Chr at the lowest. This would result in something like: Str: 9 Dex: 6 Con: 8 Int: 7 Wis: 5 Chr: 4

• Meaning 9d6 is rolled for Str, 6d6 is rolled for Dex, etc.

• Every attribute is the sum of the highest 3 dice regardless of the number of dice rolled.

• Each attribute confers a bonus or penalty. Through the Workshops you should have deduced that the pattern for the bonuses follows the formula y = (x/2)-5.

• Once the attributes have been rolled, calculate the hitpoints for the character. This should be the total value of 1 hitdice rolled and combined with the Con bonus (either positive or negative) for each level. Your program should ensure that the minimum value for every level is 1 (You cannot have 0 or a negative number for any individual level) as if the Con bonus is negative you could end up with a negative result. hitdice is determined by Class.

• Present the values generated as one set and either allow the user to accept or discard (and regenerate) the attributes. The program should remember the values entered for Level and Class/Profession

• Attack Bonus is something determined by the following: o Melee Weapons: Proficiency_Bonus + Str_Bonus o Missile Weapons: Proficiency_Bonus + Dex_Bonus o Spells: Proficiency_Bonus + Primary_Attribute_Bonus o Spell Strength = 8 + Proficiency_Bonus + Primary_Attribute_Bonus

• Ask for and accept a character name

• Calculate Save Bonuses (Workshop 4)

• Display all the information neatly. The character name and level, all attributes and bonuses, hit-points, base attack bonus, combat and damage bonus and all selected skills (with number of skill points).

• Offer the option of saving the character to a file (and actually save it if requested) before making a new character or quitting. Bonus XP (note: NOT marks): 1)

Add point buy for stats! (may require some Google time).

NOTE: The Workshops have been working up to this point to provide you with a base program of your own work that should give you the best possible opportunity for completing this assignment. You should look to how these Workshops have developed your work for a guide on how to structure your final assessment.

Marking Guide: Design /5 Program meets requirements as stated /5 Appropriate use of functions and abstraction /5 Correct use of data structures (structs, linked lists, etc) /5 Code is written legibly (formatting, comments, etc) /3 Program compiles and runs correctly /5 Output is neat and formatted /2 Total: /30

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Use tables and formulas also from workshop file to complete
Reference No:- TGS01245484

Expected delivery within 24 Hours