Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Sample Test Cases for 12TDDs Day 3 (Mine Field).
*...
..*.
....
*211
12*1
0111
.....
.***.
.*.*.
.***.
.....
12321
2***2
3*8*3
2***2
12321"
.....
.....
..*..
.....
.....
00000
01110
01*10
01110
00000
...
...
.*.
...
...
000
111
1*1
111
000
..........
....*.....
..........
0001110000
0001*10000
0001110000
..**....
.......*
..*..*.*
..****..
........
*.......
01**1011
0233213*
02*44*4*
02****31
12233210
*1000000

oprose commented Dec 28, 2012

Good set of cases.

I've used the no mines case and the full field case on mine, just to ensure that it catches that possibility as well:

....    0000
.... => 0000
....    0000


****    ****
**** => ****
****    ****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment