
Programme qui marche 100%
Dependencies: mbed BSP_DISCO_F746NG
prog_util/header.h
- Committer:
- blbl
- Date:
- 2020-11-18
- Revision:
- 4:58c50d72b423
- Parent:
- 3:54a96adea9cd
File content as of revision 4:58c50d72b423:
#include <stdio.h> #include <stdlib.h> #include <stm32746g_discovery_ts.h> #include <stm32746g_discovery_lcd.h> #define LONGUEUR 238 //sur la grille des états #define HAUTEUR 134 #define TEMPS_TOUR 200 typedef char CASE; typedef CASE GRILLE[LONGUEUR+1][HAUTEUR+1]; // limite du bouton "démarrer" #define Gauche_bouton_demarrer 350 #define Bas_bouton_demarrer 30 #define couleur_stop LCD_COLOR_BLACK #define couleur_demarrer LCD_COLOR_BLACK #define Droit_bouton_continuer 129 // règles #define CVA_VIVANT 3//les test sont fait en intervalle ouvert (=> =<) #define CVA_MORT 2 #define couleurvivante LCD_COLOR_WHITE #define couleurmorte LCD_COLOR_BLACK //Fonctions du JDLV void Tabsomme(GRILLE G, GRILLE Gsomme); int SommeADJcorps(GRILLE G, int i, int h); int SommeADJcoteslat(GRILLE G,int i, int h); int SommeADJcoins(GRILLE G, int i, int h); int SommeADJcoteslon(GRILLE G,int i, int h); void Changementetat(GRILLE G, GRILLE Gsomme); void Affichagepxl2(GRILLE G); void Affichagepxl2_debut(GRILLE G); void partie(GRILLE G,GRILLE Gsomme); int fin_de_partie(GRILLE G,GRILLE Gsomme); void init_cellules(GRILLE G);