fp = fopen("debug.out","w"); //Zero the robot 2D array for(m=0; m<20; m++) { for(n=0; n<2; n++) { bestrobots[m][n]= 0; } } fprintf(fp, "%d \n", genome.heighto) ; //Convert the binary string to integers for(m=0 ; m=0 ; n--) { bestrobots[m][0] += genome.gene((genome.width(/2)-1 n, m) * pow(2,n); bestrobots[m][1] += genome.gene((genome.width()-) n, m) * pow(2,n); } fprintf(fp, "%d %d\n", bestrobots[m][0], bestrobots[m][1]); } //Call the shadow area function bestshadow = shadows(numrobots, bestrobots); fprintf(fp, "%d \n", bestshadow); fclose(fp); } //FUNCTION NAME: drawObstacles //DESCRIPTION: This function opens a file that contains obstacle location // information. This info. is placed into a matrix // called 'obstacles matrix'. void drawObstacles(void) { int i = ROW;