From: Warren Brown Date: 2004-09-24T06:34:19+09:00 Subject: Re: Newbie: Case statement Graham, You can save yourself an enormous number of headaches by simply adding two more rows and columns to your array. For example, if you wanted the world to be 80x24, make your array 82x26 and then make your loops from 1..80 and 1..24. That way you can safely reference cell[x-1][y-1] and cell[x+1][y+1] and you don't need all of your special cases. - Warren Brown