Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

just problem 6 Peoblem 6 (4 points). You might have heard of Dungeons & Dragons, a pen-and-paper roleplaylng game where the player creates their own

just problem 6 image text in transcribed
Peoblem 6 (4 points). You might have heard of Dungeons \& Dragons, a pen-and-paper roleplaylng game where the player creates their own fantasy character and then plays this character in a series of adventures. There are different types of characters to choose from, but they must satisfy certain requirements. Algmment places the character's ethles and morals along two axes: lawtul-neutral-chaotic, and good-neutral-evil, Here is a selection of allgnments of the characters: - Paladin: lawtul-good - Antipabalina chaotic-evil - Monk any combination with lawful - Rogue: any combination that's not lawful - Druid, must not be lawful-good or chaotic-good - Fighter anything goes Ask the user for their preferred position on these two axes, and print on the screen possible characters for the user. The list should not contain any duplicates. If the user enters a choice that does not exist, tell them so and assume neut ral insteed. Here is an example of user choices and the resulting allignmentl Choose one froa lawful-neutral-chaotic: chaotic Choose one froe good-neutrat-evilt good You are chaotic-good. You can bet - rogue - fighter Mint. Before you start coding, take a plece of peper and think of how you would structure the proeram: - how many cholce points will the user have? - will some choices depend exclusively on others? - how would you nest then then? Drawing the flow of options and posslbliltes down can also help! Empty markdown cell, double-cllck or press enter to edit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions