Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. method main()
  2. {
  3. Jeroo RDK = new Jeroo(100);
  4. Jeroo KDR = new Jeroo(1,23,100);
  5. Jeroo DKR = new Jeroo(23,22,100);
  6. Jeroo KRD = new Jeroo(22,0,100);
  7. RDK.whole();
  8. RDK.hop();
  9. RDK.plant();
  10. KDR.turn(RIGHT);
  11. KDR.whole();
  12. DKR.turn(RIGHT);
  13. DKR.turn(RIGHT);
  14. DKR.whole();
  15. KRD.turn(RIGHT);
  16. KRD.turn(RIGHT);
  17. KRD.turn(RIGHT);
  18. KRD.whole();
  19. }
  20.  
  21.  
  22.  
  23. //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  24.  
  25. method side1()
  26. {
  27. plant();
  28. hop(1);
  29. plant();
  30. hop(1);
  31. plant();
  32. hop(1);
  33. plant();
  34. hop(1);
  35. plant();
  36. hop(1);
  37. plant();
  38. hop(1);
  39. plant();
  40. hop(1);
  41. plant();
  42. hop(1);
  43. plant();
  44. hop(1);
  45. plant();
  46. hop(1);
  47. plant();
  48. hop(1);
  49. plant();
  50.  
  51.  
  52. }
  53.  
  54.  
  55. method whole()
  56. {
  57. side1();
  58. side1();
  59.  
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement