@@ -98,7 +98,7 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
ouvrirFichier ( monFlux , style ) ;
ouvrirFichier ( monFlux , style ) ;
if ( monFlux ) {
if ( monFlux ) {
while ( ! monFlux . eof ( ) ) {
while ( ! monFlux . eof ( ) ) {
monFlux > > emoteUp > > emoteDown > > icon J1 > > icon J2;
monFlux > > emoteUp > > emoteDown > > ICON J1 > > ICON J2;
}
}
monFlux . close ( ) ;
monFlux . close ( ) ;
cout < < endl ;
cout < < endl ;
@@ -109,6 +109,9 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
}
}
fermerFichier ( monFlux ) ;
fermerFichier ( monFlux ) ;
grid [ 0 ] [ 0 ] = ICONJ1 ;
grid [ 0 ] [ 1 ] = ICONJ2 ;
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20> t<EFBFBD> ajout<75> s
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20> t<EFBFBD> ajout<75> s
cout < < " " ;
cout < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
for ( int i = 0 ; i < LARGTIC ; i + + ) {
@@ -125,27 +128,27 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
cout < < endl < < " " ;
cout < < endl < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" ;
cout < < " | " ;
for ( int j = 0 ; j < 3 ; j + + ) {
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
cout < < " " ;
}
}
}
}
cout < < " |" < < endl < < " " < < k + 1 < < " " ;
cout < < " | " < < endl < < " " < < k + 1 < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" < < " " < < grid [ k ] [ i ] < < " " ;
cout < < " | " < < " " < < grid [ k ] [ i ] < < " " ;
}
}
cout < < " | " < < endl < < " " ;
cout < < " | " < < endl < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" ;
cout < < " | " ;
for ( int j = 0 ; j < 3 ; j + + ) {
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
cout < < " " ;
}
}
}
}
cout < < " |" < < endl < < " " ;
cout < < " | " < < endl < < " " ;
}
}
@@ -340,7 +343,7 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
//Changer le th<74> me
//Changer le th<74> me
void changerLeTheme ( ) {
void changerLeTheme ( ) {
string grid [ LARGTIC ] [ LARGTIC ] = { ICONJ1 , ICONJ2 } ;
string grid [ LARGTIC ] [ LARGTIC ] ;
system ( " cls " ) ;
system ( " cls " ) ;
do {
do {
cout < < endl < < " Changer le theme du jeu Tic Tac Toe " < < endl
cout < < endl < < " Changer le theme du jeu Tic Tac Toe " < < endl