Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Conway's Game of Life  (Read 1097 times)

0 Members and 1 Guest are viewing this topic.
Conway's Game of Life
« on: July 01, 2009, 11:16:14 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 245
For those who don't know what it is:

http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

So basically, it's just a system of rules that governs whether any cell in a grid is empty or filled.

Anyways, I'm programming it in GM, which shouldn't be terribly hard, as it's a really simple system of rules. However, here's what I want to know:

I could probably set it up to where there's always an object in each cell, and it just flips it between two states by checking its neighbors. The problem with that is, I don't want to do that because I'd have to place an instance in every square of the grid, and I don't want a crapload of instances when I move to a larger grid.

So, is there any way I can simply use a single controller object that can check all the positions by itself, rather than have each cell do it separately?
Logged
Re: Conway's Game of Life
« Reply #1 on: July 02, 2009, 06:59:29 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3374
Makr overmars actually made a simple game of life for GM. I think you can still get it in tutorials on yoyogames.
Logged
Quote from: Jason
Your community is a bunch of stuck up turds.
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.053 seconds with 39 queries.