Coders Packet

Number Guessing Game using Java Swing

By Khushi Jain

A simple interactive random number guessing project designed using Java Swing and AWT.

In this project, the computer generates a random number between 1-100. We have to keep guessing the number until we find the computer's number. 

Each time we guess the wrong number, the computer will tell us whether the number is lower or higher than the random number generated by the computer.

If we succeeded in guessing the number, it will generate a congratulating message.

Also, it will display our best score and total number of guesses as well.

This project is developed using Java Swing and AWT.

Platform Required: IntelliJ IDEA

The output of the program will look like this:

Download Complete Code


No comments yet