Alice Mini Task: Simple Programming

The learning objectives of this tutorial are:

  • Students can design a simple scenario using a combination of sequential and parallel actions, as well as simple loops
  • Students can implement their design using an appropriate combination of constructs.

Exercise 1


Create a new world using the space theme with a jump jet. In this exercise you will use “do in order” (sequential) and “do together” (parallel) constructs to move the jump jet.

  1. In my first method, use the move method from the JumpJet object to move the jump jet up 5 metres, then forward 40 metres.
  2. Modify your code so that the left and right jet engines are turned backwards ¼ of a revolution before the jet moves upwards. You should use a “do together” block to ensure that the two engines are turned at the same time.
  3. Modify your code so that the jet engines are turned to their starting positions before the jet moves forwards.

alice_space_scene

Exercise 2

Create a new world with a dinosaur (or other large animal that has a moveable jaw) and a second animal, such as a chicken. In this exercise you will get the dinosaur to turn to face the chicken, then say “Hello” to the chicken while moving its mouth at the same time.

  1. Write down a pseudo code design for the above scenario.
  2. Use the “Do together” and “Do in order” constructs to implement the above scenario.

Now modify your code, using a simple loop, so that the dinosaur opens and closes its mouth 2 times each time the dinosaur says something. You will need to change the duration for the jaw movement commands.