# Code Golf Jeopardy

I'm considering doing an original challenge that (at of right now) consists of golfed solutions in the languages C, Python, Jelly, Javascript, 05AB1E, Pyth, PHP, MATL.

The challenge is to look at the golfed code and figure out what the intended challenge was.

I think it could be a very interesting challenge, depending on the complexity of the intended challenge, but I fear that once someone figures out the solution (the intended challenge), the challenge is dead for everybody else, and that just makes it a challenge, which is not what I want.

I would very much like any feedback on this type of challenge - would people be interested in doing this?

(The reason this isn't posted in the sandbox is because it's a completely new type of challenge, and I'm not sure that comments are the best way to provide feedback to this type of challenge)

• I like the idea, but I'm concerned that running the code will be more effective than trying to decipher what the code is actually doing. – xnor Nov 13 '16 at 9:26
• @xnor but that might not help you in figuring out the challenge. If you run the code and it outputs 21 how will you know what that means? – Daniel Nov 13 '16 at 10:20
• The code would take input, right? I'd try it for lots of inputs and try to puzzle out a relationship. It might still not be obvious, but nevertheless doable without analyzing the code. – xnor Nov 13 '16 at 10:23
• @xnor I think this strategy can be defeated by choosing a challenge that has many assumptions about the input, or arrays with a specific shape, etc. – feersum Nov 13 '16 at 21:20
• @Daniel are you still planning on doing this? If not, I'd love to post a challenge based on this in the sandbox. – Nathan Merrill Nov 17 '16 at 17:20
• @NathanMerrill I would love it if you did it. I think I need to work a lot more on my submission - can't wait to see yours :)! – Daniel Nov 17 '16 at 17:34

# Do it as a Cops n Robbers

You'll need the following:

1. I wouldn't limit the language to those, but rather those with an Esolang page, or on wikipedia's list of languages. The language, however, must be specified by the cop.

2. I recommend explicitly saying that you must write your own submission

3. The challenge they choose must have a positive score and not be closed

4. The robber needs to find any challenge that the submission solves.

Then, if you have your own code you want people to solve, you can simply add it!

• So this would be a generalization of Programming Language Quiz. That was already a decent difficulty level for robbers, so free choice of challenge might seem to give too much advantage to cops. On the other hand, robbers may be able to generate cracks by finding an extremely simple challenge instead of the cop's intended one. – feersum Nov 13 '16 at 21:26
• Another possibility would be that the cops are required to disclose the challenge. – feersum Nov 13 '16 at 21:26
• The language would need to be disclosed – Nathan Merrill Nov 13 '16 at 22:28
• Ah, so it's the inverse of Programming Language Quiz: instead of known challenge and unknown language, this would be known language and unknown challenge. – DLosc Nov 15 '16 at 19:51
• Would this lead to very slow code that makes it impractical to run it against many inputs? (Not necessarily a bad thing - just wondering.) – trichoplax Nov 16 '16 at 22:45
• Would the challenges be limited to code-golf? Or could the answer be a "solution" to a KOTH or something? – mbomb007 Nov 17 '16 at 15:23
• I think that is up to the OP – Nathan Merrill Nov 17 '16 at 16:14

# Cops and robbers?

people post a question, people post the answers.

In this way, the challenge does not die immediately, and has a reasonable amount of time to it