https://github.com/digitaldreams/minesweeper
Minesweeper is a single-player puzzle computer game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field
https://github.com/digitaldreams/minesweeper
console-application console-game minesweeper php-game symfony-component symfony-console
Last synced: about 1 month ago
JSON representation
Minesweeper is a single-player puzzle computer game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field
- Host: GitHub
- URL: https://github.com/digitaldreams/minesweeper
- Owner: digitaldreams
- License: mit
- Created: 2019-07-21T02:59:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T17:49:35.000Z (over 5 years ago)
- Last Synced: 2025-11-20T19:24:45.861Z (7 months ago)
- Topics: console-application, console-game, minesweeper, php-game, symfony-component, symfony-console
- Language: PHP
- Homepage:
- Size: 275 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minesweeper
Minesweeper is a single-player puzzle computer game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field
## How to Run
```php
cd path/to/project
composer install
composer dump-autoload
php index.php
```

Now put Row and Column Number you want to hit
for example ROw 5, Column 6
## Specifications:
- This application runs in Cli (no web)
- generates a minesweeper board (Row X Columns) e.g (20x30)
- puts down a certain number of mines (25) on random locations
- game starts
- asks for input (two numbers): row & column (the coordinates that you want to "click")
- once the input is given, the output should print the current status of the board, displaying by default/non-clicked `_`
- the "clicked cell" will contain the number of neighboring mines that it has around
- if its a boom it will contain an `X` and the game ends
- you can win if there are only mines left