Langton's ant partial implement