Вы находитесь на странице: 1из 1

Start

Input Ps restart

Roll Dice

Input dice
value (D)

New position (Pn)


Is Ps+D> 100 No Lx=value
=Ps + D
(where x is not
equal to y)

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)

End of Game Finish! Yes Is Pn = 100?

Ps = Pn

restart

Вам также может понравиться