An open API service indexing awesome lists of open source software.

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 ๐Ÿ”ฎ

Awesome Lists containing this project

README

          

# Guess My Number ๐Ÿ”ฎ

![MIT License](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)
![Java](https://img.shields.io/badge/Java-19.0.2-ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)
![GitHub last commit](https://img.shields.io/github/last-commit/PunGrumpy/java-game?style=for-the-badge)
![KMITL](https://img.shields.io/badge/KMITL-Computer%20Science-f04e25.svg?style=for-the-badge&logo=kmitl&logoColor=white)

## Analytics Contributions

![Repobeats analytics image](https://repobeats.axiom.co/api/embed/346fe41feedbdfed2587343c0c9fe074c8503063.svg)

## Demo ๐ŸŽฅ

[![Guess My Number Video](./.github/docs/guess-my-number-embed.png)](https://user-images.githubusercontent.com/108584943/226904279-15160393-91f1-4758-9bf4-433d96c60d21.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 ๐Ÿ™‹โ€โ™‚๏ธ

- [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 ๐Ÿ“–