Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider adding a back command to your Zuul game, as described in Exercise 6e: 8.23 in the book (or for more of a challenge, Exercise

  • Consider adding a "back" command to your Zuul game, as described in Exercise 6e: 8.23 in the book (or for more of a challenge, Exercise 6e: 8.26 ). Describe how this new command would work from the player's perspective, including how the program should behave in a variety of cases. (See Exercise 6e: 8.24 .) Then, describe a design for implementing this feature, including which classes would need to be modified, and description of any new classes.
  • Consider adding a time limit to your Zuul game, as described in Exercise 6e: 8.41 /in the book. Describe how this would work from the player's perspective, including how time will be counted, what task the player needs to complete in time, and how the game will behave if the player does / does not complete the task in time. Then, describe a design for implementing this feature, including which classes would need to be modified, and description of any new classes.
  • Read section 6e: 8.13 in the book, and review the textbook projects zuul-with-enums-v1 and zuul-with-enums-v2. Describe the advantages of using enums. Assume you have implemented enums-v2 in your Game. Describe the code changes that would be required to offer your game in Spanish (all text the player sees would be in Spanish), including which classes would need to be modified, and description of any new classes.

Task this on book

Exercise 8.23 Implement a back command. This command does not have a second word. Entering the back command takes the player into the previous room he/she was in.

Exercise 8.24 Test your new command. Does it work as expected? Also, test cases where the command is used incorrectly. For example, what does your program do if a player types a second word after the back command? Does it behave sensibly?

Exercise 8.41 Add some form of time limit to your game. If a certain task is not completed in a specified time, the player loses. A time limit can easily be implemented by counting the number of moves or the number of entered commands. You do not need to use real time.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago