Skip to content

Instantly share code, notes, and snippets.

@tjlytle
Created December 28, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjlytle/4401086 to your computer and use it in GitHub Desktop.
Save tjlytle/4401086 to your computer and use it in GitHub Desktop.
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
Copy link

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