Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- vor();
- nimmKornUndGehEinHoch();
- verschiebeBerg();
- }
- void nimmKornUndGehEinHoch() {
- while (kornDa()) {
- nimm();
- linksUm();
- vor();
- rechtsUm();
- vor(); }
- }
- void verschiebeBerg() {
- while (!kornDa()) {
- rechtsUm();
- vor();
- gib();
- linksUm();
- vor(); }
- }
- void rechtsUm() {
- linksUm();
- linksUm();
- linksUm();
- }
Add Comment
Please, Sign In to add comment