| r1386 vs r1387 | ||
|---|---|---|
| 1 | ||
| 1 | {{{#!style | |
| 2 | .cell {width:30px;height:30px;background:#000;display:inline-block} | |
| 3 | .mine-num {vertical-align:middle;display:inline-block} | |
| 4 | }}} | |
| 2 | 5 | {{{#!if mine = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
| 3 | 6 | }}} |
| 4 | 7 | |
| 5 | || {{{#!if index = | |
| 8 | ||<nopad> {{{#!wiki class="cell" | |
| 9 | {{{#!if index = 22, cell = 0 | |
| 6 | 10 | }}}{{{#!if mine[index - 10] == 1 |
| 7 | 11 | {{{#!if cell = cell + 1 |
| 8 | 12 | }}}}}}{{{#!if mine[index - 9] == 1 |
| ... | ... | |
| 20 | 24 | }}}}}}{{{#!if mine[index + 10] == 1 |
| 21 | 25 | {{{#!if cell = cell + 1 |
| 22 | 26 | }}}}}}{{{#!if !(cell == 0) |
| 23 | ||
| 24 | ||
| 25 | ||
| 26 | ||
| 27 | ||
| 28 | ||
| 29 | ||
| 30 | }}}}}} | |
| 31 | ||
| 32 | }}} | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | ||
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | ||
| 27 | {{{#!wiki class="mine-num" | |
| 28 | @cell@}}}}}}}}} || | |
| 42 | 29 | |
| 43 | 30 | |
| 44 | 31 | |
| 45 | || || | |
| 46 | 32 | |
| 47 | 33 | |
| 48 | 34 | |
| 35 | ||
| 49 | 36 | {{{#!style |
| 50 | 37 | .box-1 {width:50px;height:50px;background:red} |
| 51 | 38 | .box-2 {width:50px;height:50px;background:blue} |
| ... | ... |