dimanche 26 avril 2015

Conway's Game of Life in Python

i'm doing the Game of Life by John Conway and I have been trying for SO long to do this but it keeps giving me this error:

if matrix[i+1][j] == 1:

IndexError: list index out of range

I don't know what's wrong with it, normally m[i+1][j] works for finding the specific position I'm asking for, please someone help me!

Aucun commentaire:

Enregistrer un commentaire