May-16-2019, 05:32 PM
The problem is not with lambda:
>>> def fred(number): ... print(number) ... >>> a = lambda: fred(16) >>> a() 16 >>> a() 16 >>>I expect the problem is that you are using yield in move_players instead of return. That means you are creating a generator on a click rather than returning from a function.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures