Skip to content

HassanYosuf/NumGuesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

NumGuesser

About

Random Number Guesser generates a random number and asks the user to guess what the number is. If the user’s guess is higher than the random number, the code should display Too high. If the user’s guess is lower than the random number, the code should display Too low and tell the user that wheather the gussed number is too close or far.

Rules

1. If the guessed number is bigger than the actual number, the code will respond with the message that the guessed number is higher than the actual number.
2. If the guessed number is smaller than the actual number, the code will respond with the message that the guessed number is lower than the actual number.
2. If the guessed number is equal to the actual number or if the K trials are exhausted, the code will end with a suitable message.

Swing (GUI)

Swing is a GUI widget toolkit for Java. It is part of Oracle's Java Foundation Classes (JFC) – an API for providing a graphical user interface (GUI) for Java programs.

For more

https://www.geeksforgeeks.org/creating-frames-using-swings-java/

AWT(Abstract Window Toolkit)

It is a platform dependent API for creating Graphical User Interface (GUI) for java programs.

For more

https://www.javatpoint.com/java-awt