// Example from R's conditional lecture (Lec #8) import java.awt.*; public class GoblinWorld extends BuggleWorld { public void run () { Buggle greenGoblin = new Buggle(); greenGoblin.setColor(Color.green); // steer the greenGoblin around the room so Spidy can follow int rows = this.rows; int cols = this.cols; greenGoblin.forward(4); greenGoblin.left(); greenGoblin.forward(2); greenGoblin.left(); greenGoblin.forward(); greenGoblin.right(); greenGoblin.forward(6); greenGoblin.right(); greenGoblin.forward(2); SuperWallHugger peterParker = new SuperWallHugger(); peterParker.tick64(); } }