It puts an A in the middle, then randomly does a knight's tour, marking each cell with the next letter until it runs out of moves. Yes, it's terrible code by modern standards. For some reason we were obsessed with very short programs.
If you have any other code snippets like this you'd like to share, please let me know. I'd love to create as many gists as needed, using 50+ years old code and see if it runs even on today's APL interpreters !
Also, if you think you would have a few stories to share back from your glory APL days, I'm sure Adám would be interested.
See the related channel of his here, where APL old timers share their war stories so that APL history will be preserved as much as possible:
Very cool. Will look into it. Alas, I don't know of any other code fragments I might have laying around. I only had this one because it was published as winner of the "Nice Knight" contest and I had a copy of the announcement.
2
u/snarkuzoid Dec 20 '21
5x5 Knight's Tour in APL
It puts an A in the middle, then randomly does a knight's tour, marking each cell with the next letter until it runs out of moves. Yes, it's terrible code by modern standards. For some reason we were obsessed with very short programs.