Files
TicTacToe/TicTacToe/main.cpp
2025-11-26 10:03:04 -05:00

55 lines
1.1 KiB
C++

/*====================================
AUTEURS : Léa Dezothez et Solène Baillargeon
PROJET : Final
NOM DU FICHIER : main.cpp
DATE : 2025-11-14
BUT : Main pour le jeu Tic Tac Toe
====================================*/
#include <iostream>
#include "fonctions.h"
using namespace std;
const string ICONJ1 = { "X" };
const string ICONJ2 = { "O" };
int main() {
srand(time(NULL));
char choix;
string grid[LARGTIC][LARGTIC];
do {
initTab(grid);
afficherMenu(choix);
switch (choix) {
case 'A':
system("cls");
jeuUnJoueur(grid);
break;
case 'B':
system("cls");
jeuDeuxJoueurs(grid);
break;
case 'C':
historiqueDesScores();
break;
case 'D':
changerLeTheme();
break;
case 'Q':
cout << "\nAu revoir!";
break;
default:
cout << endl << "Saisissez un choix valide." << endl;
break;
}
system("PAUSE>0");
} while (choix != 'Q');
}