@@ -49,11 +49,11 @@ void afficherMenu(char& choix) {
fermerFichier ( monFlux ) ;
// Menu
cout < < endl < < " MENU " < < endl < < " ---------------------------------- " < < endl
cout < < endl < < " MENU " < < endl
< < " ---------------------------------- " < < endl
< < " A) 1 joueur " < < endl
< < " B) 2 joueurs " < < endl
< < " C) Montrer l'historique des scores " < < endl
< < " D) Changer le style du jeu " < < endl
< < " C) Changer le style du jeu " < < endl
< < " Q) Quitter " < < endl < < endl
< < " Quel est votre choix? " ;
choix = toupper ( _getche ( ) ) ;
@@ -86,13 +86,6 @@ void afficherImageMenu(std::fstream& monFlux) {
}
//G<> n<EFBFBD> ral (plusieurs options)
void initTab ( string grid [ ] [ LARGTIC ] ) {
for ( int i = 0 ; i < LARGTIC ; i + + ) {
for ( int j = 0 ; j < LARGTIC ; j + + ) {
grid [ i ] [ j ] = " " ;
}
}
}
void afficherImageTableau ( std : : string grid [ ] [ LARGTIC ] , std : : string style ) {
SetConsoleOutputCP ( CP_UTF8 ) ;
@@ -106,7 +99,7 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
ouvrirFichier ( monFlux , style ) ;
if ( monFlux ) {
while ( ! monFlux . eof ( ) ) {
monFlux > > emoteUp > > emoteDown > > icon J1 > > icon J2;
monFlux > > emoteUp > > emoteDown > > ICON J1 > > ICON J2;
}
monFlux . close ( ) ;
cout < < endl ;
@@ -117,6 +110,9 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
}
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
cout < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
@@ -133,27 +129,27 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
cout < < endl < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" ;
cout < < " | " ;
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
}
}
cout < < " |" < < endl < < " " < < k + 1 < < " " ;
cout < < " | " < < endl < < " " < < k + 1 < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" < < " " < < grid [ k ] [ i ] < < " " ;
cout < < " | " < < " " < < grid [ k ] [ i ] < < " " ;
}
cout < < " | " < < endl < < " " ;
for ( int i = 0 ; i < LARGTIC ; i + + ) {
cout < < " |" ;
cout < < " | " ;
for ( int j = 0 ; j < 3 ; j + + ) {
cout < < " " ;
}
}
cout < < " |" < < endl < < " " ;
cout < < " | " < < endl < < " " ;
}
@@ -346,14 +342,9 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
afficherFinMatch ( grid , gagnant , nbJoueurs ) ;
}
//Historique
void historiqueDesScores ( ) {
}
//Changer le th<74> me
void changerLeTheme ( ) {
string grid [ LARGTIC ] [ LARGTIC ] = { ICONJ1 , ICONJ2 } ;
string grid [ LARGTIC ] [ LARGTIC ] ;
system ( " cls " ) ;
do {
cout < < endl < < " Changer le theme du jeu Tic Tac Toe " < < endl