On 5/25/07, Matt Smith <[EMAIL PROTECTED]> wrote:
> def update_matrix(matrix):
> matrix_updated = matrix
That line assigns the name matrix_updated to the same list-of-lists as
matrix. Since lists are mutable objects, changing matrix_updated is
also changing matrix. What you need is to bind m
"Matt Smith" <[EMAIL PROTECTED]> wrote in
> re-written the function that applies the rules but it still doesn't
> return the expected result.
Care to tell us what you think it's doing wrong? Some
sample data maybe? A casual glance at the code looks
OK, but I haven't studied all the boundary
-Original Message-
>From: Matt Smith <[EMAIL PROTECTED]>
>Sent: May 25, 2007 4:31 PM
>To: Python Tutor
>Subject: [Tutor] Still having trouble with my game of life algorithm
>
>Hi,
>
>First of all, thanks to everyone who helped with my last post
>(http:
Hi,
First of all, thanks to everyone who helped with my last post
(http://mail.python.org/pipermail/tutor/2007-May/054360.html). I have
re-written the function that applies the rules but it still doesn't
return the expected result. I have been through it and corrected a
couple of bugs bet as far a