Apr-21-2019, 12:20 PM
The way I have done this in the past is to have a list or tuple of the sets of winning keys, and iterate over that:
WINS = (('top-L', 'top-M', 'top-R'), ('mid-L', 'mid-M', 'mid-R'), ...)The you iterate over that list, either getting the tuples of keys (
for win in WINS:
) or getting the individual keys (for first, second, third in WINS:
).
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