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

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 which 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 doesnt give and access to the user
  • some of the cells will have a 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 cant jump over the monster, you can avoid the monster, and can fight with monster.
  • You cant 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.

As a software engineer you are asked to design a

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

2: 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 M Case Case M Case M M Case M M Case Case end Figure: Snapshot of the initial state of the game. Note that later monster will move in the game 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!