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:
- This project was bootstrapped with Create React App.
- Used the canonical React tutorial as a starting point. https://facebook.github.io/react/tutorial/tutorial.html
- Uses github as a backup
- Don't use anchor with href="#', convert to button
- Uses underscores to indicate privacy, just by convention
- Didn't have a file per class, as is usually the case
- Uses brute force for sending messages to surrounding squares
- Uses eslint
Illustrates:
- Use of apply and bind, where appropriate
- Use of state and props, hopefully correctly
- Uses google font, roboto
- Uses react refs
- Use of js apply and bind
- Uses lodash (once)
TODO:
- Use jscs
- Add some data feed
- Add cool animations, similar to what was in the original minesweeper
- How do I know I've finished?