How do I say "Thank you, Mr. Obvious?"
Or is it "Captain Obvious"?
Anyway, this is a slang response when someone says something that is known to the other person - and this should be obvious to the other person, too.
Brainfuck, 40 bytes
My console doesn't support Right-to-Left characters, but I don't think it will work :c
++++++++++>,[>,]<[<]>[[<+>-]<[<]>[.>]>]
Ungolfed:
++++++++++> # Store 10 (Newline)
,[>,] # Store input
<[<]> # Goto first character
[ # While next character
[<+>...
GNU Sed, 21
Score includes +1 for -E option to sed:
:
s/^(\S+)\S/\1 &/
t
Works for LTR, but not RTL - I missed that bit.. Actually it does work, the RTL was just not rendering correctly in my terminal. It works fine with IO viewed in a sensible text editor (e.g. emacs). It also works in Id...
> It works fine with IO viewed in a sensible text editor (e.g. emacs)
This interpreter for the language Bitwise Cyclic Tag was generated using this Haskell program. The BCT program and data can be changed by modifying the strings after (P| and (D| near the beginning. (The empty program and the program containing just 1 are not supported.) As the BCT page suggests is enough for Turing-completeness, it (slowly!) prints out the sequence of deleted data bits as 0 = /, 1 = \.
In computer science, control flow (or alternatively, flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated. The emphasis on explicit control flow distinguishes an imperative programming language from a declarative programming language.
Within an imperative programming language, a control flow statement is a statement whose execution results in a choice being made as to which of two or more paths should be followed. For non-strict functional languages, functions and language constructs exist to achieve the...
Python, 46 bytes
Let's use shell's variable expansion. It eliminates calling os.environ , thus less code and less imports.
python -c "print('$PATH'.replace(':','\n'))"
ANOTHER ANNOUNCEMENT: I have revised everything (hopefully), please reopen the question.
Your task make a bot that plays Atomas, with the highest score.
How the game works:
The gameboard starts with a ring of 6 "atoms", with numbers ranging from 1 to 3. You can "play" an atom between two atoms...
A standard (but disputed) test of self-awareness is the mirror test: An animal is considered self aware if it can recognize itself in the mirror.
Your task is to write a program that is self-aware according to this test. More exactly:
The program reads input in whatever form is suitable for yo...
Handwriting Recognition
code-golf image-processing kolmogorov-complexity
I made a similar suggestion a month or so back which was deemed to be too similar to an existing one, so I've added something along the lines of a kolmogorov-complexity requirement.
The MNIST dataset is a series of hand...
Lots of research went into it, it's harder than it looks.
@MartinEnder Cool, let me try: ಠ___________________________________________________________________________________________________________________________________ಠ
Anonymous
So I just had to teach Eclipse that java.util.Arrays exists. Stupid worthless IDE.
Prove your language Turing Complete!
Many simple proofs are written by reduction from brainf***. Your task, should you choose to accept it, is to convert brainf*** into your language.
Shortest code in bytes wins. You may use any language you wish as long as no standard loopholes are not violate...