https://github.com/pungrumpy/guess-my-number
Guess the mystery number ๐ฎ
https://github.com/pungrumpy/guess-my-number
game java kmitl
Last synced: 14 days ago
JSON representation
Guess the mystery number ๐ฎ
- Host: GitHub
- URL: https://github.com/pungrumpy/guess-my-number
- Owner: PunGrumpy
- License: other
- Created: 2023-02-13T03:21:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-25T11:27:24.000Z (over 2 years ago)
- Last Synced: 2025-01-27T06:32:16.632Z (over 1 year ago)
- Topics: game, java, kmitl
- Language: Java
- Homepage:
- Size: 7.05 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Guess My Number ๐ฎ




## Analytics Contributions

## Demo ๐ฅ
[](https://user-images.githubusercontent.com/108584943/226904279-15160393-91f1-4758-9bf4-433d96c60d21.mp4)
Click to see image

## 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 ๐โโ๏ธ
- [Teachin Pongmanee (NongFeen)](https://github.com/NongFeen) ๐งช๐ป๐ชฒ
- [Teeradon Numthong (custapq)](https://github.com/custapq) ๐งช๐ป๐ค๐ท
- [Noppakorn Kaewsalabnil (PunGrumpy)](https://github.com/PunGrumpy) ๐ป๐จ๐ฉ
## Features ๐
- [x] Guess the number that the computer has chosen
- [x] 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
- [x] Hint will be given in the form of a binary number
- [x] The game will end when you guess the number correctly
- [x] When you input the empty or string (5 times) it not include easter egg, it will go to rickroll on YouTube
- [x] 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 ๐
- [Java](https://www.java.com/en/) - Programming language
- [Maven](https://maven.apache.org/) - Dependency management
- [GitHub Actions](https://github.com/features/actions) - CI/CD
## Table of contents ๐ณ
```bash
โโโโ .github
โ โโโโ workflows
โโโโ src
โ โโโโ main
โ โโโโ utility
โโโโ .gitignore
โโโโ pom.xml
โโโโ LICENSE
โโโโ README.md
```
## Pre-requisites ๐
- [Java 19](https://www.oracle.com/java/technologies/downloads/) or higher
- [Maven 3.9.1](https://maven.apache.org/download.cgi) or higher
## Installation ๐ง
```bash
# 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 ๐
- [x] If you have any problems, please open an issue or contact me directly on Discord (Grumpy#9760)
- [x] If error show like this
```bash
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
at java.desktop/javax.swing.ImageIcon.(ImageIcon.java:232)
at main.MenuPanel.Render(MenuPanel.java:71)
at main.MenuPanel.(MenuPanel.java:37)
at main.Game.(Game.java:28)
at main.MainClass.main(MainClass.java:6)
```
- [x] You must package the project first and then run the program (mvn clean package)
- [x] Don't forget to add the version number in the jar file name
- [x] 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 ๐