i am making a noughts and crosses game and i wan to define some positions. Here is what i did...
def build():
box = [["","",""],["","",""],["","",""]]
def positions():
tl = box[0][0]
ml = box[0][1]
rl = box[0][2]
lm = box[1][0]
mm = box[1][1]
rm = box[1][2]
bl = box[2][0]
bm = box[2][1]
br = box[2][2]
is there a way to shorten this code down? i could not find anything else to optimize my time in writing a bunch of box[][] statements.