PROJECT 2 - PROJECT 2 ADVANCED ADVENTURE GAME due Sunday...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
PROJECT 2: ADVANCED ADVENTURE GAME due Sunday, November 21st, 11:59 pm This is an individual project. BACKGROUND In this project you will modify the Adventure Game by adding new features and functions. You will use your knowledge of hierarchal decomposition to define sub- functions. You will use picture manipulation, and the random module you studied in chapters 4, 5, and 10. COURSE MATERIAL Before you start this project, you must understand: Modifying Pixels in a range (Chapter 4 and 5 of the textbook). Building Bigger Programs (Chapter 9 of the textbook) The functions provided by the random module (Chapter 10 of the textbook) SETUP Remember to make a new directory project2 under the directory cs177 on your Unix account: cd cd cs177 mkdir project2 Download the file project2-correct.py under project2 directory. Under the project2 directory, download also the following files that are provided to you: angel.jpg , monster1.jpg , monster2.jpg , monster3.jp , gamecanvas.jpg , diningroom.jpg , entryway.jpg , kitchen.jpg , livingroom.jpg , porch.jpg ; in troduction.txt . Then launch JES and open the program project2-correct.py provided to you PROJECT SPECIFICATION Overview For this project, you are going to work on the Adventure Game you learned in Chapter 9. You are going to modify some of the existing functions and also write new functions that will add new features to the game. Note: Except where otherwise stated, you do not need to make sure that input from the user is correct. The project2-correct.py file The project2-correct.py file includes a fully commented skeleton code for the functions you will implement. Work on this file. Do not change the file name, and the given function names. The New Adventure Game In this new version of the Adventure Game, we want the game to ask the player to input his/ her name. As before, the game initializes the player location inside the Porch. Next, it displays the game instructions. After that, the game continues with asking the user to input a new direction that might move him/ her to a new room. When the user enters the room, he is going to see a visual description of the room (a picture that represents the room). The rules of the new Adventure Game are the same of those of the original game
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
you find in the textbook at pages 206-209. This new version of the game will show randomly a monster or an angel in one of the corners of the room. The game ends when
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern