Skip to content
Snippets Groups Projects
initialisation.h 677 B
Newer Older
#include <string.h>
#define NombreMaxDes 30
#define NombreMaxJoueurs 6

enum DICE {Paco,deux,trois,quatre,cinq,six};
typedef struct
{
    char nom[20];
    unsigned int NombreDes;
    int Des[5];
    struct Joueur *next;
} Joueur,*PJoueur;

typedef struct
{
    enum DICE face;
    unsigned int value;
    struct Annonce *next;
} Annonce;

typedef struct
{
    Joueur * first;
    Joueur * current;

} ListJoueur;

typedef struct
{
    Annonce * first;
    Annonce * current;

} ListAnnonce;


PJoueur JoueurSaisie();

void NbJoueurs();

int RandomDes();

PJoueur LePremier();

Joueur CreLink(int n);

PJoueur AvanceListe(PJoueur c,int d);

void DistriDes(PJoueur p);