#conways game of life (2 parts)

1 messages ยท Page 1 of 1 (latest)

wet drum
#

would greatly appreciate help!

solemn fogBOT
#

<@&987246717831381062> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question ๐Ÿค–. Maybe it helps! In any case, a human is on the way ๐Ÿ‘. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Would greatly appreciate help!

Conway's Game of Life is a cellular automaton simulation that follows specific rules to determine the evolution of a grid of cells. In each generation, cells live, die, or reproduce based on their neighboring cells.

To implement Conway's Game of Life in Java, you can start by creating a 2D array to represent the grid of cells. Each cell can be represented as either alive (1) or dead (0). You can initialize the grid with random values or predefined patterns.

Next, you need to implement the rules for determining the state of each cell in the next generation. The rules are as follows:

  1. Any live cell with fewer than two live neighbors dies (underpopulation).
  2. Any live cell with two or three live neighbors survives.
  3. Any live cell with more than three live neighbors dies (overpopulation).
  4. Any dead cell with exactly three live neighbors becomes alive (reproduction).

You can create a method to apply these rules to each cell in the grid and update their states accordingly. Finally, you can iterate through generations by repeatedly applying these rules and updating the grid.

If you need further assistance with any specific aspect of implementing Conway's Game of Life in Java, feel free to ask for help in our Discord server!

wet drum
solemn fogBOT
wet drum
#

oops

solemn fogBOT
wet drum
#

if anyone could help, we were given these files and were told to run them, but mine dont work very well

#

I need to get this code working so I can start on the second part

#

itd be greatly appreciated!

void stratus
#

It's best to explain what issue you're encountering, and the relevant lines of code. It makes it easier for people to help out.

wet drum
#

when i run the file with these parameters, it prints out this:

void stratus
#

You have no newline in your next generation section.

wet drum
solemn fogBOT
wet drum
#

I fixed it i think

#

but i still have 1 issue idk how to fix

wet drum
#

whatever

#

this shit is so stupid