JoC #6: Adding random behaviour

    The solution of every problem is another problem.
          — Goethe

Setting off on our path to create a little computer game, today we look into random behaviour. Random events are, of course, very important for games. If everything were entirely predictable, many games would be boring.

So, sit back and watch to see how we get Trick the Turtle to stagger around randomly.

Download video

And now do it yourself!

Concepts discussedif statement, random numbers, Greenfoot API documentation

5 thoughts on “JoC #6: Adding random behaviour

  1. Pingback: Joy Of Code #6 – Random Behaviour - Compu2Learn

  2. (FYI)The video for Joy of Code #6 stopped near the end before explaining how to turn the turtle randomly to the left.

    This tutorial series is, in my opinion, awesome.

Leave a Reply

Your email address will not be published. Required fields are marked *