Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/padraigfl/pb-minesweeper
super quick and simple Windows 95 Minesweeper as a React component
https://github.com/padraigfl/pb-minesweeper
minesweeper react react-component windows-95
Last synced: about 1 month ago
JSON representation
super quick and simple Windows 95 Minesweeper as a React component
- Host: GitHub
- URL: https://github.com/padraigfl/pb-minesweeper
- Owner: padraigfl
- Created: 2019-09-08T17:36:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:26:59.000Z (about 2 years ago)
- Last Synced: 2024-10-27T23:35:56.450Z (3 months ago)
- Topics: minesweeper, react, react-component, windows-95
- Language: JavaScript
- Size: 2.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minesweeper
Was the first thing everyone kept checking on that site and I was bored, so I've thrown together a version of minesweeper and I'll build on it some.
Image assets taken directly from [ShizukuIchi](https://github.com/ShizukuIchi)'s pretty great Windows XP project at https://github.com/ShizukuIchi/winXP/tree/master/src/assets/minesweeper
So this is a pretty quickly cobbled together minesweeper clone which can hopefully just be dumped into whatever project at a fairly small size (:fingers-crossed:). I haven't even checked how closely it resembles the original minesweeper but you can probably assume most people won't care beyond clicking on it a few times.
## Props
| Name | Type | Default | Description |
| -------- | ---------------- | ------- | ----------------------- |
| gridSize | [number, number] | [9,9] | Size of grid |
| mines | number | 10 | Number of mines on grid |
| | | | |To restart games from outside the component I suggest using the `key` prop on the component.