struct Quad
{
bool ul;
bool ur;
bool dl;
bool dr;
};
class Garden;
struct Fitness
{
int clumpsize;
int perimeter;
Garden* g;
float value;
int numclumps;
};
class Rule
{
public:
Rule(void);
~Rule(void);
void Copy( Rule* r );
void InitBasic();
void Mutate();
Quad Grow( bool self, bool u, bool r, bool d, bool l );
Fitness fit;
private:
bool* grow_in;
float** grow_wgt;
};
# |
Change |
User |
Description |
Committed |
|
#1
|
4776 |
Sam Stafford |
A simple Qt frontend to the "squaregarden" algorithms. |
|
|
//guest/sam_stafford/garden/src/Rule.h |
#1
|
4772 |
Sam Stafford |
Something I've been doodling with. |
|
|