Thank you so much for your post. It helps a lot.
p.s: dices have 6 sides I think!!
import random # Not recommended def roll_dice(): return random.randint(0, 4) # what is 4 supposed to represent? # Recommended DICE_SIDES = 4 def roll_dice(): return random.randint(0, DICE_SIDES)
Ever played ttrpg’s? Dices can have 4, 6, 8, 10, 12, 20, and 100 sides. Polyhedral dice sets. So to me it did make sense.
“Dices” is not a word. Dice is already plural, referring to more than one cube. Die is the word to represent one cube.
Btw Good article, the point was well made.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you so much for your post. It helps a lot.
p.s: dices have 6 sides I think!!
Ever played ttrpg’s?
Dices can have
4, 6, 8, 10, 12, 20, and 100 sides.
Polyhedral dice sets. So to me it did make sense.
“Dices” is not a word. Dice is already plural, referring to more than one cube. Die is the word to represent one cube.
Btw Good article, the point was well made.