package eco.game;

public class Score {
    public static void calculateFitness(){
        int score = Main.farmer.fPop() + Main.warrior.wPop() +
        Main.wheat.gettWheat() +
        Main.economy.getTreasury() +
        System.out.println(score);
        
    }
    
    
    
    
}

@@ -16,28 +16,124 @@
 e;%0A%0A
-public class Score %7B
+import java.util.Arrays;%0A%0Apublic class Score %7B%0A    %0A    public static int%5B%5D avgScore = new int%5BPlayerCountry.ticks%5D;
 %0A   
@@ -169,16 +169,24 @@
 Fitness(
+int tick
 )%7B%0A     
@@ -196,28 +196,41 @@
 int 
-s
+tickS
 core = 
-Main
+PlayerCountry
 .farmer.
 fPop
@@ -225,16 +225,19 @@
 .farmer.
+get
 fPop() +
@@ -237,20 +237,29 @@
 Pop() + 
-Main
+PlayerCountry
 .warrior
@@ -259,16 +259,19 @@
 warrior.
+get
 wPop() +
@@ -279,20 +279,29 @@
         
-Main
+PlayerCountry
 .wheat.g
@@ -325,12 +325,21 @@
     
-Main
+PlayerCountry
 .eco
@@ -360,45 +360,504 @@
 ry()
- +%0A        System.out.println(score);
+;%0A        System.out.println(tickScore);%0A        //System.out.println(Arrays.toString(avgScore));%0A        avgScore%5Btick%5D = tickScore;%0A        %0A        int count = 0;%0A        int total = 0;%0A        %0A        for (int i = 0; i %3C avgScore.length; i++)%0A        %7B%0A            if (avgScore%5Bi%5D %3E 0)%0A            %7B%0A                total += avgScore%5Bi%5D;%0A                count++;%0A            %7D %0A        %7D%0A        %0A        int score = total / count;%0A        //System.out.println(%22Average: %22 + score);%0A        
 %0A   

Update Score.java