My_Alice_World_assignment_4

Created by Jared Madrazo

You need to download Java software in order to view this Alice world. Please visit this page: http://www.alice.org/applet/requirements/

Created with Alice, the easy-to-learn programming system. Provided free as a public service by Carnegie Mellon University


If you don't see 3d graphics on this page, click for help.

My_Alice_World_assignment_4's Code

Created by:

world

Events

When the world starts
Do:
world.my first method


Methods

  world.my first method ( )
    is open = true
       Do in order
       cowboy say can I borrow some money from the bank? duration = 2 seconds
  Wait 3 seconds
  Do together
       sheriff say no way jose! duration = 2 seconds
  sheriff.shakehead yesorno = no
  cowboy say can I jump up and down for some money? duration = 2 seconds
  Do together
       sheriff say yes, ill tell you what...if you can jump three times without bending your legs ill give you some money duration = 5 seconds
  sheriff.shakehead yesorno = yes
  cowboy say Ok, I think I can do that duration = 2 seconds
  Loop 3 times times
       cowboy say yipee
  cowboy.cowboyjump
  While true
       Do together
       cowboy turn to face saloon
  cowboy say im going to get my money! duration = 2 seconds
  sheriff say unfortunately you have earned the money, lets go duration = 2 seconds