Slashdot Mirror


'Tetris' Recreated In Conway's 'Game of Life' (stackexchange.com)

In 1970 mathematician John Conway created rules for the "Game of Life," a now famous "zero-player game" where a grid of cells evolves (following Conway's rules) from an initial state proposed by the player. In 2013 someone challenged readers of StackExchange's "Programming Puzzles & Code Golf" section to devise an initial state "that will allow for the playing of a game of Tetris."

An anonymous Slashdot reader reports that "This challenge sat around, gathering upvotes but no answer, for four years. Then, it was answered." Citing the work of seven contributors, a massive six-part response says their solution took one and a half years to create, and "began as a quest but ended as an odyssey." The team created their own assembly language, known as QFTASM (Quest for Tetris Assembly) for use within Conway's mathematical universe, and then also designed their own processor architecture, and eventually even a higher-level language that they named COGOL. Their StackExchange response includes a link to all of their code on GitHub, as well as to a page where you can run the code online.

One StackExchange reader hailed the achievement as "the single greatest thing I've ever scrolled through while understanding very little."

13 of 87 comments (clear)

  1. Life is Turing complete by ShanghaiBill · · Score: 3, Interesting

    Conway's game of Life has been shown to be Turing Complete, so it can do anything any computer can do. You can use glider generators to construct a NAND gate, and then use NAND gates to construct any logic circuit, including a CPU.

    Someone should write a compiler to run arbitrary software inside the automaton system.

    1. Re:Life is Turing complete by gehrehmee · · Score: 2

      They're already working on a gcc backend, so the languages GCC can compile could be compiled to run on their architecture.

      --
      "You know, Hobbes, some days even my lucky rocketship underpants don't help" -- Calvin
    2. Re:Life is Turing complete by thinkwaitfast · · Score: 3, Interesting
      It was done a few years ago. Very cool stuff. One of the coolest things I've ever seen.

      https://www.youtube.com/watch?v=xP5-iIeKXE8

    3. Re:Life is Turing complete by Anonymous Coward · · Score: 2, Funny

      No, no. They need to run The Game Of Life.

  2. How can I see the underlying Game-of-Life? by schweini · · Score: 2

    I ran the code online, but can't find a way to see the lowest level of their stack, where the GoL is actually running?
    I'd also love to see their VM running!

    1. Re:How can I see the underlying Game-of-Life? by Urist+McSlashdot · · Score: 4, Informative

      https://sourceforge.net/projec... Golly is an excellent resource for exploring the GoL. Download it, and go to patterns > hashlife > metapixel to find some implementations of GoL as calculated by GoL glider NAND gates and various derived structures. It's fascinating to watch unfold and frankly beyond my comprehension.

  3. Obligatory XKCD... by Etcetera · · Score: 2

    https://xkcd.com/505/

    Conway's Game of Life is indeed Turing Complete (see also: A New Kind of Science) and this is indeed pretty awesome that they were able to do this...

  4. What is useful? by Baron_Yam · · Score: 5, Interesting

    Eventually entropy will destroy the universe. Even if you've survived normal human mortality, the end of the Earth, and the end of the Sun (etc, etc, etc)... ultimately absolutely nothing you've ever achieved will have any significance whatsoever.

    These guys had fun doing something difficult just to do it, and they didn't hurt anybody else in the process. THAT is actually the most significant thing you can manage in our universe. Just deal with the fact that you're less important than they are and get on with the remainder of your meaningless existence.

    1. Re:What is useful? by thinkwaitfast · · Score: 4, Interesting
      You don't think it could have been a massive learning experience? I think it's far more productive than trying to solve a crossword or Sudoku math puzzle and billions of hours are 'wasted' on those every year.

      I wasted thousands of hours writing simulations on a computer as a kid with no money to buy games and it landed me many very lucrative jobs throughout my life. If I was 30 years younger, this is exactly the type of stuff that I'd be doing.

    2. Re:What is useful? by ShanghaiBill · · Score: 2

      it was a tremendous waste of time

      Americans collectively spend about 800 billion hours per year watching TV. If you want to criticize people for wasting time, there are better targets than this handful of coders.

      They are doing nothing to help cure cancer, but neither is any artist, poet, dancer, novelist, or musician. Should we also criticize those people for "wasting time"?

    3. Re:What is useful? by umafuckit · · Score: 2

      Eventually entropy will destroy the universe. Even if you've survived normal human mortality, the end of the Earth, and the end of the Sun (etc, etc, etc)... ultimately absolutely nothing you've ever achieved will have any significance whatsoever.

      Can entropy be reversed?

  5. Re:Tetris' ? by markdavis · · Score: 2

    >"OK, it is late, but I have read that a dozen times now and I don't quite understand."

    And now I see the problem- the freaky font blended the leading apostrophe into the "T." I wish I could post a screenshot of it; it really is quite amazing.

    I need to go to bed :)

  6. Re:Bah... by thegarbz · · Score: 2

    Just think of what could have been achieved if they had put that effort into something useful.

    Like posting on Slashdot? You really showed them.