Computers and Technology, 17.03.2021 23:40 caldonjoshhsms2061
Now, it’s time for you to begin coding your text-based adventure game!
Starting at the top, convert each line of your pseudocode from your Coding Log into a line of Python code.
Make sure to use the correct syntax and indentation. If you decide to challenge yourself and use functions, be sure to include the correct function calls.
Your code should include at least two loops—one while loop and one for loop.
Run and test your code in parts as you go. Follow the iterative process of coding and revising. It may be helpful to apply this process to each part of your game (Intro, Part 1, Part 2, and Part 3).
Make the following improvements to your game:
If the user types in a slightly different word than you expect, you don’t want your game to crash! Use lists to gain a better understanding of the input that users give. Refer back to Unit 1 for more information on lists. Here is an example:
if choice in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]
Your list won’t work if the user capitalizes any letter because the Interpreter won’t recognize a match between the same lowercase and uppercase letter. To convert the user input to all lowercase, use the lower function:
if choice. lower() in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]
Go through and make sure all of your inputs are converted to lowercase.
Share the link to your Python code with your teacher in REPL. it by clicking on the share button and copying the link. Also, submit your pseudocode.
Answers: 3
Computers and Technology, 22.06.2019 00:30
Jenny wants to look at row 345 and compare it to row 17. what can she do if she wanted to easily adjust to see both at once?
Answers: 3
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
Computers and Technology, 24.06.2019 04:30
What is the process in which the software development team compiles information to determine the final product
Answers: 1
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
Now, it’s time for you to begin coding your text-based adventure game!
Starting at the top, convert...
Mathematics, 13.09.2020 03:01
English, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Biology, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Health, 13.09.2020 03:01
Social Studies, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Geography, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01
Mathematics, 13.09.2020 03:01