In class exercises

The in-class exercises in the course are usually just building blocks for the exercises I have set you now. You are considered to have done all the exercises (challenges) during the classes you attended.

Well done ! You passed that part of the class.

Game of life Exercise

The one major class assessment task that you need to hand in is from the Game of Life notebook.

I asked you to consider building a "robust" game of life code

Let's try to make a series of frames as images for a number of frames of the game of life. We could also try changing the parameters of the game to see what patterns develop.

  • What resolution can we reach ?
  • Can we work out ways to make this run faster ?
  • What if there is more than one happy state where new cells grow ?

I also asked you to write some simple tests based on the known states of the game of life

  • stationary configurations
  • oscillators
  • translators

(See the following link: Game of Life for explanations of the above states, alternative rules, complicated repeating patterns.

Finally I also asked you to consider what is taking the time in the code. How well does it scale to bigger arrays ? Can you see any obvious improvements to the logic that might give better speed ?


In [ ]: