As a software engineer, you are asked to design a three-level board game with the following description of the game and the requirements This game will be a board game in which the user will start from the top left corner and will try to go to the bottom right corner. The board will have some of the rules and the features. The aim is to finish the game with the highest total points.  On the board, some cells will be black which will indicate walls. Which doesn’t give and access to the user  some of the cells will have money in the case ( in the amounts of 100, 200, 300 and more increments of 100)  some of the cells will have holes(gray)  some of the cells will have Monster  user can use a key to open the case and get the money  user can use sword or arrow(arc) to kill the Monster  You can’t jump over the monster, you can avoid the monster, and can fight with monster.  You can’t jump over the wall  User can have 5 arrows; Arrows can be used from 2 cells far from the monster(vertical/horizontal)  While monster is in a cell ( not moving among the cells), he bends to right, front, back and left in a random order .  Monster can move to each direction one square, So for each move you do monster makes one move.  the user will use arrows (up, down, right, left) on the keyboard to move in the game.  Shift+(up arrow) is used to jump over a cell  Shift+(right arrow) is used to get a sword  User can use the sword only if he is 2 cells far from the monster. Once user decides to use sword the game will give user a right to do 2 moves, the first one to move to the next cell of the monster and the second one to use the sword.  User will start with 100 points  Each key costs 5 points  For every move( up, right, left, down) user will lose 1 point  Jumping through any cell except a hole costs 5 points  Jumping over a hole costs 10 points  each arrow cost 10 points  using sword cost 5 points  Once case is open, the user will lose 10% of the amount from his points. ( note: if user has 30 points and open a case with 500 dolar case, he will lose the game.)  Killing each Monster will bring 30 points to the player.  As player plays the game you can assume more cases and more more monsters appear. Below is an example board design which M:Monster, gray color represent holes Some level specific rules are mentioned below Level 1: User should be able to move 1 square each direction User will be able to jump over the regular cells User can use sword to kill the monster Level 2 User should be able to move 1 square to each direction User will be able to jump up and jump over all the cells including hole User can use sword or arrow to kill the monster Level 3: User should be able to move 1 square to each direction User will be able to jump up and jump over all the cells including hole User can use sword or arrow to kill the monster User will be able to use the key to get the money from case The user will only be able to play the game if he has points. If the user has no points left before the end of the game, the game will be over and the user will lose. Some of the details of the game is not provided however you have enough information to complete the below questions. a) Please draw the Use case diagram for the above game. (you can omit administrator of the system in your drawing) b) Please write “kill the monster” scenario for level 2 assuming that user will start the game from the beginning. c) Please draw a sequence diagram for “getting the money from case”. Note that this should be done based on the rules provided in the above game. Hint: Please first find out what kind of objects (classes) you would have for this part of the game.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

As a software engineer, you are asked to design a three-level board game with the following 
description of the game and the requirements 
This game will be a board game in which the user will start from the top left corner and will try to go to 
the bottom right corner. The board will have some of the rules and the features. The aim is to 
finish the game with the highest total points.
 On the board, some cells will be black which will indicate walls. Which doesn’t give and 
access to the user
 some of the cells will have money in the case ( in the amounts of 100, 200, 300 and 
more increments of 100) 
 some of the cells will have holes(gray)
 some of the cells will have Monster
 user can use a key to open the case and get the money
 user can use sword or arrow(arc) to kill the Monster
 You can’t jump over the monster, you can avoid the monster, and can fight with monster.
 You can’t jump over the wall
 User can have 5 arrows; Arrows can be used from 2 cells far from the 
monster(vertical/horizontal)
 While monster is in a cell ( not moving among the cells), he bends to right, front, back 
and left in a random order .
 Monster can move to each direction one square, So for each move you do monster makes 
one move. 
 the user will use arrows (up, down, right, left) on the keyboard to move in the game.
 Shift+(up arrow) is used to jump over a cell
 Shift+(right arrow) is used to get a sword
 User can use the sword only if he is 2 cells far from the monster. Once user decides to use 
sword the game will give user a right to do 2 moves, the first one to move to the next cell 
of the monster and the second one to use the sword. 
 User will start with 100 points
 Each key costs 5 points
 For every move( up, right, left, down) user will lose 1 point
 Jumping through any cell except a hole costs 5 points
 Jumping over a hole costs 10 points
 each arrow cost 10 points
 using sword cost 5 points
 Once case is open, the user will lose 10% of the amount from his points. ( note: if user 
has 30 points and open a case with 500 dolar case, he will lose the game.) 
 Killing each Monster will bring 30 points to the player. 
 As player plays the game you can assume more cases and more more monsters appear.
Below is an example board design which M:Monster, gray color represent holes

 

 

Some level specific rules are mentioned below
Level 1:
User should be able to move 1 square each direction
User will be able to jump over the regular cells
User can use sword to kill the monster
Level 2
User should be able to move 1 square to each direction 
User will be able to jump up and jump over all the cells including hole
User can use sword or arrow to kill the monster
Level 3:
User should be able to move 1 square to each direction 
User will be able to jump up and jump over all the cells including hole
User can use sword or arrow to kill the monster User will be able to use the key to get the money from case The user will only be able to play the game if he has points. If the user has no points left before the end of the game, the game will be over and the user will lose. Some of the details of the game is not provided however you have enough information to complete the below questions. 


a) Please draw the Use case diagram for the above game. (you can omit administrator of the system in your drawing)


b) Please write “kill the monster” scenario for level 2 assuming that user will start the game from the beginning. 


c) Please draw a sequence diagram for “getting the money from case”. Note that this should be done based on the rules provided in the above game. Hint: Please first find out what kind of objects (classes) you would have for this part of the game.

Below is an example board design which M:Monster, gray color represent holes
start
M
Case
Case
M
Case
M
Case
M
Case
Case
end
Figure: Snapshot of the initial state of the game. Note that later monster will move in the game
Transcribed Image Text:Below is an example board design which M:Monster, gray color represent holes start M Case Case M Case M Case M Case Case end Figure: Snapshot of the initial state of the game. Note that later monster will move in the game
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education