/minesweeper

Minesweeper grid logic using python

Primary LanguagePython

Minesweeper

Minesweeper grid logic using python This program asks for 3 inputs

  • List of bomb locations -> list of bombs
  • No of columns in the field
  • No of rows in the field
    Below is an example of sample inputs:
List of bombs: [[0,0],[0,1]]
No. of columns: 4
No. of rows: 3

Output will look like this:

[-1, -1, 1, 0]
[2, 2, 1, 0]
[0, 0, 0, 0]

Version: 3.7.3