1193
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 ...
Community wiki
1162
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-...
832
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 (...
797
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 ...
756
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)...
710
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 ...
49
votes
Accepted
Minimally destroy CGCC in Game of Life
Score 1, 35 generations
Sorry, but I guess I wrecked the challenge. I brute-forced all meaningful one-dot additions by hand, and found no other answer that wins against this.
Raw ASCII format
...
36
votes
Display the Hacker Logo
CSS+HTML, 56+84=140 bytes 52+84=136 bytes
Saved 4 bytes by incorporating suggestions from the comments.
td{border:1px solid#888;line-height:.4;font-size:3em
<...
32
votes
Accepted
Display the Hacker Logo
Mathematica, 62 bytes
Grid[{{,a=██,},{,,a},{a,a,a}},Frame->All,FrameStyle->Gray]
Mathematica, 71 bytes
...
26
votes
25
votes
24
votes
17
votes
Game of Life arrowslits
Python 2, 142 136 135 bytes
-6 bytes thanks to ElPedro
-1 byte thanks to TuukkaX
...
17
votes
15
votes
Display the Hacker Logo
HTML & CSS, 155 bytes
Turns out HTML is really forgiving about syntax errors.
1 byte saved thanks to @Octopus · 1 byte saved thanks to @Downgoat · 2 bytes saved thanks to @StephenS
2 bytes ...
14
votes
Shortest Game of Life
Vim, 549 552 533 421 420 bytes
Nice.
+3 because of a bug where cells wouldn't die if no cells came to life.
-19 because I made a version that was generalized to any grid size and realized that I ...
14
votes
Display the Hacker Logo
Applesoft BASIC, 479 476 516 515 483 482 bytes
-32 by using unreadable variable names :P
-1 because Apple decided to be magical and let me use an implicit/nonexistent GOTO
Here is my own (very ...
14
votes
14
votes
Is it a still-life?
APL (Dyalog Extended), 61 56 48 40 37 36 35 33 32 bytes
6∧+/w∘≢¨⊢∘⌂life\5/⊆w←0,∘⌽∘⍉⍣16⊢⎕
Try it online!
Outputs 0 for still-life, 6 for oscillators, and 12 for ...
14
votes
Minimally destroy CGCC in Game of Life
Score 8, 69 generations
This is what I promised for in the comment, but it got already beaten by Dingus...
I can't upload images right now, so I include a text-based initial configuration and the copy....
14
votes
Keep PPCG running in Game of Life
2986 2320 1228 generations
I wrote a rudimentary Python script for Golly to generate random 5x10 patterns until it encountered one whose population was fixed, and whose bounding box was not too large (...
13
votes
Accepted
Count common Game of Life patterns
Haskell, 2417 bytes
This took quite a while and there are still a few bugs, but I got several tricks working so it was worth it.
Notes:
It only accepts the plaintext format, passed to STDIN
It takes ...
13
votes
Display the Hacker Logo
PNG, 105 100 bytes
(i.e. this image file)
Considering that HTML and other non-programming languages are allowed,
I was curious to see how much I could golf a plain browser-displayable image, to ...
13
votes
Accepted
12
votes
Display the Hacker Logo
R (130 119 113 bytes)
plot(c(2,4,6,4,6),c(2,2,2,6,4),an=F,ax=F,xli=(l=c(1,7)),yli=l,xaxs="i",yaxs="i",pch=16,cex=19);grid(3,lt=1);box()
11
votes
11
votes
10
votes
Change the rules of Life
MATL, 24 23 bytes
xx:"tt3Y6Z+1Gm<8M2Gmb*+
Inputs are:
Array with birth rule
Array with survival rule
Number of generations
Matrix with initial cell ...
10
votes
Is it a still-life?
MATL, 42 38 31 29 bytes
2 bytes saved thanks to @Neil!
4thYaXJ4:"3Y6QZ+5:7mtJX=w]xvu
Input is a binary matrix. Output is
Still life: ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
game-of-life × 40code-golf × 25
cellular-automata × 21
code-challenge × 9
grid × 8
graphical-output × 5
game × 4
ascii-art × 3
busy-beaver × 3
string × 2
sequence × 2
array × 2
kolmogorov-complexity × 2
popularity-contest × 2
parsing × 2
source-layout × 2
king-of-the-hill × 2
image-processing × 2
math × 1
decision-problem × 1
geometry × 1
quine × 1
matrix × 1
fastest-code × 1
optimization × 1