This is a simple guessing game app built using React Native, where the user picks a number between 1-100 and the phone guesses their number. The user tells the phone whether their number is higher or lower than the guess, and the phone keeps guessing until it correctly guesses the user's number. At the end of the game, the app displays a summary of all the guesses made, how many guesses were required to correctly guess the user's number, and allows the user to reset and play again.
To run this app locally, you must have the following installed:
- Node.js
- npm (Node Package Manager)
- Expo CLI (you can install it by running
npm install -g expo-cli
)
To clone and run this app locally, follow these steps:
- Clone this repo using
git clone git@github.com:jakeRPowell/numberGuessing.git
- Navigate to the project directory using
cd numberGuessing
- Install the required dependencies by running
npm install
- Start the app using
npm start
orexpo start
- Open the Expo app on your mobile device and scan the QR code generated by the Metro Bundler to open the app. Alternatively, you can run the app in an iOS or Android simulator.
Once the app is running, follow these steps to play the game:
- Enter a number between 1-100 in the input field and press "Guess".
- The phone will make a guess, and you must tell it whether your number is higher or lower than the guess.
- The phone will make subsequent guesses until it correctly guesses your number.
- Once the game is over, a summary of all the guesses made and the number of guesses required to correctly guess your number will be displayed.
- Press the "Reset" button to start a new game.
This app is licensed under the MIT License. See the LICENSE file for details.
This app was built using the tutorial by Maximilian Schwarzmüller on Udemy.