From: Mark Bush Date: 2008-03-01T03:41:33+09:00 Subject: Re: Beginner Help with code example from book Joseph L. Casale wrote: > Why has the author reversed the "X" and "Y"? on a square world it would > not matter, but... Was there any significance to this? Because of the way the world has been defined. The definition is visual and so it is natural to look at it and think of "x" as across and "y" as up and down. That means that "y" refers to the row and "x" as the item in the row. The world is an array of rows, so the row index comes first. Hence [y][x]. -- Posted via http://www.ruby-forum.com/.