Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Code me a cookie

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Aug 4, 2015 at 22:19 history edited Level River St CC BY-SA 3.0
edited body
Aug 4, 2015 at 10:28 comment added manatwork Oops. You are right. That was a quick try BC (before coffee). Too early to notice the chips placement difference. :( (BTW, the "%" has nothing to do with tr's syntax. Is just a character not involved in the cookie art that I used as placeholder.)
Aug 4, 2015 at 10:21 comment added Level River St @manatwork thank you for your suggestions. I missed s[0] --> s, it never occurred to me to try it. Your code doesn't seem to give the right answer for the chocolate case, as the chocolate chips are in different places than the nuts. Nevertheless there's some useful ideas there, I will look at them later. I haven't used tr or % before.
Aug 4, 2015 at 6:39 comment added manatwork Forget it. Once again tr proves to be shorter: ->s{' ___↵/% \↵|% %|↵\___/'.tr ?%,'^. '[s.ord%3]}
Aug 4, 2015 at 6:32 comment added manatwork What do you think the ord method can do if you call it for a whole string? My first idea was formatting: ->s{" ___\n/%1$s \\\n|%1$s %1$s|\n\\___/"%'^. '[s.ord%3]}
Aug 4, 2015 at 4:33 history edited Level River St CC BY-SA 3.0
deleted 14 characters in body
Aug 4, 2015 at 3:57 history answered Level River St CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /