Giter Site home page Giter Site logo

minesweeper's Introduction

Minesweeper Game ๐Ÿ’ฃ

This project is a Minesweeper game implemented using Vite + React.

๐Ÿ’ป Live Demo

Technologies Used

  • Vite
  • React
  • Redux Toolkit
  • TypeScript
  • CSS Modules

Getting Started

  1. Clone the repository:
git clone https://github.com/Jim876633/minesweeper.git
  1. install dependencies:
cd minesweeper
npm install
  1. Run the application:
npm run dev

The app will be available at http://localhost:5173 by default.

How to Play

  1. Reveal Cells:

    • Click on a cell to reveal its content.
    • The number on a revealed cell indicates how many mines are adjacent to that cell.
    • If you reveal a cell with a mine, the game ends.
  2. Winning the Game:

    • Successfully reveal all cells that do not contain mines to win the game.
    • Use the number clues to strategically deduce the locations of mines.
  3. Losing the Game:

    • The game ends if you reveal a cell with a mine.
    • Be cautious and use logical deduction to avoid hitting mines.
  4. Changing Game Level:

    • The Minesweeper game offers different difficulty levels:
      • Easy: 9x9 grid with 10 mines.
      • Medium: 16x16 grid with 40 mines.
      • Hard: 30x16 grid with 99 mines.
    • Adjust the game level according to your preference before starting a new game.

Good luck and have fun!

Features

  • Basic Minesweeper functionality
  • Responsive Web Design (RWD)
  • First step can't be a mine
  • Ability to add flags
  • Custom mine emoji

Contributing

Feel free to contribute to the project. Fork the repository, make your changes, and submit a pull request.

License

This Minesweeper game is open-source and available under the MIT License.

minesweeper's People

Contributors

jim876633 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.