From: Josef 'Jupp' SCHUGT Date: 2003-12-04T22:47:07+09:00 Subject: Re: New to ruby--trouble with initializing arrays Hi! * Robert Klemme; 2003-12-03, 19:24 UTC: > > "Josef 'Jupp' SCHUGT" schrieb im Newsbeitrag > news:20031203004859.GC893@jupp%gmx.de... > > > > If you now store them one after another going one to the right/left > > when assuming 0 and 5 are neighbors and current position is n results > > in (n +/- 1) modulo 6. For the row the same works - with the only > > difference that the result of the operation must be multiplied by the > > distance of the chunks representing a whole row (6 in this case). > > I don't fully understand what you mean by "not as sophisticated as it > seems" since it does exactly what you describe. (Look into the pos() > method) > > Now, did I or did you get something wrong? :-) Perhaps the meaning of 'sophisticated' :-> In German the word means 'ausgekluegelt, raffiniert'. And that does not apply. Not that I am saying the implementation is trivial but if one knows how most programming languages store their data and is used to OOP it is a straightforward implementation. It is advanced but sophisticated it is not. IMHO 'that is sophisticated' is nothing very positive when said of code because in most cases it means 'I understand how that algorithm works but it took me a lot of time to get there'. Josef 'Jupp' Schugt -- for i in $(seq 1 9); do rm /bin/cat done