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.
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.
Step by step
Solved in 3 steps with 1 images