Code Monkey home page Code Monkey logo

minesweeper's Introduction

About

  • The project's code can be found inside the minesweeper folder.
  • Round Stats are stored inside the recentgames folder.
  • Game Scenarios created by the player are stored inside the medialab folder.
  • Inside the mines folder a mines.txt is created everytime a new game is started and contains the row and column where each mine is located, as well as a third value that signals whether the mine is a super-mine or not. When a new game is started or the player exits the application the mines.txt file is deleted.

Game Rules

The game follows the same rules as the classic Minesweeper game with a few additions:

  • The player first needs to Load a game either from the pre-existing ones in the Load menu or create a new game scenario from the Create menu. When the game scenario is loaded press Start to begin the game.
  • The player can create their own gamplay scenarios which are then saved locally and can be loaded again and again without recreating them.
  • Round stats are saved at the end of each game and can be viewed at a later time.
  • When the difficulty is set to 2 a super-mine is also initialized. If the player marks the square corresponding to the super-mine within the first 4 attempts (left-clicks) then automatically all the squares that are in the same row and column as the super-mine (31 total squares) are revealed.
  • When the countdown reaches zero the game is over and the player looses.
  • From the Solution menu the current game's solution can be found, but the game will end and be marked as a loss for the player.

Game description details

Difficulty Levels Grid Size Number of Mines Timer (seconds) Super-Mine
1 9x9 9-11 120-180 Not Allowed
2 16x16 35-45 240-360 Allowed

Screenshots

Screenshot 2023-04-01 at 4 47 42 PM Screenshot 2023-04-01 at 4 44 20 PM

minesweeper's People

Contributors

valantisandreas avatar

Stargazers

 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.