A simple React Native retake on the classic Minesweeper board game
- Android : fully tested on simulator and device
- IOS : fully tested on simulator
- Install
npm - Install the requirement :
npm install - Launch a dev version with expo by
npm run start - Build a package to deploy on android by
expo build:androidor ios byexpo build:ios
- It's a retake on the Minesweeper game, where the goal is to guess the location of randomly placed mines by using clues about the number of neighboring mines in each cell
- To reveal a cell, you should just press on it
- To flag a cell as a potential mine, you should long press on it
- Entry point :
App.jscontains the main settings for a game, and handles the GameOver PopUp - Board Component:
./src/components/Board.jscontains the main logic for handling presses/long presses, it's initial state is generated from./src/utils/utilsBoard.jsand check at every move winning and losing conditions - Cell Component:
./src/components/Cell.jscontains the main display logic for each cell, it's fragmented in order to be able to change what to display easily