Today I took a short course on advanced R. As it turns out, pieces of the language were designed in a rather strange, contradictory way that may or may not have made sense a long time ago. That was my biggest takeaway.
@trichoplax ^([NEW]*(S[WS]*N)*S[WS]*E[ES]*(W[WS]*E)*W[WS]*N)*[NEW]*S[WS]*E[ES]*(W[WS]*E)*N[NEWS]*$ << My attempt at the 2x2 maze that goes down-right-up
That same year, I was to write a little essay. I, being the local genius at the time, approached my lovely 2nd grade teacher and asked her how to spell "gonna." I was right, by the way.
@Sp3000 Then you just need to scale it up to 3 by 3 and combine it with about 100,000 or so hand crafted others, and then you can just let regex do all the work...
@Sp3000 I was thinking of just golfing the code that outputs them, and the output can be anything as long as it's valid. Maybe I should put an upper limit on the length though, otherwise there might be a trivial absurdly long output
Because 2x2 only has a few types of mazes, there'll probably be some hardcoding of certain output patterns though (tradeoff between fun golf and interesting golf I guess)
I'm really trying to keep all my questions focused on the computer graphics private beta, so if anyone else wants to post this one feel free. @Sp3000 I'm guessing you don't want to so you can answer it...
@BrainSteel Starting from the shortest maze string question, we're considering the possibility of a golf where you have to find a regex that matches all strings that solve a given maze. Take a maze as input, output a regex.
I think of it like a complex web of pure, pristine logic. When you're a spider near the center of the web, you're like, "Awww yissss." When you're looking from the outside, you're like, "Oh gross, spider web."
Well, the combination of God is an Astronaut and being awake for too long has landed me in dream land. In the morning, I will give this page a confused look and go on with my merry way.
I know exotic languages are really useful to win golf contests, but I dont see much INTERCAL codes around here, I dont really understand why.
Do you have any advice that can help people getting decent sizes with INTERCAL? could this language ever be competitive?
INTERCAL is so less exploited th...
Wow, INTERCAL was created in 1972. "if "PLEASE" does not appear often enough, the program is considered insufficiently polite, and the error message says this; if too often, the program could be rejected as excessively polite."
Also, it has a " intentionally obtuse and wordy syntax". Sounds perfect for golfing!
@PeterTaylor Based on an earlier conversation I saw, you're not a full time mathematican? After seeing some of your posts, I would have been willing to bet that you're a math pro
Context:
You are a cryptographer. You have stumbled upon a mysterious group of individuals, who present you with a challenge, which you must solve in order to join their secret society.
Description:
You have been given a binary stream consisting of bytes that have a random bit-width (un...
This is the third in a series of puzzles that I will be posting every Monday at Midnight PST, and the final variant of "Take It or Leave It".
The first puzzle is located Here
The second puzzle is located Here
Context:
A reclusive billionaire has created a game show to attract the world's b...
The Compiler Language With No Pronounceable Acronym, abbreviated INTERCAL, is a very unique programming language. Among its unreproducible qualities are its binary operators.
INTERCAL's two binary operators are interleave (also known as mingle), and select. Interleave is represented with a chang...
There are a lot of challenges that get you to write programs and/or functions, but (almost) none that get you to write classes. I thought of a way to lay out class-writing challenges - it's quite specific (and might be a bit longer than a code-golf challenge of similar complexity), but does ensur...
> This is a game show, and game shows tend to have prizes. To make things interesting, if you have a Bitcoin address, post it at the bottom of your answer. As in the previous two games, for each unique solution (within reason) that scores higher than the previous #1 answer, you'll get a prize.
I think maybe something other then a monetary prize would be fine, like what Calvin did with giving the winner a challenge dedicated to them, but actually getting paid is a little weird...
If people really do want to offer monetary rewards we could just stop it until we actually have some rules and guidelines around it. But since it really isn't such a "big thing" to offer bitcoin/paypal rewards, I would just say outlaw it.
Meta question showing community consensus that cash prizes are a bad idea.
A series of questions on main that offer non-trivial amounts in bitcoin for each new best answer:
Take it or leave it
Take it or leave it II
Take it or leave it III
These questions are clearly well-intended and fun,...
Maze to regex
Suppose we have an ASCII maze like so:
#######
#s# # #
# # # #
# #
# ### #
# # e#
#######
The input maze will have the following properties:
One cell (marked s) will denote the start of the maze, and a separate cell (marked e) will denote the exit.
The walls will be denot...
The challenge is to write a brainfuck program that searches sequentially through memory for the first NON-zero cell.
The program should start somewhere in fairly low memory (there will probably be some overhead/counters/etc.). Once the program starts checking cells, it should continue to the ri...
Kolmorogov image complexity
kolmorogov-complexity code-golf graphical-output
The image below [ to be added when posting to main ] was produced using a combination of simple methods that, if known, would allow reproducing the image with a short program. It is therefore known to have low Kolmor...
Build Me a Pyramid
this is a simple ascii-art code-golf.
you need to build a pyramid from cubes. cubes can be viewed from 2 angles:
_____ _____
/\ \ / /\
/ \____\ /____/ \
\ / / \ \ /
\/____/ \____\/
this is an example for 2-size cubes from the 2 po...
Would restricting your permitted features make validation easier? I don't have regex knowledge so that's just a wild guess.
Thinking about it, since it's an independent question from the maze solving string question, there's no reason it needs to conform to the same maze style. You could just have walls as cells rather than add extra cells and double moves to simulate walls as edges, if that's easier?
Empty a Swimming Pool . . . With Only a Red Solo Cup
You have a swimming pool that is filled to the brim with water. You need to empty it, but you can't think of an efficient method. So you decide to use your red solo cup. You will repeatedly fill the cup all the way and dump it outside the pool...