18 lines
577 B
C
18 lines
577 B
C
#ifndef _EPIDEMIC_ENGINE_H
|
|
#define _EPIDEMIC_ENGINE_H
|
|
|
|
#include "core.h"
|
|
|
|
// humans per case of the epidemic grid
|
|
#define HUMANS_PER_CASE 1000000
|
|
|
|
// can_become_infected : return 0 if the case (i, j) isn't infectable, 1 else
|
|
int can_become_infected(const struct grid epidemic_grid, const int mutations_selected[3], const int i, const int j);
|
|
|
|
// bernoulli : simulate a random event
|
|
int bernoulli(const float p, const int seed);
|
|
|
|
// epidemic_simulation : simulate the propagation of the virus
|
|
void epidemic_simulation(struct game *current_game);
|
|
|
|
#endif /* _EPIDEMIC_ENGINE_H */ |