AP CSA FRQ Guide

2014 FRQ 2: Director

Write a legacy GridWorld actor that alternates color and, on one color state, turns neighboring actors before acting.

Legacy GridWorld Actor22 minute targetGridWorldstateobjectslegacy

Skills Tested

What this FRQ is really practicing

GridWorldstateobjectslegacy

Treat these skills as the study checklist. If any tag feels shaky, review that topic before attempting the full written response.

Starter Approach

How to begin without copying a solution

  1. 1Initialize the actor with the required starting color.
  2. 2When acting from the active color state, rotate neighboring actors.
  3. 3Alternate color each time act is called.

Write a first attempt before revealing any solution outline. Most AP CSA FRQ progress comes from tracing your own code and finding the missing case.

Common Mistakes

Mistakes to watch for while writing

Turning neighbors on the wrong color state.
Forgetting to alternate color after acting.
Changing the Director direction instead of neighboring actors.

Self Check

Review questions before you submit

Declares Director as the required GridWorld type.

This is a legacy GridWorld archive prompt.

Initializes the starting color.

Use the color named in the prompt.

Processes neighboring actors.

Use GridWorld neighbor-location or neighbor-actor helpers.

Turns affected actors 90 degrees right.

Add Location.RIGHT or 90 degrees to the direction.

Practice Links

Where to go next