Alice: Corral Three Horses

Look fors:
using methods with object parameters.
using if statements
method and variable naming.

World requires;
3 horses
3 fences -- use one of these fences as a gate.
At least 1 other object that you will make invisible,  you will use this object to have the horses move towards it.

When the world starts: 
three horse move towards the fence. 
They will stop about one or two meters from the fence.

Click on any one of the horses, 
the "gate will open"  
that one horse will move through the gate and go into the corral.  
The gate will close after the horse is in the corral.

Click on the gate, 
if there are horses outside of the corral
the gate will open 
all the horses outside of the corral will move through the gate and into the corral.
The gate will close after all the horses are in the corral.
else (all the horses are in the corral)
the gate will open and all the horses will leave the coral.

Make sure your program behaves correctly when:
one horse is clicked first, then the gate.
the gate if clicked first, then one of the horses.

Modifications:
Click on a horse in the correl and the horse will say “Come on in, the grass is greener”
Click on a horse in the correl when all the horses are in the correl and the horse will say “I do believe the grass is greener on the other side” 

Comments