Assignment 1 for COMP307 (AI) at vuw.ac.nz.