From fcdb73f98315cbcbe028483c4294527d33edb317 Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Sat, 12 Oct 2024 20:40:30 +0200 Subject: [PATCH] Erst neue Vokabeln --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 607ea62..98c7c2f 100644 --- a/main.py +++ b/main.py @@ -207,12 +207,12 @@ class Sesion: def hace_paso(self, unidad, paso, cur_palabras): c = [len(cur_palabras[x]) for x in cur_palabras] print(f"{bcolors.BOLD}{unidad}{bcolors.ENDC}: {paso} ({c[0] + c[6]}/{c[1]}/{c[2]}/{c[3]}/{c[4]}/{bcolors.OKGREEN}{c[5]}{bcolors.ENDC})") - for n in range(5): # 1..4, no 5 - if self.hace_palabras(cur_palabras[n], n) == Resultado.ADIOS: - return Resultado.ADIOS n = None if self.hace_palabras(cur_palabras[n], n) == Resultado.ADIOS: return Resultado.ADIOS + for n in range(5): # 1..4, no 5 + if self.hace_palabras(cur_palabras[n], n) == Resultado.ADIOS: + return Resultado.ADIOS def hace_palabras(self, palabras, status): random.shuffle(palabras)