Coders Packet

Number Guessing Game Using Java

By Swati

  • .project
  • main.java
  • main.class
  • .classpath
  • This project is about a number guessing game in which user will get three trials to guess a randomly generated number.

    This project is about a Number Guessing Game using Java. In this game a random number is generated using Math.random() function.                       

    If number matches the guessed number an appropriate message is displayed.

    If number is greater than the guessed number then a message:"Number is greater than guessed number" will be displayed.                                            If number is less than the guessed number then a message:"Number is less than guessed number" will be displayed.                                                      Finally, if the number doesn't match the guessed number even after the three trials then the game will end. 

    Download Complete Code

    Comments

    No comments yet