Thread: Grid for Conway's Game of Life in Windows

  1. #1
    Registered User
    Join Date
    Sep 2023
    Posts
    3

    Grid for Conway's Game of Life in Windows

    Whats the best way to create a grid of arbitrary cell count, where each cell needs only be fully filled or empty in Windows (using the win32 api)

    In a past project with similar requirements, I just made every cell a child window. I could easily reuse that code I suppose.

    But as I did then, I wonder if this is the most efficient method. Performance isn't really an issue I think. But my sensibilities still want the cleanest solution.

    Ideas?

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,664
    It is insane to represent each cell by a child window!

    Quadtrees are common:
    Quadtree - Wikipedia

    Hashlife is very sophisticated:
    https://www.youtube.com/watch?v=l228ARRYkNE
    An Algorithm for Compressing Space and Time | Dr Dobb's
    Hashlife - Wikipedia

    Golly has source (and supports hashlife algorithm) :
    Golly Game of Life Home Page
    All truths are half-truths. - A.N. Whitehead

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C++] Conway Game of Life - Help!
    By nocturnalbird in forum C++ Programming
    Replies: 1
    Last Post: 02-12-2017, 08:03 PM
  2. Conway's Game of Life
    By trdains in forum C++ Programming
    Replies: 1
    Last Post: 01-25-2014, 02:50 PM
  3. Conway's game of life in parallel
    By std10093 in forum C Programming
    Replies: 15
    Last Post: 07-25-2013, 01:01 PM
  4. Conway's Game of Life using pointers!
    By john_member in forum C Programming
    Replies: 2
    Last Post: 03-10-2013, 11:21 PM
  5. Conway's Game of Life
    By Anhur in forum C Programming
    Replies: 37
    Last Post: 09-27-2012, 10:54 PM

Tags for this Thread