Skip to main content

Questions tagged [quine]

A quine is a program which produces its source as output. This tag indicates that the challenge is related to quines.

5 votes
3 answers
280 views

Fewest Instructions for Mihály Quine

https://mihaly.barasz.com/compressed-loop/game.html You have a simple, line-oriented “compression” language. The language works as follows: The document must start with the ...
programjames's user avatar
1 vote
0 answers
87 views

Print my submission entry [duplicate]

Your program should print the following: **Language, XXX bytes** ``` CODE ``` or its equivalent. XXX should be substituted by ...
Sny's user avatar
  • 439
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 ...
W D's user avatar
  • 392
5 votes
6 answers
677 views

Longest irreducible quine

Write an irreducible proper quine, i.e. a program that prints its own source code, which can't be reduced by removing characters to a shorter program with the same constraints. Eg. the python quine: <...
math scat's user avatar
  • 9,408
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 ...
Someone's user avatar
  • 1,620
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 ...
noodle person's user avatar
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 ...
Rydwolf Programs's user avatar
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 <...
Fmbalbuena's user avatar
  • 4,167
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,...
AZTECCO's user avatar
  • 10.8k
26 votes
8 answers
2k views

Write some Genetic Quines

In this challenge, you'll create some programs which behave similarly to genes. When you run one, it will return one of its two "alleles" (a half of its source code), and concatenating any ...
Rydwolf Programs's user avatar
12 votes
8 answers
1k views

Iterative Quine

Create a program which prints itself, followed by an additional program. This additional program should print the first program, itself, and then a third program. This continues until the nth program, ...
thejonymyster's user avatar
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 ...
emanresu A's user avatar
  • 39.2k
24 votes
4 answers
2k views

A quantum quine

Your challenge is to write a program that is a quine, meaning it prints out its own source code. For at least one individual character, when it is removed from the program's source, a single different ...
emanresu A's user avatar
  • 39.2k
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 ...
DjinTonic's user avatar
  • 636
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, ...
Domenico's user avatar
  • 2,333

15 30 50 per page
1
2 3 4 5
18