6
This is more than you've asked but tell me if this works for you. I've added artificial border with 2s around the world :) init[] := (dim = {10, 10}; world = ArrayPad[RandomInteger[{1, 10}, dim], {1, 1}, 2]; known = ArrayPad[ConstantArray[0, dim], {1, 1}, 2]; p = {2, 2}; (known[[##]] = w...