I\'m currently making a Chutes and Ladders game for class. The win condition for this game is if a player lands on Square 100, they win. If they happen to go past 100, they stay
To break out of the inter for
loop when your WIN condition is met, you can use the keyword break. This will stop the loop processing regardless of the conditional on the for
loop.
Note however after breaking out, the program will still iterate around your while
loop until it's conditional done != true
is met.