Questions tagged [conways-game-of-life]

The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. The "game" takes place on a 2D grid made up of cells that may either be "alive" or "dead". At each iteration, the state of each cell is computed based on the states of the cell and its 8 neighbors at the previous iteration.

From Wikipedia:

The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.

The "game" is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves.

594 questions
-3
votes
1 answer

Conway's Game of Life using Sparse Matrix (Python)

I am writing the game of life in python using a Sparse Matrix. My program takes coordinates from user input and sets the cells at the chosen coordinates to be alive. I have it to where it will print the first generation, but I can't seem to figure…
Jacques
  • 63
  • 2
  • 9
-4
votes
2 answers

conways game of life from automate boring stuff book

i need to create a python conways game of life. i have this code given below from book "how to automate boring stuff with python" i had run this code but the output doesn't seem that the code is correct. i intended to get a result of the conway…
-4
votes
1 answer

Conways Game of Life in JavaFX

I try to add a method that let a cell get alive if it's clicked by the left mouse button but I don't know how. I tried to add a MouseClickListener but I couldn't connect it to my code. I'm new to JavaFx so it's pretty hard to overview all the…
bfg
  • 13
  • 5
-4
votes
2 answers

Game of Life malfunctioning java

Me and my research partner at school have trouble with our assignment about Conway's Game Of Life. Our program is malfunctioning and looking at the code I see nothing wrong with our code and when looking at the error message and even the debug…
Nessa
  • 1
  • 1
-4
votes
1 answer

I'm making conway's game of life, and i can't seem to get my code working. I think my update function is wrong

import pygame import time import sys HEIGHT = 100 WIDTH = 100 SCALE = 10 SCREEN = pygame.display.set_mode((WIDTH*SCALE, HEIGHT*SCALE)) def create_blank(): """Creates a HEIGHT x WIDTH list containing all zero's. The inner lists will all…
Johnny
  • 1
  • 1
-4
votes
1 answer

Golly Python Error: Weird syntax error "list has no attribute g"

I have the following piece of code in Golly's Scripts folder, but it returns me an attribute error, which I can't find out why happens *. If you understand Game of Life: it should put induction coils automatically near a selected unstable pattern,…
wallabra
  • 412
  • 8
  • 17
-4
votes
2 answers

Conways Game of Life Simulation doesn't update correctly

I have to write a Conways game of life simulation for a programming module in college. The program works in the fact that in correctly calculates number of neighbors each iteration. How it should work is: Current State Neighbors …
-5
votes
1 answer

C-programming board game

I am trying to make a board game with Maximum board width 80 cells and Maximum board height 52 cells, however the user should be able to choose the dimensions by entering them into the command line, so the dimensions could be smaller than the…
Ibz
  • 1
  • 1
  • 2
-7
votes
1 answer

Designing Game of Life using classes C++

for my final project in my intro C++ class we have to design a version of Game of Life using classes and file I/O. I have been given some beginning functions/instructions but can't even begin to understand where to start or if I am missing other…
1 2 3
39
40