@MartinBüttner What about a case like a game with a programming easter egg, where the game is on Wikipedia? Does the language itself have to be the one that's documented?
No, just recalling that time I had to download an FPS (Unvanquished?) for a previous CnR because apparently the language was a console (debug? developer?) on the main screen of the game
@AlexA. Never seen that before, but I got 1400 on my first try with my basic language knowledge (I haven't actually learned anything but Haxe/AS3 and Javascript, and a little Java). I think I may be addicted too....
I was doing something else a little while ago, and all of a sudden I thought, "Wouldn't it be funny if the game had a snippet in HQ9+?" And just now I found it... LOL
Though, if I do it right, it should be pretty clever. Not clever enough to win, but I think people will enjoy it :D It's taking me a long time to write, though.
White a program that takes in (via stdin or command line) a string with the recursive form
PREFIX[SUFFIXES]
where
PREFIX may be any string of lowercase letters (a-z), including the empty string, and
SUFFIXES may be any sequence of strings with the recursive form PREFIX[SUFFIXES] concatenated...
Just about every store nowadays uses Universal Product Code (UPC) barcodes to simplify the checking out process. If the name doesn't mean anything to you, you will surely recognize what they look like:
Format
The most common system is UPC-A, which uses 12 digits to represent each specific pro...
@MartinBüttner Would it be a good idea if you specified that the language itself needs to be documented? I'm a bit paranoid of that loophole (considering the case I mentioned), although I'm not sure if it'll technically rule out things like TIS-100 (for which technically the game has an article, but not the language)
Well I mean that sort of thing. Think Manufactoria or LogicBox (rules out by other methods, but it's hard coming up with something that fits off the top of my head)
Quincunx's Manufactoria should be fair game (if it can write characters to STDOUT)
I think if the game is just the language, and that game has an article documenting the language, and the code can be written in the form of source files and is freely available, that's probably fine.
suggestions for colour-coding the "time left" column? I'm thinking three colours: one for "7 days have past, cop can make it safe", one for "1 day left" and one for "more than 1 day left".
I guess I could also compute a gradual hue as those 7 days pass
(Possible deadlines?)
The robber and the bank (Bank managers)
(Based off 'Two makes all the difference')
A group of robbers has decided to break into a bank, but one of the members leaked the information to the bank. To stop the robbers from getting any money, they have decided to change the c...
okay, the snippet is essentially done. the only thing I can think of to add is an option to sort the open submissions by size instead, but I'm no longer convinced it's sufficiently useful to be worth the trouble.
@ProgramFOX the override comment is also really just a last resort. if someone gets the format wrong I'll just edit their post, but if they refuse to put a correct header in and keep rolling back or something, I can still salvage the leaderboard with such a comment.
@AlexA. Oooo, new language? I dabbled in C++ for a while. I have used the basics of OOP, namespaces, operator overloading, cin/cout etc. I don't know much of anything about the newer standard libraries or anything that involves angle brackets, though ;P
No, that's not why I deleted it. That's why a particular answer was flagged, but one answer with possibly-offensive verbiage was the least of the problems here. I'll let the question speak for itself:
Shortest, simplest code that prints an unexpected obscenity
I thought this would be fun...
That thread more talks about offensive material such as swear words and hate, I mean something like a programming language based off of 50 shades of grey, where the source code won't be offensive to anyone, but it is pretty innapropriate
Basically my question in a nutshell: If I including "Bulging man meat" in an answer, will I get flagged?
Python 2 vs Python 3 is definitely ok, but allowing dependency on a bug which was only present in a couple of commits buried in the revision history seems a bit unfair.
Convert a Point of the Compass to Degrees
code-golf
I came up with this challenge indepedently, but it turns out to be the inverse to this challenge by Doorknob. As I really like his spec, I decided to steal large parts of instead of cooking up my own explanations.
The Challenge
Given the abb...
I came up with this challenge indepedently, but it turns out to be the inverse to this challenge by Doorknob. As I really like his spec, I decided to steal large parts of instead of cooking up my own explanations.
The Challenge
Given the abbreviation of one of the 32 points on the compass, prin...
Help, I'm trapped in an infinite factory!
code-golf
This challenge is loosely inspired by the Zachtronics game Infinifactory.
You are given a top-down view of a rectangular grid of conveyors, represented by >v<^. There may be cells without conveyors, represented by spaces. Here is an example:
>
I don't even care, just the opportunity to have an answer with 'Real Fast Nora's Hair Salon 3: Shear Disaster Download' in the title makes it completely worth it.
@AlexA. The problem with a language of that name would be safe submissions, not cracked ones. Although you could still make it work if you turned the name into a link (which you probably should with that language name)
@PeterTaylor I dare you...
@PeterTaylor good point for the factories... I might reorder those.
Challenge
You must write a program which correctly identifies the language a passage is written in.
Rules
The passage will be a string passed to your program either via STDIN or function arguments.
You may not use any external sources except for a local text file with words. The length of the...
I've never understood "Too long, didn't read" at the end of a document. If someone can't be bothered to read any further, surely they just give up and look at something else, not scroll down to the end without reading?
I think the reason tl;dr is often at the end may be because it originated in forums where it might be added as an afterthought or by another person, when the original text is not editable
Learning Python, is there a way to add to a map? I know with list it's .append, and I'm trying to use .append with the map and it's giving me an error,
We should keep a few tags like algorithm-advice, and if a question is submitted with one of them, set up something to automatically move it to Stack Overflow :P