Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Ajout du to_upper vérification solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Feelzor committed Jan 24, 2019
1 parent 191a1ba commit 4d8a45d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p_jeu.adb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
with p_combinaisons ;
use p_combinaisons ;
with p_combinaisons, Ada.Characters.Handling;
use p_combinaisons, Ada.Characters.Handling;

package body p_jeu is
procedure debutJeu(contigue: in boolean) is
Expand Down Expand Up @@ -52,7 +52,7 @@ package body p_jeu is
procedure verifSol(solution: in string; result: out integer) is
-- {} => {result contient le statut de la solution (correcte, doublon, incorrecte)}
estValide, dejaTrouve: boolean;
combinaison: string := solution;
combinaison: string := to_upper(solution);
begin
if combinaison'length > 0 and combinaison'length <= 14 then
ordonne(combinaison);
Expand Down

0 comments on commit 4d8a45d

Please sign in to comment.