package com.github.forhacks.evolve2048;

import java.util.ArrayList;
import java.util.List;

public abstract class Neuron {

    private static final double MAX_CHANGE = 0.1;

    double up;
    double left;
    double down;
    double right;

    List<Integer> parents;
    Layer prev;

    public Neuron(List<Integer> parents, Layer prev) {

        this.up = Math.random();
        this.down = Math.random();
        this.left = Math.random();
        this.right = Math.random();

        this.prev = prev;

        this.parents = parents;

    }

    public Neuron(Neuron original) {

        this.up = original.up;
        this.left = original.left;
        this.down = original.down;
        this.right = original.right;

        this.parents = new ArrayList<>();

    }

    public void mutate() {

        up += Math.random() * MAX_CHANGE;
        left += Math.random() * MAX_CHANGE;
        down += Math.random() * MAX_CHANGE;
        right += Math.random() * MAX_CHANGE;

    }

    abstract public double[] getData();

}
@@ -548,235 +548,8 @@
  %7D%0A%0A
-    public Neuron(Neuron original) %7B%0A%0A        this.up = original.up;%0A        this.left = original.left;%0A        this.down = original.down;%0A        this.right = original.right;%0A%0A        this.parents = new ArrayList%3C%3E();%0A%0A    %7D%0A%0A
     

Remove unused function