39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/*====================================
|
|
AUTEURS : Léa Dezothez et Solène Baillargeon
|
|
PROJET : Final
|
|
NOM DU FICHIER : fonctions.h
|
|
DATE : 2025-11-14
|
|
BUT : Déclaration fonctions pour le jeu Tic Tac Toe
|
|
====================================*/
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#pragma once
|
|
|
|
const int LARGTIC = 3;
|
|
|
|
//Fichiers
|
|
void ouvrirFichier(std::fstream& monFlux, std::string nomFichier);
|
|
void fermerFichier(std::fstream& monFlux);
|
|
|
|
//Menu
|
|
void initGrid(std::string grid[][LARGTIC]);
|
|
void afficherMenu(char& choix);
|
|
void afficherImageMenu(std::fstream& monFlux);
|
|
|
|
//Général
|
|
void afficherImageTableau(std::string grid[][LARGTIC], std::string style);
|
|
void tourJoueur(std::string grid[][LARGTIC], int joueur); //pour savoir quel icon utiliser
|
|
bool verifFinMatch(std::string grid[][LARGTIC], int compteur);
|
|
void afficherFinMatch(std::string grid[][LARGTIC], int gagnant, int nbJoueurs);
|
|
int partieNulle(std::string grid[][LARGTIC], int compteur);
|
|
|
|
//1 joueur
|
|
void jeuUnJoueur(std::string grid[][LARGTIC]);
|
|
void tourOrdi(std::string grid[][LARGTIC]);
|
|
|
|
//2 joueurs
|
|
void jeuDeuxJoueurs(std::string grid[][LARGTIC]);
|
|
|
|
//Changer le thème
|
|
void changerLeTheme(); |