1D Game of Life - What should my range be?
We've been tasked with writing a program which simulates a 1-dimensional Game of Life. We are supposed to create a spider pattern. I've gotten this to work, however there needs to be an obscene amount...
View ArticleNeed help converting grid to string
I want to converting a list to string for an assignment. I can convert 1 row, however my teacher wants us to convert 3 separate rows to make a grid for the game of life. I've tried a bunch of different...
View ArticleOptimizing Conway's 'Game of Life'
To experiment, I've (long ago) implemented Conway's Game of Life (and I'm aware of this related question!).My implementation worked by keeping 2 arrays of booleans, representing the 'last state', and...
View ArticleVertical lines when exporting jpeg file in libjpeg c++
I don't understand why when i export to jpeg i get vertical lines every 1080 pixels. what am i doing wrong?full repo -> https://github.com/ElPettego/swg_bgvertical lines example ->...
View ArticleMy buttons keep getting hidden unless I click on them
My buttons keep disappearing every time my code creates a new screen. I believe it might be due to the buffered image that I am creating, but I am not sure.So far, I have tried removing that section of...
View ArticleImplementing scrolling on an infinite grid for Conways game of life using...
I've set up an 'infinite' grid for Conway's Game of Life using a Set object to store only the coordinates of active cells. I've implemented scrolling by applying a fixed offset to the X and Y...
View ArticleHow to dynamically scale predefined patterns in Conway's Game of Life to fit...
I'm working on a script for Conway's Game of Life that initializes the grid with predefined patterns. These patterns are read from a JSON file which includes data specifying the pattern layout and the...
View ArticleHow to escape stable pattern in conway's game of life?
I built conway's game of life and its working fine but my game after many generations is either ending with no lives or reaching a stable pattern which it can't escape.For example I have followed these...
View ArticleConway's Game of life assymetric array issue
Recently I have been making Conway's Game of Life in c++. When I was finishing GUI of the game in Qt, I realised that I'm not able to make assymetric array (I mean number of rows != number of cols)....
View ArticleIs there a way to prevent a program from checking values that are outside of...
So I'm working on an implementation of Conway's Game of Life in Python and I have most of my code written. For the most part it works; when I run it, the board appears and the cells are randomized, but...
View Articletrying to change color of square in grid on html canvas but not working and...
game of life project in react, trying to change cell color onClick but it just won't work; I literally have no clue why not. stack overflow seems to want me to be more specific but I literally have no...
View ArticleSemaphore issue in C++ multithreaded program
I'm working on a C++ program that simulates Conway's Game of Life using multithreading and semaphores for synchronization. However, I'm encountering issues with the semaphores not working properly.I...
View ArticleTypeError: variable.hasAttribute is not a function... Conway's Game of Life,...
I’m back… So, I’m trying to recreate Conway’s Game of Life, using js, html, and css. I’m having issues with the js part, specifically with the method .hasAttribute, from my understanding, it returns a...
View ArticleBigger matrix leads to GPU being under utilized with numba
I want to do a Game of Life with the possibility of making it 3D.I tried parallelization on my GPU with Numba for the following code, but with an unexpected result.I think there might be a data...
View ArticlePanning using mouse in MouseAdapter and Java swing libraries
I'm trying to implement zooming and panning feature in my implementation of Convay's game of life in java. The problem it the following:Each time when we try to pan by draging our mouse, our eye sight...
View ArticleWhere is the bug in this Canvas implementation of Conway's Game of Life?...
'use strict'const canvas = document.querySelector('canvas')const ctx = canvas.getContext('2d');ctx.fillStyle = 'black'const RESOLUTION = 10const RATE = 1000function addCell([x, y]){...
View ArticleWhy isn't this Conway Game of Life Cellular Automaton in TypeScript evolving...
I have a 2D cellular automaton open source project here, where the automaton is basically this:export interface CA { i: Uint8ClampedArray; load: Uint8ClampedArray; max: number; move:...
View ArticleThe second generation is bugged (C, Conways Game of Life)
Hey so my problem is that the when I go run this code and choose to "Zufallstand generieren" (Generate random state) and then type in the "Prozentualer Anteil lebender Zellen" (Percentage of living...
View Articlewhy do i get the error: TypeError: grid[(x + i)] is undefined?
so i have this function which is part of a project to create the conway's game of lifeand in there is a function to count the neighbours but it doesnt workthis is the code i madefunction...
View ArticleHackerRank Conway's Game of Life Algorithms
I have recently finished solving the interesting HackerRank problem titled "Conway's Game Of Life." The problem statement is as follows:Game of Life is a cellular automaton game devised by the British...
View Article