/guess-my-number

Guess the mystery number ๐Ÿ”ฎ

Primary LanguageJavaOtherNOASSERTION

Guess My Number ๐Ÿ”ฎ

MIT License Java GitHub last commit KMITL

Analytics Contributions

Repobeats analytics image

Demo ๐ŸŽฅ

guess-my-number.mp4
Click to see image demo_1 demo_2 demo_3 demo_4 demo_5

About the project ๐Ÿ“–

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.

Author ๐Ÿ™‹โ€โ™‚๏ธ

Features ๐Ÿ“Œ

  • 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

The easter egg fill in guess field

  • cheat

    For see answer

  • I love Suntana

    For show teacher picture and then you win

    โš ๏ธ Case sensitive

Built with ๐Ÿ› 

Table of contents ๐ŸŒณ

โ”œโ”€โ”€โ”€ .github
โ”‚   โ””โ”€โ”€โ”€ workflows
โ”œโ”€โ”€โ”€ src
โ”‚   โ””โ”€โ”€โ”€ main
โ”‚   โ””โ”€โ”€โ”€ utility
โ”œโ”€โ”€โ”€ .gitignore
โ”œโ”€โ”€โ”€ pom.xml
โ”œโ”€โ”€โ”€ LICENSE
โ””โ”€โ”€โ”€ README.md

Pre-requisites ๐Ÿ“‹

Installation ๐Ÿ”ง

# 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)

Troubleshooting ๐Ÿž

  • 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)

Contributing ๐Ÿค

  1. Fork the project
  2. Create your feature branch (git checkout -b feat/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feat/AmazingFeature)
  5. 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 ๐Ÿ“–