I am writing a tic tac toe game and I am stuck at the step where code is supposed to check if a player has won VERTICALLY, my friend who knows c++ told me to first iterate thru COLUMNS and then ROWS to make the process easier. Not sure how it works in python.
So for example player enters 4x4 table and after a while this is his result.
[0,1,0,0]
[0,1,0,0]
[0,1,0,0]
[0,1,0,0]
He said that if I iterate thru columns first and then rows then it would be like:
CHECK,1,0,0
CHECK,1,0,0
CHECK,1,0,0
CHECK,1,0,0
and then column index changes to 1
0,CHECK,0,0
0,CHECK,0,0
0,CHECK,0,0
0,CHECK,0,0
sorry for bad explanation...