# What is the Sandbox?

This "Sandbox" is a place where Code Golf users can get feedback on prospective challenges they wish to post to the main page. This is useful because writing a clear and fully specified challenge on the first try can be difficult. There is a much better chance of your challenge being well received if you post it in the Sandbox first.

See the Sandbox FAQ for more information on how to use the Sandbox.

## Get the Sandbox Viewer to view the sandbox more easily

To add an inline tag to a proposal use shortcut link syntax with a prefix: [tag:king-of-the-hill]

• How are tags added to questions? – guest271314 Jan 9 '19 at 7:51
• @guest271314 You can use this markup to create a tag in a draft: [tag:code-golf] – James Aug 29 '19 at 15:19
• @JL2210 We now have a permanent info box that links to the Sandbox, so the featured tag isn't necessary – caird coinheringaahing Sep 29 '19 at 13:43

# Literally just printing the source code

Wait a second. We already have a contest where you print the source code. Right? Wrong.

## The challenge

Print out the source code. Not to STDOUT, but to a physical printer.

The rules:

• You must write a complete program that prints out its own source code with a printer connected to the computer.
• No STDIN (or input of any kind), STDOUT, or STDERR.
• No standard loopholes (includes no file input). No using lp(r/d) or similar commands.
• The printed code should be a reasonable size (between size 8 and 18) and a legible font (pretty much means no wingdings).
• You may assume that the user doesn't cancel the process and answers affirmatively to any system print dialogs.
• You can assume that the printer works, is ready, doesn't need new ink/paper, etc.
• If the language doesn't support printing, it is ineligible.
• This is so shortest code, in bytes, wins.
• This is a trivial extension of the quine challenge. All you have to do is say you're running it on Unix/Linux and pipe the output to lpr. – Mego Nov 1 '15 at 22:21
• This needs a much tighter spec on the hardware. E.g. I assume you would consider it cheating to post an ordinary quine and say "On this computer, all console output is also logged to a continuous print spool", but there are computers which are configured like that for audit reasons. – Peter Taylor Nov 2 '15 at 14:39

# Print a sourcecode

Given 2 inputs(First input is truthy/falsy, second input is program in same language as submission):

1. If the first input is truthy then transform the second input into same program but printing the source code(After modification) first.
2. If the first input is falsy then transform the second input into same program but after the program finished it prints the source code(After modification). If the program doesn't halt, you may or may not modify the program.

It's code-golf, so the shorter answer is the winner.

For example in CJam, I don't write the program to do this. (> means output)

0 q
>{"_~"q}_~
0 0 1{_@+}11*;
>{"_~"0 0 1{_@+}11*;}_~
1 q
> {q](\o"_~"}_~

• Sorry, I'm not quite sure what this question is asking. Would it be okay if you posted examples? – Sp3000 Nov 5 '15 at 14:29
• @Sp3000 Please undo your downvote. The example is fixed. – Akangka Nov 7 '15 at 7:39
• I didn't downvote though... – Sp3000 Nov 7 '15 at 8:13

# Restricted "Hello, World!"

The task is very simple, output Hello, World! to STDOUT. The thing that makes this different are the rules:

• You need to provide a full functioning program, taking no input and outputting via STDOUT.
• The program must not write anything to STDERR
• The maximum amount of bytes you can use is 50
• The program may only contain printable ASCII characters. Programs using CP437 and other encoding systems are not allowed
• If a programming language is already used, you cannot use this same language again.
• You cannot use any character of the prohibited character list. This is the twist:

### Prohibited character list (PCL):

The prohibited character list is a list full of characters, which cannot be used in the following programs. For example:

If the list was: He\., you need to create a program, without the characters H, e, \ and .. These are not case-sensitive.

If you succesfully manage to write a program that doesn't use any characters, you may add new one character to the prohibited character list.

e.g.

If the old PCL was He\., and you managed to write a program that doesn't use any of these characters, you may add a new character to this list. For example (whitespace). The new PCL will be He \. (notice that the whitespace character is added).

### Posting Snippet:

#[Language Name], N bytes

[code]

(explaination etc.)

New PCL: [list + new char]


In the beginning, the PCL is empty. The last person who managed to create a program without a new program made in 2 days, wins!

I'm not really sure if it is flawed or not. If you have any suggestions or comments, feel free to post them below in the comment section :)

• Already exists. – Arcturus Nov 22 '15 at 23:38

# What day of the week is Christmas?

Christmas is coming quickly, which leads to the question, what day of the week is Christmas this year? But what day of the week is Christmas for any year? Write a program that can do this. This is code golf, so the shortest code wins!

However, there is a major twist. No builtin functions to do this task is allowed!

Bonuses:

1. If the program can handle B.C. years as negative numbers, then -25%
2. If the program prints "The first Christmas!" for an input of -4 (4 B.C. is assumed to be when Jesus Christ was born), then -30 bytes
3. If, for some reason, you really like builtins, +90%! So try NOT to use it!
• The bonus for printing extra should be steeper, or no esolangs are going to go for it. – Addison Crump Nov 29 '15 at 1:45
• @VoteToClose so more like 25% as well? – TanMath Nov 29 '15 at 1:48
• No - I'd go static. Plus, this is really close to being a dupe... – Addison Crump Nov 29 '15 at 1:51
• Near dupe of codegolf.stackexchange.com/questions/1003/… – Calvin's Hobbies Nov 29 '15 at 1:52
• It's unspecified what format we should output in or what calendar we should use, and whether -4 should mean 4 BC or 5 BC. – lirtosiast Nov 30 '15 at 5:57
• @ThomasKwa it should be obvious from the sentence that 4 B.C. is -4. Use the Gregorian calendar, output can be in MMDDYY – TanMath Nov 30 '15 at 6:09
• How is MMDDYY a day of the week? – lirtosiast Nov 30 '15 at 16:32
• @ThomasKwa sorry, it was pretty late when I wrote that so I mistakenly wrote MMDDYY. Just printing the day of the week is fine i.e. print "Sunday", "Monday", "Tuesday", etc. – TanMath Nov 30 '15 at 19:57

# Broken FizzBuzz - Greg Is Confused underhandedcode-golfpopularity-contest

(FizzBuzz suggested by quartata in chat)

Meet Greg. Greg is the new debugger at your company, and he deals with checking programs to see if they work. If they don't, he tries to find out why and fix them.

Greg is rather new to programming and understands the basics, but still gets tripped up by some advanced things. Sometimes, programs don't work and he doesn't know why.

You don't really like Greg, so you decide to play a game. You create two nearly-identical FizzBuzz-style programs - one which works, and one which doesn't.

For example:

n = input()
if (n % 3 == 0) {
print "Fizz"
}
if (n % 5 == 0) {
print "Buzz"
}


works, but

n = input()
if (n % 3 = 0) {
print "Fizz"
}
if (n % 5 == 0) {
print "Buzz"
}


doesn't. Greg is confused (but not by something as simple as this).

And because Greg has a desk only a few feet away from you, your code must be as small as possible, so he doesn't catch on.

## Rules

• Your correct program must accept an integer as input and return output as specified below, and your incorrect program must do something else (such as throwing an error or giving invalid output).
• The valid program's output must print "Fizz" if the number is divisible by 3, "Buzz" if it divisible by 5, "FizzBuzz" if it divisible by both 3 and 5, and nothing if it isn't divisible by 3 or 5.
• The invalid program's output may do anything else.
• Greg knows all programming languages to date, including super-obscure ones. Therefore, your answer may be in any language you choose (providing it was created before this challenge was posted.)
• You MUST have the two programs be nearly identical, except for one small change. The more concealed or insignificant-looking, the better.
• Greg uses PPCG and has participated in underhanded challenges before, so he knows about the C trigraph (??/). You can't trick him with it.
• Greg has also seen replacing ASCII characters with nearly-identical Unicode or abusing fonts, meaning that won't work either. Therefore, your program's change must work with all fonts, any may not exploit visual similarity between characters with different code-points.
• Changing an a to an A is allowed, as long as it's not obvious that that's what broke the program. However, changing a to <unicode character that looks exactly the same> is forbidden.
• Both programs must be written in the same language with the same version.
• The language both programs are written in
• Two programs: one FizzBuzz program, and another that is broken
• How to run both of them (the commands must be identical with identical arguments)
• Why one doesn't work (in spoilertext)
• The output of the broken one
• Your programs must have a Levenshtein distance of no more than 10 from one-another. (Meaning that you may add, delete, or change up to 10 characters in the broken code from the correct one.)
• Your score is the total bytecount of both of your programs.
• The winner is the post with the smallest score over 20 votes.

Meta Questions

• Is 10 too small a maximum Levenshtein distance? I was also considering 15.
• Are any of my rules already forbidden by the standard loopholes? I'd like to remove them if possible to make the post shorter.
• Similarly, should I remove or change any of my rules?
• This is a code-golf version of this previous edit. Should I keep it as code-golf or change it back?
• "replacing ASCII characters with nearly-identical Unicode" doesn't really express what that old chestnut does. "Exploiting visual similarity between characters with different code-points" is more accurate. Although it's arguable whether that covers e.g. switching space for non-breaking space, and I don't think it covers using non-whitespace non-printable characters (which with the right font are invisible). – Peter Taylor Dec 16 '15 at 16:44
• I think there is something interesting here in making seemingly equivalent programs behave very differently. But I'm generally sceptical of underhanded pop-cons, because they're usually way too broad and this one doesn't seem to be an exception. The primary cause is probably that there's no actual task that the program should accomplish. That means you can literally write any code that leads to failure from a small change (which is probably most code although the failure will not be surprising for most of those changes). I'd recommend giving a task for at least one of the two programs. – Martin Ender Dec 16 '15 at 16:49
• @PeterTaylor Maybe something like "Your program's change must work with all fonts, any may not exploit visual similarity between characters with different code-points"? – ASCIIThenANSI Dec 16 '15 at 16:53
• @MartinBüttner I've changed it to two programs that should print "Hello, world!" (only the correct program will work). How does this look? – ASCIIThenANSI Dec 16 '15 at 16:57
• There are some very closely related underhanded challenges: codegolf.stackexchange.com/q/31647/8478 codegolf.stackexchange.com/questions/23250/what-no-error codegolf.stackexchange.com/questions/19379/… – Martin Ender Dec 18 '15 at 16:37
• @MartinBüttner I've added them in. Do you think they're close enough to be duplicates? – ASCIIThenANSI Dec 18 '15 at 16:42
• @ASCIIThenANSI I can't predict how the community will vote, but I wouldn't mod hammer it. – Martin Ender Dec 18 '15 at 16:45

# Golf A Wiki

## The Challenge

Golf a wiki. A wiki, for the purposes of this contest, is defined as a website with:

• Content editable by all
• Easy CamelCase (defined as a word with two capitals) linking
• Different pages or articles that are the targets of the links

Your wiki can be a self-contained HTML file (e.g. TiddlyWiki), or a cgi-bin script (e.g. SigWik).

## Scoring

Your score is the size of your program in bytes, divided by the number of extra features implemented plus one.

The possible extra features are:

• Page history
• Syntax for "nowiki", that is, something like <\noscript> in HTML that makes the text inside it not be wiki syntax.
• A page list
• A find page facility
• Delete pages
• Change page titles
• Redirects
• Random page
• Non-HTML formatting that is not just links [Should I remove this? I doubt it will be done.]

Lowest score wins, as this is code golf.

# DISCLAIMER

ANSWERS WILL PROBABLY CONTAIN MAJOR SECURITY FLAWS. ONLY USE ON PRIVATE PORTS, UNLESS YOU WANT YOUR COMPUTER AND VERY POSSIBLY YOUR WHOLE NETWORK TO GET DESTROYED (FIGURATIVELY). [Is this too forceful?]

• I would vote to close this as too broad. Among the problems I see: 1. The two given examples don't seem to be the same thing as each other 2. The complete lack of constraints mean that I could just automatically make every word a link. (This could be fixed by specifying one link syntax: for golfing I quite like the UseModWiki use of CamelCase for links). 3. I think I can get the "text formatting" feature for free by not escaping HTML characters. 4. Needs a big warning "Answers will likely contain major security flaws and should not be used on ports which are publicly visible" – Peter Taylor Dec 30 '15 at 10:49
• Ok, thanks, I'll edit when I have time today. – Hipe99 Dec 30 '15 at 21:27

## Progress 100%

For that I created an event mechanism that reports on the progress of each individual file. It sends me the information on how many bytes B have been downloaded of file T total.

## Input

Integer C between 1 to 100, followed by new line, followed by C progresses separated by new line. Each progress is constructed of two numbers with the maximum size of 64 bits: B T, separated by space.

Input options

The input is a String available from the following options

• file
• stdin
• method parameter

## Output

Floating number between 0 to 1, the average of all the progresses. It must be displayed to 11 decimal places, floored.

## Criterial

Shortest code wins

## Example

Input file:

3
5 10
1024 1024
20 100


Output

0.56666666666


Explanation

((5/10) + (1024/1024) + (20/100)) / 3 = 17/30


## Example2

Input file:

1
2 10


Output

0.2


## Example3

2
Long.MAX_VALUE Long.MAX_VALUE
5 10


Explanation In this example Long.MAX_VALUE represent the maximum 64 bit value, so if you use 64 bit value for storing the sum of the averages it will not work in this case.

Output

0.66666666666

