I stepped on a mine. It was glorious.
Spoiler
It would be nice if the script could be run without parameters. Trying it seems to reliably cause it build over the command computer midway, interrupting itself.
If there's anything above the play area (eg raised indicator blocks from the last play), building a minefield in that spot may bug out.
I'm also having a little trouble figuring out how the indicator blocks work. When you stomp a pad which has no mines around it, the surrounding area gets triggered, which is good; but the amount of indicators that show up around the border is wrong, meaning you have to manually stomp all the pads around the perimeter anyway in order to get them to appear correctly.
I can't help but think that the way to go would be to wire up the whole grid with bundled cables. This'd theoretically allow you to connect a 256x256 play area to one side of the command computer, which could then remain running - allowing it to eg detect when the game is won. This'd also allow you to setblock some different colours for your indicators, making the board easier to "read".
But I have to admit that feels like cheating, when compared to your piston set up. It's pretty cool as it is.