Giter Site home page Giter Site logo

minesweeper's Introduction

Hi, I would have liked to have got further with this, but there's actually a fair bit to it.

The styling isn't complete, so you can't really tell how close you got to completion.

As it stands, you can only lose, it never tells you when you've won.

It can be a bit slow when clearing areas, depending on how big the area is, and its shape.

To run:

npm install
npm run build-css
npm start

To deploy on github pages:

npm run deploy

Points:

  1. This project was bootstrapped with Create React App.
  2. Used the canonical React tutorial as a starting point. https://facebook.github.io/react/tutorial/tutorial.html
  3. Uses github as a backup
  4. Don't use anchor with href="#', convert to button
  5. Uses underscores to indicate privacy, just by convention
  6. Didn't have a file per class, as is usually the case
  7. Uses brute force for sending messages to surrounding squares
  8. Uses eslint

Illustrates:

  1. Use of apply and bind, where appropriate
  2. Use of state and props, hopefully correctly
  3. Uses google font, roboto
  4. Uses react refs
  5. Use of js apply and bind
  6. Uses lodash (once)

TODO:

  1. Use jscs
  2. Add some data feed
  3. Add cool animations, similar to what was in the original minesweeper
  4. How do I know I've finished?

minesweeper's People

Contributors

andrew-oxenburgh avatar

Watchers

James Cloos avatar  avatar  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.