… | |
… | |
118 | SYMMETRY_X, |
118 | SYMMETRY_X, |
119 | SYMMETRY_Y, |
119 | SYMMETRY_Y, |
120 | SYMMETRY_XY, |
120 | SYMMETRY_XY, |
121 | }; |
121 | }; |
122 | |
122 | |
|
|
123 | // 12 has been experimentally :( determined ot be a lot more stable |
|
|
124 | // than 11 or 10, leading to the assumption that something inherently |
|
|
125 | // needs a minimum size of at least 12 |
123 | #define MIN_RANDOM_MAP_SIZE 10 |
126 | #define MIN_RANDOM_MAP_SIZE 12 |
124 | |
|
|
125 | /* a macro to get a strongly centered random distribution, |
|
|
126 | from 0 to x, centered at x/2 */ |
|
|
127 | #define BC_RANDOM(x) ((int) ((RANDOM() % (x)+RANDOM()%(x)+RANDOM()%(x))/3.)) |
|
|
128 | |
127 | |
129 | #endif |
128 | #endif |
130 | |
129 | |