#include #include "resource.h" #include #include #include #include // we're going to use the simple GA #include // and the 2D binary string genome //Erica's Stuff #define ROW 64 #define COLUMN 64 #define DON'T INTERSECT 0 #define DO INTERSECT 1 #define COLLINEAR 2 #define RANGE 50 #define MAX RAND 32767.0 //maximum random number I/ This macro is used to determine if 2 numbers // // have the same sign. // #define SAMESIGNS(a, b) ((((long) (a) (long) (b)) >= 0) ? 1 : 0) I/ Function Prototypes // void drawObstacles(void); int shadows(int num, int robot[][2]); int LOS(int matl[][COLUMN],int xs, int ys, int xe, int ye); int linesintersect(unsigned int xl, unsigned int yl, unsigned int x2, unsigned int y2, unsigned int x3, unsigned int y3, unsigned int x4, unsigned int y4); void randomRobot(int robots, int robot_positions[][2]); int multiRobotLOS(int number,int robot loc[][2],unsigned int line_segments,unsigned int *x3,unsigned int *y3,unsigned int *x4,unsigned int *y4) ;