BASIC

Author Topic: Game of Life  (Read 3061 times)

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
Game of Life
« on: 2016-Jun-27 »
This is my implementation of Conway's game of life.

Any live cell with fewer than two live neighbours dies, as if caused by under-population.
Any live cell with two or three live neighbours lives on to the next generation.
Any live cell with more than three live neighbours dies, as if by over-population.
Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

so you can try to create  patterns that will live for as long as possible.




https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
I am also testing my fledgling UI.

Thanks for looking.
« Last Edit: 2016-Jun-30 by monkeybot1968 »

Offline Paul Smith

  • Mr. Polyvector
  • ***
  • Posts: 105
    • View Profile
Re: Game of Life
« Reply #1 on: 2016-Jun-27 »
Panda detected this as a Virus,turned it off and it runs.
Not sure how to play
Amstrad CPC 6128, ATARI STE.
Acer  SW5-173 & AMD FX 8350/1050Ti

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
Re: Game of Life
« Reply #2 on: 2016-Jun-27 »
The wikipedia article explains it better than i could,It is basically a simulation of life.

Any live cell with fewer than two live neighbours dies, as if caused by under-population.
Any live cell with two or three live neighbours lives on to the next generation.
Any live cell with more than three live neighbours dies, as if by over-population.
Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

so you can try to create  patterns that will live for as long as possible.
It's not really a game.

Clear the grid and then choose "line of ten" then run simulation and you will see what i mean.

Panda probalby didn't like the fact it was an exe.
« Last Edit: 2016-Jun-27 by monkeybot1968 »

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5014
  • O Rly?
    • View Profile
Re: Game of Life
« Reply #3 on: 2016-Jul-01 »
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
Re: Game of Life
« Reply #4 on: 2016-Jul-01 »
I thought there may be one on here somewhere.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1456
    • View Profile
Re: Game of Life
« Reply #5 on: 2016-Aug-11 »
I think this was on my Horizons tape back when I had a my first computer Spectrum 48k.

:)

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline dreamerman

  • Global Moderator
  • Dr. Type
  • *******
  • Posts: 288
    • View Profile
    • my personal website
Re: Game of Life
« Reply #6 on: 2016-Aug-13 »
Idea behind the game is fair simple but it's something different so it can be good as little playground app/game. Or combine it with few other simple idea games and it would be nice logic pack for mobiles. Strange that e.g. on Windows Phone there are only 2 games based on 'Conway's game of life' idea, both unpolished/unfinished..
btw. at first I was thinking that it's some kind of evolution game where you need to create basic single-celled organisms :-)
Check my source code editor for GLBasic - link

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1456
    • View Profile
Re: Game of Life
« Reply #7 on: 2016-Aug-13 »
My game Zombie Ablockalypse uses a spreading zombie virus in the gameplay.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs