@@ -90,15 +90,15 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
SetConsoleOutputCP ( CP_UTF8 ) ;
string emoteUp ,
emoteDown ,
emote J1,
emote J2;
icon J1,
icon J2;
// Faire une fonction pour retenir le th<74> me s<> lectionn<6E> par le joueur!!!!
ouvrirFichier ( monFlux , style ) ;
if ( monFlux ) {
while ( ! monFlux . eof ( ) ) {
monFlux > > emoteUp > > emoteDown > > emote J1 > > emote J2;
monFlux > > emoteUp > > emoteDown > > ICON J1 > > ICON J2;
}
monFlux . close ( ) ;
cout < < endl ;
@@ -109,9 +109,10 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
}
fermerFichier ( monFlux ) ;
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20> t<EFBFBD> ajout<75> s
cout < < " Joueur 1: " < < emoteJ1 < < " Joueur 2: " < < emoteJ2 < < endl < < endl ;
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
cout < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " " < < i + 1 < < " " ;
@@ -131,32 +132,21 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
}
cout < < " " ;
}
cout < < " | " < < endl < < " " < < k + 1 < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " | " < < " " ;
if ( grid [ k ] [ i ] = = " X " ) {
cout < < emoteJ1 ;
}
else if ( grid [ k ] [ i ] = = " O " ) {
cout < < emoteJ2 ;
}
else {
cout < < " " ;
}
cout < < " " ;
cout < < " | " < < " " < < grid [ k ] [ i ] < < " " ;
}
cout < < " | " < < endl < < " " ;
cout < < " |" < < endl < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " | " ;
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
}
cout < < " " ;
}
cout < < " | " < < endl < < " " ;
@@ -206,9 +196,6 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
cin > > verticale ;
cout < < " \n Entrez une coordonnee horizontale : " ;
cin > > horizontale ;
verticale - - ;
horizontale - - ;
}
if ( joueur = = 1 ) {
@@ -356,7 +343,7 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
}
//Changer le th<74> me
void changerLeTheme ( bool & theme ) {
void changerLeTheme ( ) {
string grid [ LARGTIC ] [ LARGTIC ] ;
system ( " cls " ) ;
do {
@@ -368,9 +355,6 @@ void changerLeTheme(bool &theme) {
choix = toupper ( _getche ( ) ) ;
cout < < endl ;
if ( choix > = ' A ' & & choix < = ' D ' ) {
theme = true ;
}
switch ( choix ) {
case ' A ' :
style = " themes/themeSea.txt " ;