Guest User

Untitled

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void main() {
  2. vor();
  3. nimmKornUndGehEinHoch();
  4. verschiebeBerg();
  5. }
  6.  
  7.  
  8. void nimmKornUndGehEinHoch() {
  9. while (kornDa()) {
  10. nimm();
  11. linksUm();
  12. vor();
  13. rechtsUm();
  14. vor(); }
  15. }
  16.  
  17.  
  18. void verschiebeBerg() {
  19. while (!kornDa()) {
  20. rechtsUm();
  21. vor();
  22. gib();
  23. linksUm();
  24. vor(); }
  25. }
  26.  
  27.  
  28. void rechtsUm() {
  29. linksUm();
  30. linksUm();
  31. linksUm();
  32. }
Add Comment
Please, Sign In to add comment