SlideShare uma empresa Scribd logo
1 de 2
Baixar para ler offline
pls help in python! Escape Room Write a program that simulates an escape room by having the
user open a series of three doors random chosen from several different types of doors. Use the
following class diagram to create your program (you must create a main, the Door interface, and
Basic Door, then you can choose any two of the remaining four types of door to implement):
Door (door.py) - interface - these methods are abstract and should be implemented in each of the
subclasses of door (not in door itself). 1. examine_door(self) - returns a string description of the
door. 2. menu_options(self) - returns a string of the menu options that user can choose from
when attempting to unlock the door. 3. get_menu_max(self) - returns the number of options in
the above menu. 4. attempt(self, option) - passes in the user's selection from the menu. Uses that
value to update the attributes that are needed to determine whether the user has unlocked the
door (which is done in the is_unlocked method below). Returns a string describing what the user
attempted. 5. is_unlocked(self) - checks to see if the door was unlocked, returns true if it is, false
otherwise. 6. clue(self) - returns the hint that is returned if the user was unsuccessful at their
attempt. 7. success(self) - returns the congratulatory message if the user was successful.
Main (main.py) - 1. open_door(door) - passes in a door object that the user will try to unlock. It
should display the description of the door, and the menu, then get the user's selection, then pass
that value to the attempt method and display the result. If the attempt was successful, then it
should display the success message, otherwise, it should display the clue message and repeat
from the menu until the user successfully opens the door. 2. main - the main should have a loop
that repeats three times for the three doors that the user will try to open. Randomly choose a door
from the ones that you implemented (it's fine if a particular door appears more than once) and
pass it to open_door. After the user has opened all three doors, then display a congratulatory
message and end the game. Example Output:
Notes: 1. You should have 5 different files: main.py, door.py, basic_door.py, plus two (or more)
other subclasses of door. 2. Check all user input using the get_int_range function in the
check_input module. Use the value returned from get_menu_max as the upper bound. 3. Do not
create any extra methods, attributes, functions, parameters, etc. 4. Please do not create any global
variables or use the attributes globally (ie. do not access any of the attributes using the
underscores). 5. Use docstrings to document each of the classes, their attributes, and each of their
methods. See the lecture notes for examples. 6. Place your names, date, and a brief description of
the program in a comment block at the top of your main file. Place brief comments throughout
your code. 7. Thoroughly test your program before submitting: a. Make sure that the program
randomly chooses three doors for the user to open (repeats are fine). b. Make sure that each of
your doors can be created and opened. c. Make sure that each of the options performs the correct
operation. d. Make sure the clues are displayed when the user is unsuccessful and that they
display the correct information.

Mais conteúdo relacionado

Semelhante a pls help in python! Escape Room Write a program that simulates an e.pdf

Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1Albert Rosa
 
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docxCS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docxmydrynan
 
Lab 8 User-CF Recommender System – Part I 50 points .docx
Lab 8 User-CF Recommender System – Part I 50 points .docxLab 8 User-CF Recommender System – Part I 50 points .docx
Lab 8 User-CF Recommender System – Part I 50 points .docxsmile790243
 
Goals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docxGoals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docxjosephineboon366
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdfameancal
 
Ee java lab assignment 4
Ee java lab assignment 4Ee java lab assignment 4
Ee java lab assignment 4Kuntal Bhowmick
 
ObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxmccormicknadine86
 
Python Interview Questions And Answers
Python Interview Questions And AnswersPython Interview Questions And Answers
Python Interview Questions And AnswersH2Kinfosys
 
C++ Programming Polymorphism Assignment InstructionsOverview 
C++ Programming Polymorphism Assignment InstructionsOverview C++ Programming Polymorphism Assignment InstructionsOverview 
C++ Programming Polymorphism Assignment InstructionsOverview TawnaDelatorrejs
 
Java method present by showrov ahamed
Java method present by showrov ahamedJava method present by showrov ahamed
Java method present by showrov ahamedMd Showrov Ahmed
 
The Ring programming language version 1.5.3 book - Part 81 of 184
The Ring programming language version 1.5.3 book - Part 81 of 184The Ring programming language version 1.5.3 book - Part 81 of 184
The Ring programming language version 1.5.3 book - Part 81 of 184Mahmoud Samir Fayed
 
Tips On Trick Odoo Add-On.pptx
Tips On Trick Odoo Add-On.pptxTips On Trick Odoo Add-On.pptx
Tips On Trick Odoo Add-On.pptxAgusto Sipahutar
 
Encryption Laboratory   Purpose of the Lab   T.docx
Encryption Laboratory   Purpose of the Lab   T.docxEncryption Laboratory   Purpose of the Lab   T.docx
Encryption Laboratory   Purpose of the Lab   T.docxYASHU40
 
Two scoopsofdjango ch16 dealing with the user model
Two scoopsofdjango ch16   dealing with the user modelTwo scoopsofdjango ch16   dealing with the user model
Two scoopsofdjango ch16 dealing with the user modelShih-yi Wei
 

Semelhante a pls help in python! Escape Room Write a program that simulates an e.pdf (17)

pyton Notes1
pyton Notes1pyton Notes1
pyton Notes1
 
Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1
 
OOP Assignment 03.pdf
OOP Assignment 03.pdfOOP Assignment 03.pdf
OOP Assignment 03.pdf
 
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docxCS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
CS 2336 PROJECT 3 – Linked Inventory Management Project Due 1104 b.docx
 
Lab 8 User-CF Recommender System – Part I 50 points .docx
Lab 8 User-CF Recommender System – Part I 50 points .docxLab 8 User-CF Recommender System – Part I 50 points .docx
Lab 8 User-CF Recommender System – Part I 50 points .docx
 
Goals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docxGoals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docx
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdf
 
Ee java lab assignment 4
Ee java lab assignment 4Ee java lab assignment 4
Ee java lab assignment 4
 
ObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docx
 
Python Interview Questions And Answers
Python Interview Questions And AnswersPython Interview Questions And Answers
Python Interview Questions And Answers
 
Java Unit Testing
Java Unit TestingJava Unit Testing
Java Unit Testing
 
C++ Programming Polymorphism Assignment InstructionsOverview 
C++ Programming Polymorphism Assignment InstructionsOverview C++ Programming Polymorphism Assignment InstructionsOverview 
C++ Programming Polymorphism Assignment InstructionsOverview 
 
Java method present by showrov ahamed
Java method present by showrov ahamedJava method present by showrov ahamed
Java method present by showrov ahamed
 
The Ring programming language version 1.5.3 book - Part 81 of 184
The Ring programming language version 1.5.3 book - Part 81 of 184The Ring programming language version 1.5.3 book - Part 81 of 184
The Ring programming language version 1.5.3 book - Part 81 of 184
 
Tips On Trick Odoo Add-On.pptx
Tips On Trick Odoo Add-On.pptxTips On Trick Odoo Add-On.pptx
Tips On Trick Odoo Add-On.pptx
 
Encryption Laboratory   Purpose of the Lab   T.docx
Encryption Laboratory   Purpose of the Lab   T.docxEncryption Laboratory   Purpose of the Lab   T.docx
Encryption Laboratory   Purpose of the Lab   T.docx
 
Two scoopsofdjango ch16 dealing with the user model
Two scoopsofdjango ch16   dealing with the user modelTwo scoopsofdjango ch16   dealing with the user model
Two scoopsofdjango ch16 dealing with the user model
 

Mais de aioils

Please help solve! Suppose that X is an exponential random variable .pdf
Please help solve! Suppose that X is an exponential random variable .pdfPlease help solve! Suppose that X is an exponential random variable .pdf
Please help solve! Suppose that X is an exponential random variable .pdfaioils
 
Please help me with a UML class diagram for the following code im.pdf
Please help me with a UML class diagram for the following code im.pdfPlease help me with a UML class diagram for the following code im.pdf
Please help me with a UML class diagram for the following code im.pdfaioils
 
Please help me i will give good rating a) A wheel has 37 numbers 0.pdf
Please help me i will give good rating  a) A wheel has 37 numbers 0.pdfPlease help me i will give good rating  a) A wheel has 37 numbers 0.pdf
Please help me i will give good rating a) A wheel has 37 numbers 0.pdfaioils
 
