Sha256: 706a09a75260b54663f830aed3d766e221a9dc1eff95b1cc7529cf643d33611f

Contents?: true

Size: 1.37 KB

Versions: 87

Compression:

Stored size: 1.37 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 |
    +-----+

## Running tests

Execute the tests with:

```bash
$ elixir minesweeper_test.exs
```

### Pending tests

In the test suites, all but the first test have been skipped.

Once you get a test passing, you can unskip the next one by
commenting out the relevant `@tag :pending` with a `#` symbol.

For example:

```elixir
# @tag :pending
test "shouting" do
  assert Bob.hey("WATCH OUT!") == "Whoa, chill out!"
end
```

Or, you can enable all the tests by commenting out the
`ExUnit.configure` line in the test suite.

```elixir
# ExUnit.configure exclude: :pending, trace: true
```

For more detailed information about the Elixir track, please
see the [help page](http://exercism.io/languages/elixir).

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

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.97 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.96 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.95 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.94 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.93 tracks/elixir/exercises/minesweeper/README.md
trackler-2.2.1.92 tracks/elixir/exercises/minesweeper/README.md