I am working on a simple memory GUI game, and I need to define a function that can run twice in a certain way and then run differently the third time. The problem being that I cannot use global variables of any kind to define a list that will count for me. How can I make it so that the function itself defines a list and then counts how many times it has already been called so it can operate accordingly?
Asked
Active
Viewed 16 times
0
-
Put the function and the variable in a class? – Joachim Isaksson Dec 02 '21 at 20:35