Skip to content

ajout niveau très difficile #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions intro.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def choose_mode():
2. Si les deux cartes sont identiques, elle resteront face visibles.
3. Sinon elles seront masquées.
4. Le jeu se termine lorsque toutes les cartes sont visibles.
4.5 Il y a 4 niveaux de difficulté.
5. Une nouvelle partie commence automatiquement.
6. Appuyez sur ENTREE pour changer de mode.
7. Appuyez sur ECHAP pour quitter.
Expand Down Expand Up @@ -90,13 +91,13 @@ def choose_level():
)
lvl2.pack(side=LEFT)
# TODO: Ajouter un mode très difficile
# lvl3 = Button(
# text="DIFFICILE",
# width="15",
# height="5",
# bg="lavender",
# command=lambda rows=5, cols=8: clicked(rows, cols, level_root, chosen_level),
# )
# lvl3.pack(side=LEFT)
lvl3 = Button(
text="DIFFICILE",
width="15",
height="5",
bg="lavender",
command=lambda rows=5, cols=8: clicked(rows, cols, level_root, chosen_level),
)
lvl3.pack(side=LEFT)
level_root.mainloop()
return chosen_level