3 Dice Game
This code is for a game that rolls
three dice.
If all three show the same
number you score 10 points and
if its just two you score 5 points
otherwise you lose 2 points.
, Flowchart
Start 3 X Terminate
Matches
?
Y
ROLL DICE Y = Continue
X = Terminate
3 Yes
Matches Mark + 5
? Refresh Page
No
2 Yes Mark + 3
Matches
?
No
Mark - 2
Display
Current
Mark
This code is for a game that rolls
three dice.
If all three show the same
number you score 10 points and
if its just two you score 5 points
otherwise you lose 2 points.
, Flowchart
Start 3 X Terminate
Matches
?
Y
ROLL DICE Y = Continue
X = Terminate
3 Yes
Matches Mark + 5
? Refresh Page
No
2 Yes Mark + 3
Matches
?
No
Mark - 2
Display
Current
Mark