Compare commits
3 Commits
ac31baba3d
...
bb6d8afaba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb6d8afaba | ||
|
|
8d6f673653 | ||
|
|
ad2ae96bb1 |
@@ -1 +1 @@
|
||||
Appuyez sur une touche pour continuer...
|
||||
Press any key to continue . . .
|
||||
|
||||
@@ -15,8 +15,8 @@ BUT : Fichier de fonctions Tic Tac Toe
|
||||
using namespace std;
|
||||
|
||||
extern const int LARGTIC;
|
||||
string iconJ1 = "X";
|
||||
string iconJ2 = "O";
|
||||
string ICONJ1 = "X";
|
||||
string ICONJ2 = "O";
|
||||
string style = "themes/themeSea.txt";
|
||||
int codeConsole = 0;
|
||||
|
||||
@@ -199,7 +199,7 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
|
||||
verticale -= 1;
|
||||
horizontale -= 1;
|
||||
|
||||
while (grid[verticale][horizontale] == iconJ1 || grid[verticale][horizontale] == iconJ2) {
|
||||
while (grid[verticale][horizontale] == ICONJ1 || grid[verticale][horizontale] == ICONJ2) {
|
||||
// V<>RIFIER LE CIN D'ERREUR!!!!!
|
||||
cout << "\n\nVeuillez choisir une case vide.\n"
|
||||
<< "\n\nEntrez une coordonnee verticale : ";
|
||||
@@ -212,10 +212,10 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
|
||||
}
|
||||
|
||||
if (joueur == 1) {
|
||||
grid[verticale][horizontale] = iconJ1;
|
||||
grid[verticale][horizontale] = ICONJ1;
|
||||
}
|
||||
else {
|
||||
grid[verticale][horizontale] = iconJ2;
|
||||
grid[verticale][horizontale] = ICONJ2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ void tourOrdi(string grid[][LARGTIC]) {
|
||||
vertical = rand() % (3);
|
||||
horizontal = rand() % (3);
|
||||
} while (grid[vertical][horizontal] != "");
|
||||
grid[vertical][horizontal] = iconJ2;
|
||||
grid[vertical][horizontal] = ICONJ2;
|
||||
afficherImageTableau(grid, style);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ int main() {
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
changerLeTheme(theme);
|
||||
changerLeTheme();
|
||||
theme = true;
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
|
||||
Reference in New Issue
Block a user