Skip to main content

Timeline for Spiralize a Word, Triangularly!

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Dec 31, 2020 at 22:35 vote accept Jonah
Sep 3, 2020 at 12:27 comment added Jonah I would have bet against the possibility of any answer this short, even with Jelly. Well done!
Sep 3, 2020 at 12:06 comment added Kevin Cruijssen @Neil Yeah, sorry about that. I made 3 comments or so, and after that I discovered a bug which increased the byte-count by 1 again. I figured I'd just delete my comments instead of adding a fourth, since you would have still gotten the notification for those deleted comments. But in conclusion of those four now deleted comments: thanks for the suggestion, it saved 7 bytes. Funny how you've been inspired by my answer, and I've been inspired by yours in return. :)
Sep 3, 2020 at 11:31 comment added Neil (Ugh, I hate it when I click "show 2 more comments" and clicking it actually makes a comment disappear...)
Sep 3, 2020 at 10:26 history edited Kevin Cruijssen CC BY-SA 4.0
+1 as bugfix
Sep 3, 2020 at 10:11 history edited Kevin Cruijssen CC BY-SA 4.0
added 2105 characters in body
Sep 3, 2020 at 10:05 history edited Kevin Cruijssen CC BY-SA 4.0
added 2105 characters in body
Sep 3, 2020 at 9:14 comment added Neil Ah, what I maybe didn't explain was that my idea was to use the single length option of the canvas builtin, using a length of 2 so that each direction in the list causes another character to be drawn in that direction. In your case, given that you won't need to pad the input string, you would just need to generate the list of directions in fewer than 18 bytes.
Sep 3, 2020 at 7:04 comment added Kevin Cruijssen @Neil I'm not sure I can use att's formula tbh. The Canvas builtin in 05AB1E simply requires three parameters before drawing everything at once. Those steps I mentioned in the explanation are thus all done at once after providing the arguments. For directions I now simply use ₆1ª, which is [3,6,1] / [↘,←,↗]. The main two things that costs bytes in my program is generating the list of lengths: ā·Ð·s>ø.ι˜, as well as adding trailing spaces to the input to prevent wraparound of the input-string: DŠOð׫. The directions and actually drawing the output are both very short ₆1ª and Λ.
Sep 2, 2020 at 22:33 comment added Neil @att's formula saved me 15 bytes! I wonder whether it would be shorter or longer in 05AB1E...
Sep 2, 2020 at 13:49 history edited Kevin Cruijssen CC BY-SA 4.0
deleted 238 characters in body
Sep 2, 2020 at 8:48 history answered Kevin Cruijssen CC BY-SA 4.0