Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #50919

Re: Rosetta Code: Zig-zag matrix

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.forth
Subject Re: Rosetta Code: Zig-zag matrix
Date 2016-09-12 14:15 -0700
Organization A noiseless patient Spider
Message-ID <87poo8g6q2.fsf@jester.gateway.pace.com> (permalink)
References <nr558f$3l8$1@dont-email.me> <87oa3thfmd.fsf@jester.gateway.pace.com> <nr64qr$jbm$1@cherry.spenarnc.xs4all.nl> <87y42wg9mn.fsf@jester.gateway.pace.com> <nr73ne$n1g$1@cherry.spenarnc.xs4all.nl>

Show all headers | View raw


albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) writes:
> I don't want to see WJ's code, but I can't appreciate your code
> unless I know what problem is supposedly solved.

If you look at that matrix, the upper left entry is 0, then 1 is
adjacent to it, then 2 is diagonally adjacent to the 1, and if you
follow the path through 3,4,...143 it takes a zig-zag pattern through
the 12x12 square.  Not exactly a thesis project.  

Also, it's a Rosetta problem: http://rosettacode.org/wiki/Zig-zag_matrix

and it looks like someone has already put a Forth solution there.

It would be nice if the Rosetta tasks were numbered like Euler problems.

Back to comp.lang.forth | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Rosetta Code: Zig-zag matrix "WJ" <w_a_x_man@yahoo.com> - 2016-09-12 02:52 +0000
  Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-11 22:05 -0700
    Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 13:50 +0200
      Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 13:12 -0700
        Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 22:38 +0200
          Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 14:15 -0700

csiph-web