Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎲 JavaDiceRoller

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.

--

πŸ’‘ Features

  • 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.

πŸ› οΈ Requirements

  • Java 17 or higher
    (uses Random.nextInt(min, max) which is available in Java 17+)

πŸš€ How to Run

  1. 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

About

A beginner-friendly Java console application that simulates rolling one or more dice with visual ASCII-art representation. Perfect for practicing loops, conditionals, random numbers, and user input!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages