Sha256: e8b7a1ffbdd47e468591f8e08a96b5e0e874ea904b6d8756b3f884f4a42ad030

Contents?: true

Size: 1.84 KB

Versions: 74

Compression:

Stored size: 1.84 KB

Contents

# Minesweeper

Add the numbers to a minesweeper board.

Minesweeper is a popular game where the user has to find the mines using
numeric hints that indicate how many mines are directly adjacent
(horizontally, vertically, diagonally) to a square.

In this exercise you have to create some code that counts the number of
mines adjacent to a square and transforms boards like this (where `*`
indicates a mine):

    +-----+
    | * * |
    |  *  |
    |  *  |
    |     |
    +-----+

into this:

    +-----+
    |1*3*1|
    |13*31|
    | 2*2 |
    | 111 |
    +-----+

## Testing

In order to run the tests for this track, you will need to install
DUnitX. Please see the [installation](http://www.exercism.io/languages/delphi/installation) instructions for more information.

### Loading Exercises into Delphi

If Delphi is properly installed, and `*.dpr` file types have been associated with Delphi, then double clicking the supplied `*.dpr` file will start Delphi and load the exercise/project.  `control + F9` is the keyboard shortcut to compile the project or pressing `F9` will compile and run the project.

Alternatively you may opt to start Delphi and load your project via. the `File` drop down menu.

### When Questions Come Up
We monitor the [Pascal-Delphi](https://gitter.im/exercism/Pascal-Delphi) support room on [gitter.im](https://gitter.im) to help you with any questions that might arise.

### Submitting Exercises

Note that, when trying to submit an exercise, make sure the exercise file you're submitting is in the `exercism/delphi/<exerciseName>` directory.

For example, if you're submitting `ubob.pas` for the Bob exercise, the submit command would be something like `exercism submit <path_to_exercism_dir>/delphi/bob/ubob.pas`.

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.179 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.178 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.177 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.176 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.175 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.174 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.173 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.172 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.171 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.170 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.169 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.167 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.166 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.165 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.164 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.163 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.162 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.161 tracks/delphi/exercises/minesweeper/README.md
trackler-2.2.1.160 tracks/delphi/exercises/minesweeper/README.md