Question: Conway's Game of Life, Array problems

I'm trying to model Conway's game of Life and I keep running into the same error mesage. I've narrowed the problem down to this line of code

S0 := [[0,0,0,0],[0,1,1,0],[0,1,1,0],[0,0,0,0]];
X:= Array(0..n-1,0..n-1,S0)

Error, bad index into Array

I don't know what this error message is or why I'm getting it, any help would be appreaciated.

Please Wait...