devaryanverma / guess-the-number Goto Github PK
View Code? Open in Web Editor NEWI have used React Native and JavaScript to make this app. As I have mentioned that this uses React Native so this app can work on both platforms Android as well as IOS. As you can predict from the title this app is about the guessing of the number. In this game user have to enter the number and then the opponent (i.e. computer) have to guess the number. It uses the random function to guess the user input. After each guess user guides the computer by telling whether the number is greater or lower than the guessed number and it adjust its range accordingly. It displays all the guessed numbers on the screen. If you try to be over smart and try to mislead the computer by putting wrong inputs, you will get the alert. At the end, it displays the game over screen which contains the number of guesses made by the computer.