how would I reset everything
I'm trying to make a maze in python and want a reset feature but the closest thing I can find is the system.exit but I don't want to have to make a func that combs through everything and sets them back to normal
ok I see a lot of you saying to use init=Function() but I haven't found a way to activate it when ever
you can reset all the variables to there values at the begining
yea write all the variables in init = function() end what this does is it runs once at the very beginning and does everything in it once
To completely reset the game (except for storage), you can use system.javascript("location.reload();")
. However, I'm not sure if this is an option in Python projects.