diff --git a/2/IAW/exercises/php/dice.php b/2/IAW/exercises/php/dice.php index 854c206..ff5e152 100644 --- a/2/IAW/exercises/php/dice.php +++ b/2/IAW/exercises/php/dice.php @@ -9,14 +9,13 @@ $num_dice = rand(1,10); ?>

dados

$max) - $max = $rolls[$i]; + $roll = rand(1,6); + if($roll > $max) + $max = $roll; ?> - +