Can anyone help me ? Our teacher gave us a task it is about "game of life", he actually gave us the methods that we can use, but i really dont know how to start ! he asked us to use 3 classes: class cellule,class ruleand class Automata(and the main of course)
package jeu_de_vie;
public class Cellule {
private int state; // should be equal to 0 (if alive) or 1 (if dead)
public Cellule(int state) { // constructor
this.state = state;
}
public void SetEtat(int state){}
public void Calculate_future_state(Cellule Cg, Cellule Cd,Regle R){} // to calculate the next state
public boolean Equals (Cellule A,Cellule B){} // to verify if the cellular are equal
}