1 of 6

Loops

By Bryce Summers

Nova ITP 100, Spring 2019

2 of 6

Control Flow

3 of 6

Infinite Loops

for(;;) while(True) while(1)

4 of 6

Game Loops: Finite Control flows

5 of 6

Conditionals and Finite Loops.

A Conditional is an expression that evaluates to a boolean value.

e.x. True, False, number < 1, variable1 == 3

Finite loops depend on conditionals that can be either True or False.

True means to continue looping.

False means to exit the loop.

6 of 6

Finite Loops