All Questions
201
questions
4
votes
6
answers
449
views
Cell`s Life #1: Simulate a plant cell
What am I?
As a plant cell, your program/function/etc. must undergo photosynthesis:
When the input is 6CO2+6H2O+light in any order, output ...
17
votes
11
answers
2k
views
Write a Web server quine
Write a program that accepts HTTP requests on any port of your choice above 1024, and responds to requests on any URL of your choice with its own source code. It must work with, at least, Firefox and ...
3
votes
1
answer
216
views
I reverse the source code, you reverse the source code! [duplicate]
Write a program that outputs its source code in reverse when run, and outputs its source forwards when I reverse the source. If your program is "abcd", when run with no arguments it should ...
13
votes
5
answers
1k
views
Print the answer before a given answer
In this challenge, you'll take an answer as input, and print the answer before it. If the answer passed as input is the first answer, print your own submission's source. You'll be passed any answer in ...
5
votes
10
answers
1k
views
Write a program that prints a program that's almost quine
Your task is to make a program in L that takes n as an input number, output a program p in <...
13
votes
10
answers
1k
views
Lexicographically self-comparing code
This is a quine challenge related to Write the shortest self-identifying program (a quine variant)
Write a function or a full program that compares lexicographically its source code and input, that is,...
12
votes
2
answers
771
views
Jelly compression quine
The golfing language Jelly has a very complex and clever string compression system which I'm not going to go into depth about here. You can find a very good explanation here.
Basically, Jelly's string ...
9
votes
4
answers
340
views
The Roly-Poly, Square-Wheeled Quine
Code-Golf caddy Eddie Brackets was getting tired of quine challenges, which appeared to be much too easy for the grand poobahs. He has this idea to spice up things and is sending quines to the car ...
32
votes
7
answers
4k
views
I'm a lizard, cut here!
Write an \$n\$-bytes program \$AB\$ such that:
it outputs an integer \$x,\ 0\lt x\lt n\$;
both its \$x\$-byte prefix \$A\$ and \$(n-x)\$-byte suffix \$B\$, when run as programs, output \$AB\$.
\$A, ...
15
votes
9
answers
2k
views
Full name quine
Most Unicode characters have full names, for example ” is "RIGHT DOUBLE QUOTATION MARK". You can find a useful reference here, just type in the character ...
6
votes
0
answers
257
views
Build a program that outputs itself encoded as a QR [closed]
The goal is simple. Write a program that outputs itself encoded as a QR code.
A QR code is a way to encode data in a black and white image, similar to a 2D image.
An example implementation can be ...
18
votes
20
answers
2k
views
Hello, Permutations!
For this challenge, you will be required to write 3 programs:
The first program should be a quine, i.e, it should print it's own source code.
The second program should read the input and print all of ...
12
votes
3
answers
506
views
Multiplying Quines
The program should start out with 2 separate files, here named "a" and "b". "a" and "b" should be what I am calling inverse quines: "a", when run, ...
19
votes
8
answers
2k
views
(Error) quines, hello world, polyglots, oh my!
Introduction
A quine is a program that outputs its own source code. For example, a well-known Python quine is _='_=%r;print(end=_%%_)';print(end=_%_). Running it ...
1
vote
1
answer
204
views
Simple "hyena" program [duplicate]
Write a program that takes a string as an input. For the input:
If the input doesn't match the source code, the program shall output the input intact. (Hence a cat)
Otherwise, the program shall fall ...