Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Sign in to follow this  
Fingercomp

Conway's Game of Life

Recommended Posts

eAINaIq.png

OK, here's what you should do in this game:

  • Create an initial configuration.
  • Observe how it evolves.
Sounds simple?

This program is something like the pixel editor. You have a board with a grid, pressing left mouse button places a cell, pressing right one kills a cell. All the magic begins when you press [space bar]. Then every 1/10 s the board updates according to the following rules:

  • Every cell may have up to 8 neighbors.
  • Any live cell with 0 or 1 neighbors dies (under-population).
  • Any live cell with 2 or 3 neighbors lives on to the next generation.
  • Any live cell with more than 3 neighbors dies (over-population).
  • Any dead cell with exactly 3 neighbors becomes a live one (reproduction).
You can find more information here.

Controls:

  • [space bar] Start or pause simulation.
  • [RMB] Kill a cell.
  • [LMB] Place a cell.
Requirements:
  • Tier 3 screen (only this screen supports precise mode).
  • Tier 3 graphics card.
Download:

wget https://raw.githubusercontent.com/OpenPrograms/Fingercomp-Programs/master/game-of-life/game-of-life.lua gol.lua

Share this post


Link to post
Share on other sites

Looks great! I love playing around with this :)

CC has a treasure disk with this on it - theirs has a toggleable option that shows colors representing the cells - red for a cell that will die next turn, green for a cell that will live, and yellow for a cell that will be born. I really liked that feature - and it looks pretty.

I think I might add that functionality into this version, when I get the time to mess around with it :)

Share this post


Link to post
Share on other sites

CC has a treasure disk with this on it - theirs has a toggleable option that shows colors representing the cells - red for a cell that will die next turn, green for a cell that will live, and yellow for a cell that will be born. I really liked that feature - and it looks pretty.

I've updated the game. One of new features is highlighting, toggled by [c]. (Red means that a cell will die next turn. Green - will be born. White - stays alive)

J7enOnc.png


vAxFyhu.png

Other features:

  • [backspace] clears the board;
  • [<] and [>] controls the speed of the simulation;
  • [Enter] updates the board if the simulation is paused (something like one-step simulation);
  • Generation counter.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.