Linked Questions

1183 votes
6 answers
282k views

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

Here is a theoretical question - one that doesn't afford an easy answer in any case, not even the trivial one. In Conway's Game of Life, there exist constructs such as the metapixel which allow the ...
user avatar
  • 33.7k
537 votes
1 answer
180k views

Build a digital clock in Conway's Game of Life

Your task is to build a Game of Life simulation representing a digital clock, which satisfies the following properties: The clock displays the hours and minutes in decimal (e.g. ...
user avatar
  • 33.7k
39 votes
13 answers
5k views

Advanced Code Golf - Write a small HTTP server

Your challenge is to write a code-golf HTTP server that accepts GET requests. It obviously doesn't have to be fully featured, but it must serve files from a directory. Rules: The HTTP server must ...
user avatar
  • 4,390
44 votes
7 answers
13k views

(Re)Implementing Tetris

In the spirit of re-implementing classic video games, I would like to invite the community to create their best implementation of Tetris. For reference, a screenshot of the official NES version of ...
user avatar
  • 32.6k
37 votes
8 answers
4k views

Self-compiling compiler [closed]

This is based on a talk on compilers I listened to a while back, but I, unfortunately, can't remember when or where. Create the shortest compiler in any language that can compile itself. Target any ...
user avatar
  • 2,012
29 votes
8 answers
4k views

Self-Interpreting Interpreter

Based on a comment by George Edison to this question, write the smallest self-interpreting interpreter. You may use the language of your choosing. Empty languages do not count. Your program must be ...
user avatar
  • 2,012
18 votes
2 answers
1k views

Compile Regexes

In this task you have to write a program that reads a regular expression and generates another program that outputs whether an input string is accepted by that regular expression. The output must be a ...
user avatar
  • 9,952
8 votes
4 answers
3k views

Noughts and Crosses (aka Tic-Tac-Toe)

Write a Notes and Crosses application. User interface is optional. You can output the computers move in text: eg 1x1 (meaning ...
user avatar
9 votes
1 answer
2k views

Build an engine for a maze game

This is a follow up of Print a maze question. If you like this question, please add more maze generation algorithms ;). For this task you'll have to implement a game engine for one player who must ...
user avatar
  • 5,885
9 votes
2 answers
1k views

ASCII Game of Pong

Ascii Pong The challenge is to recreate the classic game "pong" in ASCII characters in the shortest code possible. Requirements/specifications The "screen" should be 45x25 characters. White space ...
user avatar