26 lines
372 B
C
26 lines
372 B
C
#ifdef DEBUG
|
|
#define NUM_ANTS 1
|
|
#else
|
|
#define NUM_ANTS 200
|
|
#endif
|
|
|
|
struct Ant {
|
|
unsigned char id;
|
|
unsigned int pc;
|
|
unsigned short cell;
|
|
unsigned char carrying;
|
|
int r0;
|
|
int r1;
|
|
int r2;
|
|
int r3;
|
|
int r4;
|
|
int r5;
|
|
int r6;
|
|
int r7;
|
|
int jr;
|
|
|
|
};
|
|
|
|
struct Ant* create_ants();
|
|
void reset_ants(struct Ant* ants, unsigned short nest);
|