Kara läuft solange gerade aus, bis rechts und links von ihm ein Baum ist.
public void myProgram() { while (! (kara.treeLeft() && kara.treeRight())) { kara.move(); } }