diff --git a/src/univers.cpp b/src/univers.cpp index f20985e..de747e9 100644 --- a/src/univers.cpp +++ b/src/univers.cpp @@ -9,7 +9,7 @@ Univers::Univers(const int longueur, const int largeur): m_longueur(longueur), m_total_ID = ID; // + 1 aux ID // On ajoute tous les index possibles car pour l'instant le plateau est vide - for(int i = 0; i < m_taille_univers; i++) + for(int i = 0; i < m_taille_univers; ++i) m_liste_univers[ID].first.push_back(i); // On mélange notre vecteur d'index non occupés @@ -38,7 +38,7 @@ void Univers::affichage(void) const noexcept { for(auto it: m_liste_univers[ID].second) plateau[it->position(ID).first] = it->ID; - for(int i = 0; i < m_largeur * 4; i++) + for(int i = 0; i < m_largeur * 4; ++i) if(i == 0) std::cout << "┌"; // coin supérieur gauche else @@ -47,7 +47,7 @@ void Univers::affichage(void) const noexcept { std::cout << "│ "; // premier côté gauche for(int i = 0; i < m_taille_univers; i += m_largeur) { - for(int j = 0; j < m_largeur; j++) { + for(int j = 0; j < m_largeur; ++j) { std::cout << Organisme::lettre(plateau[i + j]); if(j == m_largeur - 1) std::cout << " │ "; // côté droit @@ -58,7 +58,7 @@ void Univers::affichage(void) const noexcept { } std::cout << std::endl; - for(int i = 0; i < m_largeur * 4; i++) + for(int i = 0; i < m_largeur * 4; ++i) if(i == 0) std::cout << "└"; // coin inférieur gauche else