Question
The goal of this case study is to design a minesweeper game like the one that ships with the Microsoft Windows O operating system. The
The goal of this case study is to design a minesweeper game like the one that ships with the Microsoft Windows O operating system. The aim of the game is to find all the squares on the board containing mines as quickly as possible without touching them. The game consists of a rectangular board, a stopwatch and a mine counter.
The board is a grid of boxes.
At the start of the game, all the squares on the board are covered, the mine counter indicating the number of mines remaining to be located. The stopwatch counts the number of seconds since the start of the game.
The game begins when the first box is discovered. When a box is discovered, its content is displayed. The content of a box can be nothing or a mine or a number indicating the number of mines present in the neighboring boxes. The following scenarios can occur when a box is discovered, depending on its content:
1. A number - Nothing happens.
2. A blank - All neighboring boxes are exposed, in condition that were not reported by a flag. If one of these neighboring boxes contains nothing, the discovery process automatically continues from this box.
3. A mine - The game is over, and the player has lost. If it is still covered, a box can be marked according to the following rules:
.Marking a box that is neither discovered nor marked decrements the remaining mine counter and a flag appears on the box. He indicates that this box potentially contains a mine. A square marked with a flag cannot be discovered.
. Marking an already flagged box with a flag will restore it to its original state, i.e. covered and unmarked. The mine counter is then incremented by
1. a. Draw a Context diagram (aka Level 0 did diagram) for the Minesweeper game.
b. Draw a Level 1 did diagram for the Minesweeper game.
c. Draw a Use Case Machine diagram for the Minesweeper game.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started