Blocus/main.c

27 lines
515 B
C
Raw Permalink Normal View History

2021-11-17 18:06:51 +01:00
/* Leni Boscher * Tanguy Domergue */
#include <stdio.h>
#include <stdlib.h>
#include <graph.h>
#include"main.h"
#include"menu.h"
#include"plateau.h"
#include"regles.h"
int main(void){
int number, versus;
InitialiserGraphique();
CreerFenetre(10,10, LargeF, HautF);
if (accueil(&number, &versus)==0)return EXIT_SUCCESS;
while(1) {
if(SourisCliquee()) {
if (_X>=322 && _X<=426 && _Y>=453 && _Y<=511){
FermerGraphique();
plateau(number, versus);
break;
}
}
}
return EXIT_SUCCESS;
}