An open API service indexing awesome lists of open source software.

https://github.com/code-lucidal58/minesweeper

Minesweeper grid logic using python
https://github.com/code-lucidal58/minesweeper

Last synced: 6 months ago
JSON representation

Minesweeper grid logic using python

Awesome Lists containing this project

README

          

# 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:

```text
List of bombs: [[0,0],[0,1]]
No. of columns: 4
No. of rows: 3
```

Output will look like this:
```text
[-1, -1, 1, 0]
[2, 2, 1, 0]
[0, 0, 0, 0]
```

Version: 3.7.3