Research Blog‎ > ‎

CodeSpells Study has Started!

posted Feb 6, 2014, 8:57 PM by Sarah Guthals
On Monday me and my CodeSpells team start our study at Notre Dame Academy. 

It was really great! It was kind of interesting, because I gave the students a pre-test and I did not expect them to get the answers right at all...the interesting part that I never expected? What they did answer:

Test:

1  import june.*;  

2  import java.util.*;

3

4  public class MysterySpell extends Spell

5  {

6 public void cast()

7 {

8 Enchanted target = getTarget();

9 int counter = 0;

10 while(counter < 10)

11 {

12 target.move(Direction.up(), 0.1);

13 counter = counter + 1;

14 }

15 }

16  }


What do you think this spell does?


Why?


What do you think line 8 does?


What do you think lines 10-14 do?


Types of Responses:

What do you think line 8 does?

Gets a target from an Enchanted Target Store

What do you think lines 10-14 do?

Goes to the counter and checks out with the cashier


I love it!!!

Comments