53. Minesweeper: Adjacent Counts

Hard

Add an 'adjacent' column giving the number of mines on the (up to 8) adjacent squares, for the seeded 5×4 grid from the previous puzzle (rebuild it the same way: np.random.seed(0) immediately before drawing the mines, inside solve). Return the DataFrame with the counts as integers.

Sign in to write and run your own code.

Implement solve(...)