Le programme permet maintenant d'affichier un ecran qui fait la taille d'une grille 4*4
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include "affichage.h"
|
||||
#include<stdio.h>
|
||||
#include <graph.h>
|
||||
#include "config.h"
|
||||
#include "partie.h"
|
||||
int main(void){
|
||||
int k;
|
||||
int grille[NB_LIGNES][NB_COLS],touche;
|
||||
|
||||
init_affichage();
|
||||
initialiser_plateau(grille);
|
||||
afficher_plateau(grille);
|
||||
|
||||
while(1){
|
||||
|
||||
if (ToucheEnAttente()){
|
||||
k = Touche();
|
||||
if (k == XK_q)break;
|
||||
touche = Touche();
|
||||
if (touche == XK_q)break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user