Jump to content




Conway's Game Of Life


  • You cannot reply to this topic
15 replies to this topic

#1 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 16 August 2013 - 07:31 AM

Conway's Game Of Life


pastebin get gjG6MXHq gol

Pastebin: Here

Conway's game of life is like a simulation of life that is made up of cells and four simple rules:
1. If a cell has less than 2 neighbors it dies.
2. If a cell has 2 or 3 neighbors it lives.
3. If a cell has more than 3 neighbors it dies.
4. If a cell has exactly 3 neighbors it is born.

This is a computer program that computes these rules and displays them.

Features:
Colored and non-colored mode (switched with spacebar)
Play / Pause (with enter)
Editing while it is computing.

Screenshots:

Introduction:
Spoiler

Colored Mode
Spoiler

Non-Colored mode
Spoiler


#2 AlktatStudios

  • Banned
  • 52 posts
  • LocationThe Galaxy

Posted 08 September 2013 - 04:12 PM

Can you make a dropbox, pastebin, or mediafire download for this?

#3 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 08 September 2013 - 04:47 PM

Well there is a pastebin command, but now I added a link.

#4 AlktatStudios

  • Banned
  • 52 posts
  • LocationThe Galaxy

Posted 28 September 2013 - 09:37 AM

Okay, thanks.

#5 Zambonie

  • Members
  • 477 posts
  • LocationSpring Hill, Fl

Posted 01 October 2013 - 07:39 PM

Seems cool. Heh, I made a small spreading 'cell virus' .

#6 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 05 October 2013 - 10:33 PM

Hehe, by placing too many, it breaks it, the error i got was gol:111: index expected, got nil

Edit: Okay due to trial and error, basically the entire thing is if I hold down and drag a lot.

#7 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 06 October 2013 - 04:54 AM

View PostDragon53535, on 05 October 2013 - 10:33 PM, said:

Hehe, by placing too many, it breaks it, the error i got was gol:111: index expected, got nil

Edit: Okay due to trial and error, basically the entire thing is if I hold down and drag a lot.

I am unable to reproduce your error. Have you edited the code?

#8 svdragster

  • Members
  • 222 posts
  • LocationGermany

Posted 06 October 2013 - 01:38 PM

Really nice! I like running it in the background and come back later ^^

#9 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 06 October 2013 - 02:32 PM

View PostVilsol, on 06 October 2013 - 04:54 AM, said:

View PostDragon53535, on 05 October 2013 - 10:33 PM, said:

Hehe, by placing too many, it breaks it, the error i got was gol:111: index expected, got nil

Edit: Okay due to trial and error, basically the entire thing is if I hold down and drag a lot.

I am unable to reproduce your error. Have you edited the code?
Turns out it was just the CC emulator i was running, i guess i overloaded it lol, but otherthan that it works fine :P

#10 M4sh3dP0t4t03

  • Members
  • 255 posts
  • LocationGermany

Posted 09 October 2013 - 09:53 AM

Nice done. I'm currently working on my own version of this, but it's going to be different.

#11 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 15 October 2013 - 01:38 PM

I'll test it out when I get a chance - looks cool!

#12 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 17 October 2013 - 05:53 PM

This game has an interesting concept. Thanks.

#13 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 22 October 2013 - 07:24 PM

Sweet, you know a computing platform is the real deal when it includes Conway's Life.

My only suggestion: make the default pattern be that collection of seven gliders that become a glider gun...

#14 ATMunn

  • Members
  • 62 posts
  • LocationSomewhere on this earth.

Posted 22 October 2013 - 08:11 PM

Cool game! Q: How long exactly does it take for the next generation to come?

#15 Forgotten_Boy

  • Members
  • 72 posts
  • LocationOntario, Canada

Posted 24 October 2013 - 12:36 AM

I took it upon myself to add the glider synthesis of Gosper's Glider Gun myself. Here's an updated version of Vilsol's program. The pastebin ID is eZwifVAF.

Now if you run the program with a big monitor attached (at least 47 pixels wide) it will put 8 gliders on the screen that combine to form Gosper's Glider Gun, the first known "gun" in Conway's Life. Best viewed in black and white. As I recall this pattern was discovered in the 1980's by someone at MIT, but I can never find the right info about it when I look for it. In any case it is a truly fantastic pattern, it's just a shame that Vilsol's program doesn't feature a "torroidal" world so that the pattern could destroy itself. :D

The actual code to define the gliders is RLE Life format. It wouldn't take much work to generalize what I did to load Life pattern files.

#16 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 24 October 2013 - 07:48 AM

View PostForgotten_Boy, on 24 October 2013 - 12:36 AM, said:

I took it upon myself to add the glider synthesis of Gosper's Glider Gun myself. Here's an updated version of Vilsol's program. The pastebin ID is eZwifVAF.

Now if you run the program with a big monitor attached (at least 47 pixels wide) it will put 8 gliders on the screen that combine to form Gosper's Glider Gun, the first known "gun" in Conway's Life. Best viewed in black and white. As I recall this pattern was discovered in the 1980's by someone at MIT, but I can never find the right info about it when I look for it. In any case it is a truly fantastic pattern, it's just a shame that Vilsol's program doesn't feature a "torroidal" world so that the pattern could destroy itself. :D

The actual code to define the gliders is RLE Life format. It wouldn't take much work to generalize what I did to load Life pattern files.

I will update the program this weekend, so you can switch between torodial or walls. As well as I will add a reset and example buttons.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users