sekkurocode / Cellular-Automata

Development of a python software, simulating "Cellular Automata".
MIT License
1 stars 0 forks source link

W1: most basic code structure and to do #5

Closed fabrice-eberle closed 5 months ago

fabrice-eberle commented 7 months ago

what a game loop should do on the most basic level:

Board (empty np zeros) -> class

create random distribution in Start class

board (np array_random_distribution)

def check (checking every cell, if sum of neighbors >3 , =2 or <2) if ( Li(t) = {1 if sumj oj = 3 {o(t) if sumj oj = 2 {0 otherwise ) ----> o is the cell, value is saved on a temporary board

board = temporary board

restart

Please comment with the part of the code that you are working on.

We also need to create a test for the basic code.

fabrice-eberle commented 7 months ago

I will work on the check method in the array, the if clauses, the filling of the temporary next gen board.

sekkurocode commented 7 months ago

I'm gonna define the classes and their init functions. So parameters like rules of survival and such.

Sara25s commented 7 months ago

I´m gonna work on the Game Classe

redibaj commented 7 months ago

I will work on the test methods