Ajout commentaires

This commit is contained in:
Mylloon 2022-04-05 18:24:53 +02:00
parent 05e2ab95cf
commit 33ac77e2e6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -2,6 +2,7 @@
#include "../includes/mouton.hpp"
#include "../includes/loup.hpp"
// Lance la simulation pour un univers
void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_loups) {
*univers = new Univers(m, n);
@ -15,6 +16,7 @@ void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_l
}
}
// Arrête la simulation d'un univers
void arreterSimulation(Univers * univers) {
delete univers;
univers = nullptr;