Linked Questions

4 votes
2 answers
206 views

Inter-language 2-cycle quine [duplicate]

Challenge Create 2 programs A and B The output of program A is exactly program B The output of program B is exactly program A Neither program should depend on inputs to yield the correct output A ...
Hymns For Disco's user avatar
2 votes
2 answers
335 views

Generate code in another language [duplicate]

Write a program in language A which outputs a program in language B where: Language A != Language B The output is itself a solution to this question. This is a popularity contest. If you want to ...
Millie Smith's user avatar
0 votes
0 answers
175 views

Create a chain of programs in different languages [duplicate]

Create a program in any language, which outputs the source code for a program in another language, which outputs the source code for a program in another language, and so on. Please post at the top ...
Ypnypn's user avatar
  • 10.8k
36 votes
21 answers
4k views

Write a Polyquine

A polyquine is both quine and polyglot.1 You are to write a quine which is valid in at least two different languages. This is code golf, so the shortest answer (in bytes) wins. 1 I made that up. Or ...
Martin Ender's user avatar
31 votes
21 answers
4k views

Interquine - Two programs that output each other in a loop

Program A outputs program B's code when run, and B outputs A's source. Requirements: Only one language across both programs Programs are different. One program that outputs itself does not qualify. ...
iBug's user avatar
  • 2,693
21 votes
14 answers
3k views

Cheating Cyclic Quine

Concept Write a program that outputs code in its programming language. That code, when executed, must output the original program. Rules Since this is a cheating quine, you can read the original ...
anna328p's user avatar
  • 6,334
21 votes
15 answers
10k views

Generate a random program in your favorite language [closed]

We all heard of testing compilers using randomly generated inputs. Your task is to write a program to generate a valid program (including no undefined behavior) in your favorite language. The ...
Alexandru's user avatar
  • 6,066
35 votes
6 answers
1k views

Mutually Exclusive Quines

Your challenge is simple. Write two programs that share no characters which output each other. Example Two programs P and Q are mutually exclusive quines if: P outputs Q Q outputs P There is no ...
Conor O'Brien's user avatar
27 votes
7 answers
2k views

Mutual Negative Quines

This was inspired by Print a Negative of your Code and Golf a mutual quine. Consider a rectangle of characters, that meet the following restrictions: Consists solely of printable ASCII characters ...
es1024's user avatar
  • 9,165
28 votes
6 answers
2k views

Can you Meta Quine?

Similar to other quine puzzles (more specifically, this one), write a program that produces the source for itself. Here's the new twist: The code produced should NOT be identical to the source. ...
Gaffi's user avatar
  • 3,597
24 votes
4 answers
3k views

Implement ROT-47... in ROT-47

Challenge: Implement ROT-47 in code that works as both itself and as the ROT-47 version of itself. Scoring: Your score is calculated as a percentage of used, ROT-47 eligible bytes in total of both ...
durron597's user avatar
  • 4,800
12 votes
8 answers
1k views

Quine Challenge I

Challenge In this task you have to write a program that will take input an integer N (-1e9 <= N < 0 && 0 < N <= +1e9), then compute T = (abs(N) % M+1),if N is positive ...
Quixotic's user avatar
  • 2,359
17 votes
3 answers
1k views

Write a third order quine

This challenge is an extension of 'Golf a mutual quine'. Using three languages of your choice, create a third order Ouroboros program. That is, in language A, write a program pA which outputs ...
Peter Olson's user avatar
  • 7,722
15 votes
3 answers
1k views

Codegolf: Quine and Antiquine

This challenge is similar to Can you Meta Quine? A quine is a program that produces itself on STDOUT. This challenge is to produce a program A which when run produces a program B on STDOUT. Program B ...
abligh's user avatar
  • 817
11 votes
4 answers
537 views

Period 2 Reversed Quine

Your task is to write a program that outputs its own source code in reverse. However, when the reversed code is run, it should output the source code, facing the correct direction. Example Say your ...
internet_user's user avatar

15 30 50 per page