I designed and developed Wu's Castle to focus on student learning objectives. 
The design process included cognitive think alouds, as well as several rounds of quantitative assessment. 

Arrays and For Loops

Student walking through code:

Walking through a nested for loop

Finally, students work using nested for loops and 2D arrays:

2D Arrays and Nested For Loops