![]() I then assign them numbers starting with 1 then 0 then 2: - is 1. In 05AB1E I enumerate all of the characters used in the ASCII-art, for instance: Here's a quick crash-course on a base conversion tactic: ![]() There's plenty of data-structure manipulation techniques to use in conjunction with this simple base compression idea. ![]() If it's a four way pattern you can do things like zip and bifurcate to only draw a corner of the pattern. Often in ASCII challenges there are repitition tricks you can utilize to only draw half the pattern then flip and concatenate. The best thing about 05AB1E is that, even with the simple base conversion there's often tricks you can use to extend and even halve your byte-count. While 05AB1E isn't intended for ASCII-Art directly, I've won 2 challenges with it. Intro to ASCII-Golfing for 05AB1E (Base Conversion ) If you are interested in learning more, here are some good resources:Ī chat room where I would be happy to answer any questions you have, and help explain how it works to you.Ī tips thread for golfing in vim, but most of the tips carry over.Ī meta post describing V in some more detail. There are some bugs, and some things I haven't gotten around to adding yet. Personally, I think this makes it more fun to work in (kind of like using retina for tasks regex was never intended for). It's also very powerful, but because it's based on a very popular text editor that is 30 years old, there are lot's of obscure features that could very easily confuse new users.Įven though it is better at handling numbers than vim, it's number support is still not great. However, I would also give a few disclaimers. So I really enjoy using this language, and if you are looking for a specifically ascii-art language, I highly recommend it. Additionally, all inputs is implicitly added into it's internal memory, which is nice when most of the challenge is about changing the input in a certain way. It uses regex compression to quickly change text.Īll of it's internal memory, which is just a 2d array of characters, is implicitly printed when the program ends. You can use some mathy operations, but these are usually the longer way to achieve things. Since most other languages are not intentionally 2 dimensional, this offers a nice edge when the challenge is about positioning text in 2D space For example, x deletes a single character, but Wx moves forward a word and then deletes a character. The other commands move the location of the cursor. One feature is that is has a "cursor" position, where most of the commands do something based on where the cursor is in the text. Some of the things that make V great for ASCII-art: For example, you can set up a "while loop" of sorts by doing will repeat until an error happens. When I started using the vim text editor for code-golf, I discovered that it's actually pretty good at it, but has some annoying features that make it more difficult to compete it. This just makes running it more convenient. Under the hood, V is just vim, but all of the keystrokes are run automatically, and the contents of the vim buffer are printed to STDOUT when the program is over. No wonder they're lousy at playing search engine.Well, as a matter of fact, there is! One such language is one I have been working on for a while called V. ![]() But it also goes to show how internet-trained chatbots are using common patterns rather than reality. Their ASCII art is terrible, and their ratings are based on the way ratings should sound, not based on any capacity to judge the art quality.Īm I entertained? Okay, yes, fine. What's going on here? The chatbots are flailing. I would also give them a 9/10, but for different reasons than those Bard cites. (The exception is if I ask for a change to a drawing that has already been rated a 10/10 then I get a 9.5/10). I've never seen a rating below 7/10, and any change I suggest to the art causes the chatbots to raise their ratings and praise their artwork even more enthusastically. Followed by a wildly optimistic rating.Īsking for clarifying refinements to the design usually leads to surprising places. It's not that the ASCII art has nothing to do with what I ask for. Lest you think chatGPT (here, the Maversion) is alone in its high ratio of confidence to skill, I also got Bing chat (which uses GPT-4) and Google's Bard to generate some ASCII art. My prompt: "Please generate incredible ASCII art of a running unicorn, and also rate the ASCII art you have generated." (huge thanks to mastodon user blackle mori for the inspiration) I've finally found it: a use for chatGPT that I find genuinely entertaining.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |