I need a bit of help creating a game using Python 3 coding!

I Need A Bit Of Help Creating A Game Using Python 3 Coding!

Answers

Answer 1

The pseudocode from the Coding Log is given below.

What is the pseudocode about?

# Intro

Print "Welcome to the adventure game!"

Ask for player name and store it in a variable

Print "Hello [player name], let's start the game!"

# Part 1

Print "You find yourself in a dark room with two doors. Do you go through door 1 or door 2?"

Use input() function to get player's choice and store it in a variable

Use a while loop to ensure the player's input is valid (either "1" or "2")

If player chose door 1, print "You find a treasure chest full of gold. Congratulations, you win!"

If player chose door 2, print "You fall into a pit and lose the game. Better luck next time!"

# Part 2

Print "You come across a fork in the road. Do you go left or right?"

Use input() function to get player's choice and store it in a variable

Use a while loop to ensure the player's input is valid (either "left" or "right")

If player chose left, print "You find a magical sword. You win!"

If player chose right, print "You encounter a troll and lose the game. Better luck next time!"

# Part 3

Print "You reach a river with a boat. Do you cross the river or follow the riverbank?"

Use input() function to get player's choice and store it in a variable

Use a while loop to ensure the player's input is valid (either "cross" or "follow")

If player chose cross, print "You safely cross the river and win the game! Congratulations!"

If player chose follow, print "You follow the river and eventually reach a waterfall. You lose the game. Better luck next time!"

Learn more about pseudocode on:

https://brainly.com/question/24953880

#SPJ1


Related Questions

2. On a trip from Alphaville to Betaville, you can take two main routes. Route 1, which goes through Gammatown, is 50 kilometers [km] long; however, you can only drive an average speed of 36 miles per hour [mph]. Route 2 travels along the freeway, at an average speed of 50 mph, but it is 65 km long. How long does it take to complete each route? State the time for each route in minutes [min].

Answers

Convert to SI units, calculate, convert from base SI units to the desired units. Route 1: 52 minutes, Route 2: 48 minutes.

What is SI unit?

SI unit is an international system of measurements that are used universally in technical and scientific research to avoid the confusion with the units. Having a standard unit system is important because it helps the entire world to understand the measurements in one set of unit systems. There are several SI units used in physics that are used to express the different quantities.

The quantities can be classified into two groups i.e. base units and derived units.

Learn more about SI, here:

https://brainly.com/question/12750330

#SPJ1

A Health Informatics worker would most likely work

Answers

Answer:

Health informatics careers combine concepts and practices from healthcare, computer science, and information science. Professionals in this field can work as computer systems managers, health informationists, and clinical analysts. They can also pursue careers in higher education and applied research.

Use SOLVEM steps for the following problem.



Suppose that the earth is a smooth sphere and you could wrap a 25,000 mile band snugly around it. If you lengthen the band by 6 feet, what would be the largest animal that can fit under the new band (assuming the band is equally above the earth's surface)?

a) an amoeba

b) a 3 inch diameter snake

c) a 1 foot high opossum

d) a 1.5 foot high alligator

e) a 5 foot 11 inch tall person



Note: make sure you keep your units consistent! Circumference = Pi * Diameter

5280 feet in a mile, Pi ~ 3.14159

radius = Diameter/2

Show your work!

Answers

Answer:

C = So the largest animal that can fit under the new band is a 1 foot high opossum, which is smaller than the maximum height of 12,072,001 feet + 6 inches.

Explanation:

C = Pi * D = Pi * 25,000 miles

Converting this to feet, we get:

C = Pi * 25,000 miles * 5280 feet/mile = Pi * 132,000,000 feet

Adding 6 feet to the length of the band gives us:

C' = C + 6 feet = Pi * 132,000,000 feet + 6 feet

The new circumference is still the same distance from the center of the Earth as the original circumference, so we can use the formula for the circumference of a circle to find the radius of the circle that the band now forms:

C' = Pi * 2 * r

Solving for r, we get:

r = C' / (2 * Pi) = (Pi * 132,000,000 feet + 6 feet) / (2 * Pi)

Simplifying this expression, we get:

r = 66,000,003 feet / 2 = 33,000,001.5 feet

Now we can find the largest animal that can fit under the band by finding the maximum height of an animal that can fit under a circle with this radius.

Maximum height = r - radius = 33,000,001.5 feet - 20,928,000 feet = 12,072,001.5 feet

Converting this to feet and inches, we get:

Maximum height = 12,072,001.5 feet = 12,072,001 feet + 0.5 feet

= 12,072,001 feet + 6 inches

Answer:

c) a 1 foot high opossum

Explanation:

SOLVEM Steps:

S = State the problem

O = Organize the information

L = Label the variables

V = Verify the problem

E = Establish a strategy

M = Manipulate the variables

S: Suppose that the earth is a smooth sphere and you could wrap a 25,000 mile band snugly around it. If you lengthen the band by 6 feet, what would be the largest animal that can fit under the new band (assuming the band is equally above the earth's surface)?

O:

Original circumference = 25,000 miles

Additional length = 6 feet

L:

Let's label the radius of the earth as r, and the height of the animal as h.

V:

The problem seems to be well-formed and makes sense.

E:

We can use the original circumference of the earth to find its radius, and then calculate the new circumference by adding the extra 6 feet to the length of the band. Then we can solve for the maximum height of the animal that can fit under the new band.

M:

Convert the original circumference to feet:

C = 25,000 * 5280 feet/mile = 132,000,000 feet

Calculate the original radius of the earth:

C = 2πr

r = C / (2π) = 132,000,000 / (2 * 3.14159) = 21,008470.23 feet

Calculate the new circumference:

C_new = C + 6 feet = 132,000,006 feet

Calculate the new diameter and radius:

d_new = C_new / π = 42,016,942.38 feet

r_new = d_new / 2 = 21,008,471.19 feet

Calculate the maximum height of the animal:

h = r_new - r = 21,008,471.19 - 21,008470.23 feet=0.96 feet

If answer is 0.96 feet, the largest animal that can fit under the new band (assuming the band is equally above the earth's surface) would be a 1 foot high opossum (option c).

A spring balances pulls on a 0.5m bar with 10 N

Answers

The tension in the rope and the spring balance reading are the same. 5N of tension is present on both sides. As a result, the spring balance reads 5N.

What does the term "spring balance" mean?

A simple and affordable way to determine mass is by using spring balances. The mass is suspended from the end of a spring, and the spring's deflection as a result of the mass's downward gravitational pull is measured in relation to a scale.

What applications does a spring balance have?

A spring balance calculates an object's weight by comparing the force of gravity to the force of an extended spring. The scale can be used to calculate weight and mass by recalibrating it. Some spring balances have gramme or kilogram marks and are used to determine an object's mass.

To know more about spring balance visit:-

https://brainly.com/question/13257367

#SPJ1

Other Questions
Many stimuli are processed by our sensory receptors and our brains, but if they are not the focus of our selective attention, they never enter our conscious awareness. Which of these is a result when that happens? a.inability to remember a stimulus b.habituation c.all of these are correct d.different reports of what happened from witnesses of the same event how to connect two monitors to a laptop with a docking station What defines a mechanical soft diet? River erosion gizmo answer key Alan is concerned that his 3rd main point does not have as many sources as his other two main points. How can he usehis speech outline to check the distribution of support across his main points?O He can look for quotation marks in his outline.He can see and count the number of sources he has put into each of his main points to see if they are equal.He can count the number of sources in his bibliography.He can glance at the length of each main point to ensure that they have the same amount of information andsubpoints. ssume the weight of a randomly chosen american passenger car is a uniformly distributed random variable ranging from 1,749 pounds to 4,039 pounds. (a) what is the mean weight of a randomly chosen vehicle? Do you feel that Daniel Shays was justified in his call to stop the courts and free those in debt to the government? Why? How do you think that Shays' Rebellion encouraged the idea of a new government in America? which factor may lead to the development of hepatic encephalopathy in a patient with cirrhosis how does bottigheimer say that the cinderella tale experienced a ""devolutionary sequence"" in getting to the disney portrayal of the character? what happened to her? where can i watch the girl who believes in miracles Essay about Running out of time `hey need help plsWrite sentences including the following terms:1. mitochondria - respiration - organelle.2. heterotrophic cells - respiration - energy - autotrophic cells.3. chloroplast - organelle - photosynthesis.4. autotrophic cells - oxygen - photosynthesis - sugar. What is a measurable part of a line? How do "The Champagne Fairs" address the issue of globalization?Write a Constructive Response using a claim; three pieces of evidence and a concluding sentence. Remember to explain each piece of evidence (2-3 sentences) and cite it (page number). Your concluding sentence is a restated claim. Please help!! Dont understand this Two angles of a quadrilateral measure 120 and 10. The other two angles are in a ratio of 5:18. What are the measures of those two angles? imagine a line segment ts of length 10000000 and point g moving from t=10000000 toward s=0 Where do you stand on the 8 values test? ________ involves paying attention to the speaker completely, concentrating on the verbal message, observing for nonverbal cues, and offering a response.A. Probing QuestionB. Protected Health InformationC. PrejudiceD. Passive Listening The nurse would expect to assess which symptoms in a patient complaining of migraine headaches? Select all the apply.a. throbbingb. photophobiac. recurrent