A simple Java console app that simulates rolling one or more dice and displays each roll with fun ASCII-art visuals! The app also calculates the total of the rolled dice.
--
- Roll as many dice as you want.
- Randomized rolls using Java's
Random. - Beautiful ASCII art for dice faces π²
- Beginner-friendly Java code with clean structure.
- Displays total value of all dice rolled.
- Java 17 or higher
(usesRandom.nextInt(min, max)which is available in Java 17+)
- Clone the repo:
git clone https://github.com/MbalieP/JavaDiceRoller.git cd JavaDiceRoller
Compile the Java file:
bash Copy Edit javac RollingDice.java Run the app:
bash Copy Edit java RollingDice π§ What You'll Learn Reading input using Scanner
Generating random numbers
ASCII-art output in Java
Using loops, conditionals, and methods
β¨ Demo yaml Copy Edit Enter the number of dice you want to roll: 2
you rolled: 4
you rolled: 6
Total: 10 π€ Contributing Have improvements in mind? Fork the project, open a PR, or star it if you liked it!
π License MIT License β free for personal or educational use.
Made with β and π² by MbalieP
yaml Copy Edit
Paste that into your README.md, and youβre good to go! Let me know if you want a badge, logo, or gif demo added