Roll the dice
Solution
- Click on the button to generate three random numbers (1, 2, 3, 4, 5 or 6)
- Calculate and show the sum of all dices
- Show the images (assets/dice/dice-n.png) of the generated dices
Tip
When the page is loaded, the 3 dices are rolled automatically. The button (on the form) just serves as a way to "reload" the page via a GET or POST request to the same page.