Skip to content

Latest commit

 

History

History
133 lines (100 loc) · 4.9 KB

File metadata and controls

133 lines (100 loc) · 4.9 KB

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 📖