@Zwei (from a guy who posts challenges frequently) It takes minutes or even hours to come up with a decent challenge, with the process of constant coming up with new ideas and then rejecting them.
@LeakyNun My parents are both from Russia but I was born in the United States and I'm bilingual, although my Russian language skills haven't been kept up lately as well as I would have liked them to be.
@DmitryKudriavtsev Most all popular mathy number sequences - factorials, primes, triangulars, squares, etc - have probably been done and overdone on this site. It's best to try to be a tad more original :)
@xnor You know, I actually completely made up this challenge on my own, thinking about counting rectangles on a coordinate grid given an arbitrary number of points. I never thought in my wildest dreams it could be this trivial. Heck, I even counted the number of rectangles manually. How about, instead of the input being 2 integer, it is 1 integer representing the number of points on a plane with lines extending out all four sides of each point, resulting in many rectangles?
Challenge: Print the entire printable ASCII charset (not just a range!) in order.
[space]!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
(Of course, replace space with the actual space character.)
Rules: read closely
No other characters allowed...
I am actually mainly posting this because I am very pleasantly surprised that there is no challenge like this yet. I mean, I cannot tell you how many times I was given the job of counting triangles on a grid in my life so far.
@LeakyNun I don't need to, because no matter what the coordinates are, for the same number of points there is always the same number of rectangles, as long as the points are not collinear.
@DmitryKudriavtsev we mark things as duplicate if the "core" of the challenge (print the ascii) is the same as another challenge. As to the edge cases, and other formatting parts, we generally ignore them when considering for duplicates
@DmitryKudriavtsev The definition of duplicate in this site: if a challenge can be modified easily to suit the new challenge, then the new challenge is a duplicate.
How Many Rectangles in the Grid? code-golf
Consider this 3 x 3 grid of rectangles:
How many rectangles are there? Well, counting visually, we can see that there are 36 rectangles, including the entire plane itself, which are all shown in the animated GIF below:
The Task
The counting of re...
I have a small question about a different challenge. How do I keep a challenge from being overwhelmed by golfing languages? All the popular challenges have <10 char answers in a golfing language and I want to give other, more verbose languages a chance.
Simple: You don't. Golfing languages will almost always win, but elegant/genius solutions in more verbose languages (like the "draw iceland's flag" solution in python) will get more upvoted.
@DmitryKudriavtsev I mean, if you come up with a challenge that accesses things that most golf languages can't access, then that's pretty much the only way. Like, there was an "open PPCG in a browser", and I don't think there were many golfing languages there
A builtin that determined the goatiness of the image was used, but there was no "determine if this image of a goat is upside-down" builtin @DmitryKudriavtsev
@R.Kap It's still subjective. If it were my challenge I'd remove the line about builtins altogether. But now I'm thinking the whole thing is a tad too trivial anyway (not bad, just a bit boring)
@NathanMerrill What part of "abandon all work, ye who enter here" did you misunderstand. We like our Procrastination message to be quite clear so we don't have to procrastinate on explaining it again later
Consider this 3 x 3 grid of rectangles:
How many rectangles are there? Well, counting visually, we can see that there are 36 rectangles, including the entire plane itself, which are all shown in the animated GIF below:
The Task
The counting of rectangles as shown above is the task. In othe...
Consider this 3 x 3 grid of rectangles:
How many rectangles are there? Well, counting visually, we can see that there are 36 rectangles, including the entire plane itself, which are all shown in the animated GIF below:
The Task
The counting of rectangles as shown above is the task. In othe...
Challenge
Create a new file and write the string Hello World to it.
Restrictions
Your challenge must write to a file on disk, in the file system.
The file may not be a log file generated during normal operation of the interpreter.
The file must contain only the string Hello World. No other co...
Took me about 3 hours to write it all. And that was with essentially copy-pasting from a reference on how to use the VIC cipher. It may have been because I constructed my own examples, who knows
for example, this block pops 2 elements from the stack, runs some numbers, and then leaves a single value on the stack. It also has to be evalled with ~
@DmitryKudriavtsev I really recommend removing the exception. Either keep the restriction for all languages or for no languages. It's really tough to determine if a language is a "shell script"