Sha256: db19cf8f97b23f8dc05661a7f5d440cf9080e08ac946a037b19622f7adf9ea95

Contents?: true

Size: 1.82 KB

Versions: 22

Compression:

Stored size: 1.82 KB

Contents

{
  "#": [
    "The expected outputs are represented as arrays of strings to improve readability in this JSON file.",
    "Your track may choose whether to present the input as a single string (concatenating all the lines) or as the list.",
    "The inputs are NOT separately provided, as they are simply generated by removing all numbers from the expected outputs."
  ],
  "cases": [
    {
      "description": "no rows",
      "expected": []
    },
    {
      "description": "no columns",
      "expected": [""]
    },
    {
      "description": "no mines",
      "expected": [
        "   ",
        "   ",
        "   "
      ]
    },
    {
      "description": "board with only mines",
      "expected": [
        "***",
        "***",
        "***"
      ]
    },
    {
      "description": "mine surrounded by spaces",
      "expected": [
        "111",
        "1*1",
        "111"
      ]
    },
    {
      "description": "space surrounded by mines",
      "expected": [
        "***",
        "*8*",
        "***"
      ]
    },
    {
      "description": "horizontal line",
      "expected": ["1*2*1"]
    },
    {
      "description": "horizontal line, mines at edges",
      "expected": ["*1 1*"]
    },
    {
      "description": "vertical line",
      "expected": [
        "1",
        "*",
        "2",
        "*",
        "1"
      ]
    },
    {
      "description": "vertical line, mines at edges",
      "expected": [
        "*",
        "1",
        " ",
        "1",
        "*"
      ]
    },
    {
      "description": "cross",
      "expected": [
        " 2*2 ",
        "25*52",
        "*****",
        "25*52",
        " 2*2 "
      ]
    },
    {
      "description": "large board",
      "expected": [
        "1*22*1",
        "12*322",
        " 123*2",
        "112*4*",
        "1*22*2",
        "111111"
      ]
    }
  ]
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.0.1.0 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.10 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.9 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.8 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.7 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.6 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.5 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.4 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.3 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.2 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.1 common/exercises/minesweeper/canonical-data.json
trackler-2.0.0.0 common/exercises/minesweeper/canonical-data.json
trackler-1.0.4.1 common/exercises/minesweeper/canonical-data.json
trackler-1.0.4.0 common/exercises/minesweeper/canonical-data.json
trackler-1.0.3.0 common/exercises/minesweeper/canonical-data.json
trackler-1.0.2.1 common/exercises/minesweeper/canonical-data.json
trackler-1.0.2.0 common/exercises/minesweeper/canonical-data.json
trackler-1.0.1.2 common/exercises/minesweeper/canonical-data.json
trackler-1.0.1.1 common/exercises/minesweeper/canonical-data.json
trackler-1.0.1.0 common/exercises/minesweeper/canonical-data.json