From 4de3274014d1eeedb5d240f787b8a863e5ab8f1e Mon Sep 17 00:00:00 2001 From: CoCo_Sol Date: Mon, 30 Oct 2023 23:41:04 +0100 Subject: [PATCH] On chnage le text pour entrer dans la zone --- src/scenes/classique.py | 2 +- src/scenes/menteur.py | 2 +- src/scenes/tricheur.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scenes/classique.py b/src/scenes/classique.py index 8a4bd8c..c223707 100644 --- a/src/scenes/classique.py +++ b/src/scenes/classique.py @@ -154,7 +154,7 @@ def _update(world: World): # On gere le l'input de l'utilisateur. for entity_text in world.query(TextDialogue): if number == "": # si il a rien evoyé. - entity_text[Text] = Text("tu doit entrer un nombre !") + entity_text[Text] = Text("Entrez un nombre !") return if world[RandomNumber] == int(number): # si il a trouve le nombre. end_game(world, "Gagné") diff --git a/src/scenes/menteur.py b/src/scenes/menteur.py index 222e41d..d6b826e 100644 --- a/src/scenes/menteur.py +++ b/src/scenes/menteur.py @@ -155,7 +155,7 @@ def _update(world: World): # On gere le l'input de l'utilisateur. for entity_text in world.query(TextDialogue): if number == "": # si il a rien evoyé. - entity_text[Text] = Text("tu doit entrer un nombre !") + entity_text[Text] = Text("Entrez un nombre !") return if world[RandomNumber] == int(number): # si il a trouve le nombre. end_game(world, "Gagné") diff --git a/src/scenes/tricheur.py b/src/scenes/tricheur.py index a1cbc46..b247fb6 100644 --- a/src/scenes/tricheur.py +++ b/src/scenes/tricheur.py @@ -154,7 +154,7 @@ def _update(world: World): # On gere le l'input de l'utilisateur. for entity_text in world.query(TextDialogue): if number == "": # si il a rien evoyé. - entity_text[Text] = Text("tu doit entrer un nombre !") + entity_text[Text] = Text("Entrez un nombre !") return if world[RandomNumber] == int(number): # si il a trouve le nombre. end_game(world, "Gagné") -- 2.43.4