Skip to main content
Share Your Experience: Take the 2024 Developer Survey
1200 votes
Accepted

Build a working game of Tetris in Conway's Game of Life

This began as a quest but ended as an odyssey. Quest for Tetris Processor, 2,940,928 x 10,295,296 The pattern file, in all its glory, can be found here, viewable in-browser here. This project is the ...
1164 votes
Accepted

Build a digital clock in Conway's Game of Life

11,520 generations per clock count / 10,016 x 6,796 box / 244,596 pop count There you go... Was fun. Well, the design is certainly not optimal. Neither from the bounding box standpoint (those 7-...
dim's user avatar
  • 8,558
837 votes

Build a working game of Tetris in Conway's Game of Life

Part 2: OTCA Metapixel and VarLife OTCA Metapixel (Source) The OTCA Metapixel is a construct in Conway's Game of Life that can be used to simulate any Life-like cellular automata. As the LifeWiki (...
El'endia Starman's user avatar
801 votes

Build a working game of Tetris in Conway's Game of Life

Part 3: Hardware With our knowledge of logic gates and the general structure of the processor, we can start designing all the components of the computer. Demultiplexer A demultiplexer, or demux, is ...
K Zhang's user avatar
  • 7,116
760 votes

Build a working game of Tetris in Conway's Game of Life

Part 4: QFTASM and Cogol Architecture Overview In short, our computer has a 16-bit asynchronous RISC Harvard architecture. When building a processor by hand, a RISC (reduced instruction set computer)...
PhiNotPi's user avatar
  • 29.1k
713 votes

Build a working game of Tetris in Conway's Game of Life

Part 6: The Newer Compiler to QFTASM Although Cogol is sufficient for a rudimentary Tetris implementation, it is too simple and too low-level for general-purpose programming at an easily readable ...
Blue's user avatar
  • 28.5k
172 votes
Accepted

When was this language released?

A Brief History of 2D Programming Languages: 16 (+2) years ...
Martin Ender's user avatar
159 votes

How high can you count?

JavaScript (ES7), score 17, 176 bytes They said it couldn't be done, so I did it :D (thanks to a lot of help from @FullDecent) ...
ETHproductions's user avatar
154 votes

Write Moby Dick, approximately

///, 2*1 + 1020874 = 1020876 Prints a space.
daniero's user avatar
  • 18.6k
141 votes

Paint Starry Night, objectively, in 1kB of code

Pyth (no built-in compression), score 4695.07 4656.03 4444.82 Pyth’s only image-related functionality is a builtin to write a matrix of RGB triples as an image file. So the crazy idea here is to ...
Anders Kaseorg's user avatar
140 votes

Determine your language's version

Python 3.0 and Python 2, score 6 (12 bytes, 2 versions) print(3/2*2) Try it Online: Python 2 Python 3 Relies on the fact that Python 3+ uses float division by ...
fireflame241's user avatar
  • 16.3k
122 votes

Without using numbers, get the highest salary you can. But don't exaggerate!

bash, $127127 x;echo \$$?$? Try it online! Since the x command doesn't exist, it errors and sets the exit code to ...
Doorknob's user avatar
  • 71.5k
120 votes

When was this language released?

15 years, Python Versions: 0.9.1, 2.0.0, 2.2.0, 2.2.2, 2.5.0, 2.5.1, 3.0.0, 3.1.0, 3.1.3, 3.2.1, 3.3.0, 3.3.3, 3.4.0, 3.5.0 and 3.6.0a4. Versions not linked can be found on the downloads page. The ...
Sp3000's user avatar
  • 61.8k
110 votes

Write Moby Dick, approximately

Perl, 2·70525 + 326508 = 467558 Predictor ...
A. Rex's user avatar
  • 2,599
105 votes
Accepted

Build a Markdown bomb

Blockquotes, 137,469/256 = 536.99 6,908 characters, 511 new lines, 130,050 spaces Markdown sure handles nested block-quotes oddly. Each > character gets turned ...
Namaskar's user avatar
  • 984
103 votes

Write Moby Dick, approximately

Node.js, 2*224 + 524279 = 524727 Please refer to the change log at the end of this post for score updates. A function taking and returning a byte. ...
Arnauld's user avatar
  • 193k
100 votes
Accepted

The Versatile Integer Printer

30 languages, 248 bytes, \$\frac {248} {30^3} = 0.009185\$ ...
Sp3000's user avatar
  • 61.8k
97 votes

Fewest (distinct) characters for Turing Completeness

Haskell, 4 chars ()=; With ()= we are able to define S, K and I. The definitions must be separated by either ...
nimi's user avatar
  • 35.8k
94 votes

How high can you count?

Jelly, 47 integers, 519 bytes ...
Dennis's user avatar
  • 210k
79 votes

Write Moby Dick, approximately

Python 3, 2·267 + 510193 = 510727 Predictor ...
Anders Kaseorg's user avatar
76 votes

Without using numbers, get the highest salary you can. But don't exaggerate!

Java 8, $131,199.00 (15 bytes) v->"$"+'e'*'ԓ' Try it online. Explanation: ...
Kevin Cruijssen's user avatar
72 votes

Find an Illegal String

Changeling, 2 bytes That's two linefeeds. Valid Changeling must always form a perfect square of printable ASCII characters, so it cannot contain two linefeeds ...
Dennis's user avatar
  • 210k
70 votes

Determine your language's version

Java, 400 bytes, 17 versions, score = 23,52 Supported versions: 1.0, 1.1, 1.2, ...
Olivier Grégoire's user avatar
69 votes

Fewest (distinct) characters for Turing Completeness

Unary, 1 character 0 The choice of character doesn't really matter; the length of the program defines the brainfuck program it transpiles to. While the spec ...
Dennis's user avatar
  • 210k
68 votes

Eww, those bytes are gross

Japt -P, score: 255 (2 bytes) ff f => filter, second f => everything but 'f' Try ...
Luis felipe De jesus Munoz's user avatar
66 votes

How high can you count?

brainfuck, score 2, 255 144 10 bytes ...Yeah, not the best idea since I only have 8 characters (tarpits gonna tarpit) to work with but let's see how much is possible. I think this is all that's ...
totallyhuman's user avatar
  • 17.2k
64 votes

Hello World in Multiple Languages

16 languages, 1363 bytes ...
Adalynn's user avatar
  • 6,122

Only top scored, non community-wiki answers of a minimum length are eligible