Author Topic: Game of Life!  (Read 9085 times)

0 Members and 1 Guest are viewing this topic.

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Game of Life!
« Reply #15 on: September 21, 2019, 07:41:48 pm »
LOL
you can say the same for Bplus!

We must be a Memory game to power up the memory...
No that with letters! ;-)
Programming isn't difficult, only it's  consuming time and coffee

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Game of Life!
« Reply #16 on: September 21, 2019, 07:45:40 pm »
LOL
you can say the same for Bplus!

We must be a Memory game to power up the memory...
No that with letters! ;-)

Right-O! LOL I missed it too!

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: Game of Life!
« Reply #17 on: September 23, 2019, 09:07:45 am »
Beautiful! BTW, Why it is called Game of Life? Is it related to life?
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials

FellippeHeitor

  • Guest
Re: Game of Life!
« Reply #18 on: September 23, 2019, 09:31:09 am »
Beautiful! BTW, Why it is called Game of Life? Is it related to life?

It supposedly mimics bacteria in a Petri dish.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Game of Life!
« Reply #19 on: September 23, 2019, 09:34:11 am »
Beautiful! BTW, Why it is called Game of Life? Is it related to life?

Google: John Horton Conway's Game of Life. It is life on a most elemental level, life or death on a 2D grid of cells (0 = dead, Not 0 = alive)

Each cell (except along edges) has 8 neighbors, a cell survives to next generation (next view of board) if it has 2 or 3 neighbors, any more or less, it dies. A birth occurs to a cell with 2 neighbors. With that simple set of rules you watch some seed screen develop through generations until all dies or stabilizes or continues to expand...

These rules provide an asymmetric progression that can't be reversed uniquely, ie you can't take the current state of the board and predict what the previous state was.

Why is it called a Game? Maybe because of the rules and each turn is determined by the rules. This code has been played with since the 70's and Wolfram tried to create a new math or science from it.

« Last Edit: September 23, 2019, 09:58:19 am by bplus »

Offline Jack002

  • Forum Regular
  • Posts: 123
  • Boss, l wanna talk about arrays
    • View Profile
Re: Game of Life!
« Reply #20 on: September 23, 2019, 11:46:55 am »
This has been around for a long time. Since 1970. Read the wiki
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
QB64 is the best!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Game of Life!
« Reply #21 on: September 23, 2019, 03:59:43 pm »
but it runs on a single plane for make the work easy ...
I'm imagining a game with 3 layer/planes and all the same rules except to control  neighbours, and neighbours are  all 24 cells around the cell tested...
Programming isn't difficult, only it's  consuming time and coffee

Offline Jack002

  • Forum Regular
  • Posts: 123
  • Boss, l wanna talk about arrays
    • View Profile
Re: Game of Life!
« Reply #22 on: September 23, 2019, 04:18:13 pm »
Sure, 3D life, then on to 4D
:)
QB64 is the best!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Game of Life!
« Reply #23 on: September 23, 2019, 04:27:57 pm »
Sure, 3D life, then on to 4D
:)

4D...

What exactly is 4D?  I was always taught that the 4th dimension was TIME.

X, Z, Y, T --- X,Y,Z represents an object's location in space, while T represents the time it was in that location.  A book might be 3 inches from the right side of a bookshelf, 12 inches from the top of said bookshelf, and 2 inches deep into that same bookshelf, at 12:23:37 PM, but not there the next second as someone took it from the shelf.

If time isn't the 4th dimension, what is?
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Game of Life!
« Reply #24 on: September 23, 2019, 05:56:10 pm »
Hi Jack
here there are the entities of the plane 2D developed in the running time
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns

well it has been founded recurrent patterns...
it'll be also in 3D... or someone have already done this?
-----------------
LOL Saint Google answered to this my question...

simulator online http://rbeaulieu.github.io/3DGameOfLife/3DGameOfLife.html?
https://en.wikipedia.org/wiki/3D_Life
https://www.youtube.com/watch?v=wBqLxVvDuLY
https://morphocode.com/conways-game-of-life-with-memory/
https://www.quora.com/Would-Conways-Game-of-Life-work-in-a-three-dimensional-space


About the forth dimension... it is an old old idea with strong math basis... but we live in an older past with our limited minds!
see here when 4D universe (iperspazio) had been thought with math basis! :-)
https://en.wikipedia.org/wiki/Four-dimensional_space#History



« Last Edit: September 23, 2019, 06:18:56 pm by TempodiBasic »
Programming isn't difficult, only it's  consuming time and coffee

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Game of Life!
« Reply #25 on: September 23, 2019, 06:35:24 pm »
Well I wonder if anyone like me will suggest hexagon Life. :)

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Game of Life!
« Reply #26 on: September 24, 2019, 10:28:04 am »
About the forth dimension... it is an old old idea with strong math basis... but we live in an older past with our limited minds!
see here when 4D universe (iperspazio) had been thought with math basis! :-)
https://en.wikipedia.org/wiki/Four-dimensional_space#History

Quote
Assuming a four-dimensional being were able to "see" his world in projections to a hypersurface, also just one dimension less, i.e., to three dimensions, it would be able to "see", e.g., all six sides of an opaque box simultaneously, and in fact, what is inside the box at the same time,

okay SuperMan.
Granted after becoming radioactive I only have a half-life!

Offline Jack002

  • Forum Regular
  • Posts: 123
  • Boss, l wanna talk about arrays
    • View Profile
Re: Game of Life!
« Reply #27 on: September 24, 2019, 06:25:07 pm »
Steve, looks like I stirred the pot, then left :-D
I think you're right, the 4th dimention is time.





The 5th dimention is a singing group
*rimshot*
QB64 is the best!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Game of Life!
« Reply #28 on: September 24, 2019, 06:59:27 pm »
@Cobalt

no SuperMan but man with different glasses...those had been built when many of today innovations were unreal...
it seems all logic and math perspectives, not yet used today except for very small part of engeneering

Quote
To understand the nature of four-dimensional space, a device called dimensional analogy is commonly employed. Dimensional analogy is the study of how (n − 1) dimensions relate to n dimensions, and then inferring how n dimensions would relate to (n + 1) dimensions

Quote
As a three-dimensional object passes through a two-dimensional plane, two-dimensional beings in this plane would only observe a cross-section of the three-dimensional object within this plane. For example, if a spherical balloon passed through a sheet of paper, beings in the paper would see first a single point, then a circle gradually growing larger, until it reaches the diameter of the balloon, and then getting smaller again, until it shrank to a point and then disappeared. Similarly, if a four-dimensional object passed through a three dimensional (hyper)surface, one could observe a three-dimensional cross-section of the four-dimensional object—for example, a 4-sphere would appear first as a point, then as a growing sphere, with the sphere then shrinking to a single point and then disappearing
and if you want see images look here http://www.math.union.edu/~dpvc/math/4D/welcome.html

LOL what do you feel thinking of a programming language using as basis the quaternions?
I'll vote for QB64_4D development!
Programming isn't difficult, only it's  consuming time and coffee

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
    • View Profile
Re: Game of Life!
« Reply #29 on: September 24, 2019, 07:26:25 pm »
Quote
If time isn't the 4th dimension, what is?

Bro...

http://barnes.x10host.com/riemannian%20geometry/Riemannian%20Geometry.pdf

(Basically everything in that document is about geometry in N dimensions. Look for Minkowski space if you want time as the fourth dimension, but this is just a special case.)
« Last Edit: September 24, 2019, 07:31:06 pm by STxAxTIC »
You're not done when it works, you're done when it's right.