Dice¶
🎯 Write a program that rolls two dice.
Write a class Dice that:
displays the image of a dice
changes the dice image a few times (as animation effect)
shows a random dice result
stores the result as an attribute
Write a program that creates two Dice objects. Re-roll both dice until they show the same number
Hints¶
for the graphics you can use
arcade.the function
time.sleep(x)waitsxsecondsUse the following image for the dice:
Translated with www.DeepL.com