Aug-15-2017, 05:07 PM
A couple things that might help you:
>>> a = [1, 1, 1] >>> a[0] == a[1] == a[2] == 1 Trueand:
lines = [(0, 1, 2), (3, 4, 5), (6, 7, 8), ...] for a, b, c in lines: if grid[a] == grid[b] == grid[c] == 'X': print('Player one 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