• 1. It's not clear from your specification how the result should be computed. The "total progress" implies to me that I should figure out how many bytes have been downloaded of the total, i.e. sum(B)/sum(T). However, your first example suggests, that we should actually compute the arithmetic mean/average of the individual progresses. If so, please state this clearly. 2. By requiring 11 digits of accuracy, you require 64-bit floats (double precision), because 32-bit floats only have 7.something decimal digits. Is this intentional? (seeing your input is only 32 bits) – Martin Ender Apr 1 '15 at 20:39
• @MartinBüttner how about now? I do want the high precision – Ilya Gazman Apr 1 '15 at 21:24
• My first point still stands. It's not clear from the specification how the result should be computed. – Martin Ender Apr 1 '15 at 21:27
• @MartinBüttner I expect you to process all the progresses and find the average one, not sure how to say it right. – Ilya Gazman Apr 1 '15 at 21:28
• Just like that, but as far as I can see your challenge currently doesn't mention "average" or "arithmetic mean" anywhere. – Martin Ender Apr 1 '15 at 21:32
• @MartinBüttner Anything else? – Ilya Gazman Apr 1 '15 at 21:40
• Why did you remove it again? And what's the purpose of the hint? – Martin Ender Apr 1 '15 at 21:43
• @MartinBüttner sorry had 2 windows opened. The hint helps you to understand that you cannot store the sum of all the progresses in 64 bit value. – Ilya Gazman Apr 1 '15 at 21:45
• What does "up to 11 digits of accuracy mean"? That I can supply only 3 digits, but I may not supply 12? And what counts as a "digit of accuracy", anyway: are you talking decimal places or significant figures? And if significant figures, what is the correct output if the average progress is exactly 0? – Peter Taylor Apr 1 '15 at 22:37
• @PeterTaylor I want an 11 digits after the dot of accuracy in the output. So 3/10 will produce 0.33333333333 and 0/10 will produce 0. Maybe you can suggest a better way of writing it down. – Ilya Gazman Apr 1 '15 at 22:40
• I've edited in some changes. I would suggest also deleting the hint and replacing it with a test case. It would also be good to describe a test case (it will probably be too long to post) which demonstrates that it's not sufficient to use IEEE754 double-precision. – Peter Taylor Apr 2 '15 at 7:35
• @PeterTaylor is it ready now? – Ilya Gazman Apr 2 '15 at 14:09
• It would also be good to describe a test case (it will probably be too long to post) which demonstrates that it's not sufficient to use IEEE754 double-precision. – Peter Taylor Apr 2 '15 at 19:28
• @PeterTaylor I don't understand what you are saying, can you please explain it a little bit more – Ilya Gazman Apr 2 '15 at 20:15
• Since you're requiring programs to support averaging 2^31 numbers and you want output to a precision of about 35 bits, a naïve solution with 64-bit floating point will be incorrect, but that might not be obvious to everyone who would attempt an answer. – Peter Taylor Apr 2 '15 at 20:23

# There's an App SE Site for that

Oftentimes, when searching through StackExchange, I find myself seeking to post a question about something or another, but not knowing where to post it. That's where you come in.

## The Challenge

Write a full-functioning program that does the following:

1. Takes an input string
2. Attempts to find suitable SE sites relevant to the input string (this is very flexible, but should not be returning English.SE for questions about Coffee, for example)
3. Attempts to find 3 questions on each suitable site that may relate to the input string (should match the list of questions if I searched in the search bar of each site, sorted by number of votes)
4. "Output" is a folder tree written to disk with the following qualities:
• The highest folder of the tree should be named the input string.
• The second-highest layer should consist of folders named the same as the sites on which the input string was found suitable.
• The third layer should be <=3 .md files that are named the same as the questions found when searching through the suitable sites, the contents of which are the question's markup content.

# Rules

• You MUST query for this information. I don't want 50EB solutions.
• "Suitable sites" are defined as the keyword appearing in the site description.
• Run time should be <5 minutes for >3 MB internet speed.

# Bonuses

There are no bonuses.

Remember - SE is a big place now, and, as of such, we must compensate with short code. This is , everybody, so the shortest solution wins!

• "Whatever defines "suitable" for your code is up to you" is too broad IMO. – Peter Taylor Jan 25 '16 at 14:35
• @PeterTaylor Refined. Please see edit. – Addison Crump Jan 29 '16 at 17:50
• @RikerW I don't know what you're saying. – Addison Crump Jan 29 '16 at 17:57
• Me neither. lol – Rɪᴋᴇʀ Jan 29 '16 at 17:58
• What's the yardstick for whether two words are synonyms? If that's up to answers to decide, no-one will waste any bytes on it, so you should simplify the question by removing the mention of synonyms. Otherwise you need to add a source (and risk the question being largely a kolmogorov-complexity for that list). – Peter Taylor Jan 29 '16 at 19:48
• @PeterTaylor Fixed. – Addison Crump Jan 29 '16 at 20:45

Write a polyglot (a program that works on several languages) that produces the // this is a comment output.

## Example (JS + Plain PHP + Plain HTML) (74 / 3 = 24.66 points)

// this is a comment<?php ob_start();?><!--


## Another Example (CoffeeScript + CJam + brainfuck) ()

e###-[----->+<]>----..+[--->++<]>.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.-[--->++<]>-.++++++++++.+[---->+<]>+++.[->+++<]>+.-[->+++ <]>.+[->+++<]>.++++++++++++.--..--------.+++++++++.++++++.
"// this is a comment"
e### alert "// this is a comment"


## Scoring

Your score will be code byte length / num langs

The smallest score wins!

• Is there anything that makes this significantly different than polyglot Hello World? – Geobits Feb 1 '16 at 14:03
• @Geobits this is more easy, really – username.ak Feb 1 '16 at 14:37

Are bug hunts like this allowed?

# Bug Hunt - Make a change in a Git repo that Git cannot detect

Challenge: In the working directory of a Git repo, make a change that Git cannot detect.