Please help me answer this question.Explain how oxygen content acc.pdf
Please help me answer this question.Explain how oxygen content acc.pdfPlease help me answer this question.Explain how oxygen content acc.pdf
Please help me answer this question.Explain how oxygen content acc.pdfaioils
 
PLEASE HELP IN C++For this test, you will need to create the follo.pdf
PLEASE HELP IN C++For this test, you will need to create the follo.pdfPLEASE HELP IN C++For this test, you will need to create the follo.pdf
PLEASE HELP IN C++For this test, you will need to create the follo.pdfaioils
 
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdf
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdfplease help and thank you ! Experiments by Murphy et al. (2014) on t.pdf
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdfaioils
 
PLEASE HELP (also please dont answer with path because there is no .pdf
PLEASE HELP (also please dont answer with path because there is no .pdfPLEASE HELP (also please dont answer with path because there is no .pdf
PLEASE HELP (also please dont answer with path because there is no .pdfaioils
 
please explain these topics if possible How companies account for.pdf
please explain these topics if possible  How companies account for.pdfplease explain these topics if possible  How companies account for.pdf
please explain these topics if possible How companies account for.pdfaioils
 
Pls introduced to various themes and theoretical issues pertaining t.pdf
Pls introduced to various themes and theoretical issues pertaining t.pdfPls introduced to various themes and theoretical issues pertaining t.pdf
Pls introduced to various themes and theoretical issues pertaining t.pdfaioils
 
please! 1. Match and pair the following basic genetic conce.pdf
please!  1. Match and pair the following basic genetic conce.pdfplease!  1. Match and pair the following basic genetic conce.pdf
please! 1. Match and pair the following basic genetic conce.pdfaioils
 
Please write out steps )You have genotyped an entire population o.pdf
Please write out steps )You have genotyped an entire population o.pdfPlease write out steps )You have genotyped an entire population o.pdf
Please write out steps )You have genotyped an entire population o.pdfaioils
 
Please write out the steps )_You have genotyped an entire populat.pdf
Please write out the steps )_You have genotyped an entire populat.pdfPlease write out the steps )_You have genotyped an entire populat.pdf
Please write out the steps )_You have genotyped an entire populat.pdfaioils
 
Please Use The Code Provided below. Thanks Study the Python code .pdf
Please Use The Code Provided below. Thanks  Study the Python code .pdfPlease Use The Code Provided below. Thanks  Study the Python code .pdf
Please Use The Code Provided below. Thanks Study the Python code .pdfaioils
 
Please Use the Code Provided below. Thanks Visit LL Queue ; add.pdf
Please Use the Code Provided below. Thanks  Visit LL Queue ; add.pdfPlease Use the Code Provided below. Thanks  Visit LL Queue ; add.pdf
Please Use the Code Provided below. Thanks Visit LL Queue ; add.pdfaioils
 
Please this is very important Im on a deadline The joint probabilit.pdf
Please this is very important Im on a deadline The joint probabilit.pdfPlease this is very important Im on a deadline The joint probabilit.pdf
Please this is very important Im on a deadline The joint probabilit.pdfaioils
 
Please solve. In the Assembly Department of Martinez Company, budget.pdf
Please solve. In the Assembly Department of Martinez Company, budget.pdfPlease solve. In the Assembly Department of Martinez Company, budget.pdf
Please solve. In the Assembly Department of Martinez Company, budget.pdfaioils
 
Please do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfPlease do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfaioils
 
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfPlease do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfaioils
 
Please do number 1 as its my choice for this project but, if there.pdf
Please do number 1 as its my choice for this project but, if there.pdfPlease do number 1 as its my choice for this project but, if there.pdf
Please do number 1 as its my choice for this project but, if there.pdfaioils
 
Please show workstepsYou have genotyped an entire population of l.pdf
Please show workstepsYou have genotyped an entire population of l.pdfPlease show workstepsYou have genotyped an entire population of l.pdf
Please show workstepsYou have genotyped an entire population of l.pdfaioils
 

Mais de aioils (20)

Please help solve! Suppose that X is an exponential random variable .pdf
Please help solve! Suppose that X is an exponential random variable .pdfPlease help solve! Suppose that X is an exponential random variable .pdf
Please help solve! Suppose that X is an exponential random variable .pdf
 
Please help me with a UML class diagram for the following code im.pdf
Please help me with a UML class diagram for the following code im.pdfPlease help me with a UML class diagram for the following code im.pdf
Please help me with a UML class diagram for the following code im.pdf
 
Please help me i will give good rating a) A wheel has 37 numbers 0.pdf
Please help me i will give good rating  a) A wheel has 37 numbers 0.pdfPlease help me i will give good rating  a) A wheel has 37 numbers 0.pdf
Please help me i will give good rating a) A wheel has 37 numbers 0.pdf
 
Please help me answer this question.Explain how oxygen content acc.pdf
Please help me answer this question.Explain how oxygen content acc.pdfPlease help me answer this question.Explain how oxygen content acc.pdf
Please help me answer this question.Explain how oxygen content acc.pdf
 
PLEASE HELP IN C++For this test, you will need to create the follo.pdf
PLEASE HELP IN C++For this test, you will need to create the follo.pdfPLEASE HELP IN C++For this test, you will need to create the follo.pdf
PLEASE HELP IN C++For this test, you will need to create the follo.pdf
 
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdf
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdfplease help and thank you ! Experiments by Murphy et al. (2014) on t.pdf
please help and thank you ! Experiments by Murphy et al. (2014) on t.pdf
 
PLEASE HELP (also please dont answer with path because there is no .pdf
PLEASE HELP (also please dont answer with path because there is no .pdfPLEASE HELP (also please dont answer with path because there is no .pdf
PLEASE HELP (also please dont answer with path because there is no .pdf
 
please explain these topics if possible How companies account for.pdf
please explain these topics if possible  How companies account for.pdfplease explain these topics if possible  How companies account for.pdf
please explain these topics if possible How companies account for.pdf
 
Pls introduced to various themes and theoretical issues pertaining t.pdf
Pls introduced to various themes and theoretical issues pertaining t.pdfPls introduced to various themes and theoretical issues pertaining t.pdf
Pls introduced to various themes and theoretical issues pertaining t.pdf
 
please! 1. Match and pair the following basic genetic conce.pdf
please!  1. Match and pair the following basic genetic conce.pdfplease!  1. Match and pair the following basic genetic conce.pdf
please! 1. Match and pair the following basic genetic conce.pdf
 
Please write out steps )You have genotyped an entire population o.pdf
Please write out steps )You have genotyped an entire population o.pdfPlease write out steps )You have genotyped an entire population o.pdf
Please write out steps )You have genotyped an entire population o.pdf
 
Please write out the steps )_You have genotyped an entire populat.pdf
Please write out the steps )_You have genotyped an entire populat.pdfPlease write out the steps )_You have genotyped an entire populat.pdf
Please write out the steps )_You have genotyped an entire populat.pdf
 
Please Use The Code Provided below. Thanks Study the Python code .pdf
Please Use The Code Provided below. Thanks  Study the Python code .pdfPlease Use The Code Provided below. Thanks  Study the Python code .pdf
Please Use The Code Provided below. Thanks Study the Python code .pdf
 
Please Use the Code Provided below. Thanks Visit LL Queue ; add.pdf
Please Use the Code Provided below. Thanks  Visit LL Queue ; add.pdfPlease Use the Code Provided below. Thanks  Visit LL Queue ; add.pdf
Please Use the Code Provided below. Thanks Visit LL Queue ; add.pdf
 
Please this is very important Im on a deadline The joint probabilit.pdf
Please this is very important Im on a deadline The joint probabilit.pdfPlease this is very important Im on a deadline The joint probabilit.pdf
Please this is very important Im on a deadline The joint probabilit.pdf
 
Please solve. In the Assembly Department of Martinez Company, budget.pdf
Please solve. In the Assembly Department of Martinez Company, budget.pdfPlease solve. In the Assembly Department of Martinez Company, budget.pdf
Please solve. In the Assembly Department of Martinez Company, budget.pdf
 
Please do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfPlease do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdf
 
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfPlease do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
 
Please do number 1 as its my choice for this project but, if there.pdf
Please do number 1 as its my choice for this project but, if there.pdfPlease do number 1 as its my choice for this project but, if there.pdf
Please do number 1 as its my choice for this project but, if there.pdf
 
Please show workstepsYou have genotyped an entire population of l.pdf
Please show workstepsYou have genotyped an entire population of l.pdfPlease show workstepsYou have genotyped an entire population of l.pdf
Please show workstepsYou have genotyped an entire population of l.pdf
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 

Último (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

pls help in python! Escape Room Write a program that simulates an e.pdf

  • 1. pls help in python! Escape Room Write a program that simulates an escape room by having the user open a series of three doors random chosen from several different types of doors. Use the following class diagram to create your program (you must create a main, the Door interface, and Basic Door, then you can choose any two of the remaining four types of door to implement): Door (door.py) - interface - these methods are abstract and should be implemented in each of the subclasses of door (not in door itself). 1. examine_door(self) - returns a string description of the door. 2. menu_options(self) - returns a string of the menu options that user can choose from when attempting to unlock the door. 3. get_menu_max(self) - returns the number of options in the above menu. 4. attempt(self, option) - passes in the user's selection from the menu. Uses that value to update the attributes that are needed to determine whether the user has unlocked the door (which is done in the is_unlocked method below). Returns a string describing what the user attempted. 5. is_unlocked(self) - checks to see if the door was unlocked, returns true if it is, false otherwise. 6. clue(self) - returns the hint that is returned if the user was unsuccessful at their attempt. 7. success(self) - returns the congratulatory message if the user was successful. Main (main.py) - 1. open_door(door) - passes in a door object that the user will try to unlock. It should display the description of the door, and the menu, then get the user's selection, then pass that value to the attempt method and display the result. If the attempt was successful, then it should display the success message, otherwise, it should display the clue message and repeat from the menu until the user successfully opens the door. 2. main - the main should have a loop that repeats three times for the three doors that the user will try to open. Randomly choose a door from the ones that you implemented (it's fine if a particular door appears more than once) and pass it to open_door. After the user has opened all three doors, then display a congratulatory message and end the game. Example Output: Notes: 1. You should have 5 different files: main.py, door.py, basic_door.py, plus two (or more) other subclasses of door. 2. Check all user input using the get_int_range function in the check_input module. Use the value returned from get_menu_max as the upper bound. 3. Do not create any extra methods, attributes, functions, parameters, etc. 4. Please do not create any global variables or use the attributes globally (ie. do not access any of the attributes using the underscores). 5. Use docstrings to document each of the classes, their attributes, and each of their methods. See the lecture notes for examples. 6. Place your names, date, and a brief description of the program in a comment block at the top of your main file. Place brief comments throughout your code. 7. Thoroughly test your program before submitting: a. Make sure that the program randomly chooses three doors for the user to open (repeats are fine). b. Make sure that each of
  • 2. your doors can be created and opened. c. Make sure that each of the options performs the correct operation. d. Make sure the clues are displayed when the user is unsuccessful and that they display the correct information.