#Need help for on my game

12 messages ยท Page 1 of 1 (latest)

willow lotusBOT
#
Compiler Output
Traceback (most recent call last):
  File "/app/output.s", line 9, in <module>
    import turtle  # importation du module turtle qui vas permettre de dessiner le plan du jeu
    ^^^^^^^^^^^^^
  File "/opt/compiler-explorer/python-3.11.0/lib/python3.11/turtle.py", line 107, in <module>
    import tkinter as TK
  File "/opt/compiler-explorer/python-3.11.0/lib/python3.11/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
late mango
#

Here's the error that pycharm return to me :
line 177, in move_down
if matrice[height - 1][width] == 0 or matrice[height - 1][width] == 4 :
^^^^^^
NameError: name 'height' is not defined

half plover
#

if you use global keyword python will look for a variable in global scope only, if you want to look for a variable in outer function use nonlocal keyword, but much better way would be to pass them to inner function as function parameter instead

late mango
#

Tysm !

#

can someone help me to find a solution ?

late mango
#

test

late mango
#

Here's a new update of my program :

late mango
#

@half plover Do u have an idea ?

late mango
#

/close