This afternoon, Class 3 were set a challenge that would use all of their coding knowledge so far!
Miss Brown asked them to write an algorithm that made;
- Continually swim from right to left across the top of the screen
- After 5 seconds, an octopus to appear and swim across to the right and stop when it reaches the edge
- When the octopus stops, a shark to appear and swim towards it
- When the shark touches the octopus, the octopus to disappear and the shark to stop
Click on the images below to watch some of our animations.
Writing codes involves many steps and differing coding blocks. Take a look at the example below!