KarelContest
Retired DISLab
/* * File: KarelContest.java * ----------------------- * This file is the starter file for your Karel Contest entry. * Feel free to change the name of this file (and the corresponding * class name) to something more descriptive. */ import stanford.karel.*; public class KarelContest extends SuperKarel { // You fill in this part // Note: This is an unfortunate hack to correct a // shortfall in our new Eclipse plugin. Don't worry // about (you won't be tested on it and aren't expected // to understand what's going on). However, don't // delete it, or you won't be able to run your Karel // program. public static void main(String[] args) { String[] newArgs = new String[args.length + 1]; System.arraycopy(args, 0, newArgs, 0, args.length); newArgs[args.length] = "code=" + new SecurityManager() { public String className() { return this.getClassContext()[1].getCanonicalName(); } }.className(); SuperKarel.main(newArgs); } }