Can someone tell me why this keeps exiting no matter what move and how I can fix it I honestly hate this class... you guys can have 100 points

#Andrew
#IT140
#ModuleSixMilestone
rooms = {'Manor Entrance': {'South': 'Foyer'},
'Foyer': {'North': 'Manor Entrance', 'West': 'Cellar'},
'Cellar': {'East': 'Foyer'},
'Exit': {'Exit': 'Exit'}} # The dictionary links a room to other rooms.

currentRoom = 'Manor Entrance' # Start the player in the Manor Entrance.


print('Move commands: North, South, East, West, Exit.')
print(' ------------------- ')
print('You are in the Manor Entrance.')
print('Enter your move or exit the game. -> ')
# User input a command to either move to another room or exit the game.
# If the player enters "exit", the game should move them to the "exit" room.
moveCommands = ['North', 'South, ''East', 'West', 'Exit']
command = input()

# Gameplay loop for moving to different rooms.

if currentRoom == rooms['Manor Entrance']:
if command == 'Exit': # If the player enters "exit", the game should move them to the "exit" room.
print('The virus will destroy the world now that you have quit.')
elif command == 'South':
print('You entered the Foyer!')
print(currentRoom[1])
elif command <= 'South':
print('Error. Try again!') # Print an error message if the player enters an invalid direction.

if currentRoom == rooms['Foyer']:
if command == 'Exit': # If the player enters "exit", the game should move them to the "exit" room.
print('The virus will destroy the world now that you have quit.')
elif command == 'West':
print('You entered the Cellar!')
print(currentRoom[2])
elif command <= 'West':
print('Error. Try again!') # Print an error message if the player enters an invalid direction.

if currentRoom == rooms['Cellar']:
print('You win! You have made it to the Cellar and destroyed the Nemesis!')
if command == 'Exit': # If the player enters "exit", the game should move them to the "exit" room.
print('You have eradicated the Virus.')

Answers

Answer 1

Answer:

Something like this?

The only requirement this doesn't exactly hit is moving the user to the "exit" room. It doesn't make use of that entry in the dictionary. However, this is the best way of doing it to avoid multiple "if" statements.

Can Someone Tell Me Why This Keeps Exiting No Matter What Move And How I Can Fix It I Honestly Hate This

Related Questions

Can someone give me their opinion on this discussion? Post your discussion please.

Answers

Hi!

I have chosen Scenarios A, B and C.

For Scenario A, it DOES make sense to use a template. This is because you will be mass sending thank you letters to your purchasers.

For Scenario B, it DOESN’T make sense to use a template. This is because the letter you are writing will probably just be a one-off letter, and you won’t need to write another one.

For Scenario C, it DOESN’T make sense to use a template. As mentioned above, the report will probably just be a one-off report, so it doesn’t make sense to use a template.

I hope that this helps you out!

The creation of the Internet and smartphones and the rise of e-mail and text messaging have led to ________ in the quantity of letters and other first-class mail since 2000.

Answers

Hello!

The answer would be: a decrease.

I hope that this helps you!

The creation of the Internet and smartphones and the rise of e-mail and text messaging have led to decreasing in the number of letters and other first-class mail since 2000.

What is an Email?

"Email is the type of communication that has to replace any other communication as electronic mail helps us to send photos and even videos to someone in a span of some seconds also we can do it from any place and from any devices that we have at the moment."

Since 2000, there has been a decline in the use of first-class mail due to the creation of Technology, phones, and the growth of e-mail, especially text messaging. This has helped the people to transverse with each other and this was a beneficial task that was to be taken advantage of in relation to speed and efficiency.

Learn more about Email, here:

https://brainly.com/question/15072408

#SPJ2

Write a code snippet Now write your own code snippet that asks the user to enter two numbers of integer type (one at a time) and prints their sum. >>>your code starts here HTML Editor B

Answers

Explanation:

num1= print("Enter a number :")

num2 = print("Enter a number :")

sum = num1 + num2

print(sum)

Match the tools and equipment with their uses

Answers

Answer:

roller- machine that stirs

Explanation:

and tills soil

You want to allow users inside your organization to share your dashboard, and to edit your dashboard by adding tiles. How will you do this

Answers

To share your dashboard, one can click on Share your dashboard with internal users.

How do I share a dashboard with another user?

One can be able to share Dashboard data to people who are not able to access your Analytics account by clicking on the Share > Email option and then one can share it.

Conclusively, Note that one can still send the other teammate a customized email with an attached PDF file that depicts your Dashboard to them.

See options below

Select an answer:

Share your dashboard with internal users.

Publish the dashboard as a contact pack.

Publish the report on the web.

By creating a dashboard in a group.

Learn more about dashboard from

https://brainly.com/question/1147194

Given int[] array, return a new int[] that contains every other element of array. for example, if array = {0, 1, 2, 3, 4, 5}, return {0, 2, 4}.

Hint: How big does the new array have to be?

Tip: Write down an example array to help find the pattern between the index from the old array and the index in the new array.

Answers

This is how you do it in python:

Code:

def everyother(array):

   return array[::2]

example_array = [0, 1, 2, 3, 4, 5]

print(everyother(example_array))

Output:

[0, 2, 4]

Explenation:

The key to this problem is "array[::2]".

Array[start : stop : step]

Writing "array[::2]" is the same as writing:

Array[0 : -1 : 2] or Begin at 0, stop at the end and take every 2:nd value

(b) Write a complete pseudocode for a program to calculate total monthly 3 points
broadband data usage. The program will stop when user enter 0.*

Answers

The pseudocode of the program is the prototype of the actual program

How to write the pseudocode?

The pseudocode of the broadband data usage program is as follows:

Set total = 0

Input data_usage

while data_usage != 0:

    total += data_usage

    Input data_usage

print total

The flow of the pseudocode

The flow of the pseudocode is as follows:

Start by setting the total data usage to 0Next, get inputs of data usage until the user enters 0Add all nonzeros inputsExit the loop, when the user enters 0Print the total data usage

Read more about pseudocode at:

https://brainly.com/question/11623795

Presentations can be saved by selecting Save from the _____ menu.


File


Window


Tools


Format


Good luck :)

Answers

Answer:

Save from the file menu.

Answer:

for tho yeah bro

Explanation:

Find the manufacturers of at least 2 different computers (PCs or Laptops) with speeds of at least 3.0

Answers

Answer:

Charles's Babbage and ladyougusta ada lovence

n algorithm is called recursive if it solves a problem by reducing the problem size while using the same input. True False

Answers

Answer:

true

Explanation:

the recursive algorithm will keep calling it own self until some condition is met, and the value for what it was looking for will be reduce after each execution.

CS Harvard free college course on YT has the great explanation on this.

How do I find enchants faster on deepwoken?

Answers

Answer:

Rogue Constructs, Primadon, Fishing

Explanation:

Multiple methods may aid you in finding enchants faster. Notable ways include farming the Rogue Construct at Minityrsa which nets solid total loot (each item is rolled individually for enchants which is why larger chests usually means more enchants and why enchants can be in groups of more than 1 in chests) and farming Primadon. Fishing has also become a prominent method of enchant farming but is less reliable than the other two stated methods if you already have a strong PVE build. Happy enchant farming.

Answer:

Duke

Explanation:

Duke loves to drop enchants!! I use him to get my enchants, primadon sometimes. Rogue construct is ehhh but it works. But go gran sudaruska! Find it at crypt of unbroken!

why are microwave antennas placed on top

Answers

Microwave transmission towers can also be placed strategically on rooftops, hills and even mountains to make them as efficient as their counterparts but not as expensive. This is why it's no wonder why more companies are now replacing their old systems with microwave antennas.

55 POINTS HElp!!! ASAP ASAP ASAP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Why do we need the Domain Name System (DNS)?


Given the domain name www.flamingflamingos.eu, what is the top level domain in this name?


How many different nameservers need to be visited in order to find the location of www.flamingflamingos.eu, including the ROOT server?


How long does this whole process take?


Once the location is acquired (IP address 88.151.243.8) what does your computer do with that information?

Answers

Answer:

|

V

Explanation:

we need the DNS so browsers can load Internet resources.

the top part is eu,so its based in europe \

4 serveers

1-2 seconds

sends message to website and waits for a response

Can someone please help me! It’s due Thursday!

Answers

Answer:

if the input is zero the out put is 1

Explanation:

because if you think about it if the input was 1 the output would be zero

Thinking about the operations in these games which gam is likely to be one of the oldest games in the world

Answers

Answer:

ill say the space race arcade game

Explanation:

why might you want to clear cookies from your computer from time to time?

Answers

Answer:

Although small, cookies do occupy space on your computer. If there are enough of them stored over a long period of time, they could slow down the speed of your computer and other devices. Flagged, suspicious cookies. If your antivirus software flags suspicious cookies, you should delete them

Ryan has inserted an image into a Word document, but the image is too large. There are sections of the image that he would like to eliminate to decrease the overall size of the image.

Answers

more Explanation                                                  

more explantion

Write a function that receives a one-dimensional array of integers and returns a Python tuple with two values - the minimum and maximum values of the input array. The content of the input array must not be changed. You may assume that the input array will contain only integers, and will have at least one element. You do not need to check for these conditions. For full credit, the function must be implemented with O(N) complexity.

Answers

The function that receives array of integers and returns  the minimum and maximum values as a tuple is as follows:

def min_max(array):

    x = min(array)

    y = max(array)

    return (x, y)

print(min_max([4, 6, 7, 8, 1, 8, 14]))

Code explanation

The code is written in python.

We defined a function named "min_max". The function accepts a parameter called array.The variable x is used to store the minimum value of the array.The y variable is used to store the maximum value of the array.Then, we return the minimum and maximum values as a tuple.Finally, we call the function with the required parameter.

learn more on python here: https://brainly.com/question/13199913

aya what's the full form of JPEG ?​

Answers

Hi!jpeg stands for "Joint Photographic Experts Group."

Answer:

"Joint Photographic Experts Group",

Explanation:

JPG is a digital image format which contains compressed image data. With a 10:1 compression ratio JPG images are very compact. JPG format contains important image details. This format is the most popular image format for sharing photos and other images on the internet and between Mobile and PC users.

Question 19 of 2
Which of the following reasons for writing a formal business document would
lead you to write a proposal?
O A. To summarize what happened during a meeting
B. To tell your manager a project is on budget and on schedule
C. To describe what tasks you completed during the week
D. To convince your manager to use a new meeting organization tool

Answers

Answer:

D. To convince your manager to use a new meeting organization tool

Explanation:

a proposal is a plan or suggestion, especially a formal or written one, put forward for consideration or discussion by others: and D. is the only answer that is asking or proposing something.

Which is the correct code to prepend an item to a list? a) ListPrepend(list, newNode) { if (list-head == null) { list-head = newNode list-tail = new Node } else { list-head-next = new Node list-head = new Node } b) ListPrepend(list, newNode) { if (list-head == null) { list-head = new Node list--tail = new Node } else { newNode--next = list--tail list--tail = newNode} c) ListPrepend(list, newNode) { if (list-head == null) { list-head = new Node list-tail = new Node } else { newNode-next = list --head list-head = new Node } d) ListPrepend(list, newNode) { if (list-head == null) { list-head = new Node list-tail = new Node } else { list-tail--next = new Node list-tail = newNode }

Answers

The correct code is ListPrepend(list, newNode) { if (list-head == null) { list-head = newNode list-tail = newNode } else { newNode--next = list-head list-head = newNode } }.

What are computer codes?

When it comes to computer programming, computer code are known to be a composition of different instructions.

It is often regarded as a system that is made up of sets of rules which are written in a specific programming language.

Note that the code above is the right code as it has the right sequence and no error.

Learn more about Codes from

https://brainly.com/question/22654163

View filters are applied in what order?​

Answers

Explanation:

in the formal order of filter .

.

.

thanks

View filters are applied to data in the order in which they were introduced by default. If a view already has filters, your new filter will be applied after them.

The project team is creating detailed documents to guide the team. What phase of the project life cycle are they in?

A. project planning

B. project initiation

C. project closure

D. project execution

Answers

Answer:

they are in project planning

List the factors that affect the CPU performance?​

Answers

Clock speed
Cache size
How many cores
Bandwidth
Heat
Bus width

This statement does not describe a guideline for effective presentation layouts.


Consistent color schemes should be used on each slide.

Font size should be as large as possible.

No more than two fonts should be used on a slide.

Font colors should blend with the background.

Good luck :)

Answers

The statement that does not describe a guideline for effective presentation layouts is Font size should be as large as possible.

What are the tips for creating an effective presentation?

In the General planning of a Presentation. the following steps should be taken.

Do plan carefully and well.Always conduct your research.Do Time your presentation.

Conclusively, The statement that does not describe a guideline for effective presentation layouts is Font size should be as large as possible. This is because, the front size that should be used should not be too large or too small.

Learn more about presentation from

https://brainly.com/question/24653274

Answer:

d

Explanation:

font size should be as large as possible.

HELPPPPPOOP
Jeremy wishes to create a site map for his website. What tag will surround the URL of his home page?
A.
B.
C.
D.

Answers

Answer:b

Explanation:

when creating a report,you can mske groups and subgroups by?​

Answers

Answer:

content of the report

Explanation:

you must clarify all thingsthe report would be clean and clear

what is the importance of file management and how do you control files over time?\

Answers

Answer:

File management improves productivity by lowering the amount of time employees spend looking for documents. It also cuts down on the time it takes to recreate files when an employee can't find the original.

To control files over time, here are some tips.

-Delete unnecessary files

-Take immediate action on files you encounter

-Consolidate files when possible

-Have less folders as possible

convert the following binary to decimal number .
a). 101101 ​

Answers

first things first you have to do write it down which you did
step 2: then you multiply each digit of the binary number by the corresponding power of 2: 1x25 + 0x24 + 1x23 + 1x22 + 0x21 + 1x2 0
step 3: solve the powers: 1x32 + 0x16 + 1x8 + 1x4 + 0x2 + 1x1 = 32 + 0 + 8 + 4 + 0 + 1
step 4: add the numbers written above

32 + 0 + 8 + 4 + 0 + 1 = 45.
So, 45 is the decimal equivalent of the binary number 101101.

[tex](101101)_2\\\\=1\times 2^5 + 0 \times 2^4 + 1 \times 2^3 +1 \times 2^2 + 0 \times 2^1+1 \times 2^0\\\\=32+0+8+4+0+1\\\\=(45)_{10}[/tex]

Explain three ways of selecting records to merge to a new document

Answers

Answer:

1.

Click the Mailings tab.

2.

Click the Start Mail Merge button.

3.

Select Step-by-Step Mail Merge Wizard

Other Questions
Read the following passage.Juliet. O Romeo, Romeo! wherefore art thou Romeo?Deny thy father, and refuse thy name;Or, if thou wilt not, be but sworn my love,And I'll no longer be a Capulet.What does "wherefore" mean? Be sure to look at the word in context.WhereWhoWhyHow Think about the following question: What is a hero? In looking at the elements of a heros journey and studying the story of Ulysses, has your definition changed? Where would Ulysses fall in your definition of a hero? After examining his actions and motives, would you consider him a hero?Compose a journal entry answering the question: Is Ulysses a Hero? Use specific evidence and quotations from the text to support your answer. Which muppet has their own star on the hollywood walk of fame?. Compare the perspectives of the narrator and her first employers regarding wages. what does this comparison reveal about how they view immigrant labor? f ( x ) = x 2 + 6 x and g ( x ) = x 8 , calculate. f ( g ( 5 ) ) = A random sample of 20 students yielded a mean of x 72 If you drive 23 miles south, make a turn and drive 39 miles east, how far are you, in a straight line, fromyour starting point? Round your answer to the nearest tenth of a mile. What do you prefer: agricultural country or industrialized country? Why? Use ABC to find the value of sin A12/3535/3737/1212/37 why is the speed of these particles deffirent in each state If you pull on a box with a force of 5 N and your teacher pulls on the same box with a force of 5 N in the opposite direction, the net force on the box is _______. View Available Hint(s)for Part A 0 N 5 N 50 N 10 N Why does the author include the example of harvesting submerged trees?To highlight new uses of technologyTo point out how much timber is wastedTo emphasize the importance of sonar in forestryTo recommend the use of this technique in other aspects of the industry she said , " We went swimming today " change it to indirect speech What european countries had colonies in the caribbean?. You have a first aid kit and are about to give care to a co-worker who is unresponsive and not breathing. After calling 9-1-1 and getting equipment, what should you do before giving care, if possible A combination burglary/fire alarm system listed for household use may be used in a small mercantile occupancy.A. TrueB. False Please do number 3 or number 5 how has figure DEF been transformed to figure ABC Do you think affirmative action is an effective way to guarantee minorities access to higher education? Why or why not?Explain Yan had 5 trading cards, and then his friend gave him more cards. Now he has 16 trading cards. Let t represent the number of cards his friend gave him. Write both an addition equation and a subtraction equation to model the problem.PLEASE ANSWER IN THE NEXT 1 MINUTE.