Init project after finished it and start of the report
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include "rabbit_hole.h"
|
||||
#include "mt19937ar.h"
|
||||
|
||||
int main(void) {
|
||||
init_genrand(42);
|
||||
printf("===========Rabbit Hole Simulation =============\n");
|
||||
rabbit_hole_t rabbits;
|
||||
init_rabbits(&rabbits);
|
||||
rabbits.male_mature[0] = 10;
|
||||
rabbits.female_mature[0] = 10;
|
||||
__uint128_t month = 0;
|
||||
print_rabbits(&rabbits,&month);
|
||||
csv_header();
|
||||
for (int j = 0; j < 12*80 ; j++) {
|
||||
if (!process_month(&rabbits,&month))
|
||||
break;
|
||||
print_rabbits(&rabbits,&month);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user