Bill Talada (1/15/2010)
If t-sql supported arrays, I would have implemented a gnarly shaped maze of walls and partial dividers and the robot would have adapted beautifully.
How would you define a "wall type"?
If I understood the basic concept it should be easy to have either nothing (0), a can (1) or a wall (2) as the possible "status" of a cell.
Instead of the pattern you used you could also have
1120010010
1121101111
0010222222
1110201010
2000100001
2100111100
1111101111
1100100111
0111011122
0110000101
, where 2 would represent a wall.
I don't understand why that can't be done.