I want to make something similiar to minesweeper
input matrix:
matrix = [[true, false, false],
[false, true, false],
[false, false, false]]
if a bomb is on the field I do not count it as bomb is surrounding.
I thought about doing it with numpy convolve somehow but I am struggling with how to go through the matrix and always check the left, top, right and bottom fields of the actual field (in the case of a border I check "empty" fields which is 0 for sure)