CompSci 190
Fall 2022
Programming Games
FOCUS Section

Nested Loop Practice

In these practice exercises, you will use nested loops to create different patterns of Sprites within the game window.

Getting Started

Patterns

Complete the following patterns using nested loops (one loop indented inside another), such that the number of shapes that appear in the window can be changed by changing the two variables NUM_ROWS and NUM_COLUMNS defined at the top of the program.

The given starter code creates the list for you, handles drawing the shapes, and switches between the patterns based on key presses. Comments in the given code give more information about the patterns to create.

Here is a video going over the given code.