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
- Host: GitHub
- URL: https://github.com/code-lucidal58/minesweeper
- Owner: code-lucidal58
- Created: 2019-06-01T06:37:49.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T07:20:00.000Z (almost 7 years ago)
- Last Synced: 2025-03-05T17:51:25.007Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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