void followTrees() { while (kara.treeRight()) { kara.move(); } } public void myProgram() { while (! kara.onLeaf()) { if (kara.treeFront()) { kara.turnLeft(); kara.move(); kara.turnRight(); kara.move(); followTrees(); kara.turnLeft(); kara.move(); kara.turnRight(); } else { kara.move(); } } kara.removeLeaf(); }
(24.09.2014)BlackT0rnado schrieb: Warum kommt es mir so vor das Süddeutsche nur am rummeckern sind ?