The rules of the game are as follows:
- The game board has 8x8 squares (initially, all represented by question marks)
- There are 8 diamonds hidden on the board, each diamond behind one of the squares
- When the user clicks on a square
- If the square was hiding a diamond, the diamond appears
- If the square was not a diamond, then an arrow appears, pointing towards the nearest diamond
- Otherwise, the square is opened, and blank
- The game ends when all diamonds are found. The user's score is the number of squares still left unturned.
To run the app, minimum required Node.js version is 12.4
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
If you have done the above steps correctly, you should see the below
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!