From d338fabddc3e3b501a69831b5e63ee4590981aef Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 20 Mar 2026 03:13:09 +0000 Subject: [PATCH] base: set mutation chance to simulation size This results in the expected value of the number of mutations at any one iteration to be 1, which is good. --- src/base.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/base.h b/src/base.h index dc54179..3cc23c4 100644 --- a/src/base.h +++ b/src/base.h @@ -47,8 +47,7 @@ typedef double f64; #define CELL_WIDTH (WIDTH / (f64)CELL_ROW_SIZE) #define CELL_HEIGHT (HEIGHT / (f64)CELL_ROW_SIZE) -#define MUTATION_CHANCE 5000 -#define MUTATION_OFFSET 1 +#define MUTATION_CHANCE (SIMULATION_SIZE) #define DRAW_PROGRAM_OUTLINE 1