From: Simon Krahnke Date: 2008-12-29T00:34:44+09:00 Subject: Re: New to Ruby: copying arrays? * John Park (11:50) schrieb: > Hi. First-time poster here. I've done some programming in Delphi > before (like 10 years ago), and I wanted to get back to programming as a > hobby. I've looked at several languages, and Ruby looked the funnest. > :) So here I am. Cool. > To store the board state, I decided to make an instance variable @board > which is a two-dimensional array of 9x9. And there would be several > methods that will manipulate the board. Why do you want to do that? A standard Sudoku consists of 81 cells that ordered in three different ways. Why prefer one order by your picking of coordinates? > Right now, the only workarounds I can think of are: 1) store the data in > one long one-dimensional array, That's what I did. mfg, simon .... l