class Dance { public static void main(String[] args) { Rink ballroom = new Rink(6, 6); new AppletFrame(ballroom); // again, ask me why you need this... Penguin p = new Penguin(); ballroom.add(p, 1, 4); p.pause(); p.turnLeft(); p.turnLeft(); p.moveForward(); // go left p.turnRight(); p.moveForward(); // go right p.turnLeft(); p.moveForward(); // go left p.turnRight(); p.moveForward(); // go right p.turnLeft(); p.moveForward(); // go left p.turnRight(); p.moveForward(); // go right // now stop, rotate once, stay some more p.pause(); p.turnRight(); p.pause(); // come south three tiles p.moveForward(); p.moveForward(); p.moveForward(); // stop and catch your breath p.pause(); // pirouette p.turnLeft(); p.turnLeft(); p.turnLeft(); p.turnLeft(); // stop, for applause p.pause(); // another pirouette, followed by immediate movement west p.turnRight(); p.turnRight(); p.turnRight(); p.turnRight(); p.turnRight(); p.moveForward(); p.moveForward(); p.moveForward(); // stop p.pause(); // turn left, then stop p.turnLeft(); p.pause(); // one final pirouette, after which just thank the audience p.turnLeft(); p.turnLeft(); p.turnLeft(); p.turnLeft(); p.happy(); // Don't worry(), be happy(). } }