Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: The Game of Life  (Read 3084 times)

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
The Game of Life
« on: May 17, 2009, 06:37:43 pm »

Most of you should know what the game of life is, but for those who don't:
It is a cellular automaton created by John Conway in 1970.
The rules are simple:
  • Any cell with less than 2 neighbors dies, as if by loneliness.
  • Any cell with 2 or 3 neighbors continues to live to the next generation.
  • Any cell with 4 or more neighbors dies, as if by overcrowding.
  • Any dead cell with exactly three neighbors will come to life.

There are many types of patterns:
Still Life: an object that does not move.
Spaceship: an object that moves. My avatar is a glider, the smallest spaceship.
Puffer: an object that moves and leaves behind debris. There are two kinds of puffers: dirty and clean puffers. Dirty puffers leave behind seemingly random trails of debris; clean puffers leave behind more predictable patterns of debris.
Rake: a puffer whose debris is spaceships.
Gun: a (mostly) stationary object that emits spaceships.
Oscillator: a pattern that repeats itself after a certain number of generations.

A well-done life program can be found at conwaylife.com. It also has an attached wiki with pretty much every major pattern. These rules are also the rules used for herb growing in ADOM.

Discuss.

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: The Game of Life
« Reply #1 on: May 17, 2009, 06:46:14 pm »

Two questions:
1. Who are you? And welcome to the forum.
2. Is this a game or a simulator?
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #2 on: May 17, 2009, 06:53:32 pm »

1. I am ein, that is all you need to know.

2. It is both. Wikipedia says it is a "zero-player game." That means you input the information and watch as the chaos ensues. Kinda like DF, but with less elves and magma, and more cellular automation.

lumin

  • Bay Watcher
    • View Profile
Re: The Game of Life
« Reply #3 on: May 17, 2009, 07:02:36 pm »

Darn, you got my hopes up.  I really thought you were talking about The Milton Bradley classic :'(
Logged

zestorum

  • Bay Watcher
    • View Profile
Re: The Game of Life
« Reply #4 on: May 17, 2009, 07:08:08 pm »

I'll share my pattern. It gives birth to a star right before your eyes and it looks awesome.

pattern:
---
- -
 -
- -
---

please note that the gaps are not that far apart, there are no gaps at all.
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #5 on: May 17, 2009, 07:14:01 pm »

Pattern sharing works better with code tags.
If this is the pattern you showed:
Code: [Select]
...
. .
 .
. .
...
it creates a pulsar. That's pretty awesome.

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: The Game of Life
« Reply #6 on: May 17, 2009, 07:14:49 pm »

Code: [Select]
----
 ----

Gives birth to four squares.
Logged

zestorum

  • Bay Watcher
    • View Profile
Re: The Game of Life
« Reply #7 on: May 17, 2009, 07:16:29 pm »

Pattern sharing works better with code tags.
If this is the pattern you showed:
Code: [Select]
...
. .
 .
. .
...
it creates a pulsar. That's pretty awesome.
it looks more like a sun to me.
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #8 on: May 17, 2009, 07:22:22 pm »

It's called a pulsar according to the lifewiki, but yeah, it does look like a sun.

r-pentomino swastika:
Code: [Select]
   ..
  ..
.  . .
... ...
 . .  .
   ..
  ..

Creates an awesome galaxy-like thing before vanishing.
I call it the warthog wormhole.

SHAD0Wdump

  • Bay Watcher
  • Hiding in SPAAACE!!!
    • View Profile
Re: The Game of Life
« Reply #9 on: May 17, 2009, 08:28:54 pm »

r-pentomino swastika:
Code: [Select]
   ..
  ..
.  . .
... ...
 . .  .
   ..
  ..
Too bad it doesn't last very long.

Code: [Select]
    █
     █
     █
   ██
  █
  █
   █

Don't have a name for it,it doesn't do anything incredible except basically explode.

EDIT:did this...

Code: [Select]
    █
     █
     █
 █ ██ █
  █ 
  █
   █
Lasts a hell of a lot longer.

Code: [Select]
  ███
    █

    █
    ███
Makes a bunch of gliders in the end.

Code: [Select]
  ███
   █

   █
  ███
Another way to create the pulsar.
« Last Edit: May 17, 2009, 08:46:02 pm by SHAD0Wdump »
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #10 on: May 17, 2009, 08:46:02 pm »

Lengthening the sides:
Code: [Select]
.  ....
. ..
.  . .
... ...
 . .  .
   .. .
....  .
makes it shrink instead of just vanishing.

SHAD0Wdump

  • Bay Watcher
  • Hiding in SPAAACE!!!
    • View Profile
Re: The Game of Life
« Reply #11 on: May 17, 2009, 08:47:44 pm »

As you can see from my extensive editing,I like this program...

ANOTHER EDIT:

Code: [Select]
█     █
  █   █
  ██ ██


  █████
 █     █
This guy looks angry,but you'll see several hearts in his temper tantrum.

I'm callin' the quits,gotta gets some shut-eye.
« Last Edit: May 17, 2009, 08:54:05 pm by SHAD0Wdump »
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #12 on: May 17, 2009, 08:53:28 pm »

Life is awesome.
And it's from 1970.
It's older than NetHack.

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: The Game of Life
« Reply #13 on: May 17, 2009, 08:54:46 pm »

I made a screensaver a long while back that uses the same rules.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: The Game of Life
« Reply #14 on: May 17, 2009, 08:55:46 pm »

Awesome. Did it pick random starting cells?
Pages: [1] 2