Chapter 7 Notes
In many kinds of animations, especially simulations and games, some actions
happen again and again.
Example: Gallery games where targets appear randomly on screen and
then disappear only to appear elsewhere in the scene.
Variables and Inheritance
A class defines
properties for its own
kind of object.
When an object is
it receives its own set
Each property stores
information about the
Chapter Two: Robot Example
How to Create an Initial World
Step One: Design
Decide on the problem to be solved
Design a solution
We will use a storyboard design technique, commonly used in the film
The scenario is:
Chapter Three: Putting the Pieces Together
Putting Pieces Together
A major part of learning how to program is figuring out how to "put together the
pieces" that compose a program.
putting together the pieces of a puzzle
The purpose of this ses
Chapter One Introduction to Alice Programming
What is Alice?
A modern programming tool
3-D models of objects
Objects can be made to move around the virtual world (a video game or
simulation implemented in 3-D)
Use the software
Chapter Ten Notes: Variables and Inheritance
New variables can be added to the properties list of an object.
The new variable is class-level
The value of the variable can be changed
We say the variable is mutable.
This extends t
Chapter Six: Tips & Techniques 6 Random Numbers and Random Motion
Random numbers are used in certain kinds of computer programs
security for web applications
encryption for satellite transmissions
Chapter Nine: Lists
In some animations, several objects must perform the same actions
A marching band, where the band members are performing the
same marching steps.
In such situations, it is convenient to collect all the objects
Chapter Four: Classes, Objects, and World-level Methods
As you become more skilled in writing programs, you will find that programs
quickly increase to many, many lines of code.
Games and other "real world" software applications can have
Control of Flow
Control of flow - how the sequence of actions in a program is controlled.
What action happens first, what happens next, and then what happens
and so on.
In movie-style programs (Chapters 1-4) the sequence of actions is
Chapter 8 Notes
A second form of recursion
A second form of recursion is used when the solution to a problem depends on the
ability to break a problem down into smaller and smaller sub-problems.
Let's look at an example
The challenge is to move
Chapter 8 Notes: Recursion
In some situations, we dont know exactly how many times a block of instructions
should be repeated.
All we know is that repetition is needed
For example, in a board game like chess or checkers, we dont know
IS320 ADVANCED BUSINESS AP PLICATIONS
A database models the logic of an organization's operation.
Must study the organization