Advertisement
Guest User

LOLILOL

a guest
Jan 18th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.99 KB | None | 0 0
  1. with Ada.Text_IO; use Ada.Text_IO;
  2. with Ada.Integer_Text_IO ; use Ada.Integer_Text_IO;
  3. with affichage; use affichage;
  4. with Coordonnee; use Coordonnee;
  5. with ensemble; use ensemble;
  6. with grilleSudoku; use grilleSudoku;
  7. with SudokuGrille; use SudokuGrille;
  8.  
  9. procedure main is
  10.    difficulte : Integer;
  11.    g : Type_Grille;
  12.  
  13. begin
  14.    
  15.    difficulte := -1;
  16.    
  17.    while difficulte < 1 or difficulte > 3 loop
  18.       put("Difficulte ? (1-2-3) ");
  19.       get(difficulte);
  20.    end loop;
  21.  
  22.    New_Line;
  23.      
  24.    -- Affichage de la grille en fonction de la difficulté rentrée
  25.    if difficulte = 1 then
  26.       New_Line;
  27.       put("Grille facile");
  28.       g := facile;
  29.    else
  30.       if difficulte = 2 then
  31.          New_Line;
  32.          put("Grille moyenne");
  33.          g := moyen;
  34.       else
  35.          if difficulte = 3 then
  36.             New_Line;
  37.             put("Grille difficile");
  38.             g := difficile;
  39.          end if;
  40.       end if;
  41.    end if;
  42.    
  43.    afficherGrille(g);
  44.  
  45. end main;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement