=== AMG Labs Minesweeper Game ===
Contributors: amglabs
Tags: game, minesweeper, puzzle, entertainment, classic game
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A classic Windows-style Minesweeper game for WordPress. Relive the nostalgia of the iconic puzzle game directly on your website.

== Description ==

AMG Labs Minesweeper Game brings the classic Windows Minesweeper experience to your WordPress website. This plugin faithfully recreates the beloved puzzle game with all its original features and gameplay mechanics.

= Features =

* **Classic Gameplay**: Authentic Minesweeper experience matching the original Windows version
* **Three Difficulty Levels**:
  * Beginner: 9×9 grid with 10 mines
  * Intermediate: 16×16 grid with 40 mines
  * Expert: 30×16 grid with 99 mines
* **Original Controls**:
  * Left-click to reveal cells
  * Right-click to toggle flag/question mark
  * Automatic recursive opening of empty cells
* **Game Features**:
  * Real-time mine counter
  * Timer tracking your progress
  * Restart button with expressive face indicator
  * Victory and game over detection
* **Accessibility**: Full keyboard navigation support
* **Internationalization**: Available in English, Portuguese (Brazil), and Spanish

= Usage =

Simply add the shortcode to any post or page:

`[minesweeper]`

You can also specify the initial difficulty:

`[minesweeper difficulty="intermediate"]`
`[minesweeper difficulty="expert"]`

= Keyboard Controls =

* **Arrow keys**: Navigate between cells
* **Enter/Space**: Reveal cell
* **Shift + Enter/Space**: Toggle flag
* **F key**: Toggle flag

== Installation ==

1. Upload the `amglabs-minesweeper-game` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Add the `[minesweeper]` shortcode to any post or page

== Frequently Asked Questions ==

= How do I change the difficulty level? =

You can either use the dropdown selector in the game interface or specify the difficulty in the shortcode: `[minesweeper difficulty="expert"]`

= Can I have multiple games on the same page? =

Yes, you can add multiple shortcodes to the same page, and each will function independently.

= Is the game mobile-friendly? =

Yes, the game is responsive and works on mobile devices. However, for the best experience, larger screens are recommended for Expert difficulty due to the grid size.

= How do I flag a cell on mobile? =

On touch devices, you can long-press on a cell to flag it, or use the alternative tap-and-hold gesture.

== Screenshots ==

1. Beginner difficulty gameplay
2. Intermediate difficulty with flags placed
3. Expert difficulty game in progress
4. Victory screen
5. Game over screen showing mine locations

== Changelog ==

= 1.0.0 =
* Initial release
* Classic Minesweeper gameplay
* Three difficulty levels (Beginner, Intermediate, Expert)
* Timer and mine counter
* Flag and question mark functionality
* Recursive empty cell opening
* Keyboard accessibility
* Internationalization support (English, Portuguese, Spanish)

= 1.0.1 =
Tested with WordPress 7.1.

== Upgrade Notice ==

= 1.0.0 =
Initial release of AMG Labs Minesweeper Game.

= 1.0.1 =
Tested with WordPress 7.1.