Explorar o código

Update GeneticAlgorithm_BoardWarSimulationMOD.c

Rudy Boudewijn van Etten %!s(int64=4) %!d(string=hai) anos
pai
achega
f5e276e545
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ai/GeneticAlgorithm_BoardWarSimulationMOD.c

+ 1 - 1
ai/GeneticAlgorithm_BoardWarSimulationMOD.c

@@ -401,7 +401,7 @@ int getscore(){
     //count aiplayer1 and distance to target
     //count aiplayer1 and distance to target
     float avdist=0;
     float avdist=0;
     int nums=0;
     int nums=0;
-    int distanceunit[4]={0};
+    int distanceunit[114]={0};
     for(int y=0;y<10;y++){
     for(int y=0;y<10;y++){
     for(int x=0;x<10;x++){
     for(int x=0;x<10;x++){
         if(map[y][x]==AIPLAYER1){
         if(map[y][x]==AIPLAYER1){