> > def continent_size world, x, y > > if world[y][x] != ' land' > > # Either it' s water or we already > > # counted it, but either way, we don' t > > # want to count it now. > > return 0 > > end > > : > > world[y][x] = ' counted land' > > The world is changed. When ' land' is counted, it turns into ' counted > land' so on iteration, the "if" sees that it is not land and returns 0. > > -- > Posted via http://www.ruby-forum.com/. Appreciate the pointer, thanks for bearing with me :) Why has the author reversed the "X" and "Y"? on a square world it would not matter, but... Was there any significance to this? Thanks again! jlc