This project presents a number guessing game implemented using a
PIC microcontroller. When the program starts, the system generates a
random number between 1 and 1000. The user is given 15 attempts to
guess the selected number using a keypad. If the guess is correct, the
system displays the message “Get It” and the program terminates. If
the guess is incorrect, the system indicates whether the correct
number is greater or smaller than the entered value. The process
continues until the correct number is guessed or all attempts are
exhausted. If the user fails to guess the number within the allowed
attempts, the system displays “Lose” and ends the program.