A number guessing game built by React Native where the player chooses a number, and let the computer guesses that number. The guesses will then be displayed at the end of the game.
- Make sure you have
node.js
installed sudo npm install expo-cli --global
to install Expo's command line interface globallycd
into your project's folder, andnpm i
to install the required packages and dependencies- Make sure you have Android Studio & Xcode set up for Android & iOS virtual devices debugging
- Make sure you have Expo app downloaded from the App Store / Google Play Store for debugging on the physical device
npm start
to launch Expo's client server, you can either click onLaunch on Android Studio
,Launch iOS simulator
or use your phone's camera to scan the QR code to build the app
Welcome to Number Guesser!
Pick a number, and the computer will guess your number!
The times of computer's guesses will be recorded, and an end-of-game screen will show.
If you did not provide any number, an alert will pop up, and show you the range.
You can clear the input number if you wish to change it.
If you lie to the computer of the number, a prompt will show you not to lie!
This project used ReactJs, React Native, Expo, JavaScript and CSS.