<title>Minesweeper Game</title>

Minesweeper Game

<p>This is a simple implementation of the classic Minesweeper game in C.</p>

<img src="images/screen.jpg" alt="Gameplay Image">
<p><em>Gameplay Image Description: Placeholder for an image showing gameplay.</em></p>

<h2>Introduction</h2>

<p>Minesweeper is a single-player puzzle video 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.</p>

<h2>Features</h2>

<ul>
    <li>Dynamic grid creation based on user-selected difficulty.</li>
    <li>Random placement of mines within the grid.</li>
    <li>Clues indicating the number of neighboring mines.</li>
    <li>Flagging mechanism to mark potential mine locations.</li>
    <li>Recursive algorithm for revealing adjacent empty squares.</li>
    <li>Gameplay loop allowing players to interact with the grid until completion or detonation.</li>
</ul>


<h2>How to Play</h2>

<ol>
    <li>Choose the difficulty level: easy, medium, or hard.</li>
    <li>The game will generate a grid with mines randomly placed.</li>
    <li>Use the provided menu options to interact with the grid:
        <ul>
            <li>Add a flag to mark potential mine locations.</li>
            <li>Visit a square to reveal its content.</li>
            <li>Delete a flag if placed incorrectly.</li>
        </ul>
    </li>
    <li>The game ends when either all non-mine squares are revealed (win) or a mine is detonated (lose).</li>
</ol>

<h2>Screenshots</h2>

<figure>
    <img src="images\screen1.jpg" alt="Screenshot 1">
    <figcaption><em>Screenshot 1 Description: Placeholder for a screenshot.</em></figcaption>
</figure>

<figure>
    <img src="images\screen2.jpg" alt="Screenshot 2">
    <figcaption><em>Screenshot 2 Description: Placeholder for a screenshot.</em></figcaption>
</figure>

<h2>How to Run</h2>

<ol>
    <li>Compile the source code using a C compiler.</li>
    <li>Execute the compiled binary.</li>
    <li>Follow the on-screen instructions to play the game.</li>
</ol>

<h2>Credits</h2>

<p>This game was created by JADIR Mohammed.</p>