Programming with Alice - Assignment Example

Only on StudentShare

Extract of sample
Programming with Alice

Alice does not have primitive methods to perform front left leg up and front left leg down. It is therefore required that the code for this movement be designed. Elegant design requires that methods are kept from being too large. To maintain a small size for the methods, additional methods are added to do the small tasks. The following is done
A loop is implemented at the point where the mouse takes a step ahead of the mouse. This loop ensures that whenever the mouse takes a step the cat takes another step of the same magnitude so that the mouse is always one step ahead of the cat.
The next step is transforming the storyboard into program code. The first action of the storyboard is the mouse turns to see the cat. The first method is therefore turn to face. We use the turn to face to make the mouse turn to look in the direction of the cat. The next step is the cat taking one step away from the cat. We use the move away method.
Alice contains control statements that are vital in controlling movements. In the cat chase program the cat moves away from the cat while the cat moves towards the mouse. The control statement Do in order is used to tell Alice to first make the cat look at the mouse and the mouse move away from the cat.
Other actions must be done together. When the front right leg is up for example, the front left leg must be held down. To achieve this functionality Alice is told to Do this actions together through the DO together control statement.
To implement this program into Alice a scene must first be created. The initial scene is a room (Farooq, 2012). The intention of the cat is to catch the mouse. It should follow it while the mouse should always be one step ahead of the cat. We select the room scene and then a cat and a mouse.
The next stage is in the program code editor. The code that makes the program is written. In Alice the program code editor is at the bottom right of the main window. The instructions are edited in the area ...
Download paper


Alice is a 3D interactive animation environment that offers visual representation of a program state in an animated small world to support new programmers in constructing and debugging programs. This paper explains the process of developing an animation of a cat chasing a…
Author : rosalee68

Related Essays

Zemax EE Software and Programming.
11 pages (2761 words) Dissertation
Linear Programming essay
3 pages (753 words) Essay
C Programming
3 pages (753 words) Essay
Programming III ( Advanced )
3 pages (753 words) Assignment
Computing and Programming with MATLAB
4 pages (1004 words) Essay
1 pages (251 words) Essay
Individual Assignment
3 pages (753 words) Assignment
Got a tricky question? Receive an answer from students like you! Try us!