The Mental Militia Forums

Please login or register.

Login with username, password and session length
Pages: [1]   Go Down

Author Topic: Conway's Life in JavaScript  (Read 1065 times)

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6828
    • End the War on Freedom
Conway's Life in JavaScript
« on: May 29, 2016, 07:42:17 am »

I played with Conway's Life on paper in Jr. High and High School, and in Fortran in college.

One early morning about a week ago, I wrote a version in JavaScript.

I added some features today, and have been having a lot of fun playing with it.

Useless, I know. But fun. If you're a geek.

https://billstclair.com/life/
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair

DiabloLoco

  • Guest
Re: Conway's Life in JavaScript
« Reply #1 on: May 29, 2016, 08:34:52 am »

I played with Conway's Life on paper in Jr. High and High School, and in Fortran in college.

One early morning about a week ago, I wrote a version in JavaScript.

I added some features today, and have been having a lot of fun playing with it.

Useless, I know. But fun. If you're a geek.

https://billstclair.com/life/
Dude....That's trippy. I made a cool butterfly and then hit run. :thrshocker:
Logged

da gooch

  • Mr. Badger? Only when need be
  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 6868
  • 32*25' N X 77*05' W X 060 Mag
Re: Conway's Life in JavaScript
« Reply #2 on: May 29, 2016, 03:02:50 pm »

I made an arrow, rudimentary of course but I haven't figured out where the glider controls are so it is all on auto run right?

DL, I think your "butterfly" turned into a hive of termites and ate my arrow.  :thrshocker:
Logged
"Come and Take It"  Gonzales, Texas 1835

     III

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6828
    • End the War on Freedom
Re: Conway's Life in JavaScript
« Reply #3 on: May 30, 2016, 06:46:13 am »

Heh. Conway's life is a cellular automaton, invented by John Conway, in 1970. I learned about it from Martin Gardner's regular articles in Scientific American.

The only control you have over it is the initial configuration. Then you turn it on and watch it run.

https://en.wikipedia.org/wiki/Conway's_Game_of_Life
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair

Mr. Bill

  • Guest
Re: Conway's Life in JavaScript
« Reply #4 on: June 08, 2016, 05:02:10 pm »

This is the nerdiest toy I've seen in ages.  Thanks!
Logged
Pages: [1]   Go Up