Share your repls and programming experiences
https://repl.it/@QuadeG1/Dice-RollerI built this last semester it can be used in place of dice for any board game!
wow nice I might just fork this!
dude NICE i needed this
I LOVE THIS THING MAN
Dude this is great
cool i guess
Best dice roller
This is the most useful program on this website!!!
I don't know how I could do anything without this code
this makes me a happy boi
Best Classroom in a highschool programming class ever!
@quadeg1: ur so good you could get scholarshipos!dsfjdsj!
this makes my jazz into S M O O T H J A Z Z
It breaks with 0 sides
@scottythepilot: Thanks! I'll fix that!
Would using an array to store the dice improve this?
@glendog: Good idea! can expand on that a little?
@quadeg1: I just mean to introduce new concepts for newer users.
So, something like this:
That's very basic to what your program does, but was just something quick to introduce the concept of lists/arrays.
@glendog: That's great! do you mind if I implement this in?
@quadeg1: Not at all :-)
i hope u win
Maybe try having it display the value of each dice, not just the sum of the all the dice.
This is really cool, and works well. Just one question: would it be possible to make it so that you could see the result of the individual die, as well as the result of them?
@geminisun: Working on it now! check my profile...
Try adding an error statement or print invalid input when someone enters something other than roll, instead of having the average from the last roll print. again.
@danielc5th: Got it!
This is lit!
It says sides is not defined on line 12
@quadeg1: You are giving sides a value inside a definition. You need to give it a value outside of a definition.
@danielc5th: currently editing :)
done fixing definition didn't work out :( colors did though ;)
@quadeg1: What part of it did't work out? Also, do you have to import anything to use the different colored text?
@danielc5th: creating a definition didn't and nope I used ANSI color codes
quad you're falling behind