From d62603b9c309e7071a00820775cf5fcfb2738aac Mon Sep 17 00:00:00 2001 From: Martin Euzenat Date: Sat, 20 Jan 2024 02:51:01 -0500 Subject: [PATCH] changement mineur --- GPA675Lab1GOL/GOLTeamH.cpp | 4 ++-- GPA675Lab1GOL/GOLTeamH.h | 1 - GPA675Lab1GOL/GridTeamH.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/GPA675Lab1GOL/GOLTeamH.cpp b/GPA675Lab1GOL/GOLTeamH.cpp index a61f7ea..0a7a308 100644 --- a/GPA675Lab1GOL/GOLTeamH.cpp +++ b/GPA675Lab1GOL/GOLTeamH.cpp @@ -2,7 +2,6 @@ - //Inlining des acesseur dans GOLTeam.h @@ -225,7 +224,7 @@ void GOLTeamH::setBorderManagement(BorderManagement borderManagement) switch (borderManagement) { case BorderManagement::immutableAsIs: - // Aucune action nécessaire, les cellules du contour restent inchangées + break; case BorderManagement::foreverDead: @@ -244,6 +243,7 @@ void GOLTeamH::setBorderManagement(BorderManagement borderManagement) break; } + mIteration = 0; } diff --git a/GPA675Lab1GOL/GOLTeamH.h b/GPA675Lab1GOL/GOLTeamH.h index 07573fb..a4aee27 100644 --- a/GPA675Lab1GOL/GOLTeamH.h +++ b/GPA675Lab1GOL/GOLTeamH.h @@ -1,5 +1,4 @@ #pragma once - #include #include #include diff --git a/GPA675Lab1GOL/GridTeamH.cpp b/GPA675Lab1GOL/GridTeamH.cpp index c7f0871..1cfd1df 100644 --- a/GPA675Lab1GOL/GridTeamH.cpp +++ b/GPA675Lab1GOL/GridTeamH.cpp @@ -138,7 +138,7 @@ void GridTeamH::randomize(double percentAlive) //sans changer les autres case void GridTeamH::setBorderValue(CellType initValue) { - + // Boucle pour parcourir chaque ligne de la grille for (size_t row = 0; row < mHeight; row++) { // Boucle pour parcourir chaque colonne de la grille