Draw an image using all colours
popularity-contest graphical-output
I know that this is basically a subset of the then very popular American Gothic in the palette of Mona Lisa: Rearrange the pixels but I think it is worth making it a new challenge.
Challenge
Given a image of 2^12 x 2^12 pixel...
The idea of this challenge is to find all the words from a dictionary on a square of letters. Your input should come from stdin and will come in the following format:
[your dictionary as a list of space sep words]
[a grid of letters]
Example:
The cool car
looc
thea
jopr
Rules for finding a ...
Brainfuck- 13 4 Bytes
,[.]
Pretty self explanatory. Infinite newlines repitition of the input. I did it that way because the first printable character is 0xA or ++++++++++. So taking input saves 9 bytes.
Emotinomicon, 48 bytes / 13 characters
I do it, not because it is short, but because it is fun. Try it here. You'll have to copy+paste it into the textbox.
😼⏪🆙😦✖😎😿➕😨😼🆙😄⏩
Explanation:
😼 ⏪ 🆙 😦 ✖ 😎 😿 ➕ 😼 🆙 😄 ⏩ explanation
😼 ...
Bash, 44
f=b+=n/2**e%2*10**e,2**e++/n?f=b:f;echo $[f]
Pass an input value to the script through the environment variable n. The decimal representation of the binary result cannot exceed LONG_MAX.
This should also be compatible with ksh93 and zsh if b and e are initialized to 0 and proper arit...
@quartata If I'm understanding correctly, no because it assumes that a variable already exists thereby making it a snippet rather than a full program or function. But then again I don't really know Bash so I don't know how things are done in that language.
@TimmyD That's... quite a list. o_o I see a lot of good games in there. Battlefield 1942 isn't quite high enough IMO though. ;) (Granted I haven't played it in over 10 years.)
If you're looking to play Amnesia: The Dark Descent, I also recommend Amnesia: A Machine for Pigs.
I was so tense that it made me physically ill.
Layers of Fear also looks really good but it isn't finished yet.
@AlexA. I didn't downvote but I did let the guy know:
I don't believe this is valid since it assumes that n is already defined, making it a snippet. That could be fixed by taking input as a command-line argument and setting n to that in your script. — quartata22 secs ago
I'm taking a course on General Relativity and the notes that I'm following define a Killing vector field $X$ as those verifying:
$$\mathcal{L}_Xg~=~ 0.$$
They seem to be very important in physics but I don't understand why yet because that definition is the only thing that I have so far. I'm ...
code-challenge idea: Play a game of solitaire where the dealing, randomization, etc. is handled by a bot. Your job is to solve the hand or declare it unsolvable in the fewest number of moves.
https://en.wikipedia.org/wiki/Losing_chess
This is basically Chess Tournament, but for antichess ;)
Antichess is one of the many chess variants that have been invented. The goal is to lose all your pieces (this may seem a little odd, but it's called antichess for a reason).
The rules
The rul...
This is a very simple problem, but I don't see it posted on this site yet so here it goes!
Challenge:
Write a program that prints itself using the least amount of characters possible.
You can use any programming language. The self-printing program using the fewest characters wins!