Conway's Game of Life

by qbguy

CALL ABSOLUTE version -- for QB 1.1:

http://www.network54.com/Forum/178387/message/1206228707/CONWAY%27S+GAME+OF+LIFE+--+call+absolute+version

CALL INTERRUPT version -- for compiling with QB 7.1, QB 4.5, or QB64 (when it supports CALL INTERRUPT, which will probably be earlier than it supports CALL ABSOLUTE):

http://www.network54.com/Forum/178387/message/1206228118/Conway%27s+Game+of+Life+--+CALL+INTERRUPT+VERSION


Use the mouse to set up the initial position. Right click when you are done. The program will then iterate through 100 generations, pausing 0.2 seconds between generations. You can have it skip to the next generation without pausing by pressing a key or clicking or you can have it exit by pressing escape.

The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead. Every cell interacts with its eight neighbours, which are the cells that are directly horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur:

  • Any live cell with fewer than two live neighbours dies, as if by loneliness.
  • Any live cell with more than three live neighbours dies, as if by overcrowding.
  • Any live cell with two or three live neighbours lives, unchanged, to the next generation.
  • Any dead cell with exactly three live neighbours comes to life.


Posted on Mar 22, 2008, 4:36 PM
from IP address 75.9.218.72

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
And do what? (URL*) on Mar 22
Version with Better Instructionsqbguy on Mar 23
 More Patternsqbguy on Mar 23
 Now that's better on Mar 24
* How did you get the screen 40 * 80 instead of 24 * 80, or something?drew on Mar 23
 Use the width statement: WIDTH 80, 50 or WIDTH 80, 43qbguy on Mar 23
  * Guess what you forgot?Asterisk Police on Mar 23
  * Thanks, QBguy =] worked perfectlydrew on Mar 23
   If I made an EXE with WIDTH in it, would it be compatable on different computers?drew on Mar 23
    * I don't know if Vista's broken NTVDM supports WIDTH or notqbguy on Mar 23
     Vista and WIDTH in a console.Pete on Mar 23