guess-my-number.mp4
This is a simple game that you have to guess the number that the computer has chosen. The computer will give you a hint whether the number you have chosen is higher or lower than the number that the computer has chosen. The game will end when you guess the number correctly.
- Teachin Pongmanee (NongFeen) ๐งช๐ป๐ชฒ
- Teeradon Numthong (custapq) ๐งช๐ป๐ค๐ท
- Noppakorn Kaewsalabnil (PunGrumpy) ๐ป๐จ๐ฉ
- Guess the number that the computer has chosen
- The computer will give you a hint whether the number you have chosen is higher or lower than the number that the computer has chosen
- Hint will be given in the form of a binary number
- The game will end when you guess the number correctly
- When you input the empty or string (5 times) it not include easter egg, it will go to rickroll on YouTube
- Easter egg for fun
Click to see Easter egg
-
For see answer
-
For show teacher picture and then you win
โ ๏ธ Case sensitive
- Java - Programming language
- Maven - Dependency management
- GitHub Actions - CI/CD
โโโโ .github
โ โโโโ workflows
โโโโ src
โ โโโโ main
โ โโโโ utility
โโโโ .gitignore
โโโโ pom.xml
โโโโ LICENSE
โโโโ README.md
- Java 19 or higher
- Maven 3.9.1 or higher
# Clone the repository
git clone https://github.com/PunGrumpy/guess-my-number.git
# Go to the project directory
cd guess-my-number
# Build the project
mvn clean package
# Run the program
java -jar target/guess-my-number-[version].jar
# If you want to run via Visual Studio Code (VSCode) you must package the project first and then run the program (mvn clean package)
-
If you have any problems, please open an issue or contact me directly on Discord (Grumpy#9760)
-
If error show like this
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:232) at main.MenuPanel.Render(MenuPanel.java:71) at main.MenuPanel.<init>(MenuPanel.java:37) at main.Game.<init>(Game.java:28) at main.MainClass.main(MainClass.java:6)
- You must package the project first and then run the program (mvn clean package)
-
Don't forget to add the version number in the jar file name
-
If you want to run via Visual Studio Code (VSCode) you must package the project first and then run the program (mvn clean package)
- Fork the project
- Create your feature branch (
git checkout -b feat/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feat/AmazingFeature
) - Open a pull request
You can create your own GUESS MY NUMBER
game for free without notifying me by forking this project under the following conditions:
- Don't use UI design from this project ๐จ
- Add credit for this project in your project ๐