Snakes and Ladders Flowchart
Snakes and Ladders Flowchart
Snakes and Ladders Flowchart
Input Ps restart
Roll Dice
Input dice
value (D)
Yes
Is there a Pn = LPn
New position (Pn)
bottom part of Yes (Set new position
= 200-(Ps+D)
a ladder? as value of LPn)
No
Pn = SPn
Is there a
Yes (Set new position
snake head?
as value of SPn)
No Sy=value
(where y is not
equal to x)
Ps = Pn
restart