Git Product home page Git Product logo

minesweeper's Introduction

Minesweeper

Implementation of Minesweeper in python using module pygame.


Requirements


How to use

You can just download and run the installer: "Minesweeper_by_Alphabet.exe")

How to run

  1. Download the repository.
  2. Make sure your software meets the requirements.
  3. Open the terminal.
  4. Run minesweeper .py with python 3.7.7 or greater.

How to play

Read more in depth about Minesweeper here.

Player has to reveal all the cells excluding the mines.
The game ends if player either:

  • clicks on the mine,
  • reveals all the cells that are not mines,
  • reveals all the mines using special input.

Control panel is located on the right side of the screen.
To enter / exit settings' menu, player has to click on the settings wheel.

Settings wheel

Inside settings' menu, player can:

  • turn music on / off,
  • select the size of the grid (Default: 9 x 9).

Controls

  • Left mouse button (LMB)

    • Main input, used to reveal the clicked cell or to enter settings' menu.
  • Right mouse button (RMB)

    • Used to flag the clicked cell (if the user thinks it might be a mine).
  • Enter / Return

    • Used to reveal all the mines.
  • Spacebar

    • Used to restart the game.

Sources

In the making of Minesweeper I used the following sources:

All the images used in the project are from flaticon.
All the sounds used in the project are from freesound.

minesweeper's People

Contributors

ralphabet avatar

Stargazers

salah alhashmi avatar

Watchers

 avatar

Forkers

romanosenki123

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.