• Changes can be on any file in the working directory or subdirectories that is tracked by Git.
• You may use any tool to make the change, or script your own program to do so.
• For tools, state the tool used and the steps to reproduce.
• For script or program, produce the code (please use GitHub Gist if it's too long). State the language and compiler version, if any.
• You can also do the change manually. In this case, outline the steps.
• State the version and platform of the Git binary used.
• Show a comparison between an actual clean working directory and the modified one to show the change Git can't detect.
• Show that git status says "nothing to commit, working directory clean".

Winning Criterion:

• The extend of the undetected change - the bigger the change, the better.
• Reasonably latest Git version.
• Easy to reproduce.
• [Optional] Short code or simple steps. It's OK if it's not, as long as you do something exceptional.
• Most upvotes (for tiebreaker reasons).
• [Optional] You located an actual unfixed bug in the Git source code, and not just a quirk in something else.

Restrictions:

• Obviously, using .gitignore is not allowed. It's a bug hunt. Changes that Git is designed to ignore are not allowed. We should reasonably expect Git to see and report the change, but find that Git doesn't.
• Use latest Git version you can get. Some old version with some bug that's already fixed doesn't count.

Please let me know if this is OK, so I can go ahead to post it on the main site.

I could only find . A suggested tag would have been the best.

• Currently bug hunts aren't allowed. Because no one proposed them, you can propose bug hunts by asking a question on meta. – user48538 Mar 20 '16 at 12:28
• I have a strong feeling that this won't be allowed. We don't allow code that exploits bugs or harms computers. – Nathan Merrill Mar 20 '16 at 12:31
• @NathanMerrill source? – ADTC Mar 21 '16 at 0:17
• meta.codegolf.stackexchange.com/q/4829/20198 – Nathan Merrill Mar 21 '16 at 2:21
• Is this essentially asking for an AES collision? – Peter Taylor Mar 21 '16 at 11:14
• @PeterTaylor now that wouldn't be a bug, would it? But yes, I guess that's also a valid scenario. Can you create one? – ADTC Mar 23 '16 at 6:06
• This sandbox post has had little activity in a while and little positive reception from the community. Please improve / edit it or delete it to help us clean up the sandbox. – programmer5000 Jun 9 '17 at 14:11

## Calculate the number of consecutive 0's at the end of n!

Simply put, write a program or function that takes n and returns the number of consecutive 0's at the end of n!

Examples

Input: 12
Output: 2


Input: 12345
Output: 3082


Input: 100000
Output: 24999

• I think this might be a dupe. – Rɪᴋᴇʀ Apr 2 '16 at 21:45
• @EasterlyIrk Do you have a link to the duplicate problem? – MrPublic Apr 4 '16 at 11:38
• This is extremely similar. – FryAmTheEggman Apr 4 '16 at 17:20
• This proposal would be similar to finding the position of the last nonzero digit, but it's not similar to the linked challenge, which finds the value of the last nonzero digit – Luis Mendo Apr 6 '16 at 11:14

## Self-identification before golfing

Since golfed code is harder to read, answers often contain an less golfed version. There are a number of potential golfing transformations depending on the language, so you may be able to score more highly using a more traditional language. Some examples of golfing transformations:

• Removal of spaces, tabs and/or newlines
• Removal of disambiguating parentheses
• Removal of braces around single controlled statements
• Conversion from statements to comma operator
• Removal of explicit return statements
• Renaming identifiers

Your challenge is to write a program or function that can identify an ungolfed version of itself. Scoring is based on the number of golfing transformations that can be recognised. The submission must be capable of identifying all "original" code that is itself capable of self-identification (at least one such code must exist). Each supported transformation scores 1 point, but there are also bonus points available:

• 1 bonus point if the transformation can be repeated multiple times
• 1 bonus point of the program rejects at least one invalid transformation of itself (e.g. white space added inside a keyword)
• 1 bonus point if the program only accepts valid transformations of itself
• 1 bonus point if the transformation shortened the code (so if you only supported renaming a 1-letter variable to another letter, you would not qualify)
• 1 bonus bonus point if in addition the transformed program recognises the original program as a transformation of itself

Example: A submission accepts the name of another program as a command-line parameter. It opens itself using its own name hard-coded into itself. It recognises the following transformations:

• A change to the hard-coded file name (3 points, as there is only one file)
• A change to the amount of space between words (5 points, as there are no invalid transformations to reject)
• A change to the names of its variables (4 points, as it doesn't check whether the variables are renamed consistently or to keywords)

Total score: 12 points.

In the event of a tie on score, shortest code wins.

Tags: code-golf, quine

• This is hopelessly subjective. – feersum Apr 5 '16 at 13:35

# Make a quine without using string literals popularity-contest

A quine is a computer program that prints out it's own source code to stdout. Your task is to make one that doesn't use string literals.

You cannot:

• Have any empty program
• Read your source code directly or indirectly (i.e. form a file)
• Use error messages to print out the source code
• Rely on language features to print out the source
• Relying on a REPL environment

A string literal is a:

• String type (obvious)
• Number used to store the character (sorry BF!)
• Other predefined constant

You are encouraged to compute your own source code.

• This hits two of the "things to avoid when writing challenges": do X without Y and popcons. (I assume it's an attempt to finesse a third: generalised quines). It also has some fairly bad phrasing: what language can print anything without using "language features"? In what way does BF use literals? How many languages can compute anything without using at least one constant? – Peter Taylor Apr 12 '16 at 7:27

# Random Wikipedia Browsing

Here's a short one for you. Create a program or function prints or returns the title of a random Wikipedia page (similar to Alt + x functionality)

Rules:

• Program or function will take no input
• Program or function will print to STDOUT (or nearest equivalent) or return only the page name. I don't care about trailing spaces or newlines. Preceding spaces or new lines are disallowed
• Program or function may not access a list of Wikipedia page names stored within a local file.
• There is no requirement to use English language Wikipedia (en.wikipedia.org)
• Page must be chosen (psuedo) randomly

For reference, here is a link to the Wikipedia API. Shortest program or function in bytes wins.

• Bash: xdg-open http://bit.ly/19UDVJs (I think it's open). That Bitly link points to the Random Page link, which redirects to a random page. Wouldn't be hard to find a shorter URL, either. – Fund Monica's Lawsuit Apr 14 '16 at 17:10
• Aww man, I had no idea that existed, guess it makes this pretty trivial – wnnmaw Apr 14 '16 at 17:11
• Yep. Though if the language's builtins don't support automatic handling of redirects, it might be more challenging. – Fund Monica's Lawsuit Apr 14 '16 at 17:11
• Could I disallow using that link? – wnnmaw Apr 14 '16 at 17:12
• I dunno, to be honest. I'm not very good at writing challenges. – Fund Monica's Lawsuit Apr 14 '16 at 17:13
• Relevant chat discussion, this challenge is trival – wnnmaw Apr 14 '16 at 17:21
• @wnnmaw the Random Page is often used for wiki-racing. It's pretty fun. You can do either shortest distance (pages traversed), or fastest time. Maybe you could make this into a King of the Hill challenge to write a bot that wiki-races against other bots? – mbomb007 Apr 21 '16 at 18:15

# Golf a golf-scoring program! code-golf

Given a space delimited array of integers, find the smallest number. It's that simple.

[Meta] This may in fact be a duplicate. Please tell me if so.

• This is basically a dupe of any regular sorting question, isn't it? Particularly something like Sign that word. – FryAmTheEggman Jun 9 '16 at 12:52

# Oh noes! A site redesign is eating my privileges!

PPCG is graduating and will soon receive a new design. Unfortunately for everbody except some people, the new design will also mean losing privileges due to higher reputation requirements.

Now, losing some privileges is a small sacrifice for the Magnificent Glorious Site Redesign®©™, but… How much do we stand do lose?

## The challenge

Your program / function receives a reputation level (e.g. 535). Output the privileges that are currently available to it, but will not be available after the redesign.

### Output

Output can be either an array or a string that's separated by a delimiter. The delimiter may not be any of A-Za-z<space>. Multi-character delimiters may end in a space, though.

If there are no matches, your program should output either an empty array or a falsy value.

### Examples

Input
25000

Output
[]

Input
24999

Output
["access to site analytics"]

Input
2000

Output
["access to moderator tools","approve tag wiki edits","cast close and reopen votes","create tag synonyms"]

Input
535

Output
["cast close and reopen votes"]

Input
350

Output
["access review queues"]

Input
5

Output
[]

Input
4

Output
["participate in meta"]


Deliberately ignoring the facts in the last example.

### Available privileges

For convenience, here is a JSON array with available privileges and the required reputation before / after:

[[5000,25000,"access to site analytics"],[4000,20000,"trusted user"],[3500,15000,"protect questions"],[2000,10000,"access to moderator tools"],[1500,5000,"approve tag wiki edits"],[500,3000,"cast close and reopen votes"],[1250,2500,"create tag synonyms"],[1000,2000,"edit questions and answers"],[750,1000,"established user"],[1000,1000,"create gallery chat rooms"],[350,500,"access review queues"],[150,300,"create tags"],[250,250,"view close votes"],[125,125,"vote down"],[100,100,"edit community wiki"],[100,100,"create chat rooms"],[75,75,"set bounties"],[50,50,"comment everywhere"],[20,20,"talk in chat"],[15,15,"flag posts"],[15,15,"vote up"],[10,10,"remove new user restrictions"],[10,10,"create wiki posts"],[1,5,"participate in meta"],[1,1,"create posts"]]


At index 0 is the reputation before, at index 1 is the reputation after. (The privilege reduce ads (200 reputation) is not available to beta sites and therefore not included in this list.)

Standard I/O and loophole rules apply.

• Related. It's borderline whether this adds enough to not count as a duplicate: I would vote that it does, but I wouldn't cast my supervote. – Peter Taylor Jul 12 '16 at 16:21
• @PeterTaylor I'm thinking of changing the challenge to allow submissions to download the privilege page. I guess that would make it distinct enough. – user2428118 Jul 13 '16 at 10:53
• Turns it into a hybrid parse-HTML and merge data sources question. Yes, I think that's novel. You should make it very clear that the answers should keep working after the contents of the privilege page are updated to show the new rep levels; and possibly you should take a backup copy of the page in case of future addition of new privileges. – Peter Taylor Jul 13 '16 at 11:01

Plot Partial Node Network

I have a 440*3 matrix that looks like:

1   144 Title1
1   152 Title2
1   135 Title3
2   3 Title4
2   12 Title5
2   107 Title6
2   31 Title7
3   4 Title8
3   147 Title9
3   0 Title10
4   end Title11
4   0 Title12
4   0 Title13
5   6 Title14
5   7 Title15
5   10 Title16
5   9 Title17


The left column are the starting points eg in the app all the 1's on the left would be on the same page. They lead to three choices, pages 144,152,135. These pages can each then lead to another page, and so on until the middle column says 'end'.

challenge Each number has an associated title in column three. I would like to have a function whereby if you input a given title it will plot all the possible starting points and their associated paths that will lead there. This should be a lot smaller and therefore graph friendly.

Example e.g.

44  234  tes
186  187  Frac
187  154  Low
154  end  Coll
23   52   Med
52   11   Lip
11   42   AAA
42   154   BBB
154   end  Coll


EDIT - I added to the example. In the winning entry these new nodes will not be plotted as they do not lead to Coll.

I made this example to show how column 1 leads to a value in column 2 which then refers to a value in column 1 until you reach the end. Different starting points can ultimately lead to different length paths to same destination. so this would look sometigng like:

So here, I wanted to see how you could go from all start points to 'Coll'

Input A data.frame like that illustrated (with not relevant rows included) and a given title

Rules -any language is fine as long as it will easy work with tab separated data laid out as shown

Output A graph like the one included for a given title

Win Criteria Shortest Runtime to make a png with graph

• A question should have one challenge, not two. And a challenge should ideally have one goal, not two; and should certainly have a clear description not only of the input but also of the output. – Peter Taylor Jul 13 '16 at 16:14
• Hi Peter, thanks for this. I've edited accordingly – cianius Jul 13 '16 at 16:16
• – Peter Taylor Jul 13 '16 at 22:58
• they're similar but not the same. they dont solve the problem of just plotting the rows that lead to Coll. – cianius Jul 14 '16 at 7:30
• i edited example to clarify this Peter :) – cianius Jul 14 '16 at 7:45
• I do like this question, but I currently do not support it as a question, due to it being unclear as to exactly what the png can and can not look like. I do support graphical output questions. – Rohan Jhunjhunwala Jul 15 '16 at 1:47

# The Library Problem

Bob has a very annoying problem. His boss told him to write a cat program that redirects the standard input to the standard output. But he recently installed a virus on his computer which deleted every libraries on it.

Now he really need to create this program without using any library (even the language standard library). It need to run at least on one operating system with one architecture.

# Challenge

Write a program or that redirects the standard input to the standard output without using any library or external program/command to run to help Bob. You can use system calls and interrupts for example, but your program must not run in ring 0 mode (most operating systems like Microsoft Windows or GNU/Linux have kernels which prevent programs from doing anything, but MS-DOS for example let programs do everything).

• Input: anything (text, binary)
• Output: exactly the same as the input

This is , so shortest answer in bytes wins!

# Example Input and Output

First:

• Input: Hello, world!
• Output: Hello, world!

Second:

• Input: ...
• Output: ...
• That's just this challenge isn't it? – Martin Ender Jul 21 '16 at 15:26
• @MartinEnder This challenge is about doing a cat program without using any library or external command/program even the standard library built with the language. – user54187 Jul 21 '16 at 15:30
• So everything would need to be written in assembly or equivalent? – AdmBorkBork Jul 21 '16 at 15:34
• @TimmyD Yes for example, but I think there are other lower-level languages which allow this. – user54187 Jul 21 '16 at 15:34
• In that case it just seems like the same challenge limited to a small set of languages? In that case it would probably still be considered a duplicate and the usual course of action is to offer a bounty for the language you want to see a solution in. – Martin Ender Jul 21 '16 at 15:38
• @MartinEnder You need a lower-level language but it doesn't mean that every program made using a lower-level language works with this challenge. See this answer for example which uses a function from the standard library codegolf.stackexchange.com/a/62309/54187. – user54187 Jul 21 '16 at 15:46

Write a program that, when executed, returns the markdown file to your answer.

So, something like this:

#Python: 123 bytes

{insert code here}


# Required things:

• Header must be one hash (#)
• The "code part" must be indented with four spaces (or surrounded with backticks if it's a one-liner).
• The code part must be the actual code used to run the program.
• There must be a separation of a newline between the header and the code.
• The program's display bytecount MUST equal the program's actual bytecount.

# Meta:

• Most importantly: is it even possible, at all?
• Do I need more clarifications?
• Has this been done already?
• "Most importantly: is it even possible, at all?" Definitely possible and in most languages no more difficult than a standard quine. The points in this answer probably apply as well. Also the third-to-last paragraph in this answer since languages with longer names will have a disadvantage. And finally, there's this related challenge (same thing without the quine part). – Martin Ender Jul 27 '16 at 7:25
• Actually, it's just too easy. Just use a normal quine with stuff before. – Erik the Outgolfer Aug 3 '16 at 17:50

# Alphabet Circle

This post got very negative feedback, so it's apparent that it needs tweaking in the sandbox before I attempt to repost it on PCG

With all the new alphabet xxx challenges, I've decided I'll give my own challenge.

Input

An Integer, (or your languages equivalent) r, such that 0 < r ≤ 26. (you don't need to validate this)

Output

An alphabet circle. Must meet the following criteria:

• Smoothly interpolated from A at the center and Z at the edge.
• Each point in the circle is the distance from the center offset so that 0 = A, 1 = B, 2 = C etc...
• Be printed to STDOUT

Examples

r=26

r=15

Boilerplate

Anonymous classes and functions are fine. General Code Golf rules apply. Shortest code in bytes wins!Except Jelly

• Please remove the Except Jelly part... – TuxCrafting Aug 3 '16 at 11:31
• @TùxCräftîñg no – Shaun Wild Aug 3 '16 at 11:32
• Disallowing language are a thing to avoid when writing challenges – TuxCrafting Aug 3 '16 at 11:35
• It's triple super scripted, it's a joke. I'm not removing it. Get a sense of humour! – Shaun Wild Aug 3 '16 at 11:49
• Since you mention negative feedback, my negative feedback would be that a glut of recent challenges on theme X (in this case alphabet layout) is a strong reason to avoid more challenges on theme X for a while, not to add to the pile. Variety is good. If I were you I'd hold this challenge for a month. Moving onto positive feedback, the spec needs to define the desired layout more clearly. I can't work out what the precise criterion is for which letter to place in each space. – Peter Taylor Aug 3 '16 at 14:51
• If a position is not an integer distance from the centre, should the distance be truncated, rounded up/down or something else? – trichoplax Aug 6 '16 at 12:11
• Could you specify whether leading/trailing spaces and newlines are permitted/required? Does the circle need to be framed in a square of matching size, or can it always be in a square of a fixed maximum size? – trichoplax Aug 6 '16 at 12:15
• I think this would work best as a kolmogorov-complexity just for the size 26 pattern. That'd avoid any issues with defining how to interpolate the circles (or, indeed, defining the pattern generally, as it would be defined via stating the intended output). – user62131 Nov 24 '16 at 5:24

There must be no spaces in your output and the solution with the fewest bytes wins!

• 1. The Cham-whatever constant has infinitely many digits, making this challenge the same as this – Leaky Nun Aug 4 '16 at 18:23
• 2. Duplicate. – Leaky Nun Aug 4 '16 at 18:25
• @LeakyNun To prevent this being a duplicate could the challenge be "Print the Champernowne constant in base n", where the input is the base? – ASCIIThenANSI Aug 5 '16 at 14:35
• Also, this question isn't self contained. If you were to post an acceptably modified version of this, please explain what this constant/sequence is within the question itself, even if there is a link – MildlyMilquetoast Jan 20 '17 at 1:03

# Nasty Nasty Bugs

Help the programmer provide detailed instructions to the team on how to deal with bug fixes.
The team's goto instructions for dealing with bugs goes like this.

For the twelfth bug of Christmas, my team leader said to me

Tell them it's a feature
Say it's not supported
Change the documentation
Blame it on the hardware
Find a way around it
Reinstall the software
Run with the debugger
Try to reproduce it
Ask them how they did it and
See if they can do it again.


The indentation must comply with the teams coding standards, so it may either be tabs or four spaces (since the team's editors expand tabs to spaces anyway). The team lead doesn't mind a leading or trailing newline, but there is no tolerance for the dreaded standard loopholes. Also the office is a bit cramped so the code needs to be as small as possible. These lyrics are moderately adapted from http://www.manbottle.com/humor/twelve_bugs_of_christmas

• What is the actual challenge? A kolmogorov-complexity to reproduce the quoted text verbatim? – Peter Taylor Aug 8 '16 at 21:41
• whoops should have tagged it as such @PeterTaylor – Rohan Jhunjhunwala Aug 8 '16 at 21:42
• There doesn't seem to be much of a pattern here. What does this add over other kgc questions? (And why isn't it a dupe of the Rickroll challenge?) – FryAmTheEggman Aug 9 '16 at 20:23
• @FryAmTheEggman I could put all 12 verses of the 12 bugs of christmas in. But then it could be a dupe of the 12 days of christmas challenge – Rohan Jhunjhunwala Aug 9 '16 at 20:24

# Crab Canon

A crab canon is a piece of music where the same tune is played backwards and forwards at the same time, and it somehow sounds nice. The most famous example is this one by Bach. In Godel, Escher, Bach, Douglas Hofstadter wrote a crab canon in dialog form, in which the characters of Achilles and the Tortoise alternate lines, with one set of lines being the same as the other set except backwards. Somehow, it makes sense.

The challenge is to write a program inspired by this art form. The only requirement is that there has to be some sort of reversal of the source code involved. For example, you could make a program that:

• Prints its own source code, but backwards
• Does the same thing when reversed
• Both of the above at the same time
• Or make up something creative and wow the voters!

The reversal can happen on pretty much whatever level you want: lines of code, characters, characters within lines, or whatever makes sense for your language. The Hofstadter Crab Canon has some small changes between the two sets of lines for the sake of coherence, you can do something similar if you feel it is necessary.

This is a popularity contest, the answer with the most votes wins.

• This is without a doubt too broad. See codegolf.stackexchange.com/tags/popularity-contest/info – Peter Taylor Aug 16 '16 at 7:10
• @PeterTaylor FYI there's something wrong with that link's formatting – tbodt Aug 16 '16 at 18:07
• There isn't any formatting. I just pasted the link directly. And it works for me. – Peter Taylor Aug 16 '16 at 19:11
• @PeterTaylor hmm, seems to have fixed itself... – tbodt Aug 16 '16 at 19:12

# Left and Right

Given an input string, in ASCII, output ")|]" as many times as the case-insensitive word "right" appears in input, and output "(|[" as many times as the case-insensitive word "left" appears in input. The order is irrelevant. If and only if no occurences of these words are in input, output "X|X". Spacing between items is optional

This is , less bytes is best

Test cases:

input -> output
RightRightighteftleft -> (|[ )|] )|], or some other ordering
this doesn't contain either word -> X|X
LEfT, LeFT, leFT, righT -> (|[ (|[ (|[ )|]
(|[ -> X|X


## Petals around the Roses

Given 5 numbers from 1 to 6, calculate the number of Roses, Petals and Roots. Try guessing the formulas yourself by visiting http://jetpackshark.com/RPS before reading anybody's answers. (The dice-like display is significant.)

This is , so the shortest program wins.

• If you're looking for a "solve-the-puzzle" challenge, the site for that is Puzzling. If you want it to be a code-golf, then please include a formula for how the roses, petals, and roots are calculated. – Nathan Merrill Aug 16 '16 at 13:06
• Or at the very list a definition of roses, petals, and roots in this context. At present this question makes no more sense than the output of a Markov text generation process. – Peter Taylor Aug 16 '16 at 13:44

## Write a Brainfuck interpreter in Brainfuck

Since Brainfuck is known to be turing-complete, it is possible to write a Brainfuck interpreter in Brainfuck. This is what you're supposed to do.

You will get the input from the standard input and output to the standard output. This is a programming-puzzle, so the length is not top priority, however if there are multiple solutions, the shortest one wins!

• BF interpreter (non language specific) challenge has already been done, and language exclusive challenges generally aren't good – Destructible Lemon Aug 19 '16 at 1:45

# Iпtгodцctioп

Iп tиe Iпteгпets, people sometimes liкe to stчlize tиeiг posts дs if tиeч щeгe щгitteп iп д diffeгeпt scгipt. Tидпкs to tиe пotoгietч of Soviet Яцssiд, tиe Cчгчlic scгipt seems to бe pдгticцlдгlч fдvoгed.

Бцt щидt cдп д пext-dooг tгoll do if tиeч'гe пot д pгogгдmmeг? Mдпцдllч гeplдciпg eдcи дпd eveгч letteг cдп бe qцite tedioцs...

# Cидlleпge

Чoц дгe to щгite д pгogгдm tидt щill дccept дп дгбitгдгilч loпg iпpцt of Lдtiп cидгдcteгs дпd sцбstitцte some letteгs щitи similдгlч looкiпg Cчгчlics cидгдcteгs. Tиe oцtpцt sиoцld бe ideпticдl to tиe oцtpцt pгodцced бч tиe folloщiпg цпgolfed C# scгipt:

цsiпg Sчstem;
цsiпg Sчstem.Collectioпs.Geпeгic;
цsiпg Sчstem.Liпq;

pцбlic clдss Test
{
pцбlic stдtic void Mдiп()
{
Dictioпдгч<cидг, cидг> tгдпs = пeщ Dictioпдгч<cидг, cидг>{
{'A', 'д'},
{'a', 'д'},
{'B', 'Б'},
{'b', 'б'},
{'N', 'И'},
{'b', 'и'},
{'K', 'К'},
{'k', 'к'},
{'N', 'П'},
{'n', 'п'},
{'R', 'Я'},
{'r', 'г'},
{'U', 'Ц'},
{'u', 'ц'},
{'W', 'Щ'},
{'w', 'щ'},
{'Y', 'Ч'},
{'y', 'ч'}
};

stгiпg s; щиile((s = Coпsole.ЯeдdLiпe()) != пцll) {
Coпsole.ЩгiteLiпe(
пeщ stгiпg(s.Select(c => tгдпs.CoпtдiпsКeч(c) ? tгдпs[c] : c).
Toдггдч()
)
);
}
}
}


Tиe sиoгtest code щiпs.

# Exдmple Iпpцt дпd Oцtpцt

Iпpцt:

As we know, the goal of every struggle is victory. But if the proletariat is to achieve victory, all the workers, irrespective of nationality, must be united. Clearly, the demolition of national barriers and close unity between the Russian, Georgian, Armenian, Polish, Jewish and other proletarians is a necessary condition for the victory of the proletariat of all Russia.

We are for the withering away of the state, and at the same time we stand for the strengthening of the dictatorship of the proletariat, which represents the most powerful and mighty of all forms of the state which have existed up to the present day. The highest development of the power of the state, with the object of preparing the conditions of the withering away of the state: that is the Marxist formula. Is it "contradictory"? Yes, it is "contradictory." But this contradiction is a living thing and wholly reflects the Marxist dialectic.

Oцtpцt:

дs щe кпoщ, tиe goдl of eveгч stгцggle is victoгч. Бцt if tиe pгoletдгiдt is to дcиieve victoгч, дll tиe щoгкeгs, iггespective of пдtioпдlitч, mцst бe цпited. Cleдгlч, tиe demolitioп of пдtioпдl бдггieгs дпd close цпitч бetщeeп tиe Яцssiдп, Geoгgiдп, дгmeпiдп, Polisи, Jeщisи дпd otиeг pгoletдгiдпs is д пecessдгч coпditioп foг tиe victoгч of tиe pгoletдгiдt of дll Яцssiд.

Щe дгe foг tиe щitиeгiпg дщдч of tиe stдte, дпd дt tиe sдme time щe stдпd foг tиe stгeпgtиeпiпg of tиe dictдtoгsиip of tиe pгoletдгiдt, щиicи гepгeseпts tиe most poщeгfцl дпd migиtч of дll foгms of tиe stдte щиicи идve existed цp to tиe pгeseпt dдч. Tиe иigиest developmeпt of tиe poщeг of tиe stдte, щitи tиe oбject of pгepдгiпg tиe coпditioпs of tиe щitиeгiпg дщдч of tиe stдte: tидt is tиe Mдгxist foгmцlд. Is it "coпtгдdictoгч"? Чes, it is "coпtгдdictoгч." Бцt tиis coпtгдdictioп is д liviпg tиiпg дпd щиollч гeflects tиe Mдгxist diдlectic.

• Welcome to PPCG and thanks for using the Sandbox! Unfortunately, this challenge is essentially the same as this question. Also, please don't write your specs in this "stylised" manner. It greatly hurts the searchability of your post. – FryAmTheEggman Aug 20 '16 at 22:03
• Your code is also stylized. Does your code run properly? – Buffer Over Read Aug 20 '16 at 22:34
• @ColdGolf And do you think I'd stylize my post by hand? – gaazkam Aug 21 '16 at 2:13
• @FryAmTheEggman OK, thank you. I now see my challenge was pointless and won't post it to the main. – gaazkam Aug 21 '16 at 2:14
• Nothing is pointless: now you you know more and can come up with a better challenge! :) – FryAmTheEggman Aug 21 '16 at 2:17
• @ColdGolf OK you were right, I messed up the stylization. {'b', 'и'} - here is a bug. Sorry. – gaazkam Aug 21 '16 at 2:22
• @gaazkam Does your code, with the stylized цsiпg Sчstem;, run properly? – Buffer Over Read Aug 21 '16 at 2:39
• @ColdGolf I regard people of CodeGolf intelligent enough to find out they'd have to unstylize this code ^^ :) – gaazkam Aug 22 '16 at 7:11
• @gaazkam I see. – Buffer Over Read Aug 22 '16 at 17:34

# Enterprise Quality Code!

## Summary of this challenge

Print (to make it more fair when competing with another language changing the output method could be a trivial way to golf) the first N Prime numbers. Your score will be the sum of the byte counts of all entries which no one has been able to golf down (by removing one or more characters and rearrange the program). If you golf down someones program, post it as another submission.

You may not golf your own programs once submitted.

This is not a dupe because it significantly changes the scoring method. Writing code which allows a single byte to be golfed off will cost the whole of the score. Also as this is a challenge the winner is likely going to have high scores across a multitude of languages. It is likely that scores will be incredibly near 30k for each language. This limit allows a more interesting competition as it prevents submissions of exponentially large lengths.

### Back-story and explanation

At Pretty Good consultants there is a focus on writing "quality" verbose code that is sufficiently engineered. Your boss has decided to test you on your skills.

Consider the set of all programming languages in existence before the posting of this challenge. For this challenge there will technically be one individual "winner" in each language, however the boss will give a promotion accepted tick mark to only one answer based on your score.
The goal of this challenge is to receive an integer N strictly smaller than 2^16-1 and print the first N prime numbers (in less than 24 hours) separated by your platforms choice of new line. OEIS sequence A000040 in as many bytes as possible in as many languages as possible. However, note that others vying for the promotion will try to "help" you by golfing down your score.

Sample output for an input 11

2
3
5
7
11
13
17
19
23
29
31


## How to participate

Pick any language X, but please avoid selecting a language which is just another version or derivative of another answer. If there is no existing answer in language X than you will write a program (which must fit into a single post) that solves this challenge. The length in bytes of the source (in any reasonable preexisting textual encoding) will be added to your score. You must avoid using any unnecessary characters for reasons that will soon become apparent.

If language X already has been used to answer this question, then you must answer using any permutation of any proper subset of the characters used in the shortest answer (I.E take the shortest X answer and remove some (>=1) characters and optionally rearrange the resulting code). The previous holder of the shortest X answer will lose all of the bytes provided by his answer from his score, and the number of bytes of your submission will now be added to your score. The number of bytes golfed off gets "lost" forever.

Clarifications shamelessly lifted adapted from this challenge

### Rules for Languages

Languages used should be distinctly different. A language is different iff:

• It is not a different version of another language (Java 7, Java 8)
• They must not be derived from another language (Branf*** versus Alphf***)
• One language may not be a subset or superset or trivial of the other one (e.g. hq9+ versus hq9+b).

HQ9+ wouldnt be a language anyway, but please be judicious when selecting a language, if you have any clarifications on a language that may be significantly different from an existing answer please ping me and we can work it out.

• If anyone knows how to make a scoreboard for this I will be much obliged – Rohan Jhunjhunwala Aug 20 '16 at 17:28
• So the highest score wins, overall (from all your still-valid answers). And when you outgolf somebody, they lose their points, you gain your points, but do you get the points that they lost? – Rɪᴋᴇʀ Aug 20 '16 at 17:42
• @EasterlyIrk the way I had it planned out is that the amount of bytes golfed off is forever lost. I don't know if thats fair but that essentially prevents people from "profiting" off of ridiculous answers that were not fortified against being golfed. – Rohan Jhunjhunwala Aug 20 '16 at 17:49
• Yeah, that's what I figured. You might want to clarify that a bit though. I really like the idea. – Rɪᴋᴇʀ Aug 20 '16 at 17:52
• @EasterlyIrk clarifications added, let me know if this is ready for main – Rohan Jhunjhunwala Aug 20 '16 at 17:59
• It might be ready, but you should wait for somebody else to also give input. – Rɪᴋᴇʀ Aug 20 '16 at 18:01
• All right sounds good – Rohan Jhunjhunwala Aug 20 '16 at 18:04
• 1. So basically the accepted answer goes to the shortest answer in Unary? 2. The tags code-golf and code-bowling are mutually exclusive. This isn't really either. – Peter Taylor Aug 20 '16 at 19:49
• @PeterTaylor please read the whole thing. The answer must fit within 30k – Rohan Jhunjhunwala Aug 20 '16 at 20:02
• If someone can write a brainf*** program that is only about 6 chars long or so than they deserve the accept tick – Rohan Jhunjhunwala Aug 20 '16 at 20:03
• @RohanJhunjhunwala Golunar wins – Rɪᴋᴇʀ Aug 20 '16 at 22:07
• @EasterlyIrk lol thats actually just a compressed form of Brainf*** it probably wouldn't score that well – Rohan Jhunjhunwala Aug 20 '16 at 23:15
• @PeterTaylor essentially I restrict answers to fit in one post which means the best score for a single language is slightly under 30 characters – Rohan Jhunjhunwala Aug 20 '16 at 23:15
• I find the intro confusing. I didn't understand what the challenge is broadly about until reading to the end. Can you cleanly state the challenge at the beginning, and move the details later? – xnor Aug 21 '16 at 0:42
• @trichoplax the overall winner with the highest score summed up over all of their answer posts will receive the tick on their highest scored post. It doesn't really matter which post in particular (as long as it is a post of the winner) receives the tick, but it makes sense to tick off the highest scoring post. – Rohan Jhunjhunwala Aug 21 '16 at 12:44

### Alphabet ripple

You must print out this exact text:

abcdefghijklmnopqrstuvwxyzzyxwvutsrqponmlkjihgfedcba
abcdefghijklmnopqrstuvwxyyyyxwvutsrqponmlkjihgfedcba
abcdefghijklmnopqrstuvwxxxxxxwvutsrqponmlkjihgfedcba
abcdefghijklmnopqrstuvwwwwwwwwvutsrqponmlkjihgfedcba
abcdefghijklmnopqrstuvvvvvvvvvvutsrqponmlkjihgfedcba
abcdefghijklmnopqrstuuuuuuuuuuuutsrqponmlkjihgfedcba
abcdefghijklmnopqrsttttttttttttttsrqponmlkjihgfedcba
abcdefghijklmnopqrrrrrrrrrrrrrrrrrrqponmlkjihgfedcba
abcdefghijklmnopqqqqqqqqqqqqqqqqqqqqponmlkjihgfedcba
abcdefghijklmnopppppppppppppppppppppponmlkjihgfedcba
abcdefghijklmnoooooooooooooooooooooooonmlkjihgfedcba
abcdefghijklmnnnnnnnnnnnnnnnnnnnnnnnnnnmlkjihgfedcba
abcdefghijklmmmmmmmmmmmmmmmmmmmmmmmmmmmmlkjihgfedcba
abcdefghijkllllllllllllllllllllllllllllllkjihgfedcba
abcdefghijkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkjihgfedcba
abcdefghijjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjihgfedcba
abcdefghiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiihgfedcba
abcdefghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhgfedcba
abcdefggggggggggggggggggggggggggggggggggggggggfedcba
abcdeffffffffffffffffffffffffffffffffffffffffffedcba
abcdeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeedcba
abcddddddddddddddddddddddddddddddddddddddddddddddcba
abccccccccccccccccccccccccccccccccccccccccccccccccba
abbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


### Specs

• You may do it in all-uppercase instead of all-lowercase.
• A single leading and trailing newline are allowed
• You may not output an array of strings - the delimiter must be a newline

### Scoring

This is . Program with lowest byte-count wins.

• Seriously, another alphabet challenge ._. – TuxCrafting Aug 21 '16 at 14:23
• Duplicate, too lazy to find. – Leaky Nun Aug 21 '16 at 14:27
• @LeakyNun you're too lazy to search through your own challenges...? – trichoplax Aug 21 '16 at 20:49
• @trichoplax I don't feel like wasting my time to search for the duplicate. – Leaky Nun Aug 21 '16 at 20:57
• @LeakyNun I knew what you meant - I was just making a poor joke that you would only need to search your own challenges since you wrote every alphabet challenge... – trichoplax Aug 21 '16 at 21:15
• @LeakyNun, this Show tree rings age? – manatwork Aug 23 '16 at 10:50
• @LeakyNun what exactly is the duplicate? I'd like to know. – Conor O'Brien Aug 27 '16 at 16:39
• @ConorO'Brien this – Leaky Nun Aug 27 '16 at 16:46

# The Note-Takers Dream

## Meta

This challenge requires more than most challenges. Is it to much?

The goal here is simple. Turn my notes into text. To this end, any tool or web service may be employed.

## Specification

• Input
• An image of handwritten notes, stored an some data structure (this structure is flexible)
• This image will be a direct, over-head shot of a single page of graph paper
• Notes
• The notes are taken on graph paper with one character per box
• The characters will be printable ASCII
• An empty box should be considered as a single Space character
• There is an implicit New Line character between each row
• Output
• A string of the text represented in the image
• This image should be trimmed of leading white space
• Trailing white space is fine
• Score
• The score is the sum of the Levenshtein distances between required outputs and actual outputs
• Lowest score wins

## Test Cases

Coming soon. . .

• Mathematica will win, and everyone else will weep – Rohan Jhunjhunwala Aug 30 '16 at 22:42
• So basically codegolf.stackexchange.com/q/28207/194 with a larger character set and probably a smaller test set. It's effectively a dupe IMO. – Peter Taylor Aug 31 '16 at 7:52
• Golfing in ABBYY FineReader Engine has never been so exciting. – Andreï Kostyrka Aug 31 '16 at 14:45