GithubHelp home page GithubHelp logo

betty920huang / minesweeper Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 135 KB

Recreation of Microsoft Minesweeper using HTML, CSS and JavaScript

License: GNU General Public License v3.0

HTML 16.89% CSS 25.00% JavaScript 58.11%

minesweeper's Introduction

Minesweeper

Rules

  • The number of mines in a board and the size of the board is predetermined by the player. The default board size is 9 * 9, and the number of mines in the board is 10.
  • A "square" indicates any of the units in the game of minesweeper that contain either a number, a blank("0"), or a mine.
  • Left-clicking the square to reveal the content.
  • If a square is successfully opened without containing a mine, it shows a number. The number indicates the number of mines that exist in the eight squares touching the square the number was in.
  • Right-clicking the square, a flag appears over the square. Right-clicking again to remove the flag.
  • The game of minesweeper is won at the point when all squares that are not mines are clicked open.
  • The game of minesweeper is lost there is any inaccuracy in the flagging around the number or a square that the player clicks open contains a mine.
  • Clicking the smiling face to restart the game.

Sample Minesweeper play

Built With

Recreating the old Microsoft Minesweeper with HTML, CSS, JavaScript and jQuery.

Installing

Download the files and open minesweeper.html in a browser.

To-do list

  • Improve the user experience of clicking squares (timeout for mouseup, change CSS for clicked squares, etc.)
  • Add mine countdown and timer from original game
  • Experiment with Bootstrap?
  • Add server-side component for high scores, use Node.js?
  • Obscure square status from the HTML

License

This project is licensed under the terms of the GNU General Public License.

minesweeper's People

Contributors

dippedrusk avatar betty920huang 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.