This is a Minesweeper clone based off of Windows 95/98 Minesweeper. It was made using React/Typescript as a project to learn Typescript. (Finished)
There are few problems with this clone:
-
Game loop is not performative because I made the mistake of using 'for' loops when rendering everything.
- On the topic of the game loop - the game does not look as it originally does (square board instead of a rectangular board.) due to how I'm rendering the board and using my
borderCheck()
andpArr8()
functions in the<Game />
component. I plan on changing this in the future to look as it did in the original.
- On the topic of the game loop - the game does not look as it originally does (square board instead of a rectangular board.) due to how I'm rendering the board and using my
-
State management could be better. Currently the state is stored in the
<Game />
component as one large object. I don't know if this is a bad idea or not, but it works. -
Small micro-issues with the UI. The buttons are not as interactive as they were in the original version. With a tweaking of CSS and the Dropdown TSX code, it can be changed.
- Clone repository into directory of your choice.
- (for package dependencies)
npm install
in installed directory. - From CLI, run
npm start
in installed directory.
- Finish
<Rules />
component - Update README.md
- Add animations and styling
- Update borderCheck() to enable board to be rectangular
- Add more difficulties