This Java console application provides functionalities related to the Powerball lottery game. It pulls Powerball drawing data since 2020 (due to new options per PowerBall) and offers features to print drawings, calculate the most occurring white balls and Powerball, and generate a combination that has never been drawn before.
- Pull Powerball Drawings: Fetches Powerball drawings from 2020 onwards.
- Print Drawings: Displays all the Powerball drawings.
- Calculate Most Occurring Balls: Identifies the most frequently drawn white balls and the Powerball.
- Generate Unique Combination: Creates a combination of numbers that has never been drawn in the previous drawings.
- Java 11 or higher
- Internet connection (for fetching drawing data)
- Clone the repository:
git clone https://github.com/yourusername/powerball-console-app.git
- Navigate to the project dist directory:
cd dist
- Run the application:
java -jar PB_Console.jar
Once the application is running, you will be presented with a menu of options:
- Print Drawings: Print all Powerball drawings since 2020.
- Calculate Most Occurring Balls: Calculate and display the most frequently drawn white balls and the Powerball.
- Generate Unique Combination: Generate a new combination of numbers that has never been drawn before.
- Exit: Exit the application.
Follow the on-screen instructions to navigate through the menu and utilize the application's features.
Here's an example of the output for each feature:
- Date: 2024-06-29T00:00:00 Combo: 26 51 54 61 69 25
- Date: 2024-07-01T00:00:00 Combo: 05 09 32 39 55 09
- Date: 2024-07-03T00:00:00 Combo: 02 26 33 55 57 22
- Ball: 1, Occurrences: 124
- Ball: 2, Occurrences: 123
- Ball: 3, Occurrences: 130
- Ball: 1, Occurrences: 56
- Ball: 2, Occurrences: 53
- Ball: 3, Occurrences: 54
- Combo - 3 29 48 51 59 25
Contributions are welcome! Please feel free to submit a Pull Request.
If you have any questions or suggestions, please open an issue or contact Stephen Blevins.