Hi, I am wondering if anybody has any suggestions in to how to create a numerical matrix of a given length and height and with the values within containing only certain numbers and can be adjusted for gradients and attractors. I have attached an image of the classic game minesweeper in here as it looks a lot like I want my end goal to be. The other picture that I have included shows two manually created and very rudimentary matrix within a multi-line panel, which is a basic version of my end goal. This image also shows my attempt at a starting point in Grasshopper, which I am not even sure if I am on the right path or not with.

Creating a Minesweeper-like matrix would require attractors, although I’m not sure how to do this with numbers only.

I’m sure there are a wide variety of approaches, so I am hoping for suggestions into a range of options on how to achieve this.

Many thanks in advance