Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- method main()
- {
- Jeroo RDK = new Jeroo(100);
- Jeroo KDR = new Jeroo(1,23,100);
- Jeroo DKR = new Jeroo(23,22,100);
- Jeroo KRD = new Jeroo(22,0,100);
- RDK.whole();
- RDK.hop();
- RDK.plant();
- KDR.turn(RIGHT);
- KDR.whole();
- DKR.turn(RIGHT);
- DKR.turn(RIGHT);
- DKR.whole();
- KRD.turn(RIGHT);
- KRD.turn(RIGHT);
- KRD.turn(RIGHT);
- KRD.whole();
- }
- //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- method side1()
- {
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- hop(1);
- plant();
- }
- method whole()
- {
- side1();
- side1();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement