|
1 | 1 | {
|
2 |
| - "#": [ |
3 |
| - "The expected outputs are represented as arrays of strings to improve readability in this JSON file.", |
4 |
| - "Your track may choose whether to present the input as a single string (concatenating all the lines) or as the list." |
| 2 | + "exercise": "minesweeper", |
| 3 | + "version": "1.0.0", |
| 4 | + "comments": [ |
| 5 | + " The expected outputs are represented as arrays of strings to ", |
| 6 | + " improve readability in this JSON file. ", |
| 7 | + " Your track may choose whether to present the input as a single ", |
| 8 | + " string (concatenating all the lines) or as the list. " |
5 | 9 | ],
|
6 | 10 | "cases": [
|
7 | 11 | {
|
8 | 12 | "description": "no rows",
|
9 |
| - "input" : [], |
| 13 | + "property": "annotate", |
| 14 | + "input": [], |
10 | 15 | "expected": []
|
11 | 16 | },
|
12 | 17 | {
|
13 | 18 | "description": "no columns",
|
14 |
| - "input" : [""], |
| 19 | + "property": "annotate", |
| 20 | + "input": [""], |
15 | 21 | "expected": [""]
|
16 | 22 | },
|
17 | 23 | {
|
18 | 24 | "description": "no mines",
|
| 25 | + "property": "annotate", |
19 | 26 | "input": [
|
20 | 27 | " ",
|
21 | 28 | " ",
|
|
29 | 36 | },
|
30 | 37 | {
|
31 | 38 | "description": "board with only mines",
|
| 39 | + "property": "annotate", |
32 | 40 | "input": [
|
33 | 41 | "***",
|
34 | 42 | "***",
|
|
42 | 50 | },
|
43 | 51 | {
|
44 | 52 | "description": "mine surrounded by spaces",
|
| 53 | + "property": "annotate", |
45 | 54 | "input": [
|
46 | 55 | " ",
|
47 | 56 | " * ",
|
|
55 | 64 | },
|
56 | 65 | {
|
57 | 66 | "description": "space surrounded by mines",
|
| 67 | + "property": "annotate", |
58 | 68 | "input": [
|
59 | 69 | "***",
|
60 | 70 | "* *",
|
|
68 | 78 | },
|
69 | 79 | {
|
70 | 80 | "description": "horizontal line",
|
| 81 | + "property": "annotate", |
71 | 82 | "input": [" * * "],
|
72 | 83 | "expected": ["1*2*1"]
|
73 | 84 | },
|
74 | 85 | {
|
75 | 86 | "description": "horizontal line, mines at edges",
|
| 87 | + "property": "annotate", |
76 | 88 | "input": ["* *"],
|
77 | 89 | "expected": ["*1 1*"]
|
78 | 90 | },
|
79 | 91 | {
|
80 | 92 | "description": "vertical line",
|
| 93 | + "property": "annotate", |
81 | 94 | "input": [
|
82 | 95 | " ",
|
83 | 96 | "*",
|
|
95 | 108 | },
|
96 | 109 | {
|
97 | 110 | "description": "vertical line, mines at edges",
|
| 111 | + "property": "annotate", |
98 | 112 | "input": [
|
99 | 113 | "*",
|
100 | 114 | " ",
|
|
112 | 126 | },
|
113 | 127 | {
|
114 | 128 | "description": "cross",
|
| 129 | + "property": "annotate", |
115 | 130 | "input": [
|
116 | 131 | " * ",
|
117 | 132 | " * ",
|
|
129 | 144 | },
|
130 | 145 | {
|
131 | 146 | "description": "large board",
|
| 147 | + "property": "annotate", |
132 | 148 | "input": [
|
133 | 149 | " * * ",
|
134 | 150 | " * ",
|
|
0 commit comments