update for recommended logs
This commit is contained in:
12
src/base.h
12
src/base.h
@@ -30,17 +30,17 @@ typedef double f64;
|
||||
#define SAFE_SUB(A, B) ((A) < (B) ? 0 : (A) - (B))
|
||||
|
||||
// GUI stuff
|
||||
#define WIDTH 800
|
||||
#define HEIGHT 800
|
||||
#define WIDTH 1024
|
||||
#define HEIGHT 1024
|
||||
|
||||
// Simulation constants
|
||||
#define SIZEOF_PROGRAM_POW_2 8
|
||||
#define SIZEOF_PROGRAM_POW_2 4
|
||||
#define SIZEOF_PROGRAM (1 << SIZEOF_PROGRAM_POW_2)
|
||||
#define NUM_PROGRAMS_POW_2 8
|
||||
#define NUM_PROGRAMS_POW_2 10
|
||||
#define NUM_PROGRAMS (1 << NUM_PROGRAMS_POW_2)
|
||||
|
||||
#define MUTATION_CHANCE 10000
|
||||
#define MUTATION_OFFSET 3
|
||||
#define MUTATION_CHANCE 5000
|
||||
#define MUTATION_OFFSET 10
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ int main(void)
|
||||
BeginDrawing();
|
||||
ClearBackground(BLACK);
|
||||
simulation_draw(&sim);
|
||||
DrawFPS(0, 0);
|
||||
EndDrawing();
|
||||
}
|
||||
state_iterator.done = true;
|
||||
|
||||
@@ -33,6 +33,8 @@ void simulation_mutate(simulation_t *sim)
|
||||
sim->memory[i] += (rand() % MUTATION_OFFSET) - (MUTATION_OFFSET / 2);
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)sim;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user