Minesweeper¶
🎯 Write a program that fills a Minesweeper field with the number of adjacent mines.
The input:
.....*..
.*......
......*.
..**....
..*...*.
.......*
produces:
11101*10
1*100111
023211*1
02**1222
02*311*2
0111012*
Hints¶
First select a suitable data structure
Write a test for the program before you implement it
Write a function that counts the mines around a single field
Translated with www.DeepL.com