Coder Social home page Coder Social logo

ehiggins98 / minesweeper-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from j3productions/minesweeper-js

0.0 2.0 0.0 11.48 MB

EECS 448 Project 2 Making a better Minesweeper.

Home Page: https://ehiggins98.github.io/minesweeper-js/

License: MIT License

JavaScript 80.63% CSS 7.93% HTML 11.44%

minesweeper-js's Introduction

Minesweeper-js

EECS 448 Project 2

To play the game, enter a number between 2 and 45 for the dimensions of your Minesweeper board, and then enter how many mines you want on the board (between 1 and 1 less than the total number of tiles on the board) and click "Start". Then, to reveal a space, left-click on it. To flag a space, right-click on it (and right-click again to un-flag it). Once all the mines have been flagged, you win the game. But if you reveal a mine, the game is over. You may change the board dimensions and mine count at any time and click "Restart" to start a new game.

Authors

J3 Productions - Jielong Cong, Jacob Parnell, Jason Purinton

Black Panthas - Eric Higgins, Zak Kulphongpatana, Josh High

Codebase Structure

  • interact.js - The only class file that interacts with index.html. Contains methods for form input processing, generating a board, and for left and right clicks. Interfaces only with Board object.
  • board.js - The class file that stores all game board methods and variables. Responsible for creating the board, planting the mines and adjacent numbers, and revealing/flagging tiles. Interfaces with Tile object.
  • tile.js - The class file that stores info for one tile of the game board. Stores adjacent number info, status as a mine and whether it has been flagged and/or revealed or not. Interfaces with no other class.

Works Cited

  • Bootstrap 4.1.3 Front-end framework used to create web interface. index.html:13, 119
  • ESDoc 1.1.0 Documentation software used.
  • HTML5 Boilerplate 6.1.0 Basic front-end template used to create index.html and main.css (also includes plugins.js). index.html; css/main.css; js/plugins.js
  • jQuery 3.3.1 Javascript library, required by Bootstrap. index.html:117, 120; js/vendor/jquery-3.3.1.min.js
  • Modernizr 3.6.0 Javascript library to optimize web interface, included as part of HTML5 Boilerplate. index.html:116; js/vendor/modernizr-3.6.0.min.js
  • Normalize.css 8.0.0 CSS file to render web interface consistently across all devices, included as part of HTML5 Boilerplate. index.html:14; css/normalize.css
  • Popper.js 1.14.3 Javascript library required for popovers in Bootstrap. index.html:118

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.