#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>

#define COLONNE 6
#define LIGNE 3
#define TABSIZE COLONNE*LIGNE
Définition de la taille général du paquet de cartes
TABSIZE doit être paire.


~~void initJeu();~~

Initialise le jeu, dispose les cartes faces verso et leur attribue un motif aléatoire de 1 à TABSIZE/2

~~int* tableauAleatoire(int size);~~

Attribution aléatoire des motif sur les cartes


~~int randAB(int a, int b);~~
Choisi un nombre aléatoire : essentielle aux fonction ci-dessus


~~unsigned short int localisation(SDL_Rect event);~~
Prend une coordonnée, calcul la colonne et la ligne correspondante, retourne l'indice du motif.

~~void switchCarte(int i, int j);~~
Retourne une Carte 

~~int paireBonne();~~
Retourne 1 si la tableau paire[] contient deux indice identique.


void premiereCarte(SDL_Rect event);
void secondeCarte(SDL_Rect event);
void actionListener();
void localisation(SDL_Rect event);  
void affichage(); 


typedef enum Face Face;
enum Face 
{
    RECTO, VERSO, OUT
};


typedef struct Table Table;
struct Table
{
    SDL_Rect position;
    Face face;
    unsigned short int texture;

